================================================================== bond1: The slave device specified does not support setting the MAC address BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:183 [inline] BUG: KASAN: use-after-free in dev_queue_xmit_nit+0x7b5/0x950 net/core/dev.c:1929 Read of size 8 at addr ffff8880a5a8bbe8 by task syz-executor.3/10724 CPU: 0 PID: 10724 Comm: syz-executor.3 Not tainted 4.14.184-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/0x283 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1dc mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2b9 mm/kasan/report.c:393 __read_once_size include/linux/compiler.h:183 [inline] dev_queue_xmit_nit+0x7b5/0x950 net/core/dev.c:1929 xmit_one net/core/dev.c:3005 [inline] dev_hard_start_xmit+0xa8/0x880 net/core/dev.c:3025 __dev_queue_xmit+0x1dce/0x25a0 net/core/dev.c:3525 hsr_xmit net/hsr/hsr_forward.c:237 [inline] hsr_forward_do net/hsr/hsr_forward.c:295 [inline] hsr_forward_skb+0xb8e/0x1898 net/hsr/hsr_forward.c:373 hsr_dev_xmit+0x6b/0xa0 net/hsr/hsr_device.c:242 __netdev_start_xmit include/linux/netdevice.h:4039 [inline] netdev_start_xmit include/linux/netdevice.h:4048 [inline] xmit_one net/core/dev.c:3009 [inline] dev_hard_start_xmit+0x186/0x880 net/core/dev.c:3025 __dev_queue_xmit+0x1dce/0x25a0 net/core/dev.c:3525 neigh_connected_output+0x39c/0x580 net/core/neighbour.c:1398 neigh_output include/net/neighbour.h:500 [inline] ip6_finish_output2+0x1114/0x21b0 net/ipv6/ip6_output.c:120 ip6_finish_output+0x702/0xaf0 net/ipv6/ip6_output.c:154 NF_HOOK_COND include/linux/netfilter.h:239 [inline] ip6_output+0x1c5/0x660 net/ipv6/ip6_output.c:171 dst_output include/net/dst.h:462 [inline] NF_HOOK include/linux/netfilter.h:250 [inline] ndisc_send_skb+0x88b/0x1390 net/ipv6/ndisc.c:483 ndisc_send_rs+0x125/0x630 net/ipv6/ndisc.c:677 addrconf_rs_timer+0x280/0x5a0 net/ipv6/addrconf.c:3765 call_timer_fn+0x14a/0x650 kernel/time/timer.c:1279 expire_timers+0x233/0x4d0 kernel/time/timer.c:1318 __run_timers kernel/time/timer.c:1636 [inline] run_timer_softirq+0x1d8/0x5b0 kernel/time/timer.c:1649 __do_softirq+0x254/0x9bf kernel/softirq.c:288 invoke_softirq kernel/softirq.c:368 [inline] irq_exit+0x15b/0x1a0 kernel/softirq.c:409 exiting_irq arch/x86/include/asm/apic.h:648 [inline] smp_apic_timer_interrupt+0x141/0x5f0 arch/x86/kernel/apic/apic.c:1102 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:ffff88804507f5d8 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff10 RAX: 1ffffffff0f62cd1 RBX: 0000000000000282 RCX: 1ffff11013da1515 RDX: dffffc0000000000 RSI: ffff88809ed0a8b0 RDI: 0000000000000282 RBP: ffffffff87b880a0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88809ed0a398 R14: 0000000000000000 R15: ffffffff87b86f68 rcu_read_unlock_special+0x89e/0xd50 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] is_bpf_text_address+0x86/0x120 kernel/bpf/core.c:458 kernel_text_address+0x6e/0xe0 kernel/extable.c:150 __kernel_text_address+0x9/0x30 kernel/extable.c:105 unwind_get_return_address arch/x86/kernel/unwind_orc.c:252 [inline] unwind_get_return_address+0x51/0x90 arch/x86/kernel/unwind_orc.c:247 __save_stack_trace+0x7b/0xd0 arch/x86/kernel/stacktrace.c:45 save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc.part.0+0x4f/0xd0 mm/kasan/kasan.c:551 kmem_cache_alloc_trace+0x14d/0x3f0 mm/slab.c:3618 kmalloc include/linux/slab.h:488 [inline] kmalloc_array include/linux/slab.h:606 [inline] kcalloc include/linux/slab.h:618 [inline] states_equal kernel/bpf/verifier.c:3941 [inline] is_state_visited kernel/bpf/verifier.c:4041 [inline] do_check+0x46b/0x9420 kernel/bpf/verifier.c:4137 bpf_check+0xaf3/0x1830 kernel/bpf/verifier.c:5047 bpf_prog_load+0x5e9/0xe00 kernel/bpf/syscall.c:1057 SYSC_bpf kernel/bpf/syscall.c:1512 [inline] SyS_bpf+0x12b2/0x34e0 kernel/bpf/syscall.c:1477 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x45ca59 RSP: 002b:00007fe9bd547c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00000000004dae20 RCX: 000000000045ca59 RDX: 0000000000000048 RSI: 00000000200054c0 RDI: 0000000000000005 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000006f R14: 00000000004c334a R15: 00007fe9bd5486d4 Allocated by task 10742: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc.part.0+0x4f/0xd0 mm/kasan/kasan.c:551 __do_kmalloc mm/slab.c:3720 [inline] __kmalloc+0x15a/0x400 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] sk_prot_alloc+0x1ba/0x290 net/core/sock.c:1467 sk_alloc+0x36/0xd30 net/core/sock.c:1521 packet_create+0xf5/0x7e0 net/packet/af_packet.c:3283 __sock_create+0x2f2/0x620 net/socket.c:1275 sock_create net/socket.c:1315 [inline] SYSC_socket net/socket.c:1345 [inline] SyS_socket+0xd1/0x1b0 net/socket.c:1325 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb Freed by task 10727: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xaf/0x190 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcb/0x260 mm/slab.c:3815 sk_prot_free net/core/sock.c:1504 [inline] __sk_destruct+0x4f5/0x640 net/core/sock.c:1581 sk_destruct+0x97/0xc0 net/core/sock.c:1596 __sk_free+0x4c/0x220 net/core/sock.c:1604 sk_free+0x2b/0x40 net/core/sock.c:1615 sock_put include/net/sock.h:1658 [inline] packet_release+0x8c4/0xb70 net/packet/af_packet.c:3112 __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+0x113/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 ffff8880a5a8b400 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 2024 bytes inside of 2048-byte region [ffff8880a5a8b400, ffff8880a5a8bc00) The buggy address belongs to the page: page:ffffea000296a280 count:1 mapcount:0 mapping:ffff8880a5a8a300 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffff8880a5a8a300 0000000000000000 0000000100000003 raw: ffffea0001611f20 ffffea0001614320 ffff8880aa800c40 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a5a8ba80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a5a8bb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880a5a8bb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880a5a8bc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a5a8bc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================