================================================================== BUG: KASAN: use-after-free in list_empty include/linux/list.h:282 [inline] BUG: KASAN: use-after-free in waitqueue_active include/linux/wait.h:127 [inline] BUG: KASAN: use-after-free in wq_has_sleeper include/linux/wait.h:161 [inline] BUG: KASAN: use-after-free in skwq_has_sleeper include/net/sock.h:2156 [inline] BUG: KASAN: use-after-free in sock_def_write_space+0x609/0x630 net/core/sock.c:2946 Read of size 8 at addr ffff8880282bf5c0 by task syz-executor.5/27371 CPU: 0 PID: 27371 Comm: syz-executor.5 Not tainted 5.8.0-rc5-next-20200716-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x18f/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xae/0x497 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 list_empty include/linux/list.h:282 [inline] waitqueue_active include/linux/wait.h:127 [inline] wq_has_sleeper include/linux/wait.h:161 [inline] skwq_has_sleeper include/net/sock.h:2156 [inline] sock_def_write_space+0x609/0x630 net/core/sock.c:2946 sock_wfree+0x1cc/0x240 net/core/sock.c:2059 skb_release_head_state+0x9f/0x250 net/core/skbuff.c:651 skb_release_all net/core/skbuff.c:662 [inline] __kfree_skb net/core/skbuff.c:678 [inline] kfree_skb.part.0+0x89/0x350 net/core/skbuff.c:696 kfree_skb+0x7d/0x100 include/linux/refcount.h:270 skb_queue_purge+0x14/0x30 net/core/skbuff.c:3077 qrtr_tun_release+0x40/0x60 net/qrtr/tun.c:118 __fput+0x27e/0x8e0 fs/file_table.c:281 task_work_run+0xdd/0x190 kernel/task_work.c:135 exit_task_work include/linux/task_work.h:25 [inline] do_exit+0xb7d/0x29f0 kernel/exit.c:806 do_group_exit+0x125/0x310 kernel/exit.c:903 get_signal+0x40b/0x1ee0 kernel/signal.c:2743 do_signal+0x82/0x2520 arch/x86/kernel/signal.c:810 exit_to_usermode_loop arch/x86/entry/common.c:235 [inline] __prepare_exit_to_usermode+0x14d/0x1f0 arch/x86/entry/common.c:269 do_syscall_64+0x6c/0xe0 arch/x86/entry/common.c:393 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45c1d9 Code: Bad RIP value. RSP: 002b:00007f6b8cc56c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000129 RAX: 0000000000000000 RBX: 0000000000025140 RCX: 000000000045c1d9 RDX: 0000000000000015 RSI: 000000000000071d RDI: 000000000000071d RBP: 000000000078bf48 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000200000c0 R11: 0000000000000246 R12: 000000000078bf0c R13: 00007fff74803dff R14: 00007f6b8cc579c0 R15: 000000000078bf0c The buggy address belongs to the page: page:0000000080bf78ec refcount:0 mapcount:-128 mapping:0000000000000000 index:0x2 pfn:0x282bf flags: 0xfffe0000000000() raw: 00fffe0000000000 ffffea0000a6c1c8 ffffea000224d448 0000000000000000 raw: 0000000000000002 0000000000000000 00000000ffffff7f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880282bf480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880282bf500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8880282bf580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8880282bf600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880282bf680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================