==================================================================
BUG: KASAN: use-after-free in __read_once_size /./include/linux/compiler.h:194 [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:147 [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 ffff88805d956af8 by task blkid/17195
CPU: 0 PID: 17195 Comm: blkid Not tainted 5.2.0+ #96
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:194 [inline]
list_empty /./include/linux/list.h:268 [inline]
waitqueue_active /./include/linux/wait.h:126 [inline]
wq_has_sleeper /./include/linux/wait.h:147 [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:clear_page_erms+0x7/0x10 /arch/x86/lib/clear_page_64.S:49
Code: 48 89 47 18 48 89 47 20 48 89 47 28 48 89 47 30 48 89 47 38 48 8d 7f 40 75 d9 90 c3 0f 1f 80 00 00 00 00 b9 00 10 00 00 31 c0 aa c3 90 90 90 90 90 90 55 48 89 e5 41 57 41 56 41 55 41 54 53
RSP: 0000:ffff88805524f760 EFLAGS: 00010246 ORIG_RAX: ffffffffffffffd6
RAX: 0000000000000000 RBX: 0000000000000381 RCX: 0000000000000a40
RDX: 1ffff1100c32aaa9 RSI: dffffc0000000000 RDI: ffff88803414b5c0
RBP: ffff88805524f7b8 R08: ffff888061954380 R09: ffffed1006829600
R10: fffff940001a0a5e R11: ffffea0000d052f7 R12: ffffea0000d052c0
R13: 0000000000000000 R14: ffffea0000d052c0 R15: ffff888061954380
get_page_from_freelist+0x1c35/0x39d0 /mm/page_alloc.c:3691
__alloc_pages_nodemask+0x2d0/0x8f0 /mm/page_alloc.c:4725
alloc_pages_vma+0xdd/0x560 /mm/mempolicy.c:2096
wp_page_copy+0x235/0x15e0 /mm/memory.c:2317
do_wp_page+0x499/0x14d0 /mm/memory.c:2619
handle_pte_fault /mm/memory.c:3856 [inline]
__handle_mm_fault+0x22f7/0x3f20 /mm/memory.c:3964
handle_mm_fault+0x1b5/0x6b0 /mm/memory.c:4001
do_user_addr_fault /arch/x86/mm/fault.c:1444 [inline]
__do_page_fault+0x536/0xdd0 /arch/x86/mm/fault.c:1510
do_page_fault+0x71/0x5e1 /arch/x86/mm/fault.c:1541
page_fault+0x1e/0x30 /arch/x86/entry/entry_64.S:1182
RIP: 0033:0x7fc578de7789
Code: 00 4d 39 ee 0f 1f 44 00 00 72 28 66 0f 1f 44 00 00 e9 0b fc ff ff 0f 1f 00 4c 89 e0 49 03 46 10 49 83 c6 18 4c 01 e2 4d 39 f5 <48> 89 02 0f 86 ee fb ff ff 41 83 7e 08 08 49 8b 16 74 dc 48 8d 0d
RSP: 002b:00007ffec4a78a20 EFLAGS: 00010212
RAX: 00007fc578baf5a0 RBX: 00007fc578ffa9a8 RCX: 00000000000004a8
RDX: 00007fc578bab730 RSI: aaaaaaaaaaaaaaab RDI: 0000000000000000
RBP: 00007ffec4a78b00 R08: 0000000000000001 R09: 0000000000000010
R10: 00007fc578846a30 R11: 0000000000000206 R12: 00007fc578828000
R13: 00007fc578846220 R14: 00007fc57883f278 R15: 00007fc578ff2740
Allocated by task 17174:
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 17194:
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 ffff88805d956a80
which belongs to the cache sock_inode_cache(49:syz3) of size 1152
The buggy address is located 120 bytes inside of
1152-byte region [ffff88805d956a80, ffff88805d956f00)
The buggy address belongs to the page:
page:ffffea0001765580 refcount:1 mapcount:0 mapping:ffff88809078c1c0 index:0xffff88805d956ffd
flags: 0x1fffc0000000200(slab)
raw: 01fffc0000000200 ffffea000176f548 ffffea00028ca308 ffff88809078c1c0
raw: ffff88805d956ffd ffff88805d956080 0000000100000002 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff88805d956980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88805d956a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88805d956a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88805d956b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88805d956b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================