================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:199 [inline] 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:126 [inline] BUG: KASAN: use-after-free in wq_has_sleeper include/linux/wait.h:160 [inline] BUG: KASAN: use-after-free in skwq_has_sleeper include/net/sock.h:2107 [inline] BUG: KASAN: use-after-free in sock_def_write_space+0x613/0x640 net/core/sock.c:2816 Read of size 8 at addr ffff88801e82eaf8 by task syz-executor.3/9439 CPU: 3 PID: 9439 Comm: syz-executor.3 Not tainted 5.6.0-rc6-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:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd3/0x315 mm/kasan/report.c:374 __kasan_report.cold+0x1a/0x32 mm/kasan/report.c:506 kasan_report+0xe/0x20 mm/kasan/common.c:641 __read_once_size include/linux/compiler.h:199 [inline] list_empty include/linux/list.h:282 [inline] waitqueue_active include/linux/wait.h:126 [inline] wq_has_sleeper include/linux/wait.h:160 [inline] skwq_has_sleeper include/net/sock.h:2107 [inline] sock_def_write_space+0x613/0x640 net/core/sock.c:2816 sock_wfree+0x1cc/0x240 net/core/sock.c:1961 skb_release_head_state+0xe2/0x250 net/core/skbuff.c:651 skb_release_all+0x11/0x60 net/core/skbuff.c:662 __kfree_skb net/core/skbuff.c:678 [inline] consume_skb net/core/skbuff.c:837 [inline] consume_skb+0xf3/0x400 net/core/skbuff.c:831 __dev_kfree_skb_any+0x9c/0xc0 net/core/dev.c:3022 dev_kfree_skb_any include/linux/netdevice.h:3692 [inline] e1000_unmap_and_free_tx_resource.isra.0+0x214/0x3a0 drivers/net/ethernet/intel/e1000/e1000_main.c:1963 e1000_clean_tx_irq drivers/net/ethernet/intel/e1000/e1000_main.c:3854 [inline] e1000_clean+0x442/0x1b10 drivers/net/ethernet/intel/e1000/e1000_main.c:3796 napi_poll net/core/dev.c:6571 [inline] net_rx_action+0x4c2/0x1070 net/core/dev.c:6639 __do_softirq+0x26c/0x99d kernel/softirq.c:292 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1082 do_softirq.part.0+0x10f/0x160 kernel/softirq.c:337 do_softirq kernel/softirq.c:329 [inline] __local_bh_enable_ip+0x20e/0x270 kernel/softirq.c:189 local_bh_enable include/linux/bottom_half.h:32 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:690 [inline] __dev_queue_xmit+0x1778/0x30a0 net/core/dev.c:4079 llc_build_and_send_ui_pkt+0x239/0x330 net/llc/llc_output.c:67 llc_ui_sendmsg+0x75c/0x1000 net/llc/af_llc.c:948 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:672 ____sys_sendmsg+0x302/0x7d0 net/socket.c:2345 ___sys_sendmsg+0x100/0x170 net/socket.c:2399 __sys_sendmmsg+0x296/0x480 net/socket.c:2482 __compat_sys_sendmmsg net/compat.c:656 [inline] __do_compat_sys_sendmmsg net/compat.c:663 [inline] __se_compat_sys_sendmmsg net/compat.c:660 [inline] __ia32_compat_sys_sendmmsg+0x9b/0x100 net/compat.c:660 do_syscall_32_irqs_on arch/x86/entry/common.c:337 [inline] do_fast_syscall_32+0x270/0xe8f arch/x86/entry/common.c:408 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 Allocated by task 9428: save_stack+0x1b/0x80 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] __kasan_kmalloc mm/kasan/common.c:515 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:488 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x11b/0x730 mm/slab.c:3484 sock_alloc_inode+0x18/0x1c0 net/socket.c:253 alloc_inode+0x61/0x1e0 fs/inode.c:232 new_inode_pseudo+0x14/0xe0 fs/inode.c:928 sock_alloc+0x3c/0x260 net/socket.c:573 __sock_create+0xba/0x730 net/socket.c:1397 sock_create net/socket.c:1484 [inline] __sys_socket+0xef/0x200 net/socket.c:1526 __do_sys_socket net/socket.c:1535 [inline] __se_sys_socket net/socket.c:1533 [inline] __ia32_sys_socket+0x6f/0xb0 net/socket.c:1533 do_syscall_32_irqs_on arch/x86/entry/common.c:337 [inline] do_fast_syscall_32+0x270/0xe8f arch/x86/entry/common.c:408 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 Freed by task 9439: save_stack+0x1b/0x80 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] kasan_set_free_info mm/kasan/common.c:337 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/common.c:476 __cache_free mm/slab.c:3426 [inline] kmem_cache_free+0x7f/0x320 mm/slab.c:3694 i_callback+0x3f/0x70 fs/inode.c:221 rcu_do_batch kernel/rcu/tree.c:2186 [inline] rcu_core+0x5a4/0x12d0 kernel/rcu/tree.c:2410 __do_softirq+0x26c/0x99d kernel/softirq.c:292 The buggy address belongs to the object at ffff88801e82ea80 which belongs to the cache sock_inode_cache(17:syz0) of size 1216 The buggy address is located 120 bytes inside of 1216-byte region [ffff88801e82ea80, ffff88801e82ef40) The buggy address belongs to the page: page:ffffea00007a0b80 refcount:1 mapcount:0 mapping:ffff88806d7931c0 index:0xffff88801e82effd flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea00007a0688 ffffea00006c15c8 ffff88806d7931c0 raw: ffff88801e82effd ffff88801e82e000 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88801e82e980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88801e82ea00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88801e82ea80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88801e82eb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88801e82eb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================