================================================================== 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-executor/297 CPU: 0 UID: 0 PID: 297 Comm: syz-executor Not tainted syzkaller #0 a71c4b0606eba12e61ed57fe57dbd87f01213bd4 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+0x1fd/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:0x7fd4cf5d56b3 Code: c7 c0 e8 ff ff ff 64 c7 00 16 00 00 00 31 c0 eb 9e e8 01 6a fd ff 90 b8 ff ff ff 7f 48 39 c2 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 c7 c2 e8 ff ff ff f7 d8 RSP: 002b:00007fff6ef5f4c8 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 0000555589c0b960 RCX: 00007fd4cf5d56b3 RDX: 0000000000008000 RSI: 0000555589c0b990 RDI: 0000000000000006 RBP: 0000555589c0b990 R08: 00007fd4cf7ffe20 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000293 R12: 0000555589c0b964 R13: ffffffffffffffe8 R14: 0000000000000016 R15: 00007fff6ef62860 ================================================================== BUG: kernel NULL pointer dereference, address: 0000000000000098 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 800000010ffcb067 P4D 800000010ffcb067 PUD 0 Oops: Oops: 0002 [#1] PREEMPT SMP KASAN PTI CPU: 0 UID: 0 PID: 297 Comm: syz-executor Tainted: G B syzkaller #0 a71c4b0606eba12e61ed57fe57dbd87f01213bd4 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 6c 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:ffffc90009aafa60 EFLAGS: 00010246 RAX: ffff888102780000 RBX: 0000000000000098 RCX: ffff888102780000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90009aafb10 R08: ffffffff893e4967 R09: 1ffffffff127c92c R10: dffffc0000000000 R11: fffffbfff127c92d R12: 1ffff92001355f50 R13: dffffc0000000000 R14: ffffc90009aafb40 R15: 0000000000000100 FS: 0000555589be8500(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000098 CR3: 0000000126d6a000 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+0x1fd/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:0x7fd4cf5d56b3 Code: c7 c0 e8 ff ff ff 64 c7 00 16 00 00 00 31 c0 eb 9e e8 01 6a fd ff 90 b8 ff ff ff 7f 48 39 c2 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 c7 c2 e8 ff ff ff f7 d8 RSP: 002b:00007fff6ef5f4c8 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 0000555589c0b960 RCX: 00007fd4cf5d56b3 RDX: 0000000000008000 RSI: 0000555589c0b990 RDI: 0000000000000006 RBP: 0000555589c0b990 R08: 00007fd4cf7ffe20 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000293 R12: 0000555589c0b964 R13: ffffffffffffffe8 R14: 0000000000000016 R15: 00007fff6ef62860 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 6c 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:ffffc90009aafa60 EFLAGS: 00010246 RAX: ffff888102780000 RBX: 0000000000000098 RCX: ffff888102780000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90009aafb10 R08: ffffffff893e4967 R09: 1ffffffff127c92c R10: dffffc0000000000 R11: fffffbfff127c92d R12: 1ffff92001355f50 R13: dffffc0000000000 R14: ffffc90009aafb40 R15: 0000000000000100 FS: 0000555589be8500(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000098 CR3: 0000000126d6a000 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 6c 28 7b 00 call 0x7b288b 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