==================================================================
BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:102 [inline]
BUG: KASAN: null-ptr-deref in atomic_inc include/linux/atomic/atomic-instrumented.h:190 [inline]
BUG: KASAN: null-ptr-deref in __pm_runtime_resume+0x45/0x90 drivers/base/power/runtime.c:1168
Write of size 4 at addr 0000000000000228 by task syz.6.17/402
CPU: 0 PID: 402 Comm: syz.6.17 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_report+0x3d/0x60 mm/kasan/report.c:423
kasan_report+0x122/0x150 mm/kasan/report.c:524
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x249/0x2a0 mm/kasan/generic.c:189
__kasan_check_write+0x14/0x20 mm/kasan/shadow.c:37
instrument_atomic_read_write include/linux/instrumented.h:102 [inline]
atomic_inc include/linux/atomic/atomic-instrumented.h:190 [inline]
__pm_runtime_resume+0x45/0x90 drivers/base/power/runtime.c:1168
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:0x7f367ad5eb0e
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:00007f367bce6b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f367bce76c0 RCX: 00007f367ad5eb0e
RDX: 000000000000bb02 RSI: 00007f367bce6c00 RDI: ffffffffffffff9c
RBP: 00007f367bce6c00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd
R13: 00007f367b026038 R14: 00007f367b025fa0 R15: 00007ffe39a19148
==================================================================
BUG: kernel NULL pointer dereference, address: 0000000000000228
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
PGD 1281d1067 P4D 1281d1067 PUD 0
Oops: 0002 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 402 Comm: syz.6.17 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 bf 2e 89 fe 89 d8 83 e0 04 75 07 e8 93 2a 89 fe eb 1e e8 8c 2a 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 34 5b 19
RSP: 0018:ffffc90000ad7718 EFLAGS: 00010246
RAX: ffff888117f30000 RBX: 0000000000000004 RCX: ffff888117f30000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000ad7738 R08: ffffffff87b777e7 R09: 1ffffffff0f6eefc
R10: dffffc0000000000 R11: fffffbfff0f6eefd R12: ffffffff876ee260
R13: 0000000000000000 R14: 0000000000000030 R15: dffffc0000000000
FS: 00007f367bce76c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000228 CR3: 000000012252a000 CR4: 00000000003506b0
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:0x7f367ad5eb0e
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:00007f367bce6b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f367bce76c0 RCX: 00007f367ad5eb0e
RDX: 000000000000bb02 RSI: 00007f367bce6c00 RDI: ffffffffffffff9c
RBP: 00007f367bce6c00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd
R13: 00007f367b026038 R14: 00007f367b025fa0 R15: 00007ffe39a19148
Modules linked in:
CR2: 0000000000000228
---[ 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 bf 2e 89 fe 89 d8 83 e0 04 75 07 e8 93 2a 89 fe eb 1e e8 8c 2a 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 34 5b 19
RSP: 0018:ffffc90000ad7718 EFLAGS: 00010246
RAX: ffff888117f30000 RBX: 0000000000000004 RCX: ffff888117f30000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000ad7738 R08: ffffffff87b777e7 R09: 1ffffffff0f6eefc
R10: dffffc0000000000 R11: fffffbfff0f6eefd R12: ffffffff876ee260
R13: 0000000000000000 R14: 0000000000000030 R15: dffffc0000000000
FS: 00007f367bce76c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000228 CR3: 000000012252a000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: ff ljmp (bad)
1: e8 bf 2e 89 fe call 0xfe892ec5
6: 89 d8 mov %ebx,%eax
8: 83 e0 04 and $0x4,%eax
b: 75 07 jne 0x14
d: e8 93 2a 89 fe call 0xfe892aa5
12: eb 1e jmp 0x32
14: e8 8c 2a 89 fe call 0xfe892aa5
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: 34 5b xor $0x5b,%al
3f: 19 .byte 0x19