Re: [PATCH] lib: test_ubsan: VLA no longer used in kernel

2019-01-13 Thread Dmitry Vyukov
On Sun, Jan 13, 2019 at 7:32 PM Olof Johansson wrote: > > Since we now build with -Wvla, any use of VLA throws a warning. > Including this test, so... maybe we should just remove the test? > > lib/test_ubsan.c: In function 'test_ubsan_vla_bound_not_positive': > lib/test_ubsan.c:48:2: warning: ISO

Re: [PATCH] lib: test_ubsan: VLA no longer used in kernel

2019-01-13 Thread Kees Cook
On Sun, Jan 13, 2019 at 10:32 AM Olof Johansson wrote: > > Since we now build with -Wvla, any use of VLA throws a warning. > Including this test, so... maybe we should just remove the test? > > lib/test_ubsan.c: In function 'test_ubsan_vla_bound_not_positive': > lib/test_ubsan.c:48:2: warning:

[PATCH] lib: test_ubsan: VLA no longer used in kernel

2019-01-13 Thread Olof Johansson
Since we now build with -Wvla, any use of VLA throws a warning. Including this test, so... maybe we should just remove the test? lib/test_ubsan.c: In function 'test_ubsan_vla_bound_not_positive': lib/test_ubsan.c:48:2: warning: ISO C90 forbids variable length array 'buf' [-Wvla] For the