================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:96 [inline] BUG: KASAN: null-ptr-deref in atomic_long_add_return_acquire include/linux/atomic/atomic-instrumented.h:3297 [inline] BUG: KASAN: null-ptr-deref in rwsem_read_trylock kernel/locking/rwsem.c:250 [inline] BUG: KASAN: null-ptr-deref in __down_read_common kernel/locking/rwsem.c:1247 [inline] BUG: KASAN: null-ptr-deref in __down_read_killable kernel/locking/rwsem.c:1271 [inline] BUG: KASAN: null-ptr-deref in down_read_killable+0x23/0x110 kernel/locking/rwsem.c:1549 Write of size 8 at addr 0000000000000098 by task syz.2.17/490 CPU: 0 UID: 0 PID: 490 Comm: syz.2.17 Not tainted 6.12.38-syzkaller #0 06841a56d95abb514e2559da47bcddd6509eee21 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:94 dump_stack_lvl+0x10c/0x190 lib/dump_stack.c:120 print_report+0x3d/0x70 mm/kasan/report.c:491 kasan_report+0x163/0x1a0 mm/kasan/report.c:601 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x299/0x2a0 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_long_add_return_acquire include/linux/atomic/atomic-instrumented.h:3297 [inline] rwsem_read_trylock kernel/locking/rwsem.c:250 [inline] __down_read_common kernel/locking/rwsem.c:1247 [inline] __down_read_killable kernel/locking/rwsem.c:1271 [inline] down_read_killable+0x23/0x110 kernel/locking/rwsem.c:1549 mmap_read_lock_killable include/linux/mmap_lock.h:153 [inline] do_pagemap_scan fs/proc/task_mmu.c:2766 [inline] do_pagemap_cmd+0x5a8/0xbb0 fs/proc/task_mmu.c:2819 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0x135/0x1b0 fs/ioctl.c:893 __x64_sys_ioctl+0x7f/0xa0 fs/ioctl.c:893 x64_sys_call+0x1878/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x58/0xf0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f00c3d8eb69 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f00c4ba6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f00c3fb5fa0 RCX: 00007f00c3d8eb69 RDX: 0000200000000100 RSI: 00000000c0606610 RDI: 0000000000000004 RBP: 00007f00c3e11df1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f00c3fb5fa0 R15: 00007ffc1f124e88 ================================================================== BUG: kernel NULL pointer dereference, address: 0000000000000098 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 800000011372e067 P4D 800000011372e067 PUD 0 Oops: Oops: 0002 [#1] PREEMPT SMP KASAN PTI CPU: 0 UID: 0 PID: 490 Comm: syz.2.17 Tainted: G B 6.12.38-syzkaller #0 06841a56d95abb514e2559da47bcddd6509eee21 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:arch_atomic64_add_return arch/x86/include/asm/atomic64_64.h:79 [inline] RIP: 0010:raw_atomic64_add_return_acquire include/linux/atomic/atomic-arch-fallback.h:2723 [inline] RIP: 0010:raw_atomic_long_add_return_acquire include/linux/atomic/atomic-long.h:163 [inline] RIP: 0010:atomic_long_add_return_acquire include/linux/atomic/atomic-instrumented.h:3298 [inline] RIP: 0010:rwsem_read_trylock kernel/locking/rwsem.c:250 [inline] RIP: 0010:__down_read_common kernel/locking/rwsem.c:1247 [inline] RIP: 0010:__down_read_killable kernel/locking/rwsem.c:1271 [inline] RIP: 0010:down_read_killable+0x28/0x110 kernel/locking/rwsem.c:1549 Code: 90 90 f3 0f 1e fa 55 48 89 e5 41 57 41 56 41 54 53 48 89 fb 65 ff 05 4f e2 c4 7a be 08 00 00 00 e8 ed 24 8a fc be 00 01 00 00 48 0f c1 33 48 81 c6 00 01 00 00 0f 88 af 00 00 00 48 b8 07 00 RSP: 0018:ffffc900012b7c50 EFLAGS: 00010246 RAX: ffff88811abde700 RBX: 0000000000000098 RCX: ffff88811abde780 RDX: 0000000000000000 RSI: 0000000000000100 RDI: 0000000000000000 RBP: ffffc900012b7c70 R08: ffffffff88231987 R09: 1ffffffff1046330 R10: dffffc0000000000 R11: fffffbfff1046331 R12: 0000200000ffb000 R13: dffffc0000000000 R14: ffffc900012b7d00 R15: 0000000000000000 FS: 00007f00c4ba66c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000098 CR3: 000000011b27e000 CR4: 00000000003526b0 Call Trace: mmap_read_lock_killable include/linux/mmap_lock.h:153 [inline] do_pagemap_scan fs/proc/task_mmu.c:2766 [inline] do_pagemap_cmd+0x5a8/0xbb0 fs/proc/task_mmu.c:2819 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0x135/0x1b0 fs/ioctl.c:893 __x64_sys_ioctl+0x7f/0xa0 fs/ioctl.c:893 x64_sys_call+0x1878/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x58/0xf0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f00c3d8eb69 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f00c4ba6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f00c3fb5fa0 RCX: 00007f00c3d8eb69 RDX: 0000200000000100 RSI: 00000000c0606610 RDI: 0000000000000004 RBP: 00007f00c3e11df1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f00c3fb5fa0 R15: 00007ffc1f124e88 Modules linked in: CR2: 0000000000000098 ---[ end trace 0000000000000000 ]--- RIP: 0010:arch_atomic64_add_return arch/x86/include/asm/atomic64_64.h:79 [inline] RIP: 0010:raw_atomic64_add_return_acquire include/linux/atomic/atomic-arch-fallback.h:2723 [inline] RIP: 0010:raw_atomic_long_add_return_acquire include/linux/atomic/atomic-long.h:163 [inline] RIP: 0010:atomic_long_add_return_acquire include/linux/atomic/atomic-instrumented.h:3298 [inline] RIP: 0010:rwsem_read_trylock kernel/locking/rwsem.c:250 [inline] RIP: 0010:__down_read_common kernel/locking/rwsem.c:1247 [inline] RIP: 0010:__down_read_killable kernel/locking/rwsem.c:1271 [inline] RIP: 0010:down_read_killable+0x28/0x110 kernel/locking/rwsem.c:1549 Code: 90 90 f3 0f 1e fa 55 48 89 e5 41 57 41 56 41 54 53 48 89 fb 65 ff 05 4f e2 c4 7a be 08 00 00 00 e8 ed 24 8a fc be 00 01 00 00 48 0f c1 33 48 81 c6 00 01 00 00 0f 88 af 00 00 00 48 b8 07 00 RSP: 0018:ffffc900012b7c50 EFLAGS: 00010246 RAX: ffff88811abde700 RBX: 0000000000000098 RCX: ffff88811abde780 RDX: 0000000000000000 RSI: 0000000000000100 RDI: 0000000000000000 RBP: ffffc900012b7c70 R08: ffffffff88231987 R09: 1ffffffff1046330 R10: dffffc0000000000 R11: fffffbfff1046331 R12: 0000200000ffb000 R13: dffffc0000000000 R14: ffffc900012b7d00 R15: 0000000000000000 FS: 00007f00c4ba66c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000098 CR3: 000000011b27e000 CR4: 00000000003526b0 ---------------- Code disassembly (best guess): 0: 90 nop 1: 90 nop 2: f3 0f 1e fa endbr64 6: 55 push %rbp 7: 48 89 e5 mov %rsp,%rbp a: 41 57 push %r15 c: 41 56 push %r14 e: 41 54 push %r12 10: 53 push %rbx 11: 48 89 fb mov %rdi,%rbx 14: 65 ff 05 4f e2 c4 7a incl %gs:0x7ac4e24f(%rip) # 0x7ac4e26a 1b: be 08 00 00 00 mov $0x8,%esi 20: e8 ed 24 8a fc call 0xfc8a2512 25: be 00 01 00 00 mov $0x100,%esi * 2a: f0 48 0f c1 33 lock xadd %rsi,(%rbx) <-- trapping instruction 2f: 48 81 c6 00 01 00 00 add $0x100,%rsi 36: 0f 88 af 00 00 00 js 0xeb 3c: 48 rex.W 3d: b8 .byte 0xb8 3e: 07 (bad)