syzbot


WARNING in btrfs_fileattr_set

Status: upstream: reported on 2025/01/12 22:39
Reported-by: syzbot+8f8c6cbae94823e3e2f6@syzkaller.appspotmail.com
First crash: 2d10h, last: 2d10h
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in btrfs_fileattr_set (2) btrfs 5 1d09h 10d 0/28 upstream: reported on 2025/01/05 07:36
linux-6.1 WARNING in btrfs_fileattr_set 4 2d09h 5d07h 0/3 upstream: reported on 2025/01/10 01:19
upstream WARNING in btrfs_fileattr_set btrfs 1 838d 838d 0/28 auto-obsoleted due to no activity on 2023/01/27 10:12

Sample crash report:
BTRFS info (device loop4): 1 blocks of free space at or bigger than bytes is
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4151 at fs/btrfs/ioctl.c:339 btrfs_fileattr_set+0x7a8/0x9b8 fs/btrfs/ioctl.c:339
Modules linked in:
CPU: 0 PID: 4151 Comm: syz.4.6 Not tainted 5.15.176-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_fileattr_set+0x7a8/0x9b8 fs/btrfs/ioctl.c:339
lr : btrfs_fileattr_set+0x7a8/0x9b8 fs/btrfs/ioctl.c:339
sp : ffff800020ba7850
x29: ffff800020ba7880 x28: 0000000000000001 x27: dfff800000000000
x26: 0000000000000800 x25: 0000000000000000 x24: 00000000ffffffe4
x23: ffff0000dcbe6210 x22: ffff0000e91e0d48 x21: 0000000000000000
x20: 1fffe0001b97cc4d x19: ffff0000dcbe6268 x18: 0000000000000001
x17: 0000000000000002 x16: ffff800011b4c240 x15: 00000000ffffffff
x14: ffff0000d6c01b40 x13: 0000000000000001 x12: 0000000000080000
x11: 000000000001c754 x10: ffff8000281df000 x9 : bbf645542a737e00
x8 : bbf645542a737e00 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800020ba6fb8 x4 : ffff800014c40660 x3 : ffff8000085567f8
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026
Call trace:
 btrfs_fileattr_set+0x7a8/0x9b8 fs/btrfs/ioctl.c:339
 vfs_fileattr_set+0x70c/0xad4 fs/ioctl.c:700
 do_vfs_ioctl+0x1634/0x2a38
 __do_sys_ioctl fs/ioctl.c:872 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __arm64_sys_ioctl+0xe4/0x1c8 fs/ioctl.c:860
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 612
hardirqs last  enabled at (611): [<ffff80000832c1a4>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (612): [<ffff800011b478f4>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (572): [<ffff8000081b691c>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last  enabled at (572): [<ffff8000081b691c>] handle_softirqs+0xb88/0xdbc kernel/softirq.c:586
softirqs last disabled at (547): [<ffff8000081b6fb4>] __do_softirq kernel/softirq.c:592 [inline]
softirqs last disabled at (547): [<ffff8000081b6fb4>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (547): [<ffff8000081b6fb4>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (547): [<ffff8000081b6fb4>] __irq_exit_rcu+0x268/0x4d8 kernel/softirq.c:641
---[ end trace b4abf9c573c7fe79 ]---
BTRFS: error (device loop4) in btrfs_fileattr_set:339: errno=-28 No space left

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/12 22:38 linux-5.15.y 4735586da88e 6dbc6a9b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_fileattr_set
* Struck through repros no longer work on HEAD.