general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 PID: 11195 Comm: syz-executor.3 Not tainted 5.15.148-syzkaller-00718-g993bed180178 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:rb_set_parent_color include/linux/rbtree_augmented.h:165 [inline] RIP: 0010:____rb_erase_color lib/rbtree.c:359 [inline] RIP: 0010:__rb_erase_color+0x2bd/0xa60 lib/rbtree.c:413 Code: 89 ef e8 d6 27 2b ff 48 8b 45 d0 49 89 45 00 49 89 c5 48 89 c3 48 83 cb 01 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 f7 e8 a5 27 2b ff 49 89 1e 4c 89 eb 48 c1 RSP: 0018:ffffc9000028f6a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88815f9c12a9 RCX: dffffc0000000000 RDX: ffffffff81a50880 RSI: ffff88810be266a0 RDI: ffff88815f9c12a8 RBP: ffffc9000028f700 R08: ffffffff81a4e940 R09: ffffed10217c4cd8 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff110294c6cc4 R13: ffff88815f9c12a8 R14: 0000000000000000 R15: ffff88814a636620 FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc83b9f5038 CR3: 000000013091a000 CR4: 00000000003506a0 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+0xb82/0xba0 mm/interval_tree.c:23 __remove_shared_vm_struct mm/mmap.c:158 [inline] unlink_file_vma+0xd9/0xf0 mm/mmap.c:173 free_pgtables+0x13f/0x280 mm/memory.c:486 exit_mmap+0x3e7/0x6f0 mm/mmap.c:3210 __mmput+0x95/0x310 kernel/fork.c:1179 mmput+0x5b/0x170 kernel/fork.c:1202 exit_mm kernel/exit.c:552 [inline] do_exit+0xb9c/0x2ca0 kernel/exit.c:865 do_group_exit+0x141/0x310 kernel/exit.c:1000 get_signal+0x7a3/0x1630 kernel/signal.c:2896 arch_do_signal_or_restart+0xbd/0x1680 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop+0xa0/0xe0 kernel/entry/common.c:172 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:314 irqentry_exit+0x12/0x40 kernel/entry/common.c:405 exc_stack_segment+0x86/0x90 arch/x86/kernel/traps.c:287 asm_exc_stack_segment+0x27/0x30 arch/x86/include/asm/idtentry.h:561 RIP: 0033:0x7fc83b8f6db1 Code: Unable to access opcode bytes at RIP 0x7fc83b8f6d87. RSP: 002b:f5ffffff00000010 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007fc83ba24f80 RCX: 00007fc83b8f6da9 RDX: 0000000000000000 RSI: f5ffffff00000010 RDI: 0000000000000000 RBP: 00007fc83b94347a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fc83ba24f80 R15: 00007ffe300d21c8 Modules linked in: ---[ end trace 3854db33a136ac22 ]--- RIP: 0010:rb_set_parent_color include/linux/rbtree_augmented.h:165 [inline] RIP: 0010:____rb_erase_color lib/rbtree.c:359 [inline] RIP: 0010:__rb_erase_color+0x2bd/0xa60 lib/rbtree.c:413 Code: 89 ef e8 d6 27 2b ff 48 8b 45 d0 49 89 45 00 49 89 c5 48 89 c3 48 83 cb 01 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 f7 e8 a5 27 2b ff 49 89 1e 4c 89 eb 48 c1 RSP: 0018:ffffc9000028f6a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88815f9c12a9 RCX: dffffc0000000000 RDX: ffffffff81a50880 RSI: ffff88810be266a0 RDI: ffff88815f9c12a8 RBP: ffffc9000028f700 R08: ffffffff81a4e940 R09: ffffed10217c4cd8 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff110294c6cc4 R13: ffff88815f9c12a8 R14: 0000000000000000 R15: ffff88814a636620 FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc83b9f5038 CR3: 000000013091a000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 ---------------- Code disassembly (best guess): 0: 89 ef mov %ebp,%edi 2: e8 d6 27 2b ff call 0xff2b27dd 7: 48 8b 45 d0 mov -0x30(%rbp),%rax b: 49 89 45 00 mov %rax,0x0(%r13) f: 49 89 c5 mov %rax,%r13 12: 48 89 c3 mov %rax,%rbx 15: 48 83 cb 01 or $0x1,%rbx 19: 4c 89 f0 mov %r14,%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: 4c 89 f7 mov %r14,%rdi 33: e8 a5 27 2b ff call 0xff2b27dd 38: 49 89 1e mov %rbx,(%r14) 3b: 4c 89 eb mov %r13,%rbx 3e: 48 rex.W 3f: c1 .byte 0xc1