loop0: detected capacity change from 0 to 32768 ea_get: invalid extended attribute general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027] CPU: 1 PID: 4159 Comm: syz-executor.0 Not tainted 6.0.0-rc7-syzkaller-00239-gb357fd1c2afc-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:hex_dump_to_buffer+0x1b4/0xdf0 lib/hexdump.c:193 Code: 7d fd 49 83 ff 01 0f 84 05 0b 00 00 e8 25 52 7d fd 48 8b 7c 24 18 48 b8 00 00 00 00 00 fc ff df 48 89 fa 83 e7 07 48 c1 ea 03 <0f> b6 04 02 40 38 f8 7f 08 84 c0 0f 85 f2 0b 00 00 48 8b 44 24 18 RSP: 0018:ffffc900034470e0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000010 RCX: 0000000000000000 RDX: 0000000000000004 RSI: ffffffff83fde4fb RDI: 0000000000000002 RBP: 0000000000000021 R08: 0000000000000007 R09: 0000000000000001 R10: 0000000000000083 R11: 0000000000000000 R12: 0000000000000010 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000083 FS: 00007f3f34bd5700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3f33bad0b0 CR3: 000000006bbbc000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: print_hex_dump+0x12f/0x1d0 lib/hexdump.c:276 ea_get.cold+0xd2/0x1c2 fs/jfs/xattr.c:561 __jfs_getxattr+0xc4/0x3d0 fs/jfs/xattr.c:807 jfs_xattr_get+0x39/0x50 fs/jfs/xattr.c:931 __vfs_getxattr+0xd9/0x140 fs/xattr.c:411 inode_doinit_use_xattr+0xb5/0x340 security/selinux/hooks.c:1321 inode_doinit_with_dentry+0xcd3/0x12e0 security/selinux/hooks.c:1443 selinux_d_instantiate+0x23/0x30 security/selinux/hooks.c:6327 security_d_instantiate+0x50/0xe0 security/security.c:2056 d_splice_alias+0x8c/0xc80 fs/dcache.c:3155 jfs_lookup+0x20c/0x2f0 fs/jfs/namei.c:1467 lookup_open.isra.0+0x76a/0x12a0 fs/namei.c:3391 open_last_lookups fs/namei.c:3481 [inline] path_openat+0x996/0x28f0 fs/namei.c:3688 do_filp_open+0x1b6/0x400 fs/namei.c:3718 do_sys_openat2+0x16d/0x4c0 fs/open.c:1313 do_sys_open fs/open.c:1329 [inline] __do_sys_open fs/open.c:1337 [inline] __se_sys_open fs/open.c:1333 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1333 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3f33a8a5a9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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:00007f3f34bd5168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f3f33babf80 RCX: 00007f3f33a8a5a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007f3f33ae5580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe411969bf R14: 00007f3f34bd5300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hex_dump_to_buffer+0x1b4/0xdf0 lib/hexdump.c:193 Code: 7d fd 49 83 ff 01 0f 84 05 0b 00 00 e8 25 52 7d fd 48 8b 7c 24 18 48 b8 00 00 00 00 00 fc ff df 48 89 fa 83 e7 07 48 c1 ea 03 <0f> b6 04 02 40 38 f8 7f 08 84 c0 0f 85 f2 0b 00 00 48 8b 44 24 18 RSP: 0018:ffffc900034470e0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000010 RCX: 0000000000000000 RDX: 0000000000000004 RSI: ffffffff83fde4fb RDI: 0000000000000002 RBP: 0000000000000021 R08: 0000000000000007 R09: 0000000000000001 R10: 0000000000000083 R11: 0000000000000000 R12: 0000000000000010 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000083 FS: 00007f3f34bd5700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb91f76b2e0 CR3: 000000006bbbc000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 7d fd jge 0xffffffff 2: 49 83 ff 01 cmp $0x1,%r15 6: 0f 84 05 0b 00 00 je 0xb11 c: e8 25 52 7d fd callq 0xfd7d5236 11: 48 8b 7c 24 18 mov 0x18(%rsp),%rdi 16: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1d: fc ff df 20: 48 89 fa mov %rdi,%rdx 23: 83 e7 07 and $0x7,%edi 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 40 38 f8 cmp %dil,%al 31: 7f 08 jg 0x3b 33: 84 c0 test %al,%al 35: 0f 85 f2 0b 00 00 jne 0xc2d 3b: 48 8b 44 24 18 mov 0x18(%rsp),%rax