syzbot
kernel BUG in inline_xattr_iter_begin
Status:
upstream: reported C repro on 2021/04/24 12:11
Subsystems:
erofs
[Documentation on labels]
Reported-by: syzbot+2d948a60d5065c36f880@syzkaller.appspotmail.com
First crash: 1947d, last: 1318d
▶
▼
Fix bisection attempts (6)
Sample crash report:
erofs: read_super, device -> /dev/loop0
erofs: options ->
------------[ cut here ]------------
kernel BUG at drivers/staging/erofs/xattr.c:186!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8095 Comm: syz-executor207 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:inline_xattr_iter_begin+0x3c4/0x4a0 drivers/staging/erofs/xattr.c:186
Code: 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 16 01 28 fb 44 89 ee 89 ef 41 bc c3 ff ff ff e8 f6 01 28 fb 44 39 ed 73 cf e8 fc 00 28 fb <0f> 0b e8 f5 00 28 fb 41 89 ec eb be e8 4b dd 5d fb e9 b9 fc ff ff
RSP: 0018:ffff88809530fc88 EFLAGS: 00010293
RAX: ffff8880b0f3e100 RBX: ffff88808a83d958 RCX: ffffffff863a846a
RDX: 0000000000000000 RSI: ffffffff863a8474 RDI: 0000000000000004
RBP: 000000000000002c R08: 0000000000000001 R09: 000000000000002c
R10: 0000000000000004 R11: 0000000000000000 R12: 00000000ffffffc3
R13: 0000000000000408 R14: ffff88808a83d942 R15: ffff88809824f800
FS: 00005555569a7300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005606c3be90d0 CR3: 000000009fd24000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
inline_listxattr drivers/staging/erofs/xattr.c:584 [inline]
erofs_listxattr+0x147/0xf10 drivers/staging/erofs/xattr.c:653
vfs_listxattr+0x105/0x190 fs/xattr.c:392
listxattr+0x70/0x140 fs/xattr.c:687
path_listxattr+0xae/0x140 fs/xattr.c:711
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fa820a05789
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd86daaa18 EFLAGS: 00000246 ORIG_RAX: 00000000000000c3
RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007fa820a05789
RDX: 0000000000000002 RSI: 0000000000000000 RDI: 0000000020000040
RBP: 00007fa8209c5020 R08: 00000000000001a9 R09: 0000000000000000
R10: 00007ffd86daa8e0 R11: 0000000000000246 R12: 00007fa8209c50b0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace cd3a95c7a0b887a3 ]---
RIP: 0010:inline_xattr_iter_begin+0x3c4/0x4a0 drivers/staging/erofs/xattr.c:186
Code: 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 16 01 28 fb 44 89 ee 89 ef 41 bc c3 ff ff ff e8 f6 01 28 fb 44 39 ed 73 cf e8 fc 00 28 fb <0f> 0b e8 f5 00 28 fb 41 89 ec eb be e8 4b dd 5d fb e9 b9 fc ff ff
RSP: 0018:ffff88809530fc88 EFLAGS: 00010293
RAX: ffff8880b0f3e100 RBX: ffff88808a83d958 RCX: ffffffff863a846a
RDX: 0000000000000000 RSI: ffffffff863a8474 RDI: 0000000000000004
RBP: 000000000000002c R08: 0000000000000001 R09: 000000000000002c
R10: 0000000000000004 R11: 0000000000000000 R12: 00000000ffffffc3
R13: 0000000000000408 R14: ffff88808a83d942 R15: ffff88809824f800
FS: 00005555569a7300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005606c3be90d0 CR3: 000000009fd24000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
* Struck through repros no longer work on HEAD.