==================================================================
BUG: KASAN: use-after-free in __mutex_lock+0x801/0x1350
Read of size 8 at addr ffff8881a44940a8 by task khidpd_10000008/8885

CPU: 1 UID: 0 PID: 8885 Comm: khidpd_10000008 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 print_report+0xca/0x240
 kasan_report+0x118/0x150
 __mutex_lock+0x801/0x1350
 l2cap_unregister_user+0x6a/0x1b0
 hidp_session_thread+0x3a1/0x420
 kthread+0x711/0x8a0
 ret_from_fork+0x599/0xb30
 ret_from_fork_asm+0x1a/0x30
 </TASK>

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8881a4495c00 pfn:0x1a4494
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000000000 ffffea0005cd3508 ffff88823c640fc0 0000000000000000
raw: ffff8881a4495c00 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 2, migratetype Unmovable, gfp_mask 0x92cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_NOMEMALLOC), pid 8392, tgid 8392 (syz-executor), ts 196125851202, free_ts 196125876633
 post_alloc_hook+0x23d/0x2a0
 get_page_from_freelist+0x22f6/0x23d0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 alloc_pages_noprof+0xa9/0x190
 stack_depot_save_flags+0x77e/0x850
 kasan_save_track+0x4f/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x3e2/0x700
 kobject_uevent_env+0x28c/0x9f0
 __kobject_del+0xd2/0x330
 kobject_put+0x240/0x570
 net_rx_queue_update_kobjects+0x695/0x740
 netdev_unregister_kobject+0x113/0x450
 unregister_netdevice_many_notify+0x1ddd/0x2340
 vlan_device_event+0x1db4/0x1ef0
page last free pid 8392 tgid 8392 stack trace:
 __free_frozen_pages+0xb99/0xd10
 stack_depot_save_flags+0x43d/0x850
 kasan_save_track+0x4f/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x3e2/0x700
 kobject_uevent_env+0x28c/0x9f0
 __kobject_del+0xd2/0x330
 kobject_put+0x240/0x570
 net_rx_queue_update_kobjects+0x695/0x740
 netdev_unregister_kobject+0x113/0x450
 unregister_netdevice_many_notify+0x1ddd/0x2340
 vlan_device_event+0x1db4/0x1ef0
 notifier_call_chain+0x19d/0x3a0
 unregister_netdevice_many_notify+0x1867/0x2340
 unregister_netdevice_queue+0x317/0x350
 __tun_detach+0x6d9/0x15d0

Memory state around the buggy address:
 ffff8881a4493f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff8881a4494000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff8881a4494080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                                  ^
 ffff8881a4494100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff8881a4494180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
