================================================================== BUG: KASAN: use-after-free in __mutex_waiter_is_first kernel/locking/mutex.c:197 [inline] BUG: KASAN: use-after-free in __mutex_lock_common+0xae8/0x1f38 kernel/locking/mutex.c:681 Read of size 8 at addr ffff0000da504060 by task khidpd_10cf5505/4847 CPU: 1 PID: 4847 Comm: khidpd_10cf5505 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x88/0x218 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:420 kasan_report+0xa8/0x100 mm/kasan/report.c:524 __asan_report_load8_noabort+0x2c/0x38 mm/kasan/report_generic.c:351 __mutex_waiter_is_first kernel/locking/mutex.c:197 [inline] __mutex_lock_common+0xae8/0x1f38 kernel/locking/mutex.c:681 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x38/0x44 kernel/locking/mutex.c:799 l2cap_unregister_user+0x70/0x18c net/bluetooth/l2cap_core.c:1895 hidp_session_thread+0x3d0/0x46c net/bluetooth/hidp/core.c:1305 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 The buggy address belongs to the physical page: page:000000003eb177a1 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11a504 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000000 fffffc00036adb08 ffff00019f756eb0 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000da503f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000da503f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000da504000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff0000da504080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000da504100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================