================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:101 [inline] BUG: KASAN: null-ptr-deref in atomic_inc_return include/asm-generic/atomic-instrumented.h:250 [inline] BUG: KASAN: null-ptr-deref in ihold+0x20/0x60 fs/inode.c:423 Write of size 4 at addr 0000000000000170 by task syz-executor.0/4299 CPU: 1 PID: 4299 Comm: syz-executor.0 Not tainted 5.10.194-syzkaller-00508-ga27512601c2d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x1e2/0x24b lib/dump_stack.c:118 __kasan_report mm/kasan/report.c:439 [inline] kasan_report+0x167/0x1c0 mm/kasan/report.c:452 kasan_check_range+0x293/0x2a0 mm/kasan/generic.c:189 __kasan_check_write+0x14/0x20 mm/kasan/shadow.c:37 instrument_atomic_read_write include/linux/instrumented.h:101 [inline] atomic_inc_return include/asm-generic/atomic-instrumented.h:250 [inline] ihold+0x20/0x60 fs/inode.c:423 backing_data_changed+0x1d9/0x4f0 fs/fuse/dir.c:193 fuse_dentry_revalidate+0x826/0xe70 fs/fuse/dir.c:302 d_revalidate fs/namei.c:780 [inline] lookup_dcache fs/namei.c:1505 [inline] __lookup_hash+0x1b3/0x290 fs/namei.c:1526 do_renameat2+0x624/0x1130 fs/namei.c:4565 __do_sys_rename fs/namei.c:4656 [inline] __se_sys_rename fs/namei.c:4654 [inline] __x64_sys_rename+0x86/0x90 fs/namei.c:4654 do_syscall_64+0x34/0x70 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f75ef59aae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f75ee31d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f75ef6b9f80 RCX: 00007f75ef59aae9 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000020000100 RBP: 00007f75ef5e647a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f75ef6b9f80 R15: 00007ffdb3136fa8 ================================================================== BUG: kernel NULL pointer dereference, address: 0000000000000170 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 111ab4067 P4D 111ab4067 PUD 1114bd067 PMD 0 Oops: 0002 [#1] PREEMPT SMP KASAN CPU: 1 PID: 4299 Comm: syz-executor.0 Tainted: G B 5.10.194-syzkaller-00508-ga27512601c2d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 RIP: 0010:arch_atomic_inc_return include/linux/atomic-arch-fallback.h:286 [inline] RIP: 0010:atomic_inc_return include/asm-generic/atomic-instrumented.h:251 [inline] RIP: 0010:ihold+0x25/0x60 fs/inode.c:423 Code: 00 00 00 00 00 55 48 89 e5 41 56 53 49 89 fe e8 21 81 b3 ff 49 8d be 70 01 00 00 be 04 00 00 00 e8 90 d7 f0 ff bb 01 00 00 00 41 0f c1 9e 70 01 00 00 ff c3 bf 02 00 00 00 89 de e8 a4 84 b3 RSP: 0018:ffffc90000aa78c0 EFLAGS: 00010246 RAX: ffff888111de3b00 RBX: 0000000000000001 RCX: 0000000000040000 RDX: ffffc900019ce000 RSI: 0000000000000286 RDI: 00000000000069f1 RBP: ffffc90000aa78d0 R08: ffffffff813e2e1b R09: 0000000000000003 R10: fffffbfff0e10048 R11: dffffc0000000001 R12: ffffc90000aa7960 R13: 1ffff92000154f24 R14: 0000000000000000 R15: ffff888172059f80 FS: 00007f75ee31d6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000170 CR3: 000000016132e000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: backing_data_changed+0x1d9/0x4f0 fs/fuse/dir.c:193 fuse_dentry_revalidate+0x826/0xe70 fs/fuse/dir.c:302 d_revalidate fs/namei.c:780 [inline] lookup_dcache fs/namei.c:1505 [inline] __lookup_hash+0x1b3/0x290 fs/namei.c:1526 do_renameat2+0x624/0x1130 fs/namei.c:4565 __do_sys_rename fs/namei.c:4656 [inline] __se_sys_rename fs/namei.c:4654 [inline] __x64_sys_rename+0x86/0x90 fs/namei.c:4654 do_syscall_64+0x34/0x70 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f75ef59aae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f75ee31d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f75ef6b9f80 RCX: 00007f75ef59aae9 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000020000100 RBP: 00007f75ef5e647a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f75ef6b9f80 R15: 00007ffdb3136fa8 Modules linked in: CR2: 0000000000000170 ---[ end trace 4dcc8eb9a35a4cc1 ]--- RIP: 0010:arch_atomic_inc_return include/linux/atomic-arch-fallback.h:286 [inline] RIP: 0010:atomic_inc_return include/asm-generic/atomic-instrumented.h:251 [inline] RIP: 0010:ihold+0x25/0x60 fs/inode.c:423 Code: 00 00 00 00 00 55 48 89 e5 41 56 53 49 89 fe e8 21 81 b3 ff 49 8d be 70 01 00 00 be 04 00 00 00 e8 90 d7 f0 ff bb 01 00 00 00 41 0f c1 9e 70 01 00 00 ff c3 bf 02 00 00 00 89 de e8 a4 84 b3 RSP: 0018:ffffc90000aa78c0 EFLAGS: 00010246 RAX: ffff888111de3b00 RBX: 0000000000000001 RCX: 0000000000040000 RDX: ffffc900019ce000 RSI: 0000000000000286 RDI: 00000000000069f1 RBP: ffffc90000aa78d0 R08: ffffffff813e2e1b R09: 0000000000000003 R10: fffffbfff0e10048 R11: dffffc0000000001 R12: ffffc90000aa7960 R13: 1ffff92000154f24 R14: 0000000000000000 R15: ffff888172059f80 FS: 00007f75ee31d6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000170 CR3: 000000016132e000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 00 add %al,(%rax) 4: 00 55 48 add %dl,0x48(%rbp) 7: 89 e5 mov %esp,%ebp 9: 41 56 push %r14 b: 53 push %rbx c: 49 89 fe mov %rdi,%r14 f: e8 21 81 b3 ff call 0xffb38135 14: 49 8d be 70 01 00 00 lea 0x170(%r14),%rdi 1b: be 04 00 00 00 mov $0x4,%esi 20: e8 90 d7 f0 ff call 0xfff0d7b5 25: bb 01 00 00 00 mov $0x1,%ebx * 2a: f0 41 0f c1 9e 70 01 lock xadd %ebx,0x170(%r14) <-- trapping instruction 31: 00 00 33: ff c3 inc %ebx 35: bf 02 00 00 00 mov $0x2,%edi 3a: 89 de mov %ebx,%esi 3c: e8 .byte 0xe8 3d: a4 movsb %ds:(%rsi),%es:(%rdi) 3e: 84 .byte 0x84 3f: b3 .byte 0xb3