================================================================== 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:268 [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:2088 [inline] BUG: KASAN: use-after-free in sock_def_write_space+0x651/0x680 net/core/sock.c:2794 Read of size 8 at addr ffff8880907e8ab8 by task syz-executor.4/911 CPU: 1 PID: 911 Comm: syz-executor.4 Not tainted 5.3.0-rc2+ #88 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+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0xd4/0x306 mm/kasan/report.c:351 __kasan_report.cold+0x1b/0x36 mm/kasan/report.c:482 kasan_report+0x12/0x17 mm/kasan/common.c:612 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:132 __read_once_size include/linux/compiler.h:199 [inline] list_empty include/linux/list.h:268 [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:2088 [inline] sock_def_write_space+0x651/0x680 net/core/sock.c:2794 sock_wfree+0x154/0x190 net/core/sock.c:1950 skb_release_head_state+0xeb/0x250 net/core/skbuff.c:652 skb_release_all+0x16/0x60 net/core/skbuff.c:663 _kfree_skb_defer net/core/skbuff.c:873 [inline] napi_consume_skb+0x19d/0x580 net/core/skbuff.c:918 free_old_xmit_skbs+0xee/0x250 drivers/net/virtio_net.c:1366 virtnet_poll_tx+0x214/0x3a0 drivers/net/virtio_net.c:1493 napi_poll net/core/dev.c:6347 [inline] net_rx_action+0x4d6/0x1030 net/core/dev.c:6413 __do_softirq+0x262/0x98c kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x19b/0x1e0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:537 [inline] do_IRQ+0x12c/0x200 arch/x86/kernel/irq.c:259 common_interrupt+0xf/0xf arch/x86/entry/entry_64.S:605 RIP: 0010:__kasan_check_write+0x1/0x20 mm/kasan/common.c:98 Code: b2 af ff e9 da ee ff ff 90 55 89 f6 31 d2 48 89 e5 48 8b 4d 08 e8 cf 26 00 00 5d c3 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 55 <89> f6 ba 01 00 00 00 48 89 e5 48 8b 4d 08 e8 ac 26 00 00 5d c3 66 RSP: 0018:ffff888056ad76d0 EFLAGS: 00000293 ORIG_RAX: ffffffffffffffd9 RAX: ffff8880570c2080 RBX: 0000000000000000 RCX: ffffffff81a206d9 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffea000195b370 RBP: ffff888056ad7720 R08: ffff8880570c2080 R09: fffff9400032b669 R10: fffff9400032b668 R11: ffffea000195b347 R12: ffffea000195b340 R13: 0000000000000000 R14: ffffea000195b348 R15: dead000000000100 zap_pte_range mm/memory.c:1059 [inline] zap_pmd_range mm/memory.c:1161 [inline] zap_pud_range mm/memory.c:1190 [inline] zap_p4d_range mm/memory.c:1211 [inline] unmap_page_range+0xd45/0x2170 mm/memory.c:1232 unmap_single_vma+0x19d/0x300 mm/memory.c:1277 unmap_vmas+0x135/0x280 mm/memory.c:1309 exit_mmap+0x2ba/0x530 mm/mmap.c:3145 __mmput kernel/fork.c:1064 [inline] mmput+0x179/0x4d0 kernel/fork.c:1085 exit_mm kernel/exit.c:547 [inline] do_exit+0x84e/0x2e50 kernel/exit.c:866 do_group_exit+0x135/0x360 kernel/exit.c:983 get_signal+0x47c/0x2500 kernel/signal.c:2729 do_signal+0x87/0x1700 arch/x86/kernel/signal.c:815 exit_to_usermode_loop+0x286/0x380 arch/x86/entry/common.c:159 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline] syscall_return_slowpath arch/x86/entry/common.c:274 [inline] do_syscall_64+0x5a9/0x6a0 arch/x86/entry/common.c:299 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459829 Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffbf17cfcf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 000000000075c078 RCX: 0000000000459829 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000075c078 RBP: 000000000075c070 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000075c07c R13: 00007ffddd90378f R14: 00007ffbf17d09c0 R15: 000000000075c07c Allocated by task 897: save_stack+0x23/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc mm/kasan/common.c:487 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:460 kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:495 slab_post_alloc_hook mm/slab.h:520 [inline] slab_alloc mm/slab.c:3319 [inline] kmem_cache_alloc+0x121/0x710 mm/slab.c:3483 sock_alloc_inode+0x1c/0x1d0 net/socket.c:239 alloc_inode+0x68/0x1e0 fs/inode.c:227 new_inode_pseudo+0x19/0xf0 fs/inode.c:916 sock_alloc+0x41/0x270 net/socket.c:558 __sock_create+0xc2/0x730 net/socket.c:1382 sock_create net/socket.c:1469 [inline] __sys_socket+0x103/0x220 net/socket.c:1511 __do_sys_socket net/socket.c:1520 [inline] __se_sys_socket net/socket.c:1518 [inline] __x64_sys_socket+0x73/0xb0 net/socket.c:1518 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 22127: save_stack+0x23/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:449 kasan_slab_free+0xe/0x10 mm/kasan/common.c:457 __cache_free mm/slab.c:3425 [inline] kmem_cache_free+0x86/0x320 mm/slab.c:3693 sock_free_inode+0x20/0x30 net/socket.c:260 i_callback+0x44/0x80 fs/inode.c:216 __rcu_reclaim kernel/rcu/rcu.h:222 [inline] rcu_do_batch kernel/rcu/tree.c:2114 [inline] rcu_core+0x67f/0x1580 kernel/rcu/tree.c:2314 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2323 __do_softirq+0x262/0x98c kernel/softirq.c:292 The buggy address belongs to the object at ffff8880907e8a40 which belongs to the cache sock_inode_cache(97:syz5) of size 1152 The buggy address is located 120 bytes inside of 1152-byte region [ffff8880907e8a40, ffff8880907e8ec0) The buggy address belongs to the page: page:ffffea000241fa00 refcount:1 mapcount:0 mapping:ffff88808aa58380 index:0xffff8880907e8ffd flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea0002410f88 ffffea0002694c48 ffff88808aa58380 raw: ffff8880907e8ffd ffff8880907e8040 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880907e8980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8880907e8a00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff8880907e8a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880907e8b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880907e8b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================