================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:96 [inline] BUG: KASAN: null-ptr-deref in atomic_inc include/linux/atomic/atomic-instrumented.h:435 [inline] BUG: KASAN: null-ptr-deref in __pm_runtime_resume+0x49/0xa0 drivers/base/power/runtime.c:1177 Write of size 4 at addr 0000000000000230 by task syz.2.338/1375 CPU: 1 UID: 0 PID: 1375 Comm: syz.2.338 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_report+0x3d/0x70 mm/kasan/report.c:484 kasan_report+0x162/0x1a0 mm/kasan/report.c:594 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x25a/0x2b0 mm/kasan/generic.c:189 __kasan_check_write+0x18/0x20 mm/kasan/shadow.c:37 instrument_atomic_read_write include/linux/instrumented.h:96 [inline] atomic_inc include/linux/atomic/atomic-instrumented.h:435 [inline] __pm_runtime_resume+0x49/0xa0 drivers/base/power/runtime.c:1177 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:0x7f12a115e90e 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:00007f12a20d1b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f12a20d26c0 RCX: 00007f12a115e90e RDX: 0000000000040400 RSI: 00007f12a20d1c00 RDI: ffffffffffffff9c RBP: 00007f12a20d1c00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd R13: 00007f12a1426038 R14: 00007f12a1425fa0 R15: 00007fff5bf21038 ================================================================== BUG: kernel NULL pointer dereference, address: 0000000000000230 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 80000001320d9067 P4D 80000001320d9067 PUD 0 Oops: Oops: 0002 [#1] PREEMPT SMP KASAN PTI CPU: 1 UID: 0 PID: 1375 Comm: syz.2.338 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:ffffc9000108f6a8 EFLAGS: 00010246 RAX: ffff8881170e4c00 RBX: 0000000000000004 RCX: ffff8881170e4c00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000108f6c8 R08: ffffffff88bb7947 R09: 1ffffffff1176f28 R10: dffffc0000000000 R11: fffffbfff1176f29 R12: 0000000000000000 R13: ffffffff8680c8e0 R14: 0000000000000050 R15: dffffc0000000000 FS: 00007f12a20d26c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000230 CR3: 000000011dc4c000 CR4: 00000000003526b0 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:0x7f12a115e90e 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:00007f12a20d1b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f12a20d26c0 RCX: 00007f12a115e90e RDX: 0000000000040400 RSI: 00007f12a20d1c00 RDI: ffffffffffffff9c RBP: 00007f12a20d1c00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd R13: 00007f12a1426038 R14: 00007f12a1425fa0 R15: 00007fff5bf21038 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:ffffc9000108f6a8 EFLAGS: 00010246 RAX: ffff8881170e4c00 RBX: 0000000000000004 RCX: ffff8881170e4c00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000108f6c8 R08: ffffffff88bb7947 R09: 1ffffffff1176f28 R10: dffffc0000000000 R11: fffffbfff1176f29 R12: 0000000000000000 R13: ffffffff8680c8e0 R14: 0000000000000050 R15: dffffc0000000000 FS: 00007f12a20d26c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000230 CR3: 000000011dc4c000 CR4: 00000000003526b0 ---------------- 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