Re: [PATCH] ubsan: build ubsan.c more conservatively

2019-07-22 Thread Arnd Bergmann
On Mon, Jul 22, 2019 at 2:25 PM Andrey Ryabinin wrote: > On 7/22/19 12:10 PM, Arnd Bergmann wrote: > > > > Fixes: 42440c1f9911 ("lib/ubsan: add type mismatch handler for new > > GCC/Clang") > > There was no uaccess validataion at that time, so the right fixes line is > probably this: > > Fixes:

Re: [PATCH] ubsan: build ubsan.c more conservatively

2019-07-22 Thread Andrey Ryabinin
On 7/22/19 12:10 PM, Arnd Bergmann wrote: > objtool points out several conditions that it does not like, depending > on the combination with other configuration options and compiler > variants: > > stack protector: > lib/ubsan.o: warning: objtool: __ubsan_handle_type_mismatch()+0xbf: call to >

[PATCH] ubsan: build ubsan.c more conservatively

2019-07-22 Thread Arnd Bergmann
objtool points out several conditions that it does not like, depending on the combination with other configuration options and compiler variants: stack protector: lib/ubsan.o: warning: objtool: __ubsan_handle_type_mismatch()+0xbf: call to __stack_chk_fail() with UACCESS enabled lib/ubsan.o: warni