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: 4314 Comm: syz.1.1512 Not tainted 5.15.167-syzkaller-android13-5.15.167_r00 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:rb_set_parent_color include/linux/rbtree_augmented.h:165 [inline] RIP: 0010:____rb_erase_color lib/rbtree.c:255 [inline] RIP: 0010:__rb_erase_color+0x10e/0xa60 lib/rbtree.c:413 Code: 89 ff e8 c5 cf 2a ff 4c 8b 6d d0 4d 89 2f 4c 89 eb 48 83 cb 01 4c 8b 7d c0 4c 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 ff e8 94 cf 2a ff 49 89 1f 4c 89 eb 48 c1 RSP: 0018:ffffc90000aaf580 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88811d546871 RCX: dffffc0000000000 RDX: ffffffff81a56990 RSI: ffff888109939aa8 RDI: ffff88811d546870 RBP: ffffc90000aaf5e0 R08: ffffffff81a54a50 R09: ffffed1021327359 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff11023aa8c30 R13: ffff88811d546870 R14: ffff88811d546180 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e5556150f8 CR3: 000000011d535000 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:159 [inline] unlink_file_vma+0xd9/0xf0 mm/mmap.c:174 free_pgtables+0x13f/0x280 mm/memory.c:490 exit_mmap+0x405/0x940 mm/mmap.c:3217 __mmput+0x95/0x310 kernel/fork.c:1179 mmput+0x5b/0x170 kernel/fork.c:1202 exit_mm kernel/exit.c:554 [inline] do_exit+0xb9c/0x2ca0 kernel/exit.c:867 do_group_exit+0x141/0x310 kernel/exit.c:1002 get_signal+0x7a3/0x1630 kernel/signal.c:2904 arch_do_signal_or_restart+0xbd/0x1680 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0xa0/0xe0 kernel/entry/common.c:178 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:214 irqentry_exit_to_user_mode+0x9/0x10 kernel/entry/common.c:320 irqentry_exit+0x12/0x40 kernel/entry/common.c:411 exc_page_fault+0x47a/0x7f0 arch/x86/mm/fault.c:1568 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0033:0x7f9c41cac721 Code: Unable to access opcode bytes at RIP 0x7f9c41cac6f7. RSP: 002b:00000000fffffe10 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f9c41e63f80 RCX: 00007f9c41cac719 RDX: 0000000000000000 RSI: 00000000fffffe10 RDI: 0000000000000000 RBP: 00007f9c41d1f39e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f9c41e63f80 R15: 00007ffc1927fa48 Modules linked in: ---[ end trace 1d1cdc461c91a830 ]--- RIP: 0010:rb_set_parent_color include/linux/rbtree_augmented.h:165 [inline] RIP: 0010:____rb_erase_color lib/rbtree.c:255 [inline] RIP: 0010:__rb_erase_color+0x10e/0xa60 lib/rbtree.c:413 Code: 89 ff e8 c5 cf 2a ff 4c 8b 6d d0 4d 89 2f 4c 89 eb 48 83 cb 01 4c 8b 7d c0 4c 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 ff e8 94 cf 2a ff 49 89 1f 4c 89 eb 48 c1 RSP: 0018:ffffc90000aaf580 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88811d546871 RCX: dffffc0000000000 RDX: ffffffff81a56990 RSI: ffff888109939aa8 RDI: ffff88811d546870 RBP: ffffc90000aaf5e0 R08: ffffffff81a54a50 R09: ffffed1021327359 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff11023aa8c30 R13: ffff88811d546870 R14: ffff88811d546180 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9595215d60 CR3: 000000010d3ce000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 89 ff mov %edi,%edi 2: e8 c5 cf 2a ff call 0xff2acfcc 7: 4c 8b 6d d0 mov -0x30(%rbp),%r13 b: 4d 89 2f mov %r13,(%r15) e: 4c 89 eb mov %r13,%rbx 11: 48 83 cb 01 or $0x1,%rbx 15: 4c 8b 7d c0 mov -0x40(%rbp),%r15 19: 4c 89 f8 mov %r15,%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 ff mov %r15,%rdi 33: e8 94 cf 2a ff call 0xff2acfcc 38: 49 89 1f mov %rbx,(%r15) 3b: 4c 89 eb mov %r13,%rbx 3e: 48 rex.W 3f: c1 .byte 0xc1