================================================================== BUG: KASAN: use-after-free in usbhid_power+0x78/0xc0 drivers/hid/usbhid/hid-core.c:1281 Read of size 8 at addr ffff888122118008 by task syz.1.18/407 CPU: 1 PID: 407 Comm: syz.1.18 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x71/0x200 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:420 kasan_report+0x122/0x150 mm/kasan/report.c:524 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:351 usbhid_power+0x78/0xc0 drivers/hid/usbhid/hid-core.c:1281 hid_hw_power include/linux/hid.h:1139 [inline] hidraw_open+0x272/0x920 drivers/hid/hidraw.c:288 chrdev_open+0x593/0x600 fs/char_dev.c:414 do_dentry_open+0x885/0x11f0 fs/open.c:884 vfs_open+0x73/0x80 fs/open.c:1017 do_open fs/namei.c:3633 [inline] path_openat+0x2699/0x2f30 fs/namei.c:3790 do_filp_open+0x1ee/0x420 fs/namei.c:3817 do_sys_openat2+0x15e/0x820 fs/open.c:1343 do_sys_open fs/open.c:1359 [inline] __do_sys_openat fs/open.c:1375 [inline] __se_sys_openat fs/open.c:1370 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1370 x64_sys_call+0x783/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f725bb5ea0e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f725ca69b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f725ca6a6c0 RCX: 00007f725bb5ea0e RDX: 000000000014e000 RSI: 00007f725ca69c00 RDI: ffffffffffffff9c RBP: 00007f725ca69c00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd R13: 00007f725be26038 R14: 00007f725be25fa0 R15: 00007ffc24dc7ee8 The buggy address belongs to the physical page: page:ffffea0004884600 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x122118 flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea0004ac0108 ffff8881f6f3c9d8 0000000000000000 raw: 0000000000000000 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 0x140dc0(GFP_USER|__GFP_COMP|__GFP_ZERO), pid 19, tgid 19 (kworker/0:1), ts 32530412895, free_ts 33249179168 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2673 prep_new_page+0x1c/0x110 mm/page_alloc.c:2680 get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4587 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5931 __alloc_pages_node include/linux/gfp.h:236 [inline] alloc_pages_node include/linux/gfp.h:259 [inline] __kmalloc_large_node+0xa1/0x1c0 mm/slab_common.c:1079 kmalloc_large+0x1b/0xd0 mm/slab_common.c:1098 kmalloc include/linux/slab.h:556 [inline] kzalloc include/linux/slab.h:699 [inline] usbhid_probe+0xa5a/0xff0 drivers/hid/usbhid/hid-core.c:1425 usb_probe_interface+0x621/0xb30 drivers/usb/core/driver.c:397 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2d7/0x9a0 drivers/base/dd.c:639 __driver_probe_device+0x193/0x270 drivers/base/dd.c:808 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:838 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:966 bus_for_each_drv+0x192/0x220 drivers/base/bus.c:429 __device_attach+0x2b0/0x420 drivers/base/dd.c:1038 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1087 bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1581 [inline] free_pcp_prepare mm/page_alloc.c:1655 [inline] free_unref_page_prepare+0x81b/0x820 mm/page_alloc.c:3622 free_unref_page+0x93/0x530 mm/page_alloc.c:3720 free_the_page mm/page_alloc.c:863 [inline] __free_pages+0x67/0x100 mm/page_alloc.c:6021 free_large_kmalloc+0xae/0xf0 mm/slab_common.c:915 kfree+0x8b/0xf0 mm/slab_common.c:984 usbhid_disconnect+0xa7/0xc0 drivers/hid/usbhid/hid-core.c:1470 usb_unbind_interface+0x223/0x8b0 drivers/usb/core/driver.c:459 device_remove drivers/base/dd.c:550 [inline] __device_release_driver drivers/base/dd.c:1283 [inline] device_release_driver_internal+0x4e4/0x7e0 drivers/base/dd.c:1309 device_release_driver+0x19/0x20 drivers/base/dd.c:1332 bus_remove_device+0x2f0/0x350 drivers/base/bus.c:531 device_del+0x63c/0xe50 drivers/base/core.c:3886 usb_disable_device+0x3a8/0x750 drivers/usb/core/message.c:1472 usb_disconnect+0x32d/0x880 drivers/usb/core/hub.c:2339 hub_port_connect drivers/usb/core/hub.c:5433 [inline] hub_port_connect_change drivers/usb/core/hub.c:5734 [inline] port_event drivers/usb/core/hub.c:5898 [inline] hub_event+0x1a66/0x4310 drivers/usb/core/hub.c:5980 process_one_work+0x717/0xc30 kernel/workqueue.c:2302 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449 Memory state around the buggy address: ffff888122117f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888122117f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888122118000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888122118080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888122118100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== general protection fault, probably for non-canonical address 0x51e00fb0000027d: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 407 Comm: syz.1.18 Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:arch_atomic_inc include/linux/instrumented.h:102 [inline] RIP: 0010:atomic_inc include/linux/atomic/atomic-instrumented.h:191 [inline] RIP: 0010:__pm_runtime_resume+0x45/0x90 drivers/base/power/runtime.c:1168 Code: ff e8 ff 3a 89 fe 89 d8 83 e0 04 75 07 e8 d3 36 89 fe eb 1e e8 cc 36 89 fe 49 8d be f8 01 00 00 be 04 00 00 00 e8 2b c6 ce fe 41 ff 86 f8 01 00 00 4d 8d be 14 01 00 00 4c 89 ff e8 74 57 19 RSP: 0018:ffffc90000a97718 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000004 RCX: ffffffff82e83785 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 051e00fb0000027d RBP: ffffc90000a97738 R08: 0000000000000a3c R09: 1ffffffff0f6eefc R10: dffffc0000000000 R11: fffffbfff0f6eefd R12: ffffffff876ee260 R13: 0000000000000000 R14: 051e00fb00000085 R15: dffffc0000000000 FS: 00007f725ca6a6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000002300 CR3: 0000000110004000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pm_runtime_get_sync include/linux/pm_runtime.h:435 [inline] usb_autopm_get_interface+0x20/0x60 drivers/usb/core/driver.c:1827 usbhid_power+0x80/0xc0 drivers/hid/usbhid/hid-core.c:1281 hid_hw_power include/linux/hid.h:1139 [inline] hidraw_open+0x272/0x920 drivers/hid/hidraw.c:288 chrdev_open+0x593/0x600 fs/char_dev.c:414 do_dentry_open+0x885/0x11f0 fs/open.c:884 vfs_open+0x73/0x80 fs/open.c:1017 do_open fs/namei.c:3633 [inline] path_openat+0x2699/0x2f30 fs/namei.c:3790 do_filp_open+0x1ee/0x420 fs/namei.c:3817 do_sys_openat2+0x15e/0x820 fs/open.c:1343 do_sys_open fs/open.c:1359 [inline] __do_sys_openat fs/open.c:1375 [inline] __se_sys_openat fs/open.c:1370 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1370 x64_sys_call+0x783/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f725bb5ea0e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f725ca69b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f725ca6a6c0 RCX: 00007f725bb5ea0e RDX: 000000000014e000 RSI: 00007f725ca69c00 RDI: ffffffffffffff9c RBP: 00007f725ca69c00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd R13: 00007f725be26038 R14: 00007f725be25fa0 R15: 00007ffc24dc7ee8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:arch_atomic_inc include/linux/instrumented.h:102 [inline] RIP: 0010:atomic_inc include/linux/atomic/atomic-instrumented.h:191 [inline] RIP: 0010:__pm_runtime_resume+0x45/0x90 drivers/base/power/runtime.c:1168 Code: ff e8 ff 3a 89 fe 89 d8 83 e0 04 75 07 e8 d3 36 89 fe eb 1e e8 cc 36 89 fe 49 8d be f8 01 00 00 be 04 00 00 00 e8 2b c6 ce fe 41 ff 86 f8 01 00 00 4d 8d be 14 01 00 00 4c 89 ff e8 74 57 19 RSP: 0018:ffffc90000a97718 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000004 RCX: ffffffff82e83785 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 051e00fb0000027d RBP: ffffc90000a97738 R08: 0000000000000a3c R09: 1ffffffff0f6eefc R10: dffffc0000000000 R11: fffffbfff0f6eefd R12: ffffffff876ee260 R13: 0000000000000000 R14: 051e00fb00000085 R15: dffffc0000000000 FS: 00007f725ca6a6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000108b5ef2e000 CR3: 0000000110004000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: ff ljmp (bad) 1: e8 ff 3a 89 fe call 0xfe893b05 6: 89 d8 mov %ebx,%eax 8: 83 e0 04 and $0x4,%eax b: 75 07 jne 0x14 d: e8 d3 36 89 fe call 0xfe8936e5 12: eb 1e jmp 0x32 14: e8 cc 36 89 fe call 0xfe8936e5 19: 49 8d be f8 01 00 00 lea 0x1f8(%r14),%rdi 20: be 04 00 00 00 mov $0x4,%esi 25: e8 2b c6 ce fe call 0xfecec655 * 2a: f0 41 ff 86 f8 01 00 lock incl 0x1f8(%r14) <-- trapping instruction 31: 00 32: 4d 8d be 14 01 00 00 lea 0x114(%r14),%r15 39: 4c 89 ff mov %r15,%rdi 3c: e8 .byte 0xe8 3d: 74 57 je 0x96 3f: 19 .byte 0x19