erofs: root inode @ nid 36 erofs: mounted on /dev/loop2 with opts: . ALSA: mixer_oss: invalid OSS volume '' erofs: mounted on /dev/loop5 with opts: . ------------[ cut here ]------------ kernel BUG at drivers/staging/erofs/xattr.c:224! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 24461 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 netlink: 12 bytes leftover after parsing attributes in process `syz-executor.3'. RIP: 0010:xattr_foreach+0x1377/0x1900 drivers/staging/erofs/xattr.c:224 Code: 3c 03 6b 1c 03 6c 24 38 44 29 e5 89 6b 1c e9 fb f7 ff ff e8 bb ec 27 fb 4c 89 ef e8 b3 11 47 fb e9 47 fd ff ff e8 a9 ec 27 fb <0f> 0b e8 a2 ec 27 fb 4c 89 fa 48 b8 00 00 00 00 00 fc ff df 48 c1 RSP: 0018:ffff888093107508 EFLAGS: 00010212 RAX: 0000000000040000 RBX: ffff888093107688 RCX: ffffc9000a34f000 RDX: 0000000000000a4b RSI: ffffffff863a98c7 RDI: 0000000000000004 RBP: ffff888093107678 R08: 0000000000000000 R09: 0000000000000004 R10: 0000000000000004 R11: 000000001b6a1ff2 R12: 00000000000032ec R13: 0000000000000004 R14: 00000000ffffffc3 R15: ffff8880931076a4 FS: 00007f467ea38700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f468051f9d8 CR3: 00000000b2906000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: inline_getxattr drivers/staging/erofs/xattr.c:360 [inline] erofs_getxattr+0x19e/0xf10 drivers/staging/erofs/xattr.c:446 erofs_xattr_generic_get+0xf6/0x1e0 drivers/staging/erofs/xattr.c:473 vfs_getxattr_alloc+0x1ad/0x330 fs/xattr.c:320 kauditd_printk_skb: 150 callbacks suppressed audit: type=1800 audit(1673635926.031:985): pid=24514 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=15121 res=0 audit: type=1800 audit(1673635926.031:986): pid=24514 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=15121 res=0 ALSA: mixer_oss: invalid OSS volume '' ima_read_xattr+0x2c/0x60 security/integrity/ima/ima_appraise.c:196 process_measurement+0xdab/0x1440 security/integrity/ima/ima_main.c:280 audit: type=1800 audit(1673635926.031:987): pid=24514 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=15121 res=0 ima_file_check+0xb9/0x100 security/integrity/ima/ima_main.c:391 do_last fs/namei.c:3425 [inline] path_openat+0x7e4/0x2df0 fs/namei.c:3537 ALSA: mixer_oss: invalid OSS volume '' do_filp_open+0x18c/0x3f0 fs/namei.c:3567 audit: type=1800 audit(1673635926.031:988): pid=24514 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=15121 res=0 audit: type=1800 audit(1673635926.031:989): pid=24514 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=15121 res=0 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f46804c60c9 audit: type=1800 audit(1673635926.031:990): pid=24514 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=15121 res=0 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:00007f467ea38168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f46805e5f80 RCX: 00007f46804c60c9 RDX: 000000000000012c RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007f4680521ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe106fe3cf R14: 00007f467ea38300 R15: 0000000000022000 Modules linked in: ---[ end trace f6266c4d52e9ff5a ]--- erofs: unmounted for /dev/loop5 RIP: 0010:xattr_foreach+0x1377/0x1900 drivers/staging/erofs/xattr.c:224 audit: type=1800 audit(1673635926.031:991): pid=24514 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=15121 res=0 Code: 3c 03 6b 1c 03 6c 24 38 44 29 e5 89 6b 1c e9 fb f7 ff ff e8 bb ec 27 fb 4c 89 ef e8 b3 11 47 fb e9 47 fd ff ff e8 a9 ec 27 fb <0f> 0b e8 a2 ec 27 fb 4c 89 fa 48 b8 00 00 00 00 00 fc ff df 48 c1 audit: type=1800 audit(1673635926.031:992): pid=24514 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=15121 res=0 RSP: 0018:ffff888093107508 EFLAGS: 00010212 RAX: 0000000000040000 RBX: ffff888093107688 RCX: ffffc9000a34f000 RDX: 0000000000000a4b RSI: ffffffff863a98c7 RDI: 0000000000000004 RBP: ffff888093107678 R08: 0000000000000000 R09: 0000000000000004 R10: 0000000000000004 R11: 000000001b6a1ff2 R12: 00000000000032ec R13: 0000000000000004 R14: 00000000ffffffc3 R15: ffff8880931076a4 FS: 00007f467ea38700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f468051f9d8 CR3: 00000000b2906000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 28 00 sub %al,(%rax) 2: 00 00 add %al,(%rax) 4: 75 05 jne 0xb 6: 48 83 c4 28 add $0x28,%rsp a: c3 retq b: e8 f1 19 00 00 callq 0x1a01 10: 90 nop 11: 48 89 f8 mov %rdi,%rax 14: 48 89 f7 mov %rsi,%rdi 17: 48 89 d6 mov %rdx,%rsi 1a: 48 89 ca mov %rcx,%rdx 1d: 4d 89 c2 mov %r8,%r10 20: 4d 89 c8 mov %r9,%r8 23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 28: 0f 05 syscall * 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 30: 73 01 jae 0x33 32: c3 retq 33: 48 c7 c1 b8 ff ff ff mov $0xffffffffffffffb8,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W