================================================================== BUG: KASAN: use-after-free in usbhid_power+0x7c/0xd0 drivers/hid/usbhid/hid-core.c:1284 Read of size 8 at addr ffff8881176b0008 by task syz.0.598/2242 CPU: 0 UID: 0 PID: 2242 Comm: syz.0.598 Not tainted syzkaller #0 02f2c9a1947d185dcc234937001f7d1e6f97c77a Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:94 dump_stack_lvl+0x140/0x1c0 lib/dump_stack.c:120 print_address_description+0x71/0x210 mm/kasan/report.c:377 print_report+0x4a/0x70 mm/kasan/report.c:481 kasan_report+0x162/0x1a0 mm/kasan/report.c:594 __asan_report_load8_noabort+0x18/0x20 mm/kasan/report_generic.c:381 usbhid_power+0x7c/0xd0 drivers/hid/usbhid/hid-core.c:1284 hid_hw_power include/linux/hid.h:1174 [inline] hidraw_open+0x257/0x960 drivers/hid/hidraw.c:302 chrdev_open+0x4e8/0x610 fs/char_dev.c:414 do_dentry_open+0x97f/0x1510 fs/open.c:960 vfs_open+0x86/0x240 fs/open.c:1092 do_open fs/namei.c:3782 [inline] path_openat+0x2c49/0x35a0 fs/namei.c:3941 do_filp_open+0x1f2/0x440 fs/namei.c:3968 do_sys_openat2+0x134/0x1d0 fs/open.c:1440 do_sys_open fs/open.c:1455 [inline] __do_sys_openat fs/open.c:1471 [inline] __se_sys_openat fs/open.c:1466 [inline] __x64_sys_openat+0x13a/0x170 fs/open.c:1466 x64_sys_call+0xe69/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:47 [inline] do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f69a555e90e 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:00007f69a64d6b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f69a64d76c0 RCX: 00007f69a555e90e RDX: 000000000014a002 RSI: 00007f69a64d6c00 RDI: ffffffffffffff9c RBP: 00007f69a64d6c00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd R13: 00007f69a5826128 R14: 00007f69a5826090 R15: 00007ffde5d172d8 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x7a1ba pfn:0x1176b0 flags: 0x4000000000000000(zone=1) page_type: f0(buddy) raw: 4000000000000000 ffffea0004bf1508 ffffea0004e37608 0000000000000000 raw: 000000000007a1ba 0000000000000002 00000000f0000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Unmovable, gfp_mask 0x152c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 2086, tgid 2085 (syz.3.547), ts 105337579292, free_ts 105523365183 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook+0x37d/0x3b0 mm/page_alloc.c:1863 prep_new_page+0x2d/0x180 mm/page_alloc.c:1871 get_page_from_freelist+0x4aea/0x4ba0 mm/page_alloc.c:3948 __alloc_pages_noprof+0x35a/0x7e0 mm/page_alloc.c:5315 __folio_alloc_noprof+0x14/0x80 mm/page_alloc.c:5348 __folio_alloc_node_noprof include/linux/gfp.h:284 [inline] folio_alloc_noprof include/linux/gfp.h:326 [inline] filemap_alloc_folio_noprof include/linux/pagemap.h:682 [inline] ractl_alloc_folio+0xba/0x220 mm/readahead.c:217 page_cache_ra_unbounded+0x3bd/0xea0 mm/readahead.c:303 do_page_cache_ra mm/readahead.c:368 [inline] page_cache_ra_order+0xd30/0x11b0 mm/readahead.c:594 page_cache_async_ra+0x539/0x930 mm/readahead.c:763 do_async_mmap_readahead mm/filemap.c:3463 [inline] filemap_fault+0x51d/0x1ad0 mm/filemap.c:3563 __do_fault mm/memory.c:5009 [inline] do_cow_fault mm/memory.c:5491 [inline] do_fault mm/memory.c:5597 [inline] do_pte_missing+0x1f46/0x4440 mm/memory.c:4069 handle_pte_fault mm/memory.c:5940 [inline] __handle_mm_fault mm/memory.c:6083 [inline] handle_mm_fault+0x1189/0x1ba0 mm/memory.c:6251 faultin_page mm/gup.c:1207 [inline] __get_user_pages+0x114b/0x22d0 mm/gup.c:1508 populate_vma_page_range mm/gup.c:1946 [inline] __mm_populate+0x300/0x440 mm/gup.c:2049 do_mlock+0x7f3/0xa10 mm/mlock.c:657 __do_sys_mlock mm/mlock.c:665 [inline] __se_sys_mlock mm/mlock.c:663 [inline] __x64_sys_mlock+0x64/0x80 mm/mlock.c:663 page last free pid 2085 tgid 2085 stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1390 [inline] free_unref_folios+0xd36/0x16a0 mm/page_alloc.c:2935 folios_put_refs+0x73f/0x860 mm/swap.c:1062 folios_put include/linux/mm.h:1648 [inline] __folio_batch_release+0xac/0x100 mm/swap.c:1122 folio_batch_release include/linux/pagevec.h:101 [inline] truncate_inode_pages_range+0x3c9/0xbb0 mm/truncate.c:379 truncate_inode_pages+0x28/0x40 mm/truncate.c:459 kill_bdev block/bdev.c:92 [inline] blkdev_flush_mapping+0x10e/0x290 block/bdev.c:693 blkdev_put_whole block/bdev.c:700 [inline] bdev_release+0x462/0x700 block/bdev.c:1125 blkdev_release+0x19/0x30 block/fops.c:635 __fput+0x20b/0xa30 fs/file_table.c:447 ____fput+0x20/0x30 fs/file_table.c:475 task_work_run+0x1e8/0x260 kernel/task_work.c:246 exit_task_work include/linux/task_work.h:43 [inline] do_exit+0xa46/0x2850 kernel/exit.c:955 do_group_exit+0x21f/0x2f0 kernel/exit.c:1098 __do_sys_exit_group kernel/exit.c:1109 [inline] __se_sys_exit_group kernel/exit.c:1107 [inline] __x64_sys_exit_group+0x43/0x50 kernel/exit.c:1107 x64_sys_call+0x2ed2/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:232 do_syscall_x64 arch/x86/entry/common.c:47 [inline] do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78 Memory state around the buggy address: ffff8881176aff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881176aff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881176b0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881176b0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881176b0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== BUG: kernel NULL pointer dereference, address: 0000000000000230 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 8000000102bdf067 P4D 8000000102bdf067 PUD 0 Oops: Oops: 0002 [#1] PREEMPT SMP KASAN PTI CPU: 0 UID: 0 PID: 2242 Comm: syz.0.598 Tainted: G B syzkaller #0 02f2c9a1947d185dcc234937001f7d1e6f97c77a Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:arch_atomic_inc include/linux/instrumented.h:96 [inline] RIP: 0010:raw_atomic_inc include/linux/atomic/atomic-arch-fallback.h:992 [inline] RIP: 0010:atomic_inc include/linux/atomic/atomic-instrumented.h:436 [inline] RIP: 0010:__pm_runtime_resume+0x49/0xa0 drivers/base/power/runtime.c:1177 Code: ff e8 9b f9 3f fe 89 d8 83 e0 04 75 07 e8 4f f5 3f fe eb 1e e8 48 f5 3f fe 49 8d be e0 01 00 00 be 04 00 00 00 e8 f7 d6 98 fe 41 ff 86 e0 01 00 00 4d 8d be 14 01 00 00 4c 89 ff e8 90 3f 5f RSP: 0018:ffffc9000ea5f6a8 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000004 RCX: ffffffff83477c89 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000230 RBP: ffffc9000ea5f6c8 R08: 0000000000000234 R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff1176f29 R12: 0000000000000000 R13: ffffffff8680c8e0 R14: 0000000000000050 R15: dffffc0000000000 FS: 00007f69a64d76c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000230 CR3: 000000013d0c8000 CR4: 00000000003526b0 DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000002 DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: pm_runtime_resume_and_get include/linux/pm_runtime.h:436 [inline] usb_autopm_get_interface+0x25/0xf0 drivers/usb/core/driver.c:1888 usbhid_power+0x84/0xd0 drivers/hid/usbhid/hid-core.c:1284 hid_hw_power include/linux/hid.h:1174 [inline] hidraw_open+0x257/0x960 drivers/hid/hidraw.c:302 chrdev_open+0x4e8/0x610 fs/char_dev.c:414 do_dentry_open+0x97f/0x1510 fs/open.c:960 vfs_open+0x86/0x240 fs/open.c:1092 do_open fs/namei.c:3782 [inline] path_openat+0x2c49/0x35a0 fs/namei.c:3941 do_filp_open+0x1f2/0x440 fs/namei.c:3968 do_sys_openat2+0x134/0x1d0 fs/open.c:1440 do_sys_open fs/open.c:1455 [inline] __do_sys_openat fs/open.c:1471 [inline] __se_sys_openat fs/open.c:1466 [inline] __x64_sys_openat+0x13a/0x170 fs/open.c:1466 x64_sys_call+0xe69/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:47 [inline] do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f69a555e90e 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:00007f69a64d6b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f69a64d76c0 RCX: 00007f69a555e90e RDX: 000000000014a002 RSI: 00007f69a64d6c00 RDI: ffffffffffffff9c RBP: 00007f69a64d6c00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd R13: 00007f69a5826128 R14: 00007f69a5826090 R15: 00007ffde5d172d8 Modules linked in: CR2: 0000000000000230 ---[ end trace 0000000000000000 ]--- RIP: 0010:arch_atomic_inc include/linux/instrumented.h:96 [inline] RIP: 0010:raw_atomic_inc include/linux/atomic/atomic-arch-fallback.h:992 [inline] RIP: 0010:atomic_inc include/linux/atomic/atomic-instrumented.h:436 [inline] RIP: 0010:__pm_runtime_resume+0x49/0xa0 drivers/base/power/runtime.c:1177 Code: ff e8 9b f9 3f fe 89 d8 83 e0 04 75 07 e8 4f f5 3f fe eb 1e e8 48 f5 3f fe 49 8d be e0 01 00 00 be 04 00 00 00 e8 f7 d6 98 fe 41 ff 86 e0 01 00 00 4d 8d be 14 01 00 00 4c 89 ff e8 90 3f 5f RSP: 0018:ffffc9000ea5f6a8 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000004 RCX: ffffffff83477c89 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000230 RBP: ffffc9000ea5f6c8 R08: 0000000000000234 R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff1176f29 R12: 0000000000000000 R13: ffffffff8680c8e0 R14: 0000000000000050 R15: dffffc0000000000 FS: 00007f69a64d76c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000230 CR3: 000000013d0c8000 CR4: 00000000003526b0 DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000002 DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: ff ljmp (bad) 1: e8 9b f9 3f fe call 0xfe3ff9a1 6: 89 d8 mov %ebx,%eax 8: 83 e0 04 and $0x4,%eax b: 75 07 jne 0x14 d: e8 4f f5 3f fe call 0xfe3ff561 12: eb 1e jmp 0x32 14: e8 48 f5 3f fe call 0xfe3ff561 19: 49 8d be e0 01 00 00 lea 0x1e0(%r14),%rdi 20: be 04 00 00 00 mov $0x4,%esi 25: e8 f7 d6 98 fe call 0xfe98d721 * 2a: f0 41 ff 86 e0 01 00 lock incl 0x1e0(%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: 90 nop 3e: 3f (bad) 3f: 5f pop %rdi