general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] CPU: 1 PID: 3609 Comm: syz-executor921 Not tainted 6.1.0-rc2-syzkaller-00070-g4dc12f37a8e9 #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+0x2f5/0x4b0 mm/damon/dbgfs.c:971 Code: 00 00 e8 ce ab 9f ff 48 63 4c 24 08 48 8b 04 24 48 89 4c 24 28 48 8d 2c c8 48 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 ef e8 bd a4 f3 ff 4c 03 2d d6 69 88 0f 4c RSP: 0018:ffffc90003d9fc28 EFLAGS: 00010202 RAX: 0000000000000002 RBX: 0000000000000000 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000010 R08: ffffffff81e823c4 R09: fffffbfff1c1b5f6 R10: fffffbfff1c1b5f6 R11: 1ffffffff1c1b5f5 R12: ffff888078000000 R13: 0000000000000000 R14: 000000000000fe6c R15: ffff88801c2e4468 FS: 0000555556da2300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000f000 CR3: 0000000073a12000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: full_proxy_write+0x10c/0x1c0 fs/debugfs/file.c:236 vfs_write+0x303/0xc50 fs/read_write.c:582 ksys_write+0x177/0x2a0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f2f0fb46d69 Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fffcfa0f478 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f2f0fb46d69 RDX: 000000000000fe6c RSI: 0000000020000080 RDI: 0000000000000003 RBP: 00007f2f0fb0af10 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2f0fb0afa0 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+0x2f5/0x4b0 mm/damon/dbgfs.c:971 Code: 00 00 e8 ce ab 9f ff 48 63 4c 24 08 48 8b 04 24 48 89 4c 24 28 48 8d 2c c8 48 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 ef e8 bd a4 f3 ff 4c 03 2d d6 69 88 0f 4c RSP: 0018:ffffc90003d9fc28 EFLAGS: 00010202 RAX: 0000000000000002 RBX: 0000000000000000 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000010 R08: ffffffff81e823c4 R09: fffffbfff1c1b5f6 R10: fffffbfff1c1b5f6 R11: 1ffffffff1c1b5f5 R12: ffff888078000000 R13: 0000000000000000 R14: 000000000000fe6c R15: ffff88801c2e4468 FS: 0000555556da2300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000005decd0 CR3: 0000000073a12000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: e8 ce ab 9f ff callq 0xff9fabd5 7: 48 63 4c 24 08 movslq 0x8(%rsp),%rcx c: 48 8b 04 24 mov (%rsp),%rax 10: 48 89 4c 24 28 mov %rcx,0x28(%rsp) 15: 48 8d 2c c8 lea (%rax,%rcx,8),%rbp 19: 48 89 e8 mov %rbp,%rax 1c: 48 c1 e8 03 shr $0x3,%rax 20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 27: fc ff df * 2a: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 48 89 ef mov %rbp,%rdi 33: e8 bd a4 f3 ff callq 0xfff3a4f5 38: 4c 03 2d d6 69 88 0f add 0xf8869d6(%rip),%r13 # 0xf886a15 3f: 4c rex.WR