IPv6: ADDRCONF(NETDEV_CHANGE): macvlan0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_virt_wifi: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0_virt_wifi: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_0: link becomes ready ================================================================== BUG: KASAN: slab-out-of-bounds in find_first_zero_bit+0x84/0x90 lib/find_bit.c:105 Read of size 8 at addr ffff8880aa20c980 by task syz-executor.5/9363 IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_batadv: link becomes ready CPU: 1 PID: 9363 Comm: syz-executor.5 Not tainted 4.14.305-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 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:251 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:350 kasan_report mm/kasan/report.c:408 [inline] __asan_report_load8_noabort+0x68/0x70 mm/kasan/report.c:429 find_first_zero_bit+0x84/0x90 lib/find_bit.c:105 bfs_create+0xfb/0x620 fs/bfs/dir.c:92 IPv6: ADDRCONF(NETDEV_UP): veth0_virt_wifi: link is not ready lookup_open+0x77a/0x1750 fs/namei.c:3241 do_last fs/namei.c:3334 [inline] path_openat+0xe08/0x2970 fs/namei.c:3571 IPv6: ADDRCONF(NETDEV_UP): veth1_virt_wifi: link is not ready do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 IPv6: ADDRCONF(NETDEV_UP): veth0_vlan: link is not ready IPv6: ADDRCONF(NETDEV_UP): vlan0: link is not ready do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 IPv6: ADDRCONF(NETDEV_UP): vlan1: link is not ready RIP: 0033:0x7f20eaef30f9 RSP: 002b:00007f20e9465168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 IPv6: ADDRCONF(NETDEV_UP): veth1_vlan: link is not ready RAX: ffffffffffffffda RBX: 00007f20eb012f80 RCX: 00007f20eaef30f9 RDX: 0000000000000000 RSI: 0000000000143042 RDI: 0000000020002000 RBP: 00007f20eaf4eae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe7313765f R14: 00007f20e9465300 R15: 0000000000022000 Allocated by task 9363: 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 device veth0_vlan entered promiscuous mode __do_kmalloc mm/slab.c:3720 [inline] __kmalloc+0x15a/0x400 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] kzalloc include/linux/slab.h:661 [inline] bfs_fill_super+0x3d5/0xd80 fs/bfs/inode.c:363 mount_bdev+0x2b3/0x360 fs/super.c:1134 mount_fs+0x92/0x2a0 fs/super.c:1237 device veth1_vlan entered promiscuous mode vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046 IPv6: ADDRCONF(NETDEV_UP): macvlan0: link is not ready vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2572 [inline] do_mount+0xe65/0x2a30 fs/namespace.c:2905 SYSC_mount fs/namespace.c:3121 [inline] SyS_mount+0xa8/0x120 fs/namespace.c:3098 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 Freed by task 1: 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 IPv6: ADDRCONF(NETDEV_UP): macvlan1: link is not ready rh_call_control drivers/usb/core/hcd.c:739 [inline] rh_urb_enqueue drivers/usb/core/hcd.c:854 [inline] usb_hcd_submit_urb+0x8c0/0x20d0 drivers/usb/core/hcd.c:1667 IPv6: ADDRCONF(NETDEV_UP): veth0_macvtap: link is not ready usb_submit_urb+0x4de/0x10a0 drivers/usb/core/urb.c:565 IPv6: ADDRCONF(NETDEV_UP): veth1_macvtap: link is not ready usb_start_wait_urb+0xf3/0x440 drivers/usb/core/message.c:56 device veth0_macvtap entered promiscuous mode usb_internal_control_msg drivers/usb/core/message.c:100 [inline] usb_control_msg+0x302/0x450 drivers/usb/core/message.c:151 IPv6: ADDRCONF(NETDEV_UP): macvtap0: link is not ready set_port_feature drivers/usb/core/hub.c:432 [inline] hub_power_on+0x186/0x430 drivers/usb/core/hub.c:892 device veth1_macvtap entered promiscuous mode hub_activate+0xf82/0x1840 drivers/usb/core/hub.c:1051 IPv6: ADDRCONF(NETDEV_UP): macsec0: link is not ready hub_configure drivers/usb/core/hub.c:1642 [inline] hub_probe+0x1e6a/0x2a20 drivers/usb/core/hub.c:1842 IPv6: ADDRCONF(NETDEV_UP): veth0_to_batadv: link is not ready usb_probe_interface+0x2ac/0x920 drivers/usb/core/driver.c:361 really_probe drivers/base/dd.c:409 [inline] driver_probe_device+0x753/0xc80 drivers/base/dd.c:552 __device_attach_driver+0x22a/0x360 drivers/base/dd.c:653 bus_for_each_drv+0x13b/0x1a0 drivers/base/bus.c:466 __device_attach+0x259/0x390 drivers/base/dd.c:710 bus_probe_device+0x1db/0x290 drivers/base/bus.c:526 IPv6: ADDRCONF(NETDEV_UP): veth1_to_batadv: link is not ready device_add+0xa4f/0x15c0 drivers/base/core.c:1933 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0 usb_set_configuration+0xe8d/0x16f0 drivers/usb/core/message.c:1948 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! generic_probe+0xa6/0xf0 drivers/usb/core/generic.c:174 usb_probe_device+0xa6/0x130 drivers/usb/core/driver.c:266 really_probe drivers/base/dd.c:409 [inline] driver_probe_device+0x753/0xc80 drivers/base/dd.c:552 __device_attach_driver+0x22a/0x360 drivers/base/dd.c:653 bus_for_each_drv+0x13b/0x1a0 drivers/base/bus.c:466 __device_attach+0x259/0x390 drivers/base/dd.c:710 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0 bus_probe_device+0x1db/0x290 drivers/base/bus.c:526 device_add+0xa4f/0x15c0 drivers/base/core.c:1933 usb_new_device+0x98f/0x1940 drivers/usb/core/hub.c:2508 register_root_hub drivers/usb/core/hcd.c:1121 [inline] usb_add_hcd+0xd2a/0x1de0 drivers/usb/core/hcd.c:2926 vhci_hcd_probe+0x134/0x360 drivers/usb/usbip/vhci_hcd.c:1404 platform_drv_probe+0xc1/0x1b0 drivers/base/platform.c:583 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! really_probe drivers/base/dd.c:409 [inline] driver_probe_device+0x753/0xc80 drivers/base/dd.c:552 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0 __device_attach_driver+0x22a/0x360 drivers/base/dd.c:653 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! bus_for_each_drv+0x13b/0x1a0 drivers/base/bus.c:466 IPv6: ADDRCONF(NETDEV_UP): batadv_slave_0: link is not ready __device_attach+0x259/0x390 drivers/base/dd.c:710 bus_probe_device+0x1db/0x290 drivers/base/bus.c:526 batman_adv: batadv0: Interface activated: batadv_slave_0 device_add+0xa4f/0x15c0 drivers/base/core.c:1933 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3f) already exists on: batadv_slave_1 platform_device_add+0x28f/0x7a0 drivers/base/platform.c:421 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! vhci_hcd_init+0x2c3/0x3d4 drivers/usb/usbip/vhci_hcd.c:1588 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3f) already exists on: batadv_slave_1 do_one_initcall+0x88/0x210 init/main.c:830 do_initcall_level init/main.c:896 [inline] do_initcalls init/main.c:904 [inline] do_basic_setup init/main.c:922 [inline] kernel_init_freeable+0x565/0x626 init/main.c:1081 kernel_init+0xd/0x165 init/main.c:1006 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:406 The buggy address belongs to the object at ffff8880aa20c980 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes inside of 32-byte region [ffff8880aa20c980, ffff8880aa20c9a0) The buggy address belongs to the page: batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! page:ffffea0002a88300 count:1 mapcount:0 mapping:ffff8880aa20c000 index:0xffff8880aa20cfc1 IPv6: ADDRCONF(NETDEV_UP): batadv_slave_1: link is not ready batman_adv: batadv0: Interface activated: batadv_slave_1 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffff8880aa20c000 ffff8880aa20cfc1 000000010000003f raw: ffffea0002a51ee0 ffffea0002d847e0 ffff88813fe741c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880aa20c880: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff8880aa20c900: fb fb fb fb fc fc fc fc 00 01 fc fc fc fc fc fc IPv6: ADDRCONF(NETDEV_UP): veth0_vlan: link is not ready >ffff8880aa20c980: 07 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc ^ ffff8880aa20ca00: 00 03 fc fc fc fc fc fc 00 00 fc fc fc fc fc fc ffff8880aa20ca80: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ================================================================== IPv6: ADDRCONF(NETDEV_UP): vlan0: link is not ready Bluetooth: hci1 command 0x0419 tx timeout IPv6: ADDRCONF(NETDEV_UP): vlan1: link is not ready Bluetooth: hci0 command 0x0419 tx timeout