================================================================== 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:2139 [inline] BUG: KASAN: use-after-free in sock_def_write_space+0x609/0x630 net/core/sock.c:2896 Read of size 8 at addr ffff888054672b00 by task systemd-udevd/14215 CPU: 0 PID: 14215 Comm: systemd-udevd Not tainted 5.8.0-rc7-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/0x436 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:2139 [inline] sock_def_write_space+0x609/0x630 net/core/sock.c:2896 sock_wfree+0x1cc/0x240 net/core/sock.c:2044 skb_release_head_state+0x9f/0x250 net/core/skbuff.c:651 skb_release_all net/core/skbuff.c:662 [inline] _kfree_skb_defer net/core/skbuff.c:872 [inline] napi_consume_skb net/core/skbuff.c:917 [inline] napi_consume_skb+0x12e/0x370 net/core/skbuff.c:894 free_old_xmit_skbs+0xd5/0x230 drivers/net/virtio_net.c:1389 virtnet_poll_tx+0x1e9/0x370 drivers/net/virtio_net.c:1516 napi_poll net/core/dev.c:6691 [inline] net_rx_action+0x4a1/0xe80 net/core/dev.c:6761 __do_softirq+0x34c/0xa60 kernel/softirq.c:292 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline] do_softirq_own_stack+0x111/0x170 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:387 [inline] __irq_exit_rcu kernel/softirq.c:417 [inline] irq_exit_rcu+0x229/0x270 kernel/softirq.c:429 common_interrupt+0xa1/0x220 arch/x86/kernel/irq.c:239 asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:576 RIP: 0010:write_comp_data+0x2f/0x80 kernel/kcov.c:218 Code: 05 76 55 8e 7e 65 48 8b 34 25 00 ff 01 00 a9 00 01 ff 00 74 0f f6 c4 01 74 59 8b 86 04 14 00 00 85 c0 74 4f 8b 86 e0 13 00 00 <83> f8 03 75 44 48 8b 86 e8 13 00 00 8b b6 e4 13 00 00 4c 8b 00 48 RSP: 0018:ffffc90004727970 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffffc90004727bb0 RCX: ffffffff81c168b1 RDX: 0000000000000000 RSI: ffff8880a44c6540 RDI: 0000000000000005 RBP: ffffc90004727a60 R08: 0000000081c19c00 R09: ffffffff89ced9c7 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888097c145c0 R13: ffff888097c16980 R14: 0000000000000000 R15: 0000000000000008 step_into+0x1b1/0x1990 fs/namei.c:1698 walk_component+0x171/0x6a0 fs/namei.c:1866 lookup_last fs/namei.c:2309 [inline] path_lookupat+0x1ba/0x830 fs/namei.c:2333 filename_lookup+0x19f/0x560 fs/namei.c:2366 user_path_at include/linux/namei.h:59 [inline] vfs_statx+0x14e/0x390 fs/stat.c:202 vfs_lstat include/linux/fs.h:3302 [inline] __do_sys_newlstat+0x91/0x110 fs/stat.c:374 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f0712a40335 Code: 69 db 2b 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 48 89 f0 77 30 48 89 c7 48 89 d6 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 03 f3 c3 90 48 8b 15 31 db 2b 00 f7 d8 64 89 RSP: 002b:00007ffe6f064378 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 RAX: ffffffffffffffda RBX: 00005572e922b980 RCX: 00007f0712a40335 RDX: 00007ffe6f0643b0 RSI: 00007ffe6f0643b0 RDI: 00005572e922a980 RBP: 00007ffe6f064470 R08: 00007f0712cff1c8 R09: 0000000000001010 R10: 00007f0712cfeb58 R11: 0000000000000246 R12: 00005572e922a980 R13: 00005572e922a994 R14: 00005572e92366ad R15: 00005572e92366b4 Allocated by task 14202: save_stack+0x1b/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xc2/0xd0 mm/kasan/common.c:494 slab_post_alloc_hook mm/slab.h:586 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x12c/0x3b0 mm/slab.c:3484 sock_alloc_inode+0x18/0x1c0 net/socket.c:253 alloc_inode+0x61/0x230 fs/inode.c:232 new_inode_pseudo+0x14/0xe0 fs/inode.c:928 sock_alloc+0x3c/0x260 net/socket.c:573 __sock_create+0xb9/0x740 net/socket.c:1391 sock_create net/socket.c:1478 [inline] __sys_socket+0xef/0x200 net/socket.c:1520 __do_sys_socket net/socket.c:1529 [inline] __se_sys_socket net/socket.c:1527 [inline] __x64_sys_socket+0x6f/0xb0 net/socket.c:1527 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 14163: save_stack+0x1b/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] kasan_set_free_info mm/kasan/common.c:316 [inline] __kasan_slab_free+0xf5/0x140 mm/kasan/common.c:455 __cache_free mm/slab.c:3426 [inline] kmem_cache_free+0x7f/0x310 mm/slab.c:3694 i_callback+0x3f/0x70 fs/inode.c:221 rcu_do_batch kernel/rcu/tree.c:2414 [inline] rcu_core+0x5c7/0x1160 kernel/rcu/tree.c:2641 __do_softirq+0x34c/0xa60 kernel/softirq.c:292 The buggy address belongs to the object at ffff888054672a80 which belongs to the cache sock_inode_cache of size 1216 The buggy address is located 128 bytes inside of 1216-byte region [ffff888054672a80, ffff888054672f40) The buggy address belongs to the page: page:ffffea0001519c80 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888054672ffd flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea0002246f08 ffffea0002247c08 ffff88821b77f700 raw: ffff888054672ffd ffff888054672000 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888054672a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888054672a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888054672b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888054672b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888054672c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================