IPv6: ADDRCONF(NETDEV_CHANGE): vcan0: link becomes ready EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:185 [inline] BUG: KASAN: use-after-free in dev_queue_xmit_nit+0x7b5/0x950 net/core/dev.c:1925 Read of size 8 at addr ffff88804fb1b530 by task syz-executor.1/10086 CPU: 0 PID: 10086 Comm: syz-executor.1 Not tainted 4.14.265-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_load8_noabort+0x68/0x70 mm/kasan/report.c:430 __read_once_size include/linux/compiler.h:185 [inline] dev_queue_xmit_nit+0x7b5/0x950 net/core/dev.c:1925 xmit_one net/core/dev.c:3001 [inline] dev_hard_start_xmit+0xaa/0x890 net/core/dev.c:3021 __dev_queue_xmit+0x1d7f/0x2480 net/core/dev.c:3521 br_dev_queue_push_xmit+0x1cc/0x5e0 net/bridge/br_forward.c:55 NF_HOOK include/linux/netfilter.h:250 [inline] br_forward_finish+0x81/0x2f0 net/bridge/br_forward.c:67 NF_HOOK include/linux/netfilter.h:250 [inline] __br_forward+0x4f9/0x950 net/bridge/br_forward.c:111 br_flood+0x34e/0x410 net/bridge/br_forward.c:224 br_dev_xmit+0x950/0xd40 net/bridge/br_device.c:83 __netdev_start_xmit include/linux/netdevice.h:4052 [inline] netdev_start_xmit include/linux/netdevice.h:4061 [inline] xmit_one net/core/dev.c:3005 [inline] dev_hard_start_xmit+0x188/0x890 net/core/dev.c:3021 __dev_queue_xmit+0x1d7f/0x2480 net/core/dev.c:3521 neigh_hh_output include/net/neighbour.h:490 [inline] neigh_output include/net/neighbour.h:498 [inline] ip6_finish_output2+0xc6a/0x1f10 net/ipv6/ip6_output.c:120 ip6_finish_output+0x5c6/0xd50 net/ipv6/ip6_output.c:192 NF_HOOK_COND include/linux/netfilter.h:239 [inline] ip6_output+0x1c5/0x660 net/ipv6/ip6_output.c:209 dst_output include/net/dst.h:470 [inline] NF_HOOK include/linux/netfilter.h:250 [inline] mld_sendpack+0x5fe/0xea0 net/ipv6/mcast.c:1657 mld_send_cr net/ipv6/mcast.c:1953 [inline] mld_ifc_timer_expire+0x57c/0xcd0 net/ipv6/mcast.c:2452 call_timer_fn+0x14a/0x650 kernel/time/timer.c:1280 expire_timers+0x232/0x4d0 kernel/time/timer.c:1319 __run_timers kernel/time/timer.c:1637 [inline] run_timer_softirq+0x1d5/0x5a0 kernel/time/timer.c:1650 __do_softirq+0x24d/0x9ff kernel/softirq.c:288 invoke_softirq kernel/softirq.c:368 [inline] irq_exit+0x193/0x240 kernel/softirq.c:409 exiting_irq arch/x86/include/asm/apic.h:638 [inline] smp_apic_timer_interrupt+0x141/0x5e0 arch/x86/kernel/apic/apic.c:1106 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:793 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:779 [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:192 RSP: 0018:ffff888050236ff8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff10 RAX: 1ffffffff11e1279 RBX: 0000000000000286 RCX: 1ffff110146455c5 RDX: dffffc0000000000 RSI: ffff8880a322ae30 RDI: 0000000000000286 RBP: ffffffff88f79c80 R08: ffff8880a322a910 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286 R13: ffff8880a322a918 R14: ffff8880a322a908 R15: 0000000000000000 rcu_report_qs_rsp+0xe6/0x140 kernel/rcu/tree.c:2389 rcu_read_unlock_special+0x8db/0xdd0 kernel/rcu/tree_plugin.h:526 __rcu_read_unlock+0x158/0x160 kernel/rcu/update.c:260 rcu_read_unlock include/linux/rcupdate.h:684 [inline] batadv_hardif_get_by_netdev+0x175/0x260 net/batman-adv/hard-interface.c:84 batadv_hard_if_event+0x55/0x11c0 net/batman-adv/hard-interface.c:1003 notifier_call_chain+0x108/0x1a0 kernel/notifier.c:93 call_netdevice_notifiers_info net/core/dev.c:1667 [inline] netdev_state_change net/core/dev.c:1314 [inline] netdev_state_change+0xca/0xf0 net/core/dev.c:1308 do_setlink+0x23ed/0x2bf0 net/core/rtnetlink.c:2280 rtnl_group_changelink net/core/rtnetlink.c:2512 [inline] rtnl_newlink+0xc9d/0x1830 net/core/rtnetlink.c:2668 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4322 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2446 netlink_unicast_kernel net/netlink/af_netlink.c:1294 [inline] netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1320 netlink_sendmsg+0x648/0xbc0 net/netlink/af_netlink.c:1891 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7fec4e9df059 RSP: 002b:00007fec4d354168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fec4eaf1f60 RCX: 00007fec4e9df059 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000006 RBP: 00007fec4ea3908d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd075ac2bf R14: 00007fec4d354300 R15: 0000000000022000 Allocated by task 10104: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 kmem_cache_alloc_trace+0x131/0x3d0 mm/slab.c:3618 kmalloc include/linux/slab.h:488 [inline] kzalloc include/linux/slab.h:661 [inline] fanout_add net/packet/af_packet.c:1744 [inline] packet_setsockopt+0x19a6/0x26d0 net/packet/af_packet.c:3917 SYSC_setsockopt net/socket.c:1865 [inline] SyS_setsockopt+0x110/0x1e0 net/socket.c:1844 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb Freed by task 10103: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xc9/0x250 mm/slab.c:3815 packet_release+0x728/0xa80 net/packet/af_packet.c:3114 __sock_release+0xcd/0x2b0 net/socket.c:602 sock_close+0x15/0x20 net/socket.c:1139 __fput+0x25f/0x7a0 fs/file_table.c:210 task_work_run+0x11f/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x46/0xbb The buggy address belongs to the object at ffff88804fb1ac80 which belongs to the cache kmalloc-4096 of size 4096 The buggy address is located 2224 bytes inside of 4096-byte region [ffff88804fb1ac80, ffff88804fb1bc80) The buggy address belongs to the page: page:ffffea00013ec680 count:1 mapcount:0 mapping:ffff88804fb1ac80 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffff88804fb1ac80 0000000000000000 0000000100000001 raw: ffffea0002cdc3a0 ffffea00013ec720 ffff88813fe74dc0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88804fb1b400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88804fb1b480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88804fb1b500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88804fb1b580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88804fb1b600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================