Buffer I/O error on dev loop7, logical block 16, lost async page write ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:207 [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 ffff88809f4a28b0 by task syz-executor.0/10102 CPU: 1 PID: 10102 Comm: syz-executor.0 Not tainted 4.19.182-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:207 [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:5848 napi_poll net/core/dev.c:6272 [inline] net_rx_action+0x4ac/0xfb0 net/core/dev.c:6338 __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:535 [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 48 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 ac d7 da 01 00 74 15 48 89 df 57 9d <0f> 1f 44 00 00 eb b2 e8 6b 92 e9 f8 eb c0 0f 0b 0f 0b 48 c7 c7 48 RSP: 0018:ffff888053ea74d8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff13e3049 RBX: 0000000000000286 RCX: 1ffff110141ffd32 RDX: dffffc0000000000 RSI: ffff8880a0ffe998 RDI: 0000000000000286 RBP: ffffffff89f88140 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286 R13: 0000000000000000 R14: 0000000000002341 R15: ffffffff89f88140 rcu_report_qs_rsp+0xbb/0x110 kernel/rcu/tree.c:2264 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] __fib6_clean_all+0x1bb/0x2a0 net/ipv6/ip6_fib.c:2068 rt6_sync_down_dev net/ipv6/route.c:4133 [inline] rt6_disable_ip+0xb5/0x700 net/ipv6/route.c:4138 addrconf_ifdown.isra.0+0xf6/0x1320 net/ipv6/addrconf.c:3664 addrconf_notify+0x568/0x21f0 net/ipv6/addrconf.c:3589 notifier_call_chain+0xc0/0x230 kernel/notifier.c:93 call_netdevice_notifiers net/core/dev.c:1762 [inline] rollback_registered_many+0x83e/0xe70 net/core/dev.c:8188 rollback_registered+0xe9/0x1b0 net/core/dev.c:8230 unregister_netdevice_queue+0x1de/0x3e0 net/core/dev.c:9297 br_del_bridge+0xc8/0x110 net/bridge/br_if.c:488 br_ioctl_deviceless_stub+0x27f/0x730 net/bridge/br_ioctl.c:380 sock_ioctl+0x2b9/0x5d0 net/socket.c:1041 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x466459 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:00007fe7c8fd7188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000056c0b0 RCX: 0000000000466459 RDX: 0000000020000300 RSI: 00000000000089a1 RDI: 0000000000000007 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0b0 R13: 00007ffe016bccdf R14: 00007fe7c8fd7300 R15: 0000000000022000 Allocated by task 10087: __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:1276 sock_create net/socket.c:1316 [inline] __sys_socket+0xef/0x200 net/socket.c:1346 __do_sys_socket net/socket.c:1355 [inline] __se_sys_socket net/socket.c:1353 [inline] __x64_sys_socket+0x6f/0xb0 net/socket.c:1353 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 10071: __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:579 sock_close+0x15/0x20 net/socket.c:1140 __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 ffff88809f4a20c0 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 2032 bytes inside of 2048-byte region [ffff88809f4a20c0, ffff88809f4a28c0) The buggy address belongs to the page: page:ffffea00027d2880 count:1 mapcount:0 mapping:ffff88813bff0c40 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffffea00027eb108 ffffea00028acc08 ffff88813bff0c40 raw: 0000000000000000 ffff88809f4a20c0 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809f4a2780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88809f4a2800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88809f4a2880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff88809f4a2900: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ffff88809f4a2980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================