IPv6: ADDRCONF(NETDEV_CHANGE): vcan0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready IPv6: ADDRCONF(NETDEV_UP): team_slave_0: link is not ready ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:188 [inline] BUG: KASAN: use-after-free in dev_queue_xmit_nit+0x8ff/0xaf0 net/core/dev.c:1971 Read of size 8 at addr ffff88019f0f6970 by task syz-executor2/13081 CPU: 1 PID: 13081 Comm: syz-executor2 Not tainted 4.19.0-rc3+ #135 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+0x1c4/0x2b4 lib/dump_stack.c:113 print_address_description.cold.8+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.9+0x242/0x309 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __read_once_size include/linux/compiler.h:188 [inline] dev_queue_xmit_nit+0x8ff/0xaf0 net/core/dev.c:1971 xmit_one net/core/dev.c:3212 [inline] dev_hard_start_xmit+0x170/0xc70 net/core/dev.c:3232 __dev_queue_xmit+0x2f3b/0x3980 net/core/dev.c:3802 dev_queue_xmit+0x17/0x20 net/core/dev.c:3835 neigh_hh_output include/net/neighbour.h:473 [inline] neigh_output include/net/neighbour.h:481 [inline] ip6_finish_output2+0x1345/0x27a0 net/ipv6/ip6_output.c:120 ip6_finish_output+0x5fe/0xbc0 net/ipv6/ip6_output.c:154 NF_HOOK_COND include/linux/netfilter.h:276 [inline] ip6_output+0x23e/0xa00 net/ipv6/ip6_output.c:171 dst_output include/net/dst.h:444 [inline] NF_HOOK include/linux/netfilter.h:287 [inline] mld_sendpack+0xae7/0xfb0 net/ipv6/mcast.c:1683 mld_send_cr net/ipv6/mcast.c:1979 [inline] mld_ifc_timer_expire+0x447/0x8a0 net/ipv6/mcast.c:2478 call_timer_fn+0x272/0x920 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers+0x7e5/0xc70 kernel/time/timer.c:1682 run_timer_softirq+0x52/0xb0 kernel/time/timer.c:1695 __do_softirq+0x30b/0xad8 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x17f/0x1c0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x1cb/0x760 arch/x86/kernel/apic/apic.c:1056 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:864 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:788 [inline] RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xaf/0xd0 kernel/locking/spinlock.c:184 Code: e8 29 52 89 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 28 48 83 3d c0 85 92 01 00 74 15 48 89 df 57 9d <0f> 1f 44 00 00 eb ad e8 8c d9 40 f9 eb bb 0f 0b 0f 0b e8 fa 92 02 RSP: 0018:ffff8801bfd867b0 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: dffffc0000000000 RBX: 0000000000000282 RCX: 0000000000000000 RDX: 1ffffffff12a453d RSI: ffff8801bef54e00 RDI: 0000000000000282 RBP: ffff8801bfd867c0 R08: ffff8801bef54580 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff895a1e40 R13: ffff8801bef54908 R14: ffffffff895a1f00 R15: ffffffff895a1e40 rcu_read_unlock_special.part.39+0x8a4/0x11f0 kernel/rcu/tree_plugin.h:587 rcu_read_unlock_special kernel/rcu/tree_plugin.h:484 [inline] __rcu_read_unlock+0x2e5/0x2f0 kernel/rcu/tree_plugin.h:428 rcu_read_unlock+0x1b/0x60 include/linux/rcupdate.h:682 cache_from_memcg_idx mm/slab.h:263 [inline] memcg_kmem_get_cache+0x3a9/0x9d0 mm/memcontrol.c:2542 slab_pre_alloc_hook mm/slab.h:428 [inline] slab_alloc_node mm/slab.c:3299 [inline] kmem_cache_alloc_node_trace+0x1a9/0x740 mm/slab.c:3661 __do_kmalloc_node mm/slab.c:3681 [inline] __kmalloc_node+0x33/0x70 mm/slab.c:3689 kmalloc_node include/linux/slab.h:555 [inline] kvmalloc_node+0x65/0xf0 mm/util.c:423 kvmalloc include/linux/mm.h:577 [inline] kvmalloc_array include/linux/mm.h:595 [inline] alloc_fdtable+0xd9/0x280 fs/file.c:115 dup_fd+0xa71/0xf50 fs/file.c:310 copy_files kernel/fork.c:1379 [inline] copy_process+0x2735/0x8780 kernel/fork.c:1857 _do_fork+0x1cb/0x11d0 kernel/fork.c:2166 __do_compat_sys_x86_clone arch/x86/ia32/sys_ia32.c:240 [inline] __se_compat_sys_x86_clone arch/x86/ia32/sys_ia32.c:236 [inline] __ia32_compat_sys_x86_clone+0xbc/0x140 arch/x86/ia32/sys_ia32.c:236 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x34d/0xfb2 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7fb9ca9 Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 0c 24 c3 8b 1c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f5fb50cc EFLAGS: 00000296 ORIG_RAX: 0000000000000078 RAX: ffffffffffffffda RBX: 0000000020002100 RCX: 0000000000000000 RDX: 0000000099999999 RSI: 0000000020000100 RDI: 00000000ffffffff RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 13080: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 __do_kmalloc mm/slab.c:3718 [inline] __kmalloc+0x14e/0x760 mm/slab.c:3727 kmalloc include/linux/slab.h:518 [inline] sk_prot_alloc+0x1b0/0x2e0 net/core/sock.c:1468 sk_alloc+0x10d/0x1690 net/core/sock.c:1522 packet_create+0x1af/0xbd0 net/packet/af_packet.c:3196 __sock_create+0x536/0x930 net/socket.c:1275 sock_create net/socket.c:1315 [inline] __sys_socket+0x106/0x260 net/socket.c:1345 __do_sys_socket net/socket.c:1354 [inline] __se_sys_socket net/socket.c:1352 [inline] __ia32_sys_socket+0x73/0xb0 net/socket.c:1352 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x34d/0xfb2 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 Freed by task 13078: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kfree+0xcf/0x230 mm/slab.c:3813 sk_prot_free net/core/sock.c:1505 [inline] __sk_destruct+0x7e9/0xbd0 net/core/sock.c:1587 sk_destruct+0x78/0x90 net/core/sock.c:1595 __sk_free+0xcf/0x300 net/core/sock.c:1606 sk_free+0x42/0x50 net/core/sock.c:1617 sock_put include/net/sock.h:1691 [inline] packet_release+0xa57/0xda0 net/packet/af_packet.c:3025 __sock_release+0xd7/0x250 net/socket.c:579 sock_close+0x19/0x20 net/socket.c:1139 __fput+0x385/0xa30 fs/file_table.c:278 ____fput+0x15/0x20 fs/file_table.c:309 task_work_run+0x1e8/0x2a0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x318/0x380 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_32_irqs_on arch/x86/entry/common.c:341 [inline] do_fast_syscall_32+0xcd5/0xfb2 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 The buggy address belongs to the object at ffff88019f0f6200 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 1904 bytes inside of 2048-byte region [ffff88019f0f6200, ffff88019f0f6a00) The buggy address belongs to the page: page:ffffea00067c3d80 count:1 mapcount:0 mapping:ffff8801da800c40 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffffea0006e23008 ffffea0006a1e888 ffff8801da800c40 raw: 0000000000000000 ffff88019f0f6200 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88019f0f6800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88019f0f6880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88019f0f6900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88019f0f6980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88019f0f6a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================