EXT4-fs (loop0): 1 truncate cleaned up EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 431 Comm: syz-executor.0 Not tainted 5.10.136-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 RIP: 0010:ext4_xattr_set_entry+0x1e20/0x3ed0 fs/ext4/xattr.c:1586 Code: 00 00 fc ff df 48 89 df 48 c1 ef 03 80 3c 07 00 0f 85 04 1f 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 2b 4c 89 ef 48 c1 ef 03 <0f> b6 3c 07 4c 89 e8 83 e0 07 83 c0 03 40 38 f8 7c 09 40 84 ff 0f RSP: 0018:ffffc900008671c8 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffffc90000867530 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 00000000ffffffc3 RDI: 0000000000000000 RBP: ffffc900008673d0 R08: 0000000000000001 R09: ffff88811c0f4577 R10: 00000000ffffffc3 R11: 00000000ffffffc3 R12: ffffc900008674a0 R13: 0000000000000000 R14: 000000000000001a R15: 0000000000000000 FS: 00007f07da5db700(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f07dab84000 CR3: 0000000108bde000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_xattr_ibody_set+0x67/0x270 fs/ext4/xattr.c:2227 ext4_xattr_set_handle+0x7ec/0x1140 fs/ext4/xattr.c:2384 ext4_initxattrs+0xa3/0x100 fs/ext4/xattr_security.c:43 security_inode_init_security+0x18f/0x2d0 security/security.c:1069 ext4_init_security+0x1c/0x20 fs/ext4/xattr_security.c:57 __ext4_new_inode+0x3649/0x43a0 fs/ext4/ialloc.c:1319 ext4_create+0x267/0x450 fs/ext4/namei.c:2671 lookup_open fs/namei.c:3101 [inline] open_last_lookups fs/namei.c:3171 [inline] path_openat+0x23dd/0x38e0 fs/namei.c:3361 do_filp_open+0x17d/0x3b0 fs/namei.c:3391 do_sys_openat2+0x120/0x3c0 fs/open.c:1180 do_sys_open fs/open.c:1196 [inline] __do_sys_creat fs/open.c:1270 [inline] __se_sys_creat fs/open.c:1264 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1264 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f07daa68169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f07da5db168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f07dab87f80 RCX: 00007f07daa68169 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200000c0 RBP: 00007f07daac3ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff4fea1a0f R14: 00007f07da5db300 R15: 0000000000022000 Modules linked in: ---[ end trace 70dbd12e74199636 ]--- RIP: 0010:ext4_xattr_set_entry+0x1e20/0x3ed0 fs/ext4/xattr.c:1586 Code: 00 00 fc ff df 48 89 df 48 c1 ef 03 80 3c 07 00 0f 85 04 1f 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 2b 4c 89 ef 48 c1 ef 03 <0f> b6 3c 07 4c 89 e8 83 e0 07 83 c0 03 40 38 f8 7c 09 40 84 ff 0f RSP: 0018:ffffc900008671c8 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffffc90000867530 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 00000000ffffffc3 RDI: 0000000000000000 RBP: ffffc900008673d0 R08: 0000000000000001 R09: ffff88811c0f4577 R10: 00000000ffffffc3 R11: 00000000ffffffc3 R12: ffffc900008674a0 R13: 0000000000000000 R14: 000000000000001a R15: 0000000000000000 FS: 00007f07da5db700(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f07dab84000 CR3: 0000000108bde000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 4 bytes skipped: 0: df 48 89 fisttps -0x77(%rax) 3: df 48 c1 fisttps -0x3f(%rax) 6: ef out %eax,(%dx) 7: 03 80 3c 07 00 0f add 0xf00073c(%rax),%eax d: 85 04 1f test %eax,(%rdi,%rbx,1) 10: 00 00 add %al,(%rax) 12: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 19: fc ff df 1c: 4c 8b 2b mov (%rbx),%r13 1f: 4c 89 ef mov %r13,%rdi 22: 48 c1 ef 03 shr $0x3,%rdi * 26: 0f b6 3c 07 movzbl (%rdi,%rax,1),%edi <-- trapping instruction 2a: 4c 89 e8 mov %r13,%rax 2d: 83 e0 07 and $0x7,%eax 30: 83 c0 03 add $0x3,%eax 33: 40 38 f8 cmp %dil,%al 36: 7c 09 jl 0x41 38: 40 84 ff test %dil,%dil 3b: 0f .byte 0xf