================================================================== 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 ffff8801d9ba6af0 by task syz-executor0/7209 CPU: 0 PID: 7209 Comm: syz-executor0 Not tainted 4.19.0-rc2+ #51 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 br_dev_queue_push_xmit+0x40a/0x600 net/bridge/br_forward.c:56 NF_HOOK include/linux/netfilter.h:287 [inline] br_forward_finish+0xd6/0x5d0 net/bridge/br_forward.c:68 NF_HOOK include/linux/netfilter.h:287 [inline] __br_forward+0x83b/0xe00 net/bridge/br_forward.c:113 deliver_clone+0x61/0xc0 net/bridge/br_forward.c:129 maybe_deliver net/bridge/br_forward.c:184 [inline] br_flood+0x702/0x9a0 net/bridge/br_forward.c:226 br_dev_xmit+0x10f8/0x17c0 net/bridge/br_device.c:103 __netdev_start_xmit include/linux/netdevice.h:4287 [inline] netdev_start_xmit include/linux/netdevice.h:4296 [inline] xmit_one net/core/dev.c:3216 [inline] dev_hard_start_xmit+0x27f/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] ndisc_send_skb+0x1005/0x1570 net/ipv6/ndisc.c:491 ndisc_send_rs+0x134/0x6e0 net/ipv6/ndisc.c:685 addrconf_rs_timer+0x3c0/0x6f0 net/ipv6/addrconf.c:3819 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: a8 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 20 a6 92 01 00 74 15 48 89 df 57 9d <0f> 1f 44 00 00 eb ad e8 2c fa 40 f9 eb bb 0f 0b 0f 0b e8 fa ae 02 RSP: 0018:ffff8801a1e06fb8 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: dffffc0000000000 RBX: 0000000000000282 RCX: 1ffff100343e4d94 RDX: 1ffffffff12a4535 RSI: ffff8801a1f26ca8 RDI: 0000000000000282 RBP: ffff8801a1e06fc8 R08: ffff8801a1f26ca0 R09: 0000000000000006 R10: 0000000000000000 R11: ffff8801a1f26400 R12: ffffffff895a3358 R13: ffffffff895a3358 R14: ffff8801a1e070d8 R15: 1ffff100343c0e13 swake_up_one+0x25f/0x440 kernel/sched/swait.c:41 __rcu_report_exp_rnp+0x150/0x1b0 kernel/rcu/tree_exp.h:215 rcu_report_exp_rnp kernel/rcu/tree_exp.h:238 [inline] rcu_read_unlock_special.part.39+0x8d8/0x11f0 kernel/rcu/tree_plugin.h:599 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 include/linux/rcupdate.h:682 [inline] sctp_copy_local_addr_list+0x4ec/0x690 net/sctp/protocol.c:186 sctp_copy_one_addr+0x5d/0x170 net/sctp/bind_addr.c:449 sctp_bind_addr_copy+0x173/0x47c net/sctp/bind_addr.c:71 sctp_assoc_set_bind_addr_from_ep+0x165/0x1c0 net/sctp/associola.c:1600 sctp_sendmsg_new_asoc+0x3c2/0x11f0 net/sctp/socket.c:1746 sctp_sendmsg+0x18d9/0x1dd0 net/sctp/socket.c:2103 inet_sendmsg+0x1a1/0x690 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:631 ___sys_sendmsg+0x7fd/0x930 net/socket.c:2114 __sys_sendmsg+0x11d/0x280 net/socket.c:2152 __do_sys_sendmsg net/socket.c:2161 [inline] __se_sys_sendmsg net/socket.c:2159 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2159 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4572a9 Code: fd b4 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 b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f29f9e28c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f29f9e296d4 RCX: 00000000004572a9 RDX: 0000000020008844 RSI: 0000000020000240 RDI: 0000000000000004 RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004d4db0 R14: 00000000004c932f R15: 0000000000000000 Allocated by task 7206: 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_socketpair+0x200/0x7a0 net/socket.c:1403 __do_sys_socketpair net/socket.c:1456 [inline] __se_sys_socketpair net/socket.c:1453 [inline] __x64_sys_socketpair+0x97/0xf0 net/socket.c:1453 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 7206: 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+0x1d9/0x250 net/socket.c:579 sock_release net/socket.c:598 [inline] __sys_socketpair+0x5ca/0x7a0 net/socket.c:1423 __do_sys_socketpair net/socket.c:1456 [inline] __se_sys_socketpair net/socket.c:1453 [inline] __x64_sys_socketpair+0x97/0xf0 net/socket.c:1453 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8801d9ba6380 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 1904 bytes inside of 2048-byte region [ffff8801d9ba6380, ffff8801d9ba6b80) The buggy address belongs to the page: page:ffffea000766e980 count:1 mapcount:0 mapping:ffff8801da800c40 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffffea00073d9e08 ffffea0007303408 ffff8801da800c40 raw: 0000000000000000 ffff8801d9ba6380 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801d9ba6980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801d9ba6a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8801d9ba6a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8801d9ba6b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801d9ba6b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================