On 05/27/2018 01:06 PM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit: ff4fb475cea8 Merge branch 'btf-uapi-cleanups' > git tree: bpf-next > console output: https://syzkaller.appspot.com/x/log.txt?x=12b3d577800000 > kernel config: https://syzkaller.appspot.com/x/.config?x=b632d8e2c2ab2c1 > dashboard link: https://syzkaller.appspot.com/bug?extid=31025a5f3f7650081204 > compiler: gcc (GCC) 8.0.1 20180413 (experimental) > syzkaller repro:https://syzkaller.appspot.com/x/repro.syz?x=109a2f37800000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=171a727b800000 > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+31025a5f3f7650081...@syzkaller.appspotmail.com > > ================================================================== > BUG: KASAN: use-after-free in cmpxchg_size > include/asm-generic/atomic-instrumented.h:355 [inline] > BUG: KASAN: use-after-free in bpf_tcp_close+0x6f5/0xf80 > kernel/bpf/sockmap.c:265 > Write of size 8 at addr ffff8801ca277680 by task syz-executor749/9723
#syz fix: bpf: sockhash fix omitted bucket lock in sock_close