==================================================================
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+0x84/0x5a0 kernel/locking/rwsem.c:259
Write of size 8 at addr 0000000000000098 by task syz.5.537/1530
CPU: 0 UID: 0 PID: 1530 Comm: syz.5.537 Not tainted syzkaller #0 7ee8d26094bdb245bea673695ed8263c8c6d4999
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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_long_add_return_acquire include/linux/atomic/atomic-instrumented.h:3297 [inline]
rwsem_read_trylock+0x84/0x5a0 kernel/locking/rwsem.c:259
__down_read_common kernel/locking/rwsem.c:1316 [inline]
__down_read_killable kernel/locking/rwsem.c:1340 [inline]
down_read_killable+0x7f/0x100 kernel/locking/rwsem.c:1630
mmap_read_lock_killable include/linux/mmap_lock.h:204 [inline]
proc_map_files_readdir+0x360/0xa00 fs/proc/base.c:2427
iterate_dir+0x1fa/0x5c0 fs/readdir.c:108
__do_sys_getdents64 fs/readdir.c:407 [inline]
__se_sys_getdents64+0xf6/0x250 fs/readdir.c:392
__x64_sys_getdents64+0x7f/0xa0 fs/readdir.c:392
x64_sys_call+0x27d0/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:218
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:0x7f291dfa9519
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f291edf9028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007f291e235fa0 RCX: 00007f291dfa9519
RDX: 00000000000000bf RSI: 0000200000000200 RDI: 0000000000000004
RBP: 00007f291e039136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f291e236038 R14: 00007f291e235fa0 R15: 00007ffe976f6b08
==================================================================
BUG: kernel NULL pointer dereference, address: 0000000000000098
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
PGD 800000011349c067 P4D 800000011349c067 PUD 0
Oops: Oops: 0002 [#1] PREEMPT SMP KASAN PTI
CPU: 0 UID: 0 PID: 1530 Comm: syz.5.537 Tainted: G B syzkaller #0 7ee8d26094bdb245bea673695ed8263c8c6d4999
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
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+0x8f/0x5a0 kernel/locking/rwsem.c:259
Code: f3 f3 f3 4b 89 04 2c 43 c6 44 2c 04 04 c7 44 24 40 00 00 00 00 be 08 00 00 00 e8 1c 28 7b 00 41 bf 00 01 00 00 48 89 5c 24 18 4c 0f c1 3b 49 81 c7 00 01 00 00 4c 89 f3 48 c1 eb 03 42 80 3c
RSP: 0018:ffffc9000b8efa60 EFLAGS: 00010246
RAX: ffff888113bc2700 RBX: 0000000000000098 RCX: 0000000000080000
RDX: ffffc9000f246000 RSI: 000000000006dff5 RDI: 000000000006dff6
RBP: ffffc9000b8efb10 R08: ffffffff893e4967 R09: 1ffffffff127c92c
R10: dffffc0000000000 R11: fffffbfff127c92d R12: 1ffff9200171df50
R13: dffffc0000000000 R14: ffffc9000b8efb40 R15: 0000000000000100
FS: 00007f291edf96c0(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000098 CR3: 000000013bbe0000 CR4: 00000000003526b0
Call Trace:
__down_read_common kernel/locking/rwsem.c:1316 [inline]
__down_read_killable kernel/locking/rwsem.c:1340 [inline]
down_read_killable+0x7f/0x100 kernel/locking/rwsem.c:1630
mmap_read_lock_killable include/linux/mmap_lock.h:204 [inline]
proc_map_files_readdir+0x360/0xa00 fs/proc/base.c:2427
iterate_dir+0x1fa/0x5c0 fs/readdir.c:108
__do_sys_getdents64 fs/readdir.c:407 [inline]
__se_sys_getdents64+0xf6/0x250 fs/readdir.c:392
__x64_sys_getdents64+0x7f/0xa0 fs/readdir.c:392
x64_sys_call+0x27d0/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:218
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:0x7f291dfa9519
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f291edf9028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007f291e235fa0 RCX: 00007f291dfa9519
RDX: 00000000000000bf RSI: 0000200000000200 RDI: 0000000000000004
RBP: 00007f291e039136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f291e236038 R14: 00007f291e235fa0 R15: 00007ffe976f6b08
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+0x8f/0x5a0 kernel/locking/rwsem.c:259
Code: f3 f3 f3 4b 89 04 2c 43 c6 44 2c 04 04 c7 44 24 40 00 00 00 00 be 08 00 00 00 e8 1c 28 7b 00 41 bf 00 01 00 00 48 89 5c 24 18 4c 0f c1 3b 49 81 c7 00 01 00 00 4c 89 f3 48 c1 eb 03 42 80 3c
RSP: 0018:ffffc9000b8efa60 EFLAGS: 00010246
RAX: ffff888113bc2700 RBX: 0000000000000098 RCX: 0000000000080000
RDX: ffffc9000f246000 RSI: 000000000006dff5 RDI: 000000000006dff6
RBP: ffffc9000b8efb10 R08: ffffffff893e4967 R09: 1ffffffff127c92c
R10: dffffc0000000000 R11: fffffbfff127c92d R12: 1ffff9200171df50
R13: dffffc0000000000 R14: ffffc9000b8efb40 R15: 0000000000000100
FS: 00007f291edf96c0(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000098 CR3: 000000013bbe0000 CR4: 00000000003526b0
----------------
Code disassembly (best guess):
0: f3 f3 f3 4b 89 04 2c repz repz xrelease mov %rax,(%r12,%r13,1)
7: 43 c6 44 2c 04 04 movb $0x4,0x4(%r12,%r13,1)
d: c7 44 24 40 00 00 00 movl $0x0,0x40(%rsp)
14: 00
15: be 08 00 00 00 mov $0x8,%esi
1a: e8 1c 28 7b 00 call 0x7b283b
1f: 41 bf 00 01 00 00 mov $0x100,%r15d
25: 48 89 5c 24 18 mov %rbx,0x18(%rsp)
* 2a: f0 4c 0f c1 3b lock xadd %r15,(%rbx) <-- trapping instruction
2f: 49 81 c7 00 01 00 00 add $0x100,%r15
36: 4c 89 f3 mov %r14,%rbx
39: 48 c1 eb 03 shr $0x3,%rbx
3d: 42 rex.X
3e: 80 .byte 0x80
3f: 3c .byte 0x3c