Re: WARNING: kmalloc bug in memdup_user (3)

From: Daniel Borkmann
Date: Fri Jun 15 2018 - 16:24:46 EST


On 05/16/2018 05:35 PM, syzbot wrote:
> Hello,
>
> syzbot found the following crash on:
>
> HEAD commit:ÂÂÂ c5c7d7f3c451 Merge branch 'bpf-sock-hashmap'
> git tree:ÂÂÂÂÂÂ bpf-next
> console output: https://syzkaller.appspot.com/x/log.txt?x=1626ae37800000
> kernel config:Â https://syzkaller.appspot.com/x/.config?x=10c4dc62055b68f5
> dashboard link: https://syzkaller.appspot.com/bug?extid=0f92a17b0706231d0a09
> compiler:ÂÂÂÂÂÂ gcc (GCC) 8.0.1 20180413 (experimental)
> syzkaller repro:https://syzkaller.appspot.com/x/repro.syz?x=126a5197800000
> C reproducer:ÂÂ https://syzkaller.appspot.com/x/repro.c?x=1598c477800000
>
> IMPORTANT: if you fix the bug, please add the following tag to the commit:
> Reported-by: syzbot+0f92a17b0706231d0a09@xxxxxxxxxxxxxxxxxxxxxxxxx

#syz fix: bpf: fix sock hashmap kmalloc warning