Re: [PATCH 2/3] tools/objtool: add kasan_check_* to uaccess whitelist

2019-05-29 Thread Peter Zijlstra
On Wed, May 29, 2019 at 11:46:10AM +0200, Marco Elver wrote: > On Wed, 29 May 2019 at 10:55, Dmitry Vyukov wrote: > > > > On Tue, May 28, 2019 at 7:19 PM Peter Zijlstra wrote: > > > > > > On Tue, May 28, 2019 at 06:32:57PM +0200, Marco Elver wrote: > > > > This is a pre-requisite for enabling bit

Re: [PATCH 2/3] tools/objtool: add kasan_check_* to uaccess whitelist

2019-05-29 Thread Marco Elver
On Wed, 29 May 2019 at 10:55, Dmitry Vyukov wrote: > > On Tue, May 28, 2019 at 7:19 PM Peter Zijlstra wrote: > > > > On Tue, May 28, 2019 at 06:32:57PM +0200, Marco Elver wrote: > > > This is a pre-requisite for enabling bitops instrumentation. Some bitops > > > may safely be used with instrument

Re: [PATCH 2/3] tools/objtool: add kasan_check_* to uaccess whitelist

2019-05-29 Thread Dmitry Vyukov
On Tue, May 28, 2019 at 7:19 PM Peter Zijlstra wrote: > > On Tue, May 28, 2019 at 06:32:57PM +0200, Marco Elver wrote: > > This is a pre-requisite for enabling bitops instrumentation. Some bitops > > may safely be used with instrumentation in uaccess regions. > > > > For example, on x86, `test_bit

Re: [PATCH 2/3] tools/objtool: add kasan_check_* to uaccess whitelist

2019-05-28 Thread Peter Zijlstra
On Tue, May 28, 2019 at 06:32:57PM +0200, Marco Elver wrote: > This is a pre-requisite for enabling bitops instrumentation. Some bitops > may safely be used with instrumentation in uaccess regions. > > For example, on x86, `test_bit` is used to test a CPU-feature in a > uaccess region: arch/x86/

[PATCH 2/3] tools/objtool: add kasan_check_* to uaccess whitelist

2019-05-28 Thread Marco Elver
This is a pre-requisite for enabling bitops instrumentation. Some bitops may safely be used with instrumentation in uaccess regions. For example, on x86, `test_bit` is used to test a CPU-feature in a uaccess region: arch/x86/ia32/ia32_signal.c:361 Signed-off-by: Marco Elver --- tools/objtool/