IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_UP): vxcan0: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready ================================================================== BUG: KASAN: use-after-free in __lock_acquire+0x2cb4/0x3ff0 kernel/locking/lockdep.c:3295 Read of size 8 at addr ffff8880966fe3e0 by task kworker/0:5/20091 CPU: 0 PID: 20091 Comm: kworker/0:5 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Workqueue: events l2cap_chan_timeout 8021q: adding VLAN 0 to HW filter on device batadv0 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 __lock_acquire+0x2cb4/0x3ff0 kernel/locking/lockdep.c:3295 IPv6: ADDRCONF(NETDEV_UP): veth0_virt_wifi: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_virt_wifi: link is not ready lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:168 spin_lock_bh include/linux/spinlock.h:334 [inline] lock_sock_nested+0x3b/0x110 net/core/sock.c:2884 l2cap_sock_teardown_cb+0xa0/0x6d0 net/bluetooth/l2cap_sock.c:1348 l2cap_chan_del+0xbc/0xa50 net/bluetooth/l2cap_core.c:603 l2cap_chan_close+0x1b5/0x950 net/bluetooth/l2cap_core.c:761 l2cap_chan_timeout+0x17e/0x2f0 net/bluetooth/l2cap_core.c:430 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 IPv6: ADDRCONF(NETDEV_UP): veth0_vlan: link is not ready worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Allocated by task 5941: __do_kmalloc_node mm/slab.c:3689 [inline] __kmalloc_node+0x4c/0x70 mm/slab.c:3696 kmalloc_node include/linux/slab.h:557 [inline] kvmalloc_node+0x61/0xf0 mm/util.c:423 kvmalloc include/linux/mm.h:577 [inline] kvmalloc_array include/linux/mm.h:595 [inline] __alloc_bucket_spinlocks+0x64/0x160 lib/bucket_locks.c:34 bucket_table_alloc+0x11b/0x440 lib/rhashtable.c:194 rhashtable_init+0x3bc/0x810 lib/rhashtable.c:1069 IPv6: ADDRCONF(NETDEV_UP): vlan0: link is not ready inet_frags_init_net include/net/inet_frag.h:111 [inline] ipv4_frags_init_net+0x17b/0x430 net/ipv4/ip_fragment.c:687 ops_init+0xb3/0x410 net/core/net_namespace.c:129 setup_net+0x2c2/0x720 net/core/net_namespace.c:316 copy_net_ns+0x1f7/0x340 net/core/net_namespace.c:439 create_new_namespaces+0x3f6/0x7b0 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xbd/0x1f0 kernel/nsproxy.c:206 ksys_unshare+0x36c/0x9a0 kernel/fork.c:2542 __do_sys_unshare kernel/fork.c:2610 [inline] __se_sys_unshare kernel/fork.c:2608 [inline] __x64_sys_unshare+0x2d/0x40 kernel/fork.c:2608 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 9233: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 kvfree+0x59/0x60 mm/util.c:452 bucket_table_free+0x80/0x170 lib/rhashtable.c:107 rhashtable_free_and_destroy+0x15e/0x970 lib/rhashtable.c:1167 IPv6: ADDRCONF(NETDEV_UP): vlan1: link is not ready ops_exit_list+0xa5/0x150 net/core/net_namespace.c:153 cleanup_net+0x3b4/0x8b0 net/core/net_namespace.c:554 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 The buggy address belongs to the object at ffff8880966fe340 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 160 bytes inside of 2048-byte region [ffff8880966fe340, ffff8880966feb40) IPv6: ADDRCONF(NETDEV_UP): veth1_vlan: link is not ready The buggy address belongs to the page: page:ffffea000259bf80 count:1 mapcount:0 mapping:ffff88813bff0c40 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffffea0002ce2008 ffffea0002896788 ffff88813bff0c40 raw: 0000000000000000 ffff8880966fe340 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880966fe280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880966fe300: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff8880966fe380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb device veth0_vlan entered promiscuous mode ^ device veth1_vlan entered promiscuous mode ffff8880966fe400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb IPv6: ADDRCONF(NETDEV_UP): macvlan0: link is not ready ffff8880966fe480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================