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: 1337d, last: 707d
Fix bisection: failed (error log, bisect log)
  
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2021/10/29 08:56 13m bisect fix linux-4.19.y error job log
2021/09/25 20:30 24m bisect fix linux-4.19.y OK (0) job log log
2021/08/26 20:03 26m bisect fix linux-4.19.y OK (0) job log log
2021/07/27 18:51 31m bisect fix linux-4.19.y OK (0) job log log
2021/06/27 18:27 23m bisect fix linux-4.19.y OK (0) job log log
2021/05/24 16:36 33m bisect fix linux-4.19.y OK (0) job log log

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

Crashes (17):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/23 11:43 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 kernel BUG in inline_xattr_iter_begin
2021/05/28 18:03 linux-4.19.y 6b7b0056defc 858ea628 .config console log report syz C ci2-linux-4-19 kernel BUG in inline_xattr_iter_begin
2021/04/24 16:20 linux-4.19.y 2965db2e004c 17f0b706 .config console log report syz C ci2-linux-4-19 kernel BUG in inline_xattr_iter_begin
2022/06/19 18:20 linux-4.19.y 3f8a27f9e27b 8f633d84 .config console log report syz C ci2-linux-4-19 kernel BUG in xattr_foreach
2022/12/23 11:33 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in inline_xattr_iter_begin
2021/04/24 12:10 linux-4.19.y 2965db2e004c 17f0b706 .config console log report info ci2-linux-4-19 kernel BUG in inline_xattr_iter_begin
2023/01/13 18:52 linux-4.19.y 3f8a27f9e27b 529798b0 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in xattr_foreach
2022/07/27 08:23 linux-4.19.y 3f8a27f9e27b ae971e66 .config console log report info ci2-linux-4-19 kernel BUG in xattr_foreach
2022/06/27 09:28 linux-4.19.y 3f8a27f9e27b a371c43c .config console log report info ci2-linux-4-19 kernel BUG in xattr_foreach
2022/06/27 08:21 linux-4.19.y 3f8a27f9e27b a371c43c .config console log report info ci2-linux-4-19 kernel BUG in xattr_foreach
2022/06/27 02:02 linux-4.19.y 3f8a27f9e27b a371c43c .config console log report info ci2-linux-4-19 kernel BUG in xattr_foreach
2022/06/26 22:26 linux-4.19.y 3f8a27f9e27b a371c43c .config console log report info ci2-linux-4-19 kernel BUG in xattr_foreach
2022/06/26 20:42 linux-4.19.y 3f8a27f9e27b a371c43c .config console log report info ci2-linux-4-19 kernel BUG in xattr_foreach
2022/06/26 18:15 linux-4.19.y 3f8a27f9e27b a371c43c .config console log report info ci2-linux-4-19 kernel BUG in xattr_foreach
2022/06/19 18:04 linux-4.19.y 3f8a27f9e27b 8f633d84 .config console log report info ci2-linux-4-19 kernel BUG in xattr_foreach
2022/06/19 18:04 linux-4.19.y 3f8a27f9e27b 8f633d84 .config console log report info ci2-linux-4-19 kernel BUG in xattr_foreach
2022/02/09 21:51 linux-4.19.y 3f8a27f9e27b 0b33604d .config console log report info ci2-linux-4-19 kernel BUG in xattr_foreach
* Struck through repros no longer work on HEAD.