IPv6: ADDRCONF(NETDEV_CHANGE): veth0_macvtap: link becomes ready device veth0_macvtap entered promiscuous mode IPv6: ADDRCONF(NETDEV_UP): macvtap0: link is not ready ================================================================== batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_1 BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:193 [inline] BUG: KASAN: use-after-free in dev_queue_xmit_nit+0x87a/0xa00 net/core/dev.c:2008 Read of size 8 at addr ffff88804a8bae30 by task syz-executor.2/7779 CPU: 0 PID: 7779 Comm: syz-executor.2 Not tainted 4.19.122-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+0x188/0x20d lib/dump_stack.c:118 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! print_address_description.cold+0x7c/0x212 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+0x88/0x2b9 mm/kasan/report.c:396 __read_once_size include/linux/compiler.h:193 [inline] dev_queue_xmit_nit+0x87a/0xa00 net/core/dev.c:2008 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_1 xmit_one net/core/dev.c:3256 [inline] dev_hard_start_xmit+0xa6/0x950 net/core/dev.c:3276 __dev_queue_xmit+0x270f/0x3040 net/core/dev.c:3846 ceph: device name is missing path (no : separator in /dev/loop3) batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_1 neigh_resolve_output net/core/neighbour.c:1374 [inline] neigh_resolve_output+0x57d/0x950 net/core/neighbour.c:1354 neigh_output include/net/neighbour.h:501 [inline] ip6_finish_output2+0xb7f/0x2540 net/ipv6/ip6_output.c:120 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! ip6_finish_output+0x571/0xbe0 net/ipv6/ip6_output.c:154 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip6_output+0x209/0x760 net/ipv6/ip6_output.c:171 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_1 dst_output include/net/dst.h:447 [inline] NF_HOOK include/linux/netfilter.h:289 [inline] ndisc_send_skb+0xf5c/0x1470 net/ipv6/ndisc.c:491 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! ndisc_send_rs+0x131/0x690 net/ipv6/ndisc.c:685 addrconf_rs_timer+0x30f/0x680 net/ipv6/addrconf.c:3834 call_timer_fn+0x177/0x700 kernel/time/timer.c:1326 IPv6: ADDRCONF(NETDEV_UP): batadv_slave_1: link is not ready batman_adv: batadv0: Interface activated: batadv_slave_1 expire_timers kernel/time/timer.c:1363 [inline] __run_timers kernel/time/timer.c:1684 [inline] __run_timers kernel/time/timer.c:1652 [inline] run_timer_softirq+0x5d0/0x1540 kernel/time/timer.c:1697 __do_softirq+0x26c/0x93c kernel/softirq.c:292 IPv6: ADDRCONF(NETDEV_CHANGE): macvtap0: link becomes ready invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x17b/0x1c0 kernel/softirq.c:412 IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready exiting_irq arch/x86/include/asm/apic.h:544 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x91/0xe0 kernel/locking/spinlock.c:184 Code: 48 c7 c0 c8 56 d2 88 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 37 48 83 3d ee b8 b0 01 00 74 22 48 89 df 57 9d <0f> 1f 44 00 00 bf 01 00 00 00 e8 10 1d 25 fa 65 8b 05 d9 4f e0 78 RSP: 0018:ffff88804b66f420 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready RAX: 1ffffffff11a4ad9 RBX: 0000000000000282 RCX: 1ffff110146b41ca RDX: dffffc0000000000 RSI: ffff8880a35a0e58 RDI: 0000000000000282 RBP: ffffffff88d94d00 R08: ffff8880a35a0580 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a35a0580 R13: 0000000000000001 R14: ffff8880a35a08f8 R15: ffffffff88d94d00 rcu_read_unlock_special+0x666/0xeb0 kernel/rcu/tree_plugin.h:587 device veth1_macvtap entered promiscuous mode __rcu_read_unlock+0x158/0x160 kernel/rcu/tree_plugin.h:428 rcu_read_unlock include/linux/rcupdate.h:680 [inline] find_get_pages_range+0x5ab/0xcb0 mm/filemap.c:1793 pagevec_lookup_range+0x32/0x70 mm/swap.c:1005 clean_bdev_aliases+0x169/0x6a0 fs/buffer.c:1586 clean_bdev_bh_alias include/linux/buffer_head.h:179 [inline] __block_write_begin_int+0x9e4/0x17a0 fs/buffer.c:1986 __block_write_begin fs/buffer.c:2028 [inline] block_write_begin+0x58/0x2e0 fs/buffer.c:2087 cont_write_begin+0x46f/0x7e0 fs/buffer.c:2440 fat_write_begin+0x8d/0x120 fs/fat/inode.c:229 cont_expand_zero fs/buffer.c:2367 [inline] cont_write_begin+0x211/0x7e0 fs/buffer.c:2430 fat_write_begin+0x8d/0x120 fs/fat/inode.c:229 generic_cont_expand_simple+0x106/0x170 fs/buffer.c:2331 fat_cont_expand+0x71/0x2b0 fs/fat/file.c:231 fat_setattr+0xa17/0xc60 fs/fat/file.c:510 notify_change+0xad7/0xfb0 fs/attr.c:334 do_truncate+0x134/0x1f0 fs/open.c:63 do_sys_ftruncate+0x499/0x560 fs/open.c:194 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c829 Code: 0d b7 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f7a851b0c78 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00000000004dc620 RCX: 000000000045c829 RDX: 0000000000000000 RSI: 0000000000208200 RDI: 0000000000000005 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000000e9 R14: 00000000004c3701 R15: 00007f7a851b16d4 Allocated by task 7789: set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xbf/0xe0 mm/kasan/kasan.c:531 __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15b/0x770 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] sk_prot_alloc+0x18c/0x2d0 net/core/sock.c:1466 sk_alloc+0x36/0xf50 net/core/sock.c:1520 packet_create+0x115/0x840 net/packet/af_packet.c:3247 __sock_create+0x3d5/0x740 net/socket.c:1276 sock_create net/socket.c:1316 [inline] __sys_socket+0xef/0x200 net/socket.c:1346 __do_sys_socket net/socket.c:1355 [inline] __se_sys_socket net/socket.c:1353 [inline] __x64_sys_socket+0x6f/0xb0 net/socket.c:1353 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 7786: set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/kasan.c:521 __cache_free mm/slab.c:3503 [inline] kfree+0xce/0x220 mm/slab.c:3822 sk_prot_free net/core/sock.c:1503 [inline] __sk_destruct+0x579/0x780 net/core/sock.c:1583 sk_destruct+0xb9/0xf0 net/core/sock.c:1598 __sk_free+0xc2/0x2e0 net/core/sock.c:1609 sk_free+0x3b/0x50 net/core/sock.c:1620 sock_put include/net/sock.h:1707 [inline] packet_release+0x93f/0xc70 net/packet/af_packet.c:3076 __sock_release+0xcd/0x2a0 net/socket.c:579 sock_close+0x15/0x20 net/socket.c:1140 __fput+0x2cd/0x890 fs/file_table.c:278 task_work_run+0x13f/0x1b0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x25a/0x2b0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88804a8ba640 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 2032 bytes inside of 2048-byte region [ffff88804a8ba640, ffff88804a8bae40) The buggy address belongs to the page: page:ffffea00012a2e80 count:1 mapcount:0 mapping:ffff88812c39cc40 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffffea00012a2e08 ffffea00012a6388 ffff88812c39cc40 raw: 0000000000000000 ffff88804a8ba640 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88804a8bad00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88804a8bad80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88804a8bae00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff88804a8bae80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff88804a8baf00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================