================================================================== 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:2142 [inline] BUG: KASAN: use-after-free in sock_def_write_space+0x1c4/0x350 net/core/sock.c:2926 Read of size 8 at addr ffff888046097080 by task syz-executor.0/9984 CPU: 0 PID: 9984 Comm: syz-executor.0 Not tainted 5.8.0-rc2-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+0x1f0/0x31e lib/dump_stack.c:118 print_address_description+0x66/0x5a0 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report+0x132/0x1d0 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:2142 [inline] sock_def_write_space+0x1c4/0x350 net/core/sock.c:2926 sock_wfree+0x11f/0x200 net/core/sock.c:2060 skb_release_head_state+0xfb/0x210 net/core/skbuff.c:651 skb_release_all net/core/skbuff.c:662 [inline] __kfree_skb+0x22/0x1c0 net/core/skbuff.c:678 skb_queue_purge+0x131/0x1c0 net/core/skbuff.c:3077 qrtr_tun_release+0x43/0x50 net/qrtr/tun.c:118 __fput+0x2f0/0x750 fs/file_table.c:281 task_work_run+0x137/0x1c0 kernel/task_work.c:123 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop arch/x86/entry/common.c:216 [inline] __prepare_exit_to_usermode+0x14c/0x1e0 arch/x86/entry/common.c:246 do_syscall_64+0x7f/0xe0 arch/x86/entry/common.c:368 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x416711 Code: Bad RIP value. RSP: 002b:00007ffe3e4658f0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000416711 RDX: 0000000000000000 RSI: 00000000000000d4 RDI: 0000000000000004 RBP: 0000000000000001 R08: 00000000a77000d4 R09: 00000000a77000d8 R10: 00007ffe3e4659e0 R11: 0000000000000293 R12: 000000000078c900 R13: 000000000078c900 R14: ffffffffffffffff R15: 000000000078bfac Allocated by task 9988: save_stack mm/kasan/common.c:48 [inline] set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc+0x103/0x140 mm/kasan/common.c:494 slab_post_alloc_hook mm/slab.h:586 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x1f5/0x2d0 mm/slab.c:3484 sock_alloc_inode+0x17/0xc0 net/socket.c:253 alloc_inode fs/inode.c:232 [inline] new_inode_pseudo+0x64/0x240 fs/inode.c:928 sock_alloc net/socket.c:573 [inline] __sock_create+0x12b/0x8c0 net/socket.c:1392 sock_create net/socket.c:1479 [inline] __sys_socket+0xde/0x2d0 net/socket.c:1521 __do_sys_socket net/socket.c:1530 [inline] __se_sys_socket net/socket.c:1528 [inline] __x64_sys_socket+0x76/0x80 net/socket.c:1528 do_syscall_64+0x73/0xe0 arch/x86/entry/common.c:359 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 6777: save_stack mm/kasan/common.c:48 [inline] set_track mm/kasan/common.c:56 [inline] kasan_set_free_info mm/kasan/common.c:316 [inline] __kasan_slab_free+0x114/0x170 mm/kasan/common.c:455 __cache_free mm/slab.c:3426 [inline] kmem_cache_free+0x7e/0xf0 mm/slab.c:3694 rcu_do_batch kernel/rcu/tree.c:2396 [inline] rcu_core+0x90c/0x1200 kernel/rcu/tree.c:2623 __do_softirq+0x268/0x80c kernel/softirq.c:292 The buggy address belongs to the object at ffff888046097000 which belongs to the cache sock_inode_cache of size 1216 The buggy address is located 128 bytes inside of 1216-byte region [ffff888046097000, ffff8880460974c0) The buggy address belongs to the page: page:ffffea00011825c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888046097ffd flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea0001184f88 ffffea0001186208 ffff88821bb6ba80 raw: ffff888046097ffd ffff888046097000 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888046096f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888046097000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888046097080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888046097100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888046097180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================