================================================================== BUG: KASAN: use-after-free in __lock_acquire+0x37c2/0x4ec0 kernel/locking/lockdep.c:3290 Read of size 8 at addr ffff8801ba6cda38 by task syz-executor4/11920 CPU: 0 PID: 11920 Comm: syz-executor4 Not tainted 4.19.0-rc4+ #249 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+0x1c4/0x2b4 lib/dump_stack.c:113 print_address_description.cold.8+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.9+0x242/0x309 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __lock_acquire+0x37c2/0x4ec0 kernel/locking/lockdep.c:3290 lock_acquire+0x1ed/0x520 kernel/locking/lockdep.c:3900 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x99/0xd0 kernel/locking/spinlock.c:152 destroy_async_on_interface+0x155/0x560 drivers/usb/core/devio.c:653 driver_disconnect+0xea/0x150 drivers/usb/core/devio.c:699 usb_unbind_interface+0x25a/0xbe0 drivers/usb/core/driver.c:423 __device_release_driver drivers/base/dd.c:966 [inline] device_release_driver_internal+0x651/0x750 drivers/base/dd.c:999 device_release_driver+0x19/0x20 drivers/base/dd.c:1024 usb_driver_release_interface+0x110/0x190 drivers/usb/core/driver.c:604 proc_disconnect_claim+0x297/0x440 drivers/usb/core/devio.c:2281 usbdev_do_ioctl+0x17e3/0x3b50 drivers/usb/core/devio.c:2523 usbdev_ioctl+0x25/0x30 drivers/usb/core/devio.c:2551 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:685 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:702 __do_sys_ioctl fs/ioctl.c:709 [inline] __se_sys_ioctl fs/ioctl.c:707 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:707 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457679 Code: 1d b4 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 eb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb9b62a3c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fb9b62a46d4 RCX: 0000000000457679 RDX: 0000000020000080 RSI: 000000008108551b RDI: 0000000000000003 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004cf508 R14: 00000000004bf7f2 R15: 0000000000000000 Allocated by task 23: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 __do_kmalloc_node mm/slab.c:3682 [inline] __kmalloc_node_track_caller+0x47/0x70 mm/slab.c:3696 __kmalloc_reserve.isra.39+0x41/0xe0 net/core/skbuff.c:137 __alloc_skb+0x155/0x770 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:995 [inline] alloc_uevent_skb+0x86/0x220 lib/kobject_uevent.c:288 uevent_net_broadcast_tagged lib/kobject_uevent.c:349 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:409 [inline] kobject_uevent_env+0x1013/0x1360 lib/kobject_uevent.c:587 kobject_uevent+0x1f/0x30 lib/kobject_uevent.c:636 device_del+0x6c9/0xb70 drivers/base/core.c:2091 wiphy_unregister+0x3a1/0x1380 net/wireless/core.c:964 ieee80211_unregister_hw+0x1fa/0x280 net/mac80211/main.c:1258 mac80211_hwsim_del_radio+0x2bb/0x400 drivers/net/wireless/mac80211_hwsim.c:2997 hwsim_exit_net+0x56d/0xb1e drivers/net/wireless/mac80211_hwsim.c:3664 ops_exit_list.isra.7+0xb0/0x160 net/core/net_namespace.c:153 cleanup_net+0x555/0xb10 net/core/net_namespace.c:551 process_one_work+0xc90/0x1b90 kernel/workqueue.c:2153 worker_thread+0x17f/0x1390 kernel/workqueue.c:2296 kthread+0x35a/0x420 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413 Freed by task 23: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kfree+0xcf/0x230 mm/slab.c:3813 skb_free_head+0x99/0xc0 net/core/skbuff.c:550 skb_release_data+0x6a4/0x880 net/core/skbuff.c:570 skb_release_all+0x4a/0x60 net/core/skbuff.c:627 __kfree_skb net/core/skbuff.c:641 [inline] consume_skb+0x1ae/0x570 net/core/skbuff.c:701 netlink_broadcast_filtered+0x6e6/0x1680 net/netlink/af_netlink.c:1519 netlink_broadcast+0x3a/0x50 net/netlink/af_netlink.c:1541 uevent_net_broadcast_tagged lib/kobject_uevent.c:370 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:409 [inline] kobject_uevent_env+0x10f5/0x1360 lib/kobject_uevent.c:587 kobject_uevent+0x1f/0x30 lib/kobject_uevent.c:636 device_del+0x6c9/0xb70 drivers/base/core.c:2091 wiphy_unregister+0x3a1/0x1380 net/wireless/core.c:964 ieee80211_unregister_hw+0x1fa/0x280 net/mac80211/main.c:1258 mac80211_hwsim_del_radio+0x2bb/0x400 drivers/net/wireless/mac80211_hwsim.c:2997 hwsim_exit_net+0x56d/0xb1e drivers/net/wireless/mac80211_hwsim.c:3664 ops_exit_list.isra.7+0xb0/0x160 net/core/net_namespace.c:153 cleanup_net+0x555/0xb10 net/core/net_namespace.c:551 process_one_work+0xc90/0x1b90 kernel/workqueue.c:2153 worker_thread+0x17f/0x1390 kernel/workqueue.c:2296 kthread+0x35a/0x420 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413 The buggy address belongs to the object at ffff8801ba6cda00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 56 bytes inside of 512-byte region [ffff8801ba6cda00, ffff8801ba6cdc00) The buggy address belongs to the page: page:ffffea0006e9b340 count:1 mapcount:0 mapping:ffff8801da800940 index:0x0 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea0006e757c8 ffffea0006f70808 ffff8801da800940 raw: 0000000000000000 ffff8801ba6cd000 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801ba6cd900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801ba6cd980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801ba6cda00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8801ba6cda80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801ba6cdb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================