general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 30357 Comm: syz-executor.4 Not tainted 5.18.0-rc6-next-20220516-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:____rb_erase_color lib/rbtree.c:354 [inline] RIP: 0010:__rb_erase_color+0x159/0xdb0 lib/rbtree.c:413 Code: 89 ed 48 89 c5 e9 f5 fe ff ff 4c 8d 45 10 4c 89 c0 48 c1 e8 03 80 3c 18 00 0f 85 3a 08 00 00 4c 8b 65 10 4c 89 e0 48 c1 e8 03 <80> 3c 18 00 0f 85 6a 08 00 00 49 8b 04 24 49 8d 7c 24 08 48 89 f9 RSP: 0018:ffffc90002fdf7b8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000 RDX: ffffed1028e00cd3 RSI: ffff888147006698 RDI: ffff88801a084388 RBP: ffff88801a084388 R08: ffff88801a084398 R09: ffff88814700668f R10: ffffffff81b026c8 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: ffff888147006698 R15: ffffffff81b014b0 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000060078000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rb_erase_augmented include/linux/rbtree_augmented.h:305 [inline] rb_erase_augmented_cached include/linux/rbtree_augmented.h:314 [inline] vma_interval_tree_remove+0x694/0xed0 mm/interval_tree.c:23 __remove_shared_vm_struct mm/mmap.c:160 [inline] unlink_file_vma+0xbd/0x110 mm/mmap.c:175 free_pgtables+0x255/0x420 mm/memory.c:440 exit_mmap+0x1ff/0x740 mm/mmap.c:3221 __mmput+0x128/0x4c0 kernel/fork.c:1180 mmput+0x5c/0x70 kernel/fork.c:1201 exit_mm kernel/exit.c:510 [inline] do_exit+0xa18/0x2a00 kernel/exit.c:782 do_group_exit+0xd2/0x2f0 kernel/exit.c:925 get_signal+0x2542/0x2600 kernel/signal.c:2857 arch_do_signal_or_restart+0x82/0x20f0 arch/x86/kernel/signal.c:869 exit_to_user_mode_loop kernel/entry/common.c:166 [inline] exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7eff8de890e9 Code: Unable to access opcode bytes at RIP 0x7eff8de890bf. RSP: 002b:00007fff95246378 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffdfc RBX: 00007eff8df9bf6c RCX: 00007eff8de890e9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007eff8df9bf6c RBP: 00007eff8df9bf60 R08: 00007fff95324080 R09: 0000000000000000 R10: 00007fff95246460 R11: 0000000000000246 R12: 00000000002fb2df R13: 00007fff95246460 R14: 00007fff95246480 R15: 0000000000000032 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:____rb_erase_color lib/rbtree.c:354 [inline] RIP: 0010:__rb_erase_color+0x159/0xdb0 lib/rbtree.c:413 Code: 89 ed 48 89 c5 e9 f5 fe ff ff 4c 8d 45 10 4c 89 c0 48 c1 e8 03 80 3c 18 00 0f 85 3a 08 00 00 4c 8b 65 10 4c 89 e0 48 c1 e8 03 <80> 3c 18 00 0f 85 6a 08 00 00 49 8b 04 24 49 8d 7c 24 08 48 89 f9 RSP: 0018:ffffc90002fdf7b8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000 RDX: ffffed1028e00cd3 RSI: ffff888147006698 RDI: ffff88801a084388 RBP: ffff88801a084388 R08: ffff88801a084398 R09: ffff88814700668f R10: ffffffff81b026c8 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: ffff888147006698 R15: ffffffff81b014b0 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000060078000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 89 ed mov %ebp,%ebp 2: 48 89 c5 mov %rax,%rbp 5: e9 f5 fe ff ff jmpq 0xfffffeff a: 4c 8d 45 10 lea 0x10(%rbp),%r8 e: 4c 89 c0 mov %r8,%rax 11: 48 c1 e8 03 shr $0x3,%rax 15: 80 3c 18 00 cmpb $0x0,(%rax,%rbx,1) 19: 0f 85 3a 08 00 00 jne 0x859 1f: 4c 8b 65 10 mov 0x10(%rbp),%r12 23: 4c 89 e0 mov %r12,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 80 3c 18 00 cmpb $0x0,(%rax,%rbx,1) <-- trapping instruction 2e: 0f 85 6a 08 00 00 jne 0x89e 34: 49 8b 04 24 mov (%r12),%rax 38: 49 8d 7c 24 08 lea 0x8(%r12),%rdi 3d: 48 89 f9 mov %rdi,%rcx