general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037] CPU: 1 PID: 383 Comm: syz-executor635 Not tainted 5.10.157-syzkaller-01102-gf3226d86f8ce #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:ext4_xattr_inode_create fs/ext4/xattr.c:1413 [inline] RIP: 0010:ext4_xattr_inode_lookup_create fs/ext4/xattr.c:1521 [inline] RIP: 0010:ext4_xattr_set_entry+0x26e4/0x3820 fs/ext4/xattr.c:1649 Code: 8b 1b 48 83 c3 68 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 5a 5c ba ff 48 8b 1b 48 83 c3 30 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 3d 5c ba ff 4c 8b 23 48 8b 44 24 RSP: 0018:ffffc90000be6fa0 EFLAGS: 00010206 RAX: 0000000000000006 RBX: 0000000000000030 RCX: ffff8881065a8000 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffffffff862e0a34 RBP: ffffc90000be7230 R08: ffffffff8168f011 R09: ffffed1023bba003 R10: ffffed1023bba003 R11: 1ffff11023bba002 R12: ffffc90000be7154 R13: ffffffff862e09e0 R14: ffff88811ddeb820 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005584198f55a8 CR3: 000000010ca51000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_xattr_block_set+0x47c/0x3240 fs/ext4/xattr.c:1945 ext4_xattr_move_to_block fs/ext4/xattr.c:2605 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2674 [inline] ext4_expand_extra_isize_ea+0x16e7/0x20d0 fs/ext4/xattr.c:2766 __ext4_expand_extra_isize+0x29e/0x3d0 fs/ext4/inode.c:5894 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5937 [inline] __ext4_mark_inode_dirty+0x52e/0x780 fs/ext4/inode.c:6014 ext4_dirty_inode+0xdc/0x120 fs/ext4/inode.c:6053 __mark_inode_dirty+0xb8/0x930 fs/fs-writeback.c:2249 mark_inode_dirty_sync include/linux/fs.h:2251 [inline] iput+0x158/0x7d0 fs/inode.c:1678 dentry_unlink_inode+0x2df/0x3d0 fs/dcache.c:374 __dentry_kill+0x3e2/0x5d0 fs/dcache.c:579 shrink_dentry_list+0x3b2/0x500 fs/dcache.c:1141 shrink_dcache_parent+0xcd/0x350 fs/dcache.c:1568 do_one_tree fs/dcache.c:1622 [inline] shrink_dcache_for_umount+0x7c/0x1a0 fs/dcache.c:1639 generic_shutdown_super+0x69/0x2d0 fs/super.c:447 kill_block_super+0x80/0xe0 fs/super.c:1447 deactivate_locked_super+0xb0/0x100 fs/super.c:335 deactivate_super+0xa5/0xd0 fs/super.c:366 cleanup_mnt+0x45f/0x510 fs/namespace.c:1118 __cleanup_mnt+0x19/0x20 fs/namespace.c:1125 task_work_run+0x147/0x1b0 kernel/task_work.c:154 exit_task_work include/linux/task_work.h:30 [inline] do_exit+0x63c/0x2340 kernel/exit.c:813 do_group_exit+0x13a/0x300 kernel/exit.c:910 __do_sys_exit_group kernel/exit.c:921 [inline] __se_sys_exit_group kernel/exit.c:919 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:919 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7fb0e24f8a99 Code: Unable to access opcode bytes at RIP 0x7fb0e24f8a6f. RSP: 002b:00007ffc2fe2d908 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007fb0e256e330 RCX: 00007fb0e24f8a99 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 RBP: 0000000000000001 R08: ffffffffffffffc0 R09: 00007fb0e2568e40 R10: 00007fb0e2568e40 R11: 0000000000000246 R12: 00007fb0e256e330 R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001 Modules linked in: ---[ end trace 43df7e3fb82f7558 ]--- RIP: 0010:ext4_xattr_inode_create fs/ext4/xattr.c:1413 [inline] RIP: 0010:ext4_xattr_inode_lookup_create fs/ext4/xattr.c:1521 [inline] RIP: 0010:ext4_xattr_set_entry+0x26e4/0x3820 fs/ext4/xattr.c:1649 Code: 8b 1b 48 83 c3 68 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 5a 5c ba ff 48 8b 1b 48 83 c3 30 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 3d 5c ba ff 4c 8b 23 48 8b 44 24 RSP: 0018:ffffc90000be6fa0 EFLAGS: 00010206 RAX: 0000000000000006 RBX: 0000000000000030 RCX: ffff8881065a8000 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffffffff862e0a34 RBP: ffffc90000be7230 R08: ffffffff8168f011 R09: ffffed1023bba003 R10: ffffed1023bba003 R11: 1ffff11023bba002 R12: ffffc90000be7154 R13: ffffffff862e09e0 R14: ffff88811ddeb820 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005584198f55a8 CR3: 000000010ca51000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 8b 1b mov (%rbx),%ebx 2: 48 83 c3 68 add $0x68,%rbx 6: 48 89 d8 mov %rbx,%rax 9: 48 c1 e8 03 shr $0x3,%rax d: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) 12: 74 08 je 0x1c 14: 48 89 df mov %rbx,%rdi 17: e8 5a 5c ba ff callq 0xffba5c76 1c: 48 8b 1b mov (%rbx),%rbx 1f: 48 83 c3 30 add $0x30,%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 3d 5c ba ff callq 0xffba5c76 39: 4c 8b 23 mov (%rbx),%r12 3c: 48 rex.W 3d: 8b .byte 0x8b 3e: 44 rex.R 3f: 24 .byte 0x24