general protection fault, probably for non-canonical address 0xdffffc000383f720: 0000 [#1] PREEMPT SMP KASAN KASAN: probably user-memory-access in range [0x000000001c1fb900-0x000000001c1fb907] CPU: 1 PID: 5482 Comm: cmp Not tainted 6.5.0-syzkaller-11075-g92901222f83d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:rb_set_parent include/linux/rbtree_augmented.h:185 [inline] RIP: 0010:____rb_erase_color lib/rbtree.c:347 [inline] RIP: 0010:rb_erase+0x9b0/0x1360 lib/rbtree.c:445 Code: 89 65 08 48 89 6b 10 80 3c 02 00 0f 85 b4 06 00 00 4d 85 e4 4d 89 2e 74 29 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 cd 06 00 00 49 8b 04 24 83 e0 01 48 01 e8 49 89 RSP: 0018:ffffc900001f0d90 EFLAGS: 00010012 RAX: dffffc0000000000 RBX: ffffc90004e5fc20 RCX: ffff8880b992ba10 RDX: 000000000383f720 RSI: ffff8880b992ba10 RDI: ffffc90004e5fc30 RBP: ffff8880b992c620 R08: 0000000000000006 R09: ffff8880b992c621 R10: ffff8880b992c270 R11: ffffc900001f0ff8 R12: 000000001c1fb900 R13: ffffc90004e5fc21 R14: ffff8880202acc90 R15: ffff8880b992c628 FS: 00007f802d426380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f802d620be0 CR3: 0000000029b61000 CR4: 0000000000350ee0 Call Trace: rb_erase_cached include/linux/rbtree.h:126 [inline] timerqueue_del+0x83/0x140 lib/timerqueue.c:57 __remove_hrtimer+0x99/0x290 kernel/time/hrtimer.c:1119 __run_hrtimer kernel/time/hrtimer.c:1668 [inline] __hrtimer_run_queues+0x55b/0xc10 kernel/time/hrtimer.c:1752 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1814 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1063 [inline] __sysvec_apic_timer_interrupt+0x105/0x3f0 arch/x86/kernel/apic/apic.c:1080 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1074 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:console_flush_all+0x9b6/0xf50 kernel/printk/printk.c:2939 Code: e0 5a 23 00 9c 5b 81 e3 00 02 00 00 31 ff 48 89 de e8 ce a5 1c 00 48 85 db 0f 85 94 03 00 00 e8 30 aa 1c 00 fb 48 8b 44 24 08 <48> 8b 14 24 0f b6 00 83 e2 07 38 d0 7f 08 84 c0 0f 85 9d 04 00 00 RSP: 0018:ffffc90005367478 EFLAGS: 00000293 RAX: fffff52000a6ceba RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88802aa45940 RSI: ffffffff816af260 RDI: 0000000000000007 RBP: ffffffff8d6d8ce0 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 205d323834355420 R12: 0000000000000000 R13: ffffffff8d6d8d38 R14: dffffc0000000000 R15: 0000000000000001 console_unlock+0xc6/0x1f0 kernel/printk/printk.c:3007 vprintk_emit+0x1c5/0x640 kernel/printk/printk.c:2307 vprintk+0x89/0xa0 kernel/printk/printk_safe.c:50 _printk+0xc8/0x100 kernel/printk/printk.c:2328 __list_add_valid_or_report+0xa2/0x100 lib/list_debug.c:29 __list_add_valid include/linux/list.h:88 [inline] __list_add include/linux/list.h:150 [inline] list_add include/linux/list.h:169 [inline] d_alloc+0xfe/0x220 fs/dcache.c:1858 d_alloc_parallel+0xe9/0x15f0 fs/dcache.c:2637 lookup_open.isra.0+0xa5a/0x1360 fs/namei.c:3420 open_last_lookups fs/namei.c:3563 [inline] path_openat+0x931/0x29c0 fs/namei.c:3793 do_filp_open+0x1de/0x430 fs/namei.c:3823 do_sys_openat2+0x176/0x1e0 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_openat fs/open.c:1453 [inline] __se_sys_openat fs/open.c:1448 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1448 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f802d57a9a4 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5482 at arch/x86/mm/tlb.c:1304 nmi_uaccess_okay+0x96/0xb0 arch/x86/mm/tlb.c:1304 Modules linked in: CPU: 1 PID: 5482 Comm: cmp Not tainted 6.5.0-syzkaller-11075-g92901222f83d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:nmi_uaccess_okay+0x96/0xb0 arch/x86/mm/tlb.c:1304 Code: 20 d8 48 ba 00 f0 ff ff ff ff 0f 00 48 21 d0 48 ba 00 00 00 00 80 88 ff ff 48 01 d0 48 39 85 c0 00 00 00 ba 01 00 00 00 74 b2 <0f> 0b eb ae 0f 0b eb a3 e8 6d d7 a1 00 eb 90 e8 66 d7 a1 00 eb bf RSP: 0018:ffffc900001f09a0 EFLAGS: 00010007 RAX: ffff888029b61000 RBX: ffff888078f6cc00 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffffffff8a329829 RDI: ffff888078f6ccc0 RBP: ffff888078f6cc00 R08: 0000000000000006 R09: 00007f802d57a97a R10: 00007f802d57a9ba R11: fffffffffffe18d0 R12: ffffc900001f09e8 R13: 00007f802d57a9ba R14: 0000000000000000 R15: 0000000000000000 FS: 00007f802d426380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f802d620be0 CR3: 0000000029b61000 CR4: 0000000000350ee0 Call Trace: copy_from_user_nmi+0x5e/0x140 arch/x86/lib/usercopy.c:39 copy_code arch/x86/kernel/dumpstack.c:91 [inline] show_opcodes+0x96/0x140 arch/x86/kernel/dumpstack.c:121 show_ip arch/x86/kernel/dumpstack.c:144 [inline] show_iret_regs+0x38/0x60 arch/x86/kernel/dumpstack.c:149 __show_regs+0x2a/0x730 arch/x86/kernel/process_64.c:75 show_regs_if_on_stack arch/x86/kernel/dumpstack.c:167 [inline] show_regs_if_on_stack+0x8d/0x140 arch/x86/kernel/dumpstack.c:154 show_trace_log_lvl+0x318/0x4f0 arch/x86/kernel/dumpstack.c:301 show_regs arch/x86/kernel/dumpstack.c:478 [inline] show_regs+0x8f/0xa0 arch/x86/kernel/dumpstack.c:465 __die_body arch/x86/kernel/dumpstack.c:420 [inline] die_addr+0x4f/0xd0 arch/x86/kernel/dumpstack.c:460 __exc_general_protection arch/x86/kernel/traps.c:697 [inline] exc_general_protection+0x154/0x230 arch/x86/kernel/traps.c:642 asm_exc_general_protection+0x26/0x30 arch/x86/include/asm/idtentry.h:564 RIP: 0010:rb_set_parent include/linux/rbtree_augmented.h:185 [inline] RIP: 0010:____rb_erase_color lib/rbtree.c:347 [inline] RIP: 0010:rb_erase+0x9b0/0x1360 lib/rbtree.c:445 Code: 89 65 08 48 89 6b 10 80 3c 02 00 0f 85 b4 06 00 00 4d 85 e4 4d 89 2e 74 29 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 cd 06 00 00 49 8b 04 24 83 e0 01 48 01 e8 49 89 RSP: 0018:ffffc900001f0d90 EFLAGS: 00010012 RAX: dffffc0000000000 RBX: ffffc90004e5fc20 RCX: ffff8880b992ba10 RDX: 000000000383f720 RSI: ffff8880b992ba10 RDI: ffffc90004e5fc30 RBP: ffff8880b992c620 R08: 0000000000000006 R09: ffff8880b992c621 R10: ffff8880b992c270 R11: ffffc900001f0ff8 R12: 000000001c1fb900 R13: ffffc90004e5fc21 R14: ffff8880202acc90 R15: ffff8880b992c628 rb_erase_cached include/linux/rbtree.h:126 [inline] timerqueue_del+0x83/0x140 lib/timerqueue.c:57 __remove_hrtimer+0x99/0x290 kernel/time/hrtimer.c:1119 __run_hrtimer kernel/time/hrtimer.c:1668 [inline] __hrtimer_run_queues+0x55b/0xc10 kernel/time/hrtimer.c:1752 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1814 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1063 [inline] __sysvec_apic_timer_interrupt+0x105/0x3f0 arch/x86/kernel/apic/apic.c:1080 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1074 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:console_flush_all+0x9b6/0xf50 kernel/printk/printk.c:2939 Code: e0 5a 23 00 9c 5b 81 e3 00 02 00 00 31 ff 48 89 de e8 ce a5 1c 00 48 85 db 0f 85 94 03 00 00 e8 30 aa 1c 00 fb 48 8b 44 24 08 <48> 8b 14 24 0f b6 00 83 e2 07 38 d0 7f 08 84 c0 0f 85 9d 04 00 00 RSP: 0018:ffffc90005367478 EFLAGS: 00000293 RAX: fffff52000a6ceba RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88802aa45940 RSI: ffffffff816af260 RDI: 0000000000000007 RBP: ffffffff8d6d8ce0 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 205d323834355420 R12: 0000000000000000 R13: ffffffff8d6d8d38 R14: dffffc0000000000 R15: 0000000000000001 console_unlock+0xc6/0x1f0 kernel/printk/printk.c:3007 vprintk_emit+0x1c5/0x640 kernel/printk/printk.c:2307 vprintk+0x89/0xa0 kernel/printk/printk_safe.c:50 _printk+0xc8/0x100 kernel/printk/printk.c:2328 __list_add_valid_or_report+0xa2/0x100 lib/list_debug.c:29 __list_add_valid include/linux/list.h:88 [inline] __list_add include/linux/list.h:150 [inline] list_add include/linux/list.h:169 [inline] d_alloc+0xfe/0x220 fs/dcache.c:1858 d_alloc_parallel+0xe9/0x15f0 fs/dcache.c:2637 lookup_open.isra.0+0xa5a/0x1360 fs/namei.c:3420 open_last_lookups fs/namei.c:3563 [inline] path_openat+0x931/0x29c0 fs/namei.c:3793 do_filp_open+0x1de/0x430 fs/namei.c:3823 do_sys_openat2+0x176/0x1e0 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_openat fs/open.c:1453 [inline] __se_sys_openat fs/open.c:1448 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1448 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f802d57a9a4 Code: 24 20 48 8d 44 24 30 48 89 44 24 28 64 8b 04 25 18 00 00 00 85 c0 75 2c 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 60 48 8b 15 55 a4 0d 00 f7 d8 64 89 02 48 83 RSP: 002b:00007fff49eedae0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007f802d57a9a4 RDX: 0000000000000000 RSI: 00007fff49eefe4c RDI: 00000000ffffff9c RBP: 00007fff49eefe4c R08: 0000000000000008 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f802d720513 R14: 0000000000000001 R15: 00007fff49eefe3b ---------------- Code disassembly (best guess): 0: e0 5a loopne 0x5c 2: 23 00 and (%rax),%eax 4: 9c pushf 5: 5b pop %rbx 6: 81 e3 00 02 00 00 and $0x200,%ebx c: 31 ff xor %edi,%edi e: 48 89 de mov %rbx,%rsi 11: e8 ce a5 1c 00 call 0x1ca5e4 16: 48 85 db test %rbx,%rbx 19: 0f 85 94 03 00 00 jne 0x3b3 1f: e8 30 aa 1c 00 call 0x1caa54 24: fb sti 25: 48 8b 44 24 08 mov 0x8(%rsp),%rax * 2a: 48 8b 14 24 mov (%rsp),%rdx <-- trapping instruction 2e: 0f b6 00 movzbl (%rax),%eax 31: 83 e2 07 and $0x7,%edx 34: 38 d0 cmp %dl,%al 36: 7f 08 jg 0x40 38: 84 c0 test %al,%al 3a: 0f 85 9d 04 00 00 jne 0x4dd