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: 3963 Comm: syz-executor.4 Tainted: G W 5.15.148-syzkaller-00718-g993bed180178 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:____rb_erase_color lib/rbtree.c:354 [inline] RIP: 0010:__rb_erase_color+0x20b/0xa60 lib/rbtree.c:413 Code: 49 89 de 49 c1 ee 03 43 80 3c 26 00 74 08 48 89 df e8 d9 27 2b ff 4c 8b 3b 4d 89 fc 49 c1 ec 03 48 b8 00 00 00 00 00 fc ff df <41> 80 3c 04 00 74 08 4c 89 ff e8 b6 27 2b ff 41 f6 07 01 48 89 5d RSP: 0018:ffffc900018376a0 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff888127a0de48 RCX: ffff8881131ce2c0 RDX: ffffffff81a50880 RSI: ffff88810be6a080 RDI: ffff888127a0de38 RBP: ffffc90001837700 R08: ffffffff81a4e940 R09: ffffed10217cd414 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: ffff888127a0de38 R14: 1ffff11024f41bc9 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000035f31123 CR3: 0000000122064000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 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 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x26/0x160 kernel/entry/common.c:301 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fa2d1490e69 Code: Unable to access opcode bytes at RIP 0x7fa2d1490e3f. RSP: 002b:00007fa2d02040c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: fffffffffffffff5 RBX: 00007fa2d15bef80 RCX: 00007fa2d1490e69 RDX: 0000000000000090 RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 00007fa2d14dd47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fa2d15bef80 R15: 00007ffcb4682998 Modules linked in: ---[ end trace 85e5dce7c625479b ]--- RIP: 0010:____rb_erase_color lib/rbtree.c:354 [inline] RIP: 0010:__rb_erase_color+0x20b/0xa60 lib/rbtree.c:413 Code: 49 89 de 49 c1 ee 03 43 80 3c 26 00 74 08 48 89 df e8 d9 27 2b ff 4c 8b 3b 4d 89 fc 49 c1 ec 03 48 b8 00 00 00 00 00 fc ff df <41> 80 3c 04 00 74 08 4c 89 ff e8 b6 27 2b ff 41 f6 07 01 48 89 5d RSP: 0018:ffffc900018376a0 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff888127a0de48 RCX: ffff8881131ce2c0 RDX: ffffffff81a50880 RSI: ffff88810be6a080 RDI: ffff888127a0de38 RBP: ffffc90001837700 R08: ffffffff81a4e940 R09: ffffed10217cd414 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: ffff888127a0de38 R14: 1ffff11024f41bc9 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2e5bd56ff8 CR3: 0000000122064000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 ---------------- Code disassembly (best guess): 0: 49 89 de mov %rbx,%r14 3: 49 c1 ee 03 shr $0x3,%r14 7: 43 80 3c 26 00 cmpb $0x0,(%r14,%r12,1) c: 74 08 je 0x16 e: 48 89 df mov %rbx,%rdi 11: e8 d9 27 2b ff call 0xff2b27ef 16: 4c 8b 3b mov (%rbx),%r15 19: 4d 89 fc mov %r15,%r12 1c: 49 c1 ec 03 shr $0x3,%r12 20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 27: fc ff df * 2a: 41 80 3c 04 00 cmpb $0x0,(%r12,%rax,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 ff mov %r15,%rdi 34: e8 b6 27 2b ff call 0xff2b27ef 39: 41 f6 07 01 testb $0x1,(%r15) 3d: 48 rex.W 3e: 89 .byte 0x89 3f: 5d pop %rbp