================================================================== 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: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:2141 [inline] BUG: KASAN: use-after-free in sock_def_write_space+0x613/0x640 net/core/sock.c:2836 Read of size 8 at addr ffff888086b055c0 by task kworker/1:62/2955 CPU: 1 PID: 2955 Comm: kworker/1:62 Not tainted 5.6.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: rcu_gp process_srcu 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:382 __kasan_report.cold+0x35/0x4d mm/kasan/report.c:511 kasan_report+0x33/0x50 mm/kasan/common.c:625 __read_once_size include/linux/compiler.h:199 [inline] 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:2141 [inline] sock_def_write_space+0x613/0x640 net/core/sock.c:2836 sock_wfree+0x1cc/0x240 net/core/sock.c:1969 skb_release_head_state+0xe2/0x250 net/core/skbuff.c:651 skb_release_all+0x11/0x60 net/core/skbuff.c:662 _kfree_skb_defer net/core/skbuff.c:872 [inline] napi_consume_skb+0x192/0x5c0 net/core/skbuff.c:917 free_old_xmit_skbs+0xd6/0x230 drivers/net/virtio_net.c:1378 virtnet_poll_tx+0x1fb/0x380 drivers/net/virtio_net.c:1505 napi_poll net/core/dev.c:6571 [inline] net_rx_action+0x4c2/0x1070 net/core/dev.c:6639 __do_softirq+0x26c/0x9f7 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x192/0x1d0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] do_IRQ+0xda/0x270 arch/x86/kernel/irq.c:263 common_interrupt+0xf/0xf arch/x86/entry/entry_64.S:607 RIP: 0010:delay_tsc+0x2e/0xb0 arch/x86/lib/delay.c:68 Code: fd bf 01 00 00 00 41 54 55 53 e8 4d ba 82 f9 e8 88 5b cd fb 41 89 c4 0f 01 f9 66 90 48 c1 e2 20 48 09 c2 48 89 d5 eb 16 f3 90 01 00 00 00 e8 28 ba 82 f9 e8 63 5b cd fb 44 39 e0 75 36 0f 01 RSP: 0018:ffffc900089efbc0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffd9 RAX: 0000000080000000 RBX: 000001fb23ad38a8 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffffffff8399a9bf RDI: 0000000000000001 RBP: 000001fb23ad0cba R08: ffff88809e86e180 R09: 0000000000000040 R10: 0000000000000040 R11: fffff52002d455ad R12: 0000000000000001 R13: 0000000000002ced R14: dffffc0000000000 R15: 0000000000000007 try_check_zero+0x1fb/0x340 kernel/rcu/srcutree.c:705 srcu_advance_state kernel/rcu/srcutree.c:1145 [inline] process_srcu+0x33f/0xe60 kernel/rcu/srcutree.c:1240 process_one_work+0x965/0x16a0 kernel/workqueue.c:2266 worker_thread+0x96/0xe20 kernel/workqueue.c:2412 kthread+0x388/0x470 kernel/kthread.c:268 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Allocated by task 1762: save_stack+0x1b/0x40 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] __kasan_kmalloc mm/kasan/common.c:495 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:468 slab_post_alloc_hook mm/slab.h:586 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x11b/0x740 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] __x64_sys_socket+0x6f/0xb0 net/socket.c:1533 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Freed by task 16: save_stack+0x1b/0x40 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] kasan_set_free_info mm/kasan/common.c:317 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/common.c:456 __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:2206 [inline] rcu_core+0x59f/0x1370 kernel/rcu/tree.c:2433 __do_softirq+0x26c/0x9f7 kernel/softirq.c:292 The buggy address belongs to the object at ffff888086b05540 which belongs to the cache sock_inode_cache of size 1216 The buggy address is located 128 bytes inside of 1216-byte region [ffff888086b05540, ffff888086b05a00) The buggy address belongs to the page: page:ffffea00021ac140 refcount:1 mapcount:0 mapping:00000000105e0d26 index:0xffff888086b05ffd flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea00021ac2c8 ffffea000225e748 ffff8880a97caa80 raw: ffff888086b05ffd ffff888086b05000 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888086b05480: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888086b05500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff888086b05580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888086b05600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888086b05680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================