syzbot


WARNING in btrfs_qgroup_free_meta

Status: upstream: reported C repro on 2022/12/09 15:36
Subsystems: btrfs ext4
[Documentation on labels]
Reported-by: syzbot+a85d516b482cdcbf2f12@syzkaller.appspotmail.com
First crash: 729d, last: 644d

Sample crash report:
BTRFS error (device loop3): fail to start transaction for status update: -28
BTRFS info (device loop3): using free space tree
BTRFS info (device loop3): has skinny extents
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8070 at fs/btrfs/qgroup.c:3095 btrfs_qgroup_free_meta+0x3db/0x4d0 fs/btrfs/qgroup.c:3095
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8070 Comm: syz-executor155 Not tainted 4.14.302-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
BTRFS error (device loop3): fail to start transaction for status update: -28
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x44 kernel/panic.c:547
 report_bug+0x208/0x250 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:967
RIP: 0010:btrfs_qgroup_free_meta+0x3db/0x4d0 fs/btrfs/qgroup.c:3095
RSP: 0018:ffff8880b3bdf348 EFLAGS: 00010297
RAX: ffff8880afc26580 RBX: ffff888094140400 RCX: 0000000000001000
RDX: 0000000000000000 RSI: 0000000000001000 RDI: ffff888094140d20
RBP: 0000000000001000 R08: ffffffff8b9ace18 R09: 0000000000000002
R10: 0000000000000000 R11: ffff8880afc26580 R12: ffff8880978c5d80
R13: 0000000000000005 R14: ffff888094140958 R15: 0000000000000002
 start_transaction+0x637/0xf30 fs/btrfs/transaction.c:609
 btrfs_dirty_inode+0x166/0x1d0 fs/btrfs/inode.c:6243
 btrfs_update_time+0x1ab/0x280 fs/btrfs/inode.c:6276
 update_time fs/inode.c:1673 [inline]
 touch_atime+0x1ed/0x250 fs/inode.c:1745
 file_accessed include/linux/fs.h:2077 [inline]
 generic_file_buffered_read mm/filemap.c:2210 [inline]
 generic_file_read_iter+0x12a3/0x21c0 mm/filemap.c:2273
 call_read_iter include/linux/fs.h:1774 [inline]
 new_sync_read fs/read_write.c:401 [inline]
 __vfs_read+0x449/0x620 fs/read_write.c:413
 integrity_kernel_read+0x11b/0x1b0 security/integrity/iint.c:199
 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:381 [inline]
 ima_calc_file_shash security/integrity/ima/ima_crypto.c:410 [inline]
 ima_calc_file_hash+0x3ee/0x780 security/integrity/ima/ima_crypto.c:467
 ima_collect_measurement+0x39d/0x430 security/integrity/ima/ima_api.c:227
 process_measurement+0x78b/0xb20 security/integrity/ima/ima_main.c:264
 do_last fs/namei.c:3435 [inline]
 path_openat+0x10ad/0x2970 fs/namei.c:3571
 do_filp_open+0x179/0x3c0 fs/namei.c:3605
 do_sys_open+0x296/0x410 fs/open.c:1081
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f01089bb589
RSP: 002b:00007fff7ed41e78 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 000000000000725a RCX: 00007f01089bb589
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000280
RBP: 00007fff7ed41e80 R08: 65732f636f72702f R09: 65732f636f72702f
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff7ed41f2c
R13: 00007fff7ed41f60 R14: 00007fff7ed41f40 R15: 0000000000000001
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (66):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/28 07:25 linux-4.14.y c4215ee4771b 44712fbc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/24 06:22 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/16 06:46 linux-4.14.y c4215ee4771b 6f9c033e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/15 03:57 linux-4.14.y c4215ee4771b b18f0a64 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/05 17:51 linux-4.14.y c4215ee4771b 1dac8c7a .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/03/04 12:02 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/03/04 10:19 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/02/28 06:07 linux-4.14.y 7878a41b6cc1 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/02/26 00:12 linux-4.14.y 7878a41b6cc1 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/02/25 15:18 linux-4.14.y 7878a41b6cc1 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/02/24 20:30 linux-4.14.y 1e61bd26fa2c ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/02/22 21:57 linux-4.14.y 1e61bd26fa2c 9f1e2cb3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/02/21 19:45 linux-4.14.y a8ad60f2af58 42a4d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/02/21 07:01 linux-4.14.y a8ad60f2af58 f949448d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/02/20 18:50 linux-4.14.y a8ad60f2af58 2414209c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/02/09 23:49 linux-4.14.y a8ad60f2af58 07980f9d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/02/09 14:53 linux-4.14.y a8ad60f2af58 14a312c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/02/07 09:38 linux-4.14.y a8ad60f2af58 5bc3be51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/02/04 16:16 linux-4.14.y 3949d1610004 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/30 19:15 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/30 18:05 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/24 21:13 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/24 12:03 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/20 09:38 linux-4.14.y 97205fccccdc dd15ff29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/18 20:34 linux-4.14.y 97205fccccdc 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/18 02:11 linux-4.14.y c4215ee4771b 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/13 18:20 linux-4.14.y c4215ee4771b 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/13 14:40 linux-4.14.y c4215ee4771b 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/11 15:57 linux-4.14.y c4215ee4771b 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/11 14:39 linux-4.14.y c4215ee4771b 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/11 08:34 linux-4.14.y c4215ee4771b 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/10 09:32 linux-4.14.y c4215ee4771b 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/10 04:37 linux-4.14.y c4215ee4771b 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/09 22:19 linux-4.14.y c4215ee4771b 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/05 19:13 linux-4.14.y c4215ee4771b 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/05 17:59 linux-4.14.y c4215ee4771b 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/04 12:25 linux-4.14.y c4215ee4771b 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/02 23:36 linux-4.14.y c4215ee4771b ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/02 22:37 linux-4.14.y c4215ee4771b ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/02 10:00 linux-4.14.y c4215ee4771b ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2023/01/02 02:22 linux-4.14.y c4215ee4771b ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/31 23:18 linux-4.14.y c4215ee4771b ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/31 04:49 linux-4.14.y c4215ee4771b ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/30 10:19 linux-4.14.y c4215ee4771b 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/27 05:52 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/27 05:52 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/25 05:50 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/25 05:50 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/24 14:44 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/21 23:20 linux-4.14.y c4215ee4771b 4067838e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/21 05:37 linux-4.14.y c4215ee4771b d3e76707 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/20 08:06 linux-4.14.y c4215ee4771b c52b2efb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/18 17:44 linux-4.14.y c4215ee4771b 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/17 23:13 linux-4.14.y c4215ee4771b 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/16 19:33 linux-4.14.y c4215ee4771b 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/16 17:30 linux-4.14.y c4215ee4771b 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/15 15:43 linux-4.14.y c4215ee4771b 6f9c033e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/15 14:53 linux-4.14.y c4215ee4771b 6f9c033e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/14 20:39 linux-4.14.y c4215ee4771b b18f0a64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/14 19:18 linux-4.14.y c4215ee4771b b18f0a64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/12 13:31 linux-4.14.y 65afe34ac33d 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
2022/12/09 15:36 linux-4.14.y 65afe34ac33d 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in btrfs_qgroup_free_meta
* Struck through repros no longer work on HEAD.