Re: [lkp-robot] [printk] c162d5b433: BUG:KASAN:use-after-scope_in_c

2018-03-01 Thread Sergey Senozhatsky
On (03/01/18 16:53), Dmitry Vyukov wrote: [..] > > Hello Dmitry, > > > > I believe it's this one > > > > https://marc.info/?l=linux-kernel&m=151200883525299 > > > Thanks, but now that I debugged this one, I think that one is the same issue. > Amusingly a write in READ_ONCE is actually legitimate

Re: [lkp-robot] [printk] c162d5b433: BUG:KASAN:use-after-scope_in_c

2018-03-01 Thread Hao, Shun
sorry for missing the attached script in original mail, here to add it. On Thu, 2018-03-01 at 08:47 +, Dmitry Vyukov wrote: > On Thu, Mar 1, 2018 at 2:37 AM, Sergey Senozhatsky > wrote: > > Hello, > > > > Cc-ing Dmitry Vyukov and kasan-dev on this. > > > > On (02/28/18 16:59), Petr Mladek w

Re: [lkp-robot] [printk] c162d5b433: BUG:KASAN:use-after-scope_in_c

2018-03-01 Thread Kees Cook
On Thu, Mar 1, 2018 at 6:14 AM, Ard Biesheuvel wrote: > On 1 March 2018 at 14:09, Dmitry Vyukov wrote: > .. >> +Ard, Kees >> >> This is a problem with GCC_PLUGIN_STRUCTLEAK_BYREF_ALL. It inserts an >> initializing write for __u used in READ_ONCE outside of live scope of >> the variable. >> Below

Re: [lkp-robot] [printk] c162d5b433: BUG:KASAN:use-after-scope_in_c

2018-03-01 Thread Dmitry Vyukov
On Thu, Mar 1, 2018 at 4:19 PM, Sergey Senozhatsky wrote: > On (03/01/18 09:51), Dmitry Vyukov wrote: >> > https://marc.info/?l=linux-kernel&m=151200883525299 >> > >> > [..] >> >> I feel lost a bit. >> > >> > Yeah... can't understand what's going on there. >> > >> > The last time kasan didn't like

Re: [lkp-robot] [printk] c162d5b433: BUG:KASAN:use-after-scope_in_c

2018-03-01 Thread Sergey Senozhatsky
On (03/01/18 09:51), Dmitry Vyukov wrote: > > https://marc.info/?l=linux-kernel&m=151200883525299 > > > > [..] > >> I feel lost a bit. > > > > Yeah... can't understand what's going on there. > > > > The last time kasan didn't like this part > > > > [0.00] ? console_unlock+0x605/0xcc0: > >

Re: [lkp-robot] [printk] c162d5b433: BUG:KASAN:use-after-scope_in_c

2018-03-01 Thread Ard Biesheuvel
On 1 March 2018 at 14:09, Dmitry Vyukov wrote: .. > +Ard, Kees > > This is a problem with GCC_PLUGIN_STRUCTLEAK_BYREF_ALL. It inserts an > initializing write for __u used in READ_ONCE outside of live scope of > the variable. > Below "movb $0x1,0x0(%r13)" and "movb $0xf8,0x0(%r13)" denote live

Re: [lkp-robot] [printk] c162d5b433: BUG:KASAN:use-after-scope_in_c

2018-03-01 Thread Dmitry Vyukov
81190fe6: 48 85 db test %rbx,%rbx > ffff81190fe9: 0f 85 d6 05 00 00 jne811915c5 > > 81190fef: e8 7d 80 08 00 callq 81219071 > <__sanitizer_cov_trace_pc> > 81190ff4: 48 8b

Re: [lkp-robot] [printk] c162d5b433: BUG:KASAN:use-after-scope_in_c

2018-03-01 Thread Tetsuo Handa
Linus Torvalds , Jan Kara , Mathieu Desnoyers , Byungchul Park , Tejun Heo , Pavel Machek , Steven Rostedt , Sergey Senozhatsky , LKML , l...@01.org Date:Thu, 01 Mar 2018 10:08:19 +0900 Subject: Re: [lkp-robot] [printk] c162d5b433: BUG:KASAN:use-after-scope_in_c Petr Mladek wrote: > I

Re: [lkp-robot] [printk] c162d5b433: BUG:KASAN:use-after-scope_in_c

2018-03-01 Thread Dmitry Vyukov
On Thu, Mar 1, 2018 at 2:37 AM, Sergey Senozhatsky wrote: > Hello, > > Cc-ing Dmitry Vyukov and kasan-dev on this. > > On (02/28/18 16:59), Petr Mladek wrote: > [..] >> > > >> > > [0.00] BUG: KASAN: use-after-scope in console_unlock+0x185/0x960 >> > > [0.00] BUG: KASAN: use-after-s

Re: [lkp-robot] [printk] c162d5b433: BUG:KASAN:use-after-scope_in_c

2018-03-01 Thread Dmitry Vyukov
On Thu, Mar 1, 2018 at 2:37 AM, Sergey Senozhatsky wrote: > Hello, > > Cc-ing Dmitry Vyukov and kasan-dev on this. > > On (02/28/18 16:59), Petr Mladek wrote: > [..] >> > > >> > > [0.00] BUG: KASAN: use-after-scope in console_unlock+0x185/0x960 >> > > [0.00] BUG: KASAN: use-after-s

Re: [lkp-robot] [printk] c162d5b433: BUG:KASAN:use-after-scope_in_c

2018-02-28 Thread Sergey Senozhatsky
Hello, Cc-ing Dmitry Vyukov and kasan-dev on this. On (02/28/18 16:59), Petr Mladek wrote: [..] > > > > > > [0.00] BUG: KASAN: use-after-scope in console_unlock+0x185/0x960 > > > [0.00] BUG: KASAN: use-after-scope in console_unlock+0x185/0x960 > > > > Is there any change to get

Re: [lkp-robot] [printk] c162d5b433: BUG:KASAN:use-after-scope_in_c

2018-02-28 Thread Petr Mladek
On Wed 2018-02-28 11:23:34, Petr Mladek wrote: > On Sat 2018-02-24 13:34:05, kernel test robot wrote: > > TO: Petr Mladek > > CC: Cong Wang , Dave Hansen > > , Johannes Weiner , Mel Gorman > > , Michal Hocko , Vlastimil Babka > > , Peter Zijlstra , Linus Torvalds > > , Jan Kara , Mathieu Desno

Re: [lkp-robot] [printk] c162d5b433: BUG:KASAN:use-after-scope_in_c

2018-02-28 Thread Petr Mladek
On Sat 2018-02-24 13:34:05, kernel test robot wrote: > TO: Petr Mladek > CC: Cong Wang , Dave Hansen > , Johannes Weiner , Mel Gorman > , Michal Hocko , Vlastimil Babka > , Peter Zijlstra , Linus Torvalds > , Jan Kara , Mathieu Desnoyers > , Tetsuo Handa > , Byungchul Park > , Tejun Heo , P

[lkp-robot] [printk] c162d5b433: BUG:KASAN:use-after-scope_in_c

2018-02-23 Thread kernel test robot
TO: Petr Mladek CC: Cong Wang , Dave Hansen , Johannes Weiner , Mel Gorman , Michal Hocko , Vlastimil Babka , Peter Zijlstra , Linus Torvalds , Jan Kara , Mathieu Desnoyers , Tetsuo Handa , Byungchul Park , Tejun Heo , Pavel Machek , Steven Rostedt (VMware) , Sergey Senozhatsky , LKML , l