device veth0_vlan entered promiscuous mode device veth1_vlan entered promiscuous mode IPv6: ADDRCONF(NETDEV_UP): macvlan0: link is not ready IPv6: ADDRCONF(NETDEV_UP): macvlan1: link is not ready ================================================================== BUG: KASAN: use-after-free in __get_unaligned_cpu32 include/linux/unaligned/packed_struct.h:19 [inline] BUG: KASAN: use-after-free in mc_hash drivers/net/macvlan.c:255 [inline] BUG: KASAN: use-after-free in macvlan_broadcast+0x4b9/0x5c0 drivers/net/macvlan.c:281 Read of size 4 at addr ffff8880a3ea2d41 by task syz-executor764/7374 CPU: 1 PID: 7374 Comm: syz-executor764 Not tainted 4.14.162-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+0x142/0x197 lib/dump_stack.c:58 print_address_description.cold+0x7c/0x1dc mm/kasan/report.c:252 protocol 88fb is buggy, dev hsr_slave_0 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2af mm/kasan/report.c:393 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/report.c:440 protocol 88fb is buggy, dev hsr_slave_1 __get_unaligned_cpu32 include/linux/unaligned/packed_struct.h:19 [inline] mc_hash drivers/net/macvlan.c:255 [inline] macvlan_broadcast+0x4b9/0x5c0 drivers/net/macvlan.c:281 macvlan_queue_xmit drivers/net/macvlan.c:522 [inline] macvlan_start_xmit+0x56b/0x72d drivers/net/macvlan.c:565 __netdev_start_xmit include/linux/netdevice.h:4038 [inline] netdev_start_xmit include/linux/netdevice.h:4047 [inline] packet_direct_xmit+0x431/0x640 net/packet/af_packet.c:269 packet_snd net/packet/af_packet.c:2994 [inline] packet_sendmsg+0x1dd4/0x5a60 net/packet/af_packet.c:3019 IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): macvlan0: link becomes ready sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xce/0x110 net/socket.c:656 SYSC_sendto+0x206/0x310 net/socket.c:1763 IPv6: ADDRCONF(NETDEV_CHANGE): macvlan1: link becomes ready SyS_sendto+0x40/0x50 net/socket.c:1731 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x442329 RSP: 002b:00007ffd4cb0d9b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000442329 RDX: 000000000000000e RSI: 0000000020000080 RDI: 0000000000000003 RBP: 00007ffd4cb0d9e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00000000004038c0 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 7119: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 kasan_slab_alloc+0xf/0x20 mm/kasan/kasan.c:489 kmem_cache_alloc+0x12e/0x780 mm/slab.c:3552 kmem_cache_zalloc include/linux/slab.h:651 [inline] get_empty_filp+0x8c/0x3f0 fs/file_table.c:123 path_openat+0x8f/0x3f70 fs/namei.c:3542 do_filp_open+0x18e/0x250 fs/namei.c:3600 do_open_execat+0xe7/0x4a0 fs/exec.c:849 open_exec+0x37/0x70 fs/exec.c:881 load_elf_binary+0x77c/0x4d60 fs/binfmt_elf.c:767 search_binary_handler fs/exec.c:1638 [inline] search_binary_handler+0x149/0x6f0 fs/exec.c:1616 load_script+0x53e/0x750 fs/binfmt_script.c:148 search_binary_handler fs/exec.c:1638 [inline] search_binary_handler+0x149/0x6f0 fs/exec.c:1616 exec_binprm fs/exec.c:1680 [inline] do_execveat_common.isra.0+0x1000/0x1dd0 fs/exec.c:1802 do_execve fs/exec.c:1847 [inline] SYSC_execve fs/exec.c:1928 [inline] SyS_execve+0x39/0x50 fs/exec.c:1923 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 0: protocol 88fb is buggy, dev hsr_slave_0 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 protocol 88fb is buggy, dev hsr_slave_1 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kmem_cache_free+0x83/0x2b0 mm/slab.c:3758 file_free_rcu+0x63/0xa0 fs/file_table.c:50 __rcu_reclaim kernel/rcu/rcu.h:195 [inline] rcu_do_batch kernel/rcu/tree.c:2699 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline] rcu_process_callbacks+0x7b8/0x12b0 kernel/rcu/tree.c:2946 __do_softirq+0x244/0x9a0 kernel/softirq.c:288 The buggy address belongs to the object at ffff8880a3ea2c80 which belongs to the cache filp of size 456 The buggy address is located 193 bytes inside of 456-byte region [ffff8880a3ea2c80, ffff8880a3ea2e48) The buggy address belongs to the page: page:ffffea00028fa880 count:1 mapcount:0 mapping:ffff8880a3ea2000 index:0x0 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffff8880a3ea2000 0000000000000000 0000000100000006 raw: ffffea000292a3a0 ffffea0002862a60 ffff8880aa9e99c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a3ea2c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a3ea2c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880a3ea2d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880a3ea2d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a3ea2e00: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc ==================================================================