general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] CPU: 0 PID: 3598 Comm: syz-executor317 Not tainted 6.1.0-rc2-syzkaller-00078-g98555239e4c3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 RIP: 0010:dbgfs_rm_context mm/damon/dbgfs.c:928 [inline] RIP: 0010:dbgfs_rm_context_write+0x2e3/0x4d0 mm/damon/dbgfs.c:971 Code: 00 4d 8b 36 4c 39 34 24 0f 84 e4 00 00 00 e8 34 c3 a7 ff 48 8b 44 24 18 49 63 d4 48 c1 e2 03 48 8d 34 10 48 89 f7 48 c1 ef 03 <80> 3c 2f 00 0f 85 6b 01 00 00 48 8b 05 2c 85 52 0f 4c 89 36 41 83 RSP: 0018:ffffc90003c2fc90 EFLAGS: 00010202 RAX: 0000000000000010 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000010 RDI: 0000000000000002 RBP: dffffc0000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000 R13: ffff888073a60000 R14: ffff888011c5b490 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0063) knlGS:00000000571262c0 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000002000f000 CR3: 0000000026e53000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: full_proxy_write+0x118/0x180 fs/debugfs/file.c:236 vfs_write+0x2d7/0xdd0 fs/read_write.c:582 ksys_write+0x127/0x250 fs/read_write.c:637 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7e62549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000ffc2d32c EFLAGS: 00000213 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000080 RDX: 000000000000fe6c RSI: 0000000000000004 RDI: 0000000000000003 RBP: 0000000020000040 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbgfs_rm_context mm/damon/dbgfs.c:928 [inline] RIP: 0010:dbgfs_rm_context_write+0x2e3/0x4d0 mm/damon/dbgfs.c:971 Code: 00 4d 8b 36 4c 39 34 24 0f 84 e4 00 00 00 e8 34 c3 a7 ff 48 8b 44 24 18 49 63 d4 48 c1 e2 03 48 8d 34 10 48 89 f7 48 c1 ef 03 <80> 3c 2f 00 0f 85 6b 01 00 00 48 8b 05 2c 85 52 0f 4c 89 36 41 83 RSP: 0018:ffffc90003c2fc90 EFLAGS: 00010202 RAX: 0000000000000010 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000010 RDI: 0000000000000002 RBP: dffffc0000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000 R13: ffff888073a60000 R14: ffff888011c5b490 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0063) knlGS:00000000571262c0 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000056249bd6c098 CR3: 0000000026e53000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 4d 8b add %cl,-0x75(%rbp) 3: 36 4c 39 34 24 cmp %r14,%ss:(%rsp) 8: 0f 84 e4 00 00 00 je 0xf2 e: e8 34 c3 a7 ff callq 0xffa7c347 13: 48 8b 44 24 18 mov 0x18(%rsp),%rax 18: 49 63 d4 movslq %r12d,%rdx 1b: 48 c1 e2 03 shl $0x3,%rdx 1f: 48 8d 34 10 lea (%rax,%rdx,1),%rsi 23: 48 89 f7 mov %rsi,%rdi 26: 48 c1 ef 03 shr $0x3,%rdi * 2a: 80 3c 2f 00 cmpb $0x0,(%rdi,%rbp,1) <-- trapping instruction 2e: 0f 85 6b 01 00 00 jne 0x19f 34: 48 8b 05 2c 85 52 0f mov 0xf52852c(%rip),%rax # 0xf528567 3b: 4c 89 36 mov %r14,(%rsi) 3e: 41 rex.B 3f: 83 .byte 0x83