!!!! security_inode_init_security 4 ret 0 !!!! security_inode_init_security 5 ret 0 !!!ext4_initxattrs 1 !!!ext4_initxattrs set hndl name selinux !!! ext4_xattr_set_handle 1 selinux 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: 404 Comm: syz-executor.0 Not tainted 5.10.144-syzkaller-987214-g7474313da8d6-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 RIP: 0010:ext4_xattr_set_entry+0x983/0x2290 fs/ext4/xattr.c:1584 Code: 03 48 89 84 24 c0 00 00 00 42 80 3c 28 00 4c 8d b4 24 00 01 00 00 74 08 4c 89 ff e8 17 82 ba ff 49 8b 1f 48 89 d8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 dd 15 00 00 44 0f b6 03 41 83 c0 13 41 83 RSP: 0018:ffffc90000a3f4e0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888106594f00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000001c RBP: ffffc90000a3f670 R08: ffffffff81ec6f18 R09: ffffed102379c185 R10: ffffed102379c185 R11: 1ffff1102379c184 R12: 0000000000000000 R13: dffffc0000000000 R14: ffffc90000a3f5e0 R15: ffffc90000a3f7a0 FS: 000055555683c400(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055555684db78 CR3: 000000010ce4c000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_xattr_ibody_set fs/ext4/xattr.c:2230 [inline] ext4_xattr_set_handle+0xe21/0x18f0 fs/ext4/xattr.c:2389 ext4_initxattrs+0xdb/0x150 fs/ext4/xattr_security.c:45 security_inode_init_security+0x356/0x450 security/security.c:1041 ext4_init_security+0x42/0x50 fs/ext4/xattr_security.c:60 __ext4_new_inode+0x37bd/0x4a70 fs/ext4/ialloc.c:1325 ext4_mkdir+0x456/0xc60 fs/ext4/namei.c:2950 vfs_mkdir+0x435/0x610 fs/namei.c:3729 do_mkdirat+0x1b6/0x2d0 fs/namei.c:3752 __do_sys_mkdirat fs/namei.c:3763 [inline] __se_sys_mkdirat fs/namei.c:3761 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3761 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f38d427d387 Code: 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe35c3c4b8 EFLAGS: 00000206 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007ffe35c3c540 RCX: 00007f38d427d387 RDX: 00000000000001ff RSI: 00007ffe35c3c540 RDI: 00000000ffffff9c RBP: 00007ffe35c3c51c R08: 0000000000000000 R09: 0000000000000003 R10: 00007ffe35c3c257 R11: 0000000000000206 R12: 0000000000000032 R13: 000000000000bfe1 R14: 0000000000000003 R15: 00007ffe35c3c580 Modules linked in: ---[ end trace caf9059242882f85 ]--- RIP: 0010:ext4_xattr_set_entry+0x983/0x2290 fs/ext4/xattr.c:1584 Code: 03 48 89 84 24 c0 00 00 00 42 80 3c 28 00 4c 8d b4 24 00 01 00 00 74 08 4c 89 ff e8 17 82 ba ff 49 8b 1f 48 89 d8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 dd 15 00 00 44 0f b6 03 41 83 c0 13 41 83 RSP: 0018:ffffc90000a3f4e0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888106594f00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000001c RBP: ffffc90000a3f670 R08: ffffffff81ec6f18 R09: ffffed102379c185 R10: ffffed102379c185 R11: 1ffff1102379c184 R12: 0000000000000000 R13: dffffc0000000000 R14: ffffc90000a3f5e0 R15: ffffc90000a3f7a0 FS: 000055555683c400(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055555684db78 CR3: 000000010ce4c000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 03 48 89 add -0x77(%rax),%ecx 3: 84 24 c0 test %ah,(%rax,%rax,8) 6: 00 00 add %al,(%rax) 8: 00 42 80 add %al,-0x80(%rdx) b: 3c 28 cmp $0x28,%al d: 00 4c 8d b4 add %cl,-0x4c(%rbp,%rcx,4) 11: 24 00 and $0x0,%al 13: 01 00 add %eax,(%rax) 15: 00 74 08 4c add %dh,0x4c(%rax,%rcx,1) 19: 89 ff mov %edi,%edi 1b: e8 17 82 ba ff callq 0xffba8237 20: 49 8b 1f mov (%r15),%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 8a 04 28 mov (%rax,%r13,1),%al <-- trapping instruction 2e: 84 c0 test %al,%al 30: 0f 85 dd 15 00 00 jne 0x1613 36: 44 0f b6 03 movzbl (%rbx),%r8d 3a: 41 83 c0 13 add $0x13,%r8d 3e: 41 rex.B 3f: 83 .byte 0x83