print_req_error: I/O error, dev loop7, sector 0
Buffer I/O error on dev loop7, logical block 0, async page read
Dev loop7: unable to read RDB block 0
loop7: unable to read partition table
==================================================================
BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:261 [inline]
BUG: KASAN: use-after-free in deliver_ptype_list_skb net/core/dev.c:1967 [inline]
BUG: KASAN: use-after-free in __netif_receive_skb_core+0x2b84/0x3270 net/core/dev.c:4910
Read of size 8 at addr ffff888045ab15f0 by task syz-executor.3/11143
CPU: 0 PID: 11143 Comm: syz-executor.3 Not tainted 4.19.208-syzkaller #0
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+0x1fc/0x2ef lib/dump_stack.c:118
print_address_description.cold+0x54/0x219 mm/kasan/report.c:256
kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354
kasan_report mm/kasan/report.c:412 [inline]
__asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433
__read_once_size include/linux/compiler.h:261 [inline]
deliver_ptype_list_skb net/core/dev.c:1967 [inline]
__netif_receive_skb_core+0x2b84/0x3270 net/core/dev.c:4910
__netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:4952
__netif_receive_skb+0x27/0x1c0 net/core/dev.c:5066
process_backlog+0x241/0x700 net/core/dev.c:5849
napi_poll net/core/dev.c:6280 [inline]
net_rx_action+0x4ac/0xfb0 net/core/dev.c:6346
__do_softirq+0x265/0x980 kernel/softirq.c:292
invoke_softirq kernel/softirq.c:372 [inline]
irq_exit+0x215/0x260 kernel/softirq.c:412
exiting_irq arch/x86/include/asm/apic.h:536 [inline]
smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xa3/0xe0 kernel/locking/spinlock.c:184
Code: 48 c7 c0 88 82 f1 89 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 2f 48 83 3d 0c 4e d8 01 00 74 15 48 89 df 57 9d <0f> 1f 44 00 00 eb b2 e8 8b 08 e7 f8 eb c0 0f 0b 0f 0b 48 c7 c7 88
RSP: 0018:ffff888044987918 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e3051 RBX: 0000000000000286 RCX: 1ffff1101365919a
RDX: dffffc0000000000 RSI: ffff88809b2c8cd8 RDI: 0000000000000286
RBP: ffffffff89f88698 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809b2c8400
R13: 0000000000000000 R14: 0000000000002b71 R15: ffffffff89f88280
rcu_report_unblock_qs_rnp kernel/rcu/tree.c:2372 [inline]
rcu_read_unlock_special+0xa9b/0xfc0 kernel/rcu/tree_plugin.h:585
__rcu_read_unlock+0x158/0x160 kernel/rcu/tree_plugin.h:428
rcu_read_unlock include/linux/rcupdate.h:680 [inline]
count_memcg_event_mm include/linux/memcontrol.h:767 [inline]
handle_mm_fault+0x326/0xb10 mm/memory.c:4316
__do_page_fault+0x68e/0xd60 arch/x86/mm/fault.c:1412
page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1205
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x20 arch/x86/lib/copy_user_64.S:181
Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 0f 1f 80 00 00 00 00 0f 01 cb 83 fa 40 0f 82 70 ff ff ff 89 d1 a4 31 c0 0f 01 ca c3 66 2e 0f 1f 84 00 00 00 00 00 0f 01 cb 83
RSP: 0018:ffff888044987b98 EFLAGS: 00050206
RAX: ffffed10142b9200 RBX: 0000000000001000 RCX: 0000000000000200
RDX: 0000000000001000 RSI: ffff8880a15c8e00 RDI: 000000002000a000
RBP: 0000000020009200 R08: 0000000000000000 R09: ffffed10142b91ff
R10: ffff8880a15c8fff R11: 0000000000000000 R12: ffff8880a15c8000
R13: 000000002000a200 R14: 00007ffffffff000 R15: 0000000000000000
copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
raw_copy_to_user arch/x86/include/asm/uaccess_64.h:128 [inline]
copyout+0xcd/0xf0 lib/iov_iter.c:137
copy_page_to_iter_iovec lib/iov_iter.c:206 [inline]
copy_page_to_iter+0x3ac/0xe00 lib/iov_iter.c:853
pipe_read+0x285/0x960 fs/pipe.c:309
call_read_iter include/linux/fs.h:1815 [inline]
new_sync_read fs/read_write.c:406 [inline]
__vfs_read+0x518/0x750 fs/read_write.c:418
vfs_read+0x194/0x3c0 fs/read_write.c:452
ksys_read+0x12b/0x2a0 fs/read_write.c:579
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fbcfebfa709
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fbcfc150188 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007fbcfecff020 RCX: 00007fbcfebfa709
RDX: 0000000000049000 RSI: 0000000020000200 RDI: 0000000000000006
RBP: 00007fbcfec54cb4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe226e762f R14: 00007fbcfc150300 R15: 0000000000022000
Allocated by task 11097:
__do_kmalloc mm/slab.c:3727 [inline]
__kmalloc+0x15a/0x3c0 mm/slab.c:3736
kmalloc include/linux/slab.h:520 [inline]
sk_prot_alloc+0x1e2/0x2d0 net/core/sock.c:1466
sk_alloc+0x36/0xec0 net/core/sock.c:1520
packet_create+0x117/0x850 net/packet/af_packet.c:3259
__sock_create+0x3d8/0x740 net/socket.c:1365
sock_create net/socket.c:1416 [inline]
__sys_socket+0xef/0x200 net/socket.c:1458
__do_sys_socket net/socket.c:1467 [inline]
__se_sys_socket net/socket.c:1465 [inline]
__x64_sys_socket+0x6f/0xb0 net/socket.c:1465
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
Freed by task 11091:
__cache_free mm/slab.c:3503 [inline]
kfree+0xcc/0x210 mm/slab.c:3822
sk_prot_free net/core/sock.c:1503 [inline]
__sk_destruct+0x684/0x8a0 net/core/sock.c:1584
sk_destruct net/core/sock.c:1599 [inline]
__sk_free+0x165/0x3b0 net/core/sock.c:1610
sk_free+0x3b/0x50 net/core/sock.c:1621
sock_put include/net/sock.h:1711 [inline]
packet_release+0x890/0xb70 net/packet/af_packet.c:3088
__sock_release+0xcd/0x2a0 net/socket.c:599
sock_close+0x15/0x20 net/socket.c:1214
__fput+0x2ce/0x890 fs/file_table.c:278
task_work_run+0x148/0x1c0 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:193 [inline]
exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
entry_SYSCALL_64_after_hwframe+0x49/0xbe
The buggy address belongs to the object at ffff888045ab0e00
which belongs to the cache kmalloc-2048 of size 2048
The buggy address is located 2032 bytes inside of
2048-byte region [ffff888045ab0e00, ffff888045ab1600)
The buggy address belongs to the page:
page:ffffea000116ac00 count:1 mapcount:0 mapping:ffff88813bff0c40 index:0xffff888045ab0580 compound_mapcount: 0
flags: 0xfff00000008100(slab|head)
raw: 00fff00000008100 ffffea0002670888 ffffea0001169d88 ffff88813bff0c40
raw: ffff888045ab0580 ffff888045ab0580 0000000100000002 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff888045ab1480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888045ab1500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888045ab1580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888045ab1600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff888045ab1680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess):
0: 48 c7 c0 88 82 f1 89 mov $0xffffffff89f18288,%rax
7: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx
e: fc ff df
11: 48 c1 e8 03 shr $0x3,%rax
15: 80 3c 10 00 cmpb $0x0,(%rax,%rdx,1)
19: 75 2f jne 0x4a
1b: 48 83 3d 0c 4e d8 01 cmpq $0x0,0x1d84e0c(%rip) # 0x1d84e2f
22: 00
23: 74 15 je 0x3a
25: 48 89 df mov %rbx,%rdi
28: 57 push %rdi
29: 9d popfq
* 2a: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) <-- trapping instruction
2f: eb b2 jmp 0xffffffe3
31: e8 8b 08 e7 f8 callq 0xf8e708c1
36: eb c0 jmp 0xfffffff8
38: 0f 0b ud2
3a: 0f 0b ud2
3c: 48 rex.W
3d: c7 .byte 0xc7
3e: c7 (bad)
3f: 88 .byte 0x88