Re: bpf-next boot error: KASAN: use-after-free Write in call_usermodehelper_exec_work

From: Dmitry Vyukov
Date: Thu Jun 07 2018 - 14:33:11 EST


On Thu, Jun 7, 2018 at 8:12 PM, Luis R. Rodriguez <mcgrof@xxxxxxxxxx> wrote:
>> > <syzbot+2c73319c406f1987d156@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>> > > Hello,
>> > >
>> > > syzbot found the following crash on:
>> > >
>> > > HEAD commit: 69b450789136 Merge branch 'misc-BPF-improvements'
>> > > git tree: bpf-next
>> > > console output: https://syzkaller.appspot.com/x/log.txt?x=1080d1d7800000
>> > > kernel config: https://syzkaller.appspot.com/x/.config?x=e4078980b886800c
>> > > dashboard link: https://syzkaller.appspot.com/bug?extid=2c73319c406f1987d156
>> > > compiler: gcc (GCC) 8.0.1 20180413 (experimental)
>> > >
>> > > Unfortunately, I don't have any reproducer for this crash yet.
>> > >
>> > > IMPORTANT: if you fix the bug, please add the following tag to the commit:
>> > > Reported-by: syzbot+2c73319c406f1987d156@xxxxxxxxxxxxxxxxxxxxxxxxx
>> >
>> >
>> > This crash now happens on every other boot of mainline tree. This
>> > prevents syzbot testing of new code, and just boots machine with
>> > corrupted memory. Were there any recent changes in umh? +Alexei, you
>> > seem to touch it last. Could your change cause this?
>>
>> looking into it. I think I see the issue. Trying to reproduce.
>
> And this is why a test driver would be useful ;)

And also testing everything with KASAN and LOCKDEP ;)