syzbot


WARNING in btrfs_truncate_inode_items

Status: auto-obsoleted due to no activity on 2023/08/23 09:04
Reported-by: syzbot+850fede678301fbdaefd@syzkaller.appspotmail.com
First crash: 574d, last: 574d

Sample crash report:
 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:596
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
------------[ cut here ]------------
WARNING: CPU: 1 PID: 11354 at fs/btrfs/inode.c:4983 btrfs_truncate_inode_items+0x1fd4/0x241c fs/btrfs/inode.c:4983
Modules linked in:
CPU: 1 PID: 11354 Comm: syz-executor.1 Not tainted 5.15.109-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_truncate_inode_items+0x1fd4/0x241c fs/btrfs/inode.c:4983
lr : btrfs_truncate_inode_items+0x1fd4/0x241c fs/btrfs/inode.c:4983
sp : ffff800026d770e0
x29: ffff800026d773e0 x28: 000000000000006c x27: ffff0000dfa30000
x26: 0000000002000000 x25: dfff800000000000 x24: ffff0000ca6874d0
x23: 1fffe000180cc64d x22: 00000000fffffff4 x21: ffff0000da2519d0
x20: ffff0000c0663268 x19: 000000000000001b x18: 0000000000000001
x17: ff8080000833451c x16: ffff8000119409d4 x15: ffff80000833451c
x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000040000
x11: 000000000001409a x10: ffff800023e2c000 x9 : aeb1eecafc1a0600
x8 : aeb1eecafc1a0600 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800026d76858 x4 : ffff8000149af960 x3 : ffff80000854ade0
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026
Call trace:
 btrfs_truncate_inode_items+0x1fd4/0x241c fs/btrfs/inode.c:4983
 btrfs_truncate fs/btrfs/inode.c:9060 [inline]
 btrfs_setsize fs/btrfs/inode.c:5433 [inline]
 btrfs_setattr+0x950/0xe2c fs/btrfs/inode.c:5468
 notify_change+0xac4/0xd60 fs/attr.c:488
 do_truncate+0x1c0/0x28c fs/open.c:65
 handle_truncate fs/namei.c:3195 [inline]
 do_open fs/namei.c:3542 [inline]
 path_openat+0x20e8/0x26f0 fs/namei.c:3672
 do_filp_open+0x1a8/0x3b4 fs/namei.c:3699
 do_sys_openat2+0x128/0x3d8 fs/open.c:1211
 do_sys_open fs/open.c:1227 [inline]
 __do_sys_openat fs/open.c:1243 [inline]
 __se_sys_openat fs/open.c:1238 [inline]
 __arm64_sys_openat+0x1f0/0x240 fs/open.c:1238
 __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:596
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 590
hardirqs last  enabled at (589): [<ffff80000832a15c>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (590): [<ffff80001193c068>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last  enabled at (566): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last  enabled at (566): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (385): [<ffff8000081b56e0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (385): [<ffff8000081b56e0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (385): [<ffff8000081b56e0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636
---[ end trace 039c56ad9a513073 ]---
BTRFS: error (device loop1) in btrfs_truncate_inode_items:4983: errno=-12 Out of memory
BTRFS info (device loop1): forced readonly

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/27 05:45 linux-5.15.y f48aeeaaa64c 19a3dabe .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_truncate_inode_items
* Struck through repros no longer work on HEAD.