syzbot


kernel BUG in unrefer_xattr_datum

Status: upstream: reported C repro on 2024/04/04 16:33
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+14e507361b4189f571bd@syzkaller.appspotmail.com
First crash: 187d, last: 140d
Fix bisection: the issue occurs on the latest tested release (bisect log)
Crash: INFO: rcu detected stall in corrupted (log)
Repro: C syz .config
  
Bug presence (3)
Date Name Commit Repro Result
2024/05/21 linux-6.1.y (ToT) 4078fa637fcd C [report] kernel BUG in unrefer_xattr_datum
2024/04/06 upstream (ToT) 6c6e47d69d82 C [report] kernel BUG in unrefer_xattr_datum
2024/05/21 upstream (ToT) 38da32ee70b8 C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in unrefer_xattr_datum jffs2 C 2 163d 183d 0/28 auto-obsoleted due to no activity on 2024/08/07 03:48
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/05/28 06:51 1h58m fix candidate upstream OK (0) job log
2024/05/09 08:22 2h07m bisect fix linux-6.1.y OK (0) job log log

Sample crash report:
jffs2: nextblock 0x0001d000, expected at 0001f000
------------[ cut here ]------------
kernel BUG at fs/jffs2/xattr.c:411!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4236 Comm: syz-executor631 Not tainted 6.1.84-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : unrefer_xattr_datum+0x3a8/0x3ac fs/jffs2/xattr.c:411
lr : unrefer_xattr_datum+0x3a8/0x3ac fs/jffs2/xattr.c:411
sp : ffff80001dda75f0
x29: ffff80001dda7600 x28: 1fffe0001b0f3803 x27: 1fffe0001b0f3808
x26: dfff800000000000 x25: 1fffe0001b0f3804 x24: ffff0000d879c020
x23: 0000000000000001 x22: ffff0000d879c018 x21: ffff0000d56c2000
x20: ffff0000d879c000 x19: ffff0000d56c2638 x18: ffff80001dda68a0
x17: ffff8000188cc000 x16: ffff800008305ec4 x15: ffff800008ae5c40
x14: ffff800008ae8068 x13: ffff800008062674 x12: 0000000000000003
x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff80000975e118
x8 : ffff0000d8769bc0 x7 : ffff800008062464 x6 : ffff800008062674
x5 : ffff0000d894c758 x4 : ffff80001dda7350 x3 : 0000000000000000
x2 : ffff0000d879c018 x1 : 0000000000000001 x0 : 00000000000000ff
Call trace:
 unrefer_xattr_datum+0x3a8/0x3ac fs/jffs2/xattr.c:411
 do_jffs2_setxattr+0xde0/0x1158
 jffs2_trusted_setxattr+0x4c/0x64 fs/jffs2/xattr_trusted.c:33
 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182
 __vfs_setxattr_noperm+0x110/0x528 fs/xattr.c:216
 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277
 vfs_setxattr+0x1a8/0x344 fs/xattr.c:309
 do_setxattr fs/xattr.c:594 [inline]
 setxattr+0x230/0x294 fs/xattr.c:617
 path_setxattr+0x17c/0x258 fs/xattr.c:636
 __do_sys_lsetxattr fs/xattr.c:659 [inline]
 __se_sys_lsetxattr fs/xattr.c:655 [inline]
 __arm64_sys_lsetxattr+0xbc/0xd8 fs/xattr.c:655
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Code: aa1803e0 97c86927 17ffff47 97b67474 (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/04 17:16 linux-6.1.y 347385861c50 0ee3535e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-linux-6-1-kasan-arm64 kernel BUG in unrefer_xattr_datum
2024/04/04 16:33 linux-6.1.y 347385861c50 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in unrefer_xattr_datum
* Struck through repros no longer work on HEAD.