Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 UID: 0 PID: 4682 Comm: udevd Not tainted 6.11.0-rc4-next-20240821-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:____rb_erase_color lib/rbtree.c:354 [inline] RIP: 0010:__rb_erase_color+0x2d7/0xa30 lib/rbtree.c:413 Code: 73 02 00 00 49 8d 5c 24 10 48 89 dd 48 c1 ed 03 42 80 7c 35 00 00 74 08 48 89 df e8 73 5a 46 f6 4c 8b 2b 4d 89 ef 49 c1 ef 03 <43> 80 3c 37 00 74 08 4c 89 ef e8 5a 5a 46 f6 41 f6 45 00 01 48 89 RSP: 0018:ffffc90003a674a0 EFLAGS: 00010046 RAX: 000000000016e360 RBX: ffff88802894daa0 RCX: dffffc0000000000 RDX: ffffffff816818f0 RSI: ffff888078639848 RDI: ffff88802894da90 RBP: 1ffff11005129b54 R08: ffffffff901c0c6f R09: 1ffffffff203818d R10: dffffc0000000000 R11: ffffffff81672570 R12: ffff88802894da90 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007f0928ab0c80(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe3c818ad58 CR3: 00000000791de000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rb_erase_augmented include/linux/rbtree_augmented.h:331 [inline] rb_erase_augmented_cached include/linux/rbtree_augmented.h:340 [inline] __dequeue_entity+0x953/0xd30 kernel/sched/fair.c:863 set_next_entity+0xfe/0x4c0 kernel/sched/fair.c:5559 set_next_task_fair+0x1dd/0x540 kernel/sched/fair.c:13151 set_next_task kernel/sched/sched.h:2434 [inline] pick_next_task kernel/sched/core.c:6085 [inline] __schedule+0x250c/0x4b30 kernel/sched/core.c:6632 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6999 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:707 RIP: 0010:tomoyo_check_acl+0x5/0x3f0 security/tomoyo/domain.c:164 Code: e8 a0 b7 91 fd e9 06 fe ff ff 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 55 <41> 57 41 56 41 55 41 54 53 48 83 ec 28 48 89 74 24 18 48 89 fb 49 RSP: 0018:ffffc90003a679e8 EFLAGS: 00000246 RAX: 0000000000000005 RBX: 0000000000000000 RCX: ffff8880790f9e00 RDX: ffff8880790f9e00 RSI: ffffffff846ae350 RDI: ffffc90003a67aa0 RBP: dffffc0000000000 R08: ffffffff846af678 R09: ffffffff846afbf9 R10: 0000000000000003 R11: ffff8880790f9e00 R12: ffffc90003a67aa0 R13: ffffc90003a67ab8 R14: 1ffff9200074cf59 R15: ffffc90003a67ac8 tomoyo_path_permission+0x1af/0x360 security/tomoyo/file.c:586 tomoyo_path_perm+0x480/0x740 security/tomoyo/file.c:838 security_inode_getattr+0x130/0x330 security/security.c:2400 vfs_getattr+0x45/0x430 fs/stat.c:242 vfs_fstat fs/stat.c:267 [inline] vfs_fstatat+0xe4/0x190 fs/stat.c:376 __do_sys_newfstatat fs/stat.c:543 [inline] __se_sys_newfstatat fs/stat.c:537 [inline] __x64_sys_newfstatat+0x11d/0x1a0 fs/stat.c:537 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f09287165f4 Code: 64 c7 00 09 00 00 00 83 c8 ff c3 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 00 00 00 00 41 89 ca b8 06 01 00 00 0f 05 <45> 31 c0 3d 00 f0 ff ff 76 10 48 8b 15 03 a8 0d 00 f7 d8 41 83 c8 RSP: 002b:00007fff55c62968 EFLAGS: 00000206 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 0000559949aba660 RCX: 00007f09287165f4 RDX: 00007fff55c62980 RSI: 00007f09287b3130 RDI: 000000000000000f RBP: 0000559949af2090 R08: 0000000000090800 R09: 0000559949aa0920 R10: 0000000000001000 R11: 0000000000000206 R12: 00007fff55c62980 R13: 00000000000000fd R14: 00005599237c11c4 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:____rb_erase_color lib/rbtree.c:354 [inline] RIP: 0010:__rb_erase_color+0x2d7/0xa30 lib/rbtree.c:413 Code: 73 02 00 00 49 8d 5c 24 10 48 89 dd 48 c1 ed 03 42 80 7c 35 00 00 74 08 48 89 df e8 73 5a 46 f6 4c 8b 2b 4d 89 ef 49 c1 ef 03 <43> 80 3c 37 00 74 08 4c 89 ef e8 5a 5a 46 f6 41 f6 45 00 01 48 89 RSP: 0018:ffffc90003a674a0 EFLAGS: 00010046 RAX: 000000000016e360 RBX: ffff88802894daa0 RCX: dffffc0000000000 RDX: ffffffff816818f0 RSI: ffff888078639848 RDI: ffff88802894da90 RBP: 1ffff11005129b54 R08: ffffffff901c0c6f R09: 1ffffffff203818d R10: dffffc0000000000 R11: ffffffff81672570 R12: ffff88802894da90 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007f0928ab0c80(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe3c818ad58 CR3: 00000000791de000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 73 02 jae 0x4 2: 00 00 add %al,(%rax) 4: 49 8d 5c 24 10 lea 0x10(%r12),%rbx 9: 48 89 dd mov %rbx,%rbp c: 48 c1 ed 03 shr $0x3,%rbp 10: 42 80 7c 35 00 00 cmpb $0x0,0x0(%rbp,%r14,1) 16: 74 08 je 0x20 18: 48 89 df mov %rbx,%rdi 1b: e8 73 5a 46 f6 call 0xf6465a93 20: 4c 8b 2b mov (%rbx),%r13 23: 4d 89 ef mov %r13,%r15 26: 49 c1 ef 03 shr $0x3,%r15 * 2a: 43 80 3c 37 00 cmpb $0x0,(%r15,%r14,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 ef mov %r13,%rdi 34: e8 5a 5a 46 f6 call 0xf6465a93 39: 41 f6 45 00 01 testb $0x1,0x0(%r13) 3e: 48 rex.W 3f: 89 .byte 0x89