================================================================== 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:129 [inline] BUG: KASAN: use-after-free in wq_has_sleeper include/linux/wait.h:163 [inline] BUG: KASAN: use-after-free in skwq_has_sleeper include/net/sock.h:2159 [inline] BUG: KASAN: use-after-free in sock_def_write_space+0x609/0x630 net/core/sock.c:2919 Read of size 8 at addr ffff8880239f95c0 by task ksoftirqd/3/29 CPU: 3 PID: 29 Comm: ksoftirqd/3 Not tainted 5.11.0-rc3-syzkaller #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2c6 mm/kasan/report.c:230 __kasan_report mm/kasan/report.c:396 [inline] kasan_report.cold+0x79/0xd5 mm/kasan/report.c:413 list_empty include/linux/list.h:282 [inline] waitqueue_active include/linux/wait.h:129 [inline] wq_has_sleeper include/linux/wait.h:163 [inline] skwq_has_sleeper include/net/sock.h:2159 [inline] sock_def_write_space+0x609/0x630 net/core/sock.c:2919 sock_wfree+0x1cc/0x240 net/core/sock.c:2052 skb_release_head_state+0x9f/0x250 net/core/skbuff.c:656 skb_release_all net/core/skbuff.c:667 [inline] __kfree_skb net/core/skbuff.c:683 [inline] consume_skb net/core/skbuff.c:839 [inline] consume_skb+0x89/0x160 net/core/skbuff.c:833 __dev_kfree_skb_any+0x6b/0x80 net/core/dev.c:3114 dev_kfree_skb_any include/linux/netdevice.h:3858 [inline] e1000_unmap_and_free_tx_resource+0x141/0x200 drivers/net/ethernet/intel/e1000/e1000_main.c:1969 e1000_clean_tx_irq drivers/net/ethernet/intel/e1000/e1000_main.c:3860 [inline] e1000_clean+0x4a8/0x1c30 drivers/net/ethernet/intel/e1000/e1000_main.c:3801 napi_poll net/core/dev.c:6805 [inline] net_rx_action+0x461/0xe10 net/core/dev.c:6888 __do_softirq+0x2bc/0xa29 kernel/softirq.c:343 run_ksoftirqd kernel/softirq.c:650 [inline] run_ksoftirqd+0x2d/0x50 kernel/softirq.c:642 smpboot_thread_fn+0x655/0x9e0 kernel/smpboot.c:165 kthread+0x3b1/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Allocated by task 13503: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:401 [inline] ____kasan_kmalloc.constprop.0+0x7f/0xa0 mm/kasan/common.c:429 kasan_slab_alloc include/linux/kasan.h:205 [inline] slab_post_alloc_hook mm/slab.h:512 [inline] slab_alloc mm/slab.c:3315 [inline] kmem_cache_alloc+0x1ab/0x4c0 mm/slab.c:3486 sock_alloc_inode+0x18/0x1c0 net/socket.c:253 alloc_inode+0x61/0x230 fs/inode.c:233 new_inode_pseudo+0x14/0xe0 fs/inode.c:927 sock_alloc+0x3c/0x260 net/socket.c:574 __sock_create+0xb9/0x780 net/socket.c:1370 sock_create net/socket.c:1457 [inline] __sys_socket+0xef/0x200 net/socket.c:1499 __do_sys_socket net/socket.c:1508 [inline] __se_sys_socket net/socket.c:1506 [inline] __x64_sys_socket+0x6f/0xb0 net/socket.c:1506 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 24: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track+0x1c/0x30 mm/kasan/common.c:46 kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:356 ____kasan_slab_free+0xb0/0xe0 mm/kasan/common.c:362 kasan_slab_free include/linux/kasan.h:188 [inline] __cache_free mm/slab.c:3424 [inline] kmem_cache_free+0x58/0x1c0 mm/slab.c:3697 i_callback+0x3f/0x70 fs/inode.c:222 rcu_do_batch kernel/rcu/tree.c:2489 [inline] rcu_core+0x5eb/0xf00 kernel/rcu/tree.c:2723 __do_softirq+0x2bc/0xa29 kernel/softirq.c:343 Last potentially related work creation: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_record_aux_stack+0x87/0xb0 mm/kasan/generic.c:344 __call_rcu kernel/rcu/tree.c:2965 [inline] call_rcu+0xbb/0x700 kernel/rcu/tree.c:3038 destroy_inode+0x129/0x1b0 fs/inode.c:288 iput_final fs/inode.c:1653 [inline] iput.part.0+0x57e/0x810 fs/inode.c:1679 iput+0x58/0x70 fs/inode.c:1669 dentry_unlink_inode+0x2b1/0x3d0 fs/dcache.c:374 __dentry_kill+0x3c0/0x640 fs/dcache.c:579 dentry_kill fs/dcache.c:705 [inline] dput+0x725/0xbc0 fs/dcache.c:885 __fput+0x3a9/0x920 fs/file_table.c:293 task_work_run+0xdd/0x190 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x249/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:302 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Second to last potentially related work creation: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_record_aux_stack+0x87/0xb0 mm/kasan/generic.c:344 __call_rcu kernel/rcu/tree.c:2965 [inline] call_rcu+0xbb/0x700 kernel/rcu/tree.c:3038 destroy_inode+0x129/0x1b0 fs/inode.c:288 iput_final fs/inode.c:1653 [inline] iput.part.0+0x57e/0x810 fs/inode.c:1679 iput+0x58/0x70 fs/inode.c:1669 dentry_unlink_inode+0x2b1/0x3d0 fs/dcache.c:374 __dentry_kill+0x3c0/0x640 fs/dcache.c:579 dentry_kill fs/dcache.c:705 [inline] dput+0x725/0xbc0 fs/dcache.c:885 __fput+0x3a9/0x920 fs/file_table.c:293 task_work_run+0xdd/0x190 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x249/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:302 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff8880239f9540 which belongs to the cache sock_inode_cache of size 1216 The buggy address is located 128 bytes inside of 1216-byte region [ffff8880239f9540, ffff8880239f9a00) The buggy address belongs to the page: page:00000000e7973a80 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880239f9ffd pfn:0x239f9 flags: 0xfff00000000200(slab) raw: 00fff00000000200 ffffea0000a25bc8 ffffea00007f8108 ffff888040248d00 raw: ffff8880239f9ffd ffff8880239f9000 0000000100000003 ffff88801b5a1401 page dumped because: kasan: bad access detected pages's memcg:ffff88801b5a1401 Memory state around the buggy address: ffff8880239f9480: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff8880239f9500: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb >ffff8880239f9580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880239f9600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880239f9680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================