syzbot


kernel BUG in __reserve_bytes

Status: auto-obsoleted due to no activity on 2024/03/10 06:44
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+1c134362d18de07842ca@syzkaller.appspotmail.com
First crash: 424d, last: 423d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] kernel BUG in __reserve_bytes 0 (1) 2023/12/01 13:47

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/btrfs/space-info.c:1638!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 15269 Comm: syz-executor.2 Not tainted 6.7.0-rc3-syzkaller-00048-ge8f60209d6cf #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
RIP: 0010:__reserve_bytes+0xd8e/0x12e0 fs/btrfs/space-info.c:1638
Code: e9 b3 f5 ff ff e8 d2 db ed fd b9 66 06 00 00 48 c7 c2 e0 2c 19 8b 48 c7 c6 a0 32 19 8b 48 c7 c7 80 2d 19 8b e8 b3 b7 d0 fd 90 <0f> 0b e8 ab db ed fd e8 b6 39 dd fd 48 89 44 24 18 e9 62 f7 ff ff
RSP: 0018:ffffc90017956bd0 EFLAGS: 00010282
RAX: 000000000000003b RBX: ffff88807a22c000 RCX: ffffc9000b468000
RDX: 0000000000000000 RSI: ffffffff816b0182 RDI: 0000000000000005
RBP: 0000000000000005 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 000000000019c548 R12: 0000000000000000
R13: ffff88805bc04000 R14: 1ffff92002f2ad81 R15: dffffc0000000000
FS:  00007fa7588a16c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000078fa2000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 btrfs_reserve_metadata_bytes+0x2a/0x110 fs/btrfs/space-info.c:1783
 btrfs_reserve_trans_metadata fs/btrfs/transaction.c:598 [inline]
 start_transaction+0x1837/0x1c90 fs/btrfs/transaction.c:692
 btrfs_dirty_inode+0x189/0x200 fs/btrfs/inode.c:6015
 btrfs_update_time fs/btrfs/inode.c:6041 [inline]
 btrfs_update_time+0xae/0xe0 fs/btrfs/inode.c:6032
 inode_update_time fs/inode.c:1955 [inline]
 touch_atime+0x34f/0x5d0 fs/inode.c:2028
 file_accessed include/linux/fs.h:2360 [inline]
 filemap_read+0xb09/0xcf0 mm/filemap.c:2661
 btrfs_file_read_iter+0x1dc/0x830 fs/btrfs/file.c:3823
 __kernel_read+0x301/0x870 fs/read_write.c:428
 integrity_kernel_read+0x7f/0xb0 security/integrity/iint.c:221
 ima_calc_file_hash_tfm+0x2c5/0x3d0 security/integrity/ima/ima_crypto.c:485
 ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline]
 ima_calc_file_hash+0x1c6/0x4a0 security/integrity/ima/ima_crypto.c:573
 ima_collect_measurement+0x85e/0xa20 security/integrity/ima/ima_api.c:290
 process_measurement+0xe92/0x2260 security/integrity/ima/ima_main.c:359
 ima_file_check+0xc2/0x110 security/integrity/ima/ima_main.c:557
 do_open fs/namei.c:3624 [inline]
 path_openat+0x1821/0x2c50 fs/namei.c:3779
 do_filp_open+0x1de/0x430 fs/namei.c:3809
 do_sys_openat2+0x176/0x1e0 fs/open.c:1440
 do_sys_open fs/open.c:1455 [inline]
 __do_sys_open fs/open.c:1463 [inline]
 __se_sys_open fs/open.c:1459 [inline]
 __x64_sys_open+0x154/0x1e0 fs/open.c:1459
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x40/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fa757a7cae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa7588a10c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007fa757b9c050 RCX: 00007fa757a7cae9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000240
RBP: 00007fa757ac847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fa757b9c050 R15: 00007ffd9a11eb28
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__reserve_bytes+0xd8e/0x12e0 fs/btrfs/space-info.c:1638
Code: e9 b3 f5 ff ff e8 d2 db ed fd b9 66 06 00 00 48 c7 c2 e0 2c 19 8b 48 c7 c6 a0 32 19 8b 48 c7 c7 80 2d 19 8b e8 b3 b7 d0 fd 90 <0f> 0b e8 ab db ed fd e8 b6 39 dd fd 48 89 44 24 18 e9 62 f7 ff ff
RSP: 0018:ffffc90017956bd0 EFLAGS: 00010282

RAX: 000000000000003b RBX: ffff88807a22c000 RCX: ffffc9000b468000
RDX: 0000000000000000 RSI: ffffffff816b0182 RDI: 0000000000000005
RBP: 0000000000000005 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 000000000019c548 R12: 0000000000000000
R13: ffff88805bc04000 R14: 1ffff92002f2ad81 R15: dffffc0000000000
FS:  00007fa7588a16c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3245f000 CR3: 0000000078fa2000 CR4: 0000000000350ef0

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/01 06:43 upstream e8f60209d6cf f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in __reserve_bytes
2023/11/30 16:02 upstream 3b47bc037bd4 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __reserve_bytes
* Struck through repros no longer work on HEAD.