syzbot


WARNING in btrfs_destroy_inode

Status: upstream: reported on 2022/10/21 09:56
Reported-by: syzbot+d4d23ca08383875f6956@syzkaller.appspotmail.com
First crash: 36d, last: 36d

Sample crash report:
loop0: detected capacity change from 0 to 32768
BTRFS info (device loop0): using xxhash64 (xxhash64-generic) checksum algorithm
BTRFS info (device loop0): using free space tree
BTRFS info (device loop0): enabling ssd optimizations
------------[ cut here ]------------
WARNING: CPU: 1 PID: 27221 at fs/btrfs/inode.c:8963 btrfs_destroy_inode+0x274/0x2f8 fs/btrfs/inode.c:8963
Modules linked in:
CPU: 1 PID: 27221 Comm: syz-executor.0 Not tainted 6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_destroy_inode+0x274/0x2f8 fs/btrfs/inode.c:8963
lr : btrfs_destroy_inode+0x274/0x2f8 fs/btrfs/inode.c:8963
sp : ffff800020f13a30
x29: ffff800020f13a30 x28: 0000000000000040 x27: ffff000128be1d68
x26: ffff00012a3c0c30 x25: 0000000000000000 x24: ffff00011a6704c0
x23: ffff80000d3480b0 x22: 0000000000000000 x21: ffff80000c1419d0
x20: ffff00011a672a20 x19: ffff00011a672560 x18: 0000000000000000
x17: 0000000000000000 x16: ffff80000db49158 x15: ffff000128e49a80
x14: 0000000000000010 x13: 0000000000000000 x12: 0000000000040000
x11: 0000000000001bfd x10: ffff800022c9f000 x9 : ffff800009132e4c
x8 : 0000000000001bfe x7 : ffff8000084b15e8 x6 : 0000000000000000
x5 : 0000000000000d40 x4 : 0000000000000038 x3 : 0000000000000038
x2 : ffff0000c001c800 x1 : 00000000fffffff4 x0 : ffff00011a672a20
Call trace:
 btrfs_destroy_inode+0x274/0x2f8 fs/btrfs/inode.c:8963
 alloc_inode+0xb0/0x104 fs/inode.c:269
 new_inode_pseudo fs/inode.c:1019 [inline]
 new_inode+0x2c/0xc0 fs/inode.c:1047
 btrfs_create+0x34/0xb0 fs/btrfs/inode.c:6690
 lookup_open fs/namei.c:3413 [inline]
 open_last_lookups fs/namei.c:3481 [inline]
 path_openat+0x804/0x11c4 fs/namei.c:3688
 do_filp_open+0xdc/0x1b8 fs/namei.c:3718
 do_sys_openat2+0xb8/0x22c fs/open.c:1313
 do_sys_open fs/open.c:1329 [inline]
 __do_sys_openat fs/open.c:1345 [inline]
 __se_sys_openat fs/open.c:1340 [inline]
 __arm64_sys_openat+0xb0/0xe0 fs/open.c:1340
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
irq event stamp: 4032
hardirqs last  enabled at (4031): [<ffff8000085633bc>] mod_objcg_state+0x19c/0x204 mm/memcontrol.c:3158
hardirqs last disabled at (4032): [<ffff80000bfb5fbc>] el1_dbg+0x24/0x5c arch/arm64/kernel/entry-common.c:404
softirqs last  enabled at (3900): [<ffff80000801c33c>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (3898): [<ffff80000801c308>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19
---[ end trace 0000000000000000 ]---

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-arm64 2022/10/21 09:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 63e790dd .config log report info WARNING in btrfs_destroy_inode
* Struck through repros no longer work on HEAD.