IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready ================================================================== IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready BUG: KASAN: use-after-free in ipvlan_process_outbound drivers/net/ipvlan/ipvlan_core.c:533 [inline] BUG: KASAN: use-after-free in ipvlan_xmit_mode_l3 drivers/net/ipvlan/ipvlan_core.c:593 [inline] BUG: KASAN: use-after-free in ipvlan_queue_xmit+0x89d/0x1630 drivers/net/ipvlan/ipvlan_core.c:654 Read of size 4 at addr ffff8880b5b4053f by task syz-executor.2/9824 CPU: 0 PID: 9824 Comm: syz-executor.2 Not tainted 4.19.195-syzkaller #0 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+0x17c/0x226 lib/dump_stack.c:118 print_address_description.cold.6+0x9/0x211 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:396 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432 ipvlan_process_outbound drivers/net/ipvlan/ipvlan_core.c:533 [inline] ipvlan_xmit_mode_l3 drivers/net/ipvlan/ipvlan_core.c:593 [inline] ipvlan_queue_xmit+0x89d/0x1630 drivers/net/ipvlan/ipvlan_core.c:654 wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 ipvlan_start_xmit+0x4a/0x150 drivers/net/ipvlan/ipvlan_main.c:290 __netdev_start_xmit include/linux/netdevice.h:4345 [inline] netdev_start_xmit include/linux/netdevice.h:4359 [inline] dev_direct_xmit+0x2db/0x620 net/core/dev.c:3905 packet_direct_xmit+0xd6/0x140 net/packet/af_packet.c:246 packet_snd net/packet/af_packet.c:2988 [inline] packet_sendmsg+0x3467/0x6660 net/packet/af_packet.c:3013 ieee80211 phy7: Selected rate control algorithm 'minstrel_ht' sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xac/0xf0 net/socket.c:632 __sys_sendto+0x1f2/0x2e0 net/socket.c:1787 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 __do_sys_sendto net/socket.c:1799 [inline] __se_sys_sendto net/socket.c:1795 [inline] __x64_sys_sendto+0xdc/0x1a0 net/socket.c:1795 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready RSP: 002b:00007f8150bac188 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665d9 RDX: 000000000000000e RSI: 0000000020000080 RDI: 0000000000000005 RBP: 00000000004bfcb9 R08: 0000000020000040 R09: 0000000000000014 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffee58df69f R14: 00007f8150bac300 R15: 0000000000022000 Allocated by task 9836: save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc.part.1+0x62/0xf0 mm/kasan/kasan.c:553 kasan_kmalloc+0xaf/0xc0 mm/kasan/kasan.c:538 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x390 mm/slab.c:3559 getname_kernel+0x4e/0x330 fs/namei.c:220 open_exec+0xc/0x50 fs/exec.c:881 load_elf_binary+0x79a/0x5120 fs/binfmt_elf.c:780 search_binary_handler fs/exec.c:1668 [inline] search_binary_handler+0x12b/0x630 fs/exec.c:1646 exec_binprm fs/exec.c:1710 [inline] __do_execve_file.isra.12+0x1070/0x1d30 fs/exec.c:1832 do_execveat_common fs/exec.c:1879 [inline] do_execve+0x20/0x30 fs/exec.c:1896 call_usermodehelper_exec_async+0x49b/0x630 kernel/umh.c:116 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Freed by task 9836: save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x13c/0x220 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3503 [inline] kmem_cache_free+0x83/0x290 mm/slab.c:3765 putname+0xa8/0xe0 fs/namei.c:261 open_exec+0x39/0x50 fs/exec.c:886 load_elf_binary+0x79a/0x5120 fs/binfmt_elf.c:780 search_binary_handler fs/exec.c:1668 [inline] search_binary_handler+0x12b/0x630 fs/exec.c:1646 exec_binprm fs/exec.c:1710 [inline] __do_execve_file.isra.12+0x1070/0x1d30 fs/exec.c:1832 do_execveat_common fs/exec.c:1879 [inline] do_execve+0x20/0x30 fs/exec.c:1896 call_usermodehelper_exec_async+0x49b/0x630 kernel/umh.c:116 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 The buggy address belongs to the object at ffff8880b5b40a40 which belongs to the cache names_cache of size 4096 The buggy address is located 1281 bytes to the left of 4096-byte region [ffff8880b5b40a40, ffff8880b5b41a40) The buggy address belongs to the page: page:ffffea0002d6d000 count:1 mapcount:0 mapping:ffff88813be46080 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffffea00025dc888 ffffea0002d6d088 ffff88813be46080 raw: 0000000000000000 ffff8880b5b40a40 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880b5b40400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880b5b40480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880b5b40500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880b5b40580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880b5b40600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================