syzbot
kernel BUG in mapping_try_invalidate (2)
Status:
upstream: reported on 2026/03/05 20:02
Subsystems:
btrfs
Labels:
prio:high
[Documentation on labels]
Reported-by: syzbot+bdad05f2e28a336132a6@syzkaller.appspotmail.com
First crash: 152d, last: 76d
Sample crash report:
btrfs_get_bdev_and_sb+0x114/0x340 fs/btrfs/volumes.c:502
btrfs_open_one_device fs/btrfs/volumes.c:667 [inline]
open_fs_devices+0x1d6/0x1440 fs/btrfs/volumes.c:1249
btrfs_get_tree_super fs/btrfs/super.c:1928 [inline]
btrfs_get_tree_subvol fs/btrfs/super.c:2087 [inline]
btrfs_get_tree+0xbe8/0x1910 fs/btrfs/super.c:2121
vfs_get_tree+0x92/0x2a0 fs/super.c:1754
fc_mount fs/namespace.c:1193 [inline]
do_new_mount_fc fs/namespace.c:3758 [inline]
do_new_mount+0x341/0xd30 fs/namespace.c:3834
do_mount fs/namespace.c:4167 [inline]
__do_sys_mount fs/namespace.c:4383 [inline]
__se_sys_mount+0x31d/0x420 fs/namespace.c:4360
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
------------[ cut here ]------------
kernel BUG at mm/filemap.c:2191!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 1 UID: 0 PID: 22201 Comm: syz.8.4752 Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
RIP: 0010:find_lock_entries+0xb13/0xb20 mm/filemap.c:2190
Code: be c2 ff 4c 89 ff 48 c7 c6 20 b6 d7 8b e8 95 07 25 ff 90 0f 0b e8 0d be c2 ff 4c 89 ff 48 c7 c6 20 ae d7 8b e8 7e 07 25 ff 90 <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900035475a0 EFLAGS: 00010246
RAX: 8363da50ef21d600 RBX: ffffea0000adbb88 RCX: 0000000000000046
RDX: 0000000000000002 RSI: ffffffff8e21eb50 RDI: ffff888032f6bd80
RBP: ffffc900035476f0 R08: ffffc90003546fc7 R09: 1ffff920006a8df8
R10: dffffc0000000000 R11: fffff520006a8df9 R12: 0000000000000000
R13: 0000000000000001 R14: 0000000000000200 R15: ffffea0000adbb80
FS: 00007f9a4a7106c0(0000) GS:ffff88812538a000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7f8f617dac CR3: 0000000061bef000 CR4: 0000000000350ef0
Call Trace:
<TASK>
mapping_try_invalidate+0x1ae/0x4c0 mm/truncate.c:545
open_ctree+0x9bf/0x4190 fs/btrfs/disk-io.c:3314
btrfs_fill_super fs/btrfs/super.c:981 [inline]
btrfs_get_tree_super fs/btrfs/super.c:1944 [inline]
btrfs_get_tree_subvol fs/btrfs/super.c:2087 [inline]
btrfs_get_tree+0x1061/0x1910 fs/btrfs/super.c:2121
vfs_get_tree+0x92/0x2a0 fs/super.c:1754
fc_mount fs/namespace.c:1193 [inline]
do_new_mount_fc fs/namespace.c:3758 [inline]
do_new_mount+0x341/0xd30 fs/namespace.c:3834
do_mount fs/namespace.c:4167 [inline]
__do_sys_mount fs/namespace.c:4383 [inline]
__se_sys_mount+0x31d/0x420 fs/namespace.c:4360
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9a4979e0ca
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9a4a70fe58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f9a4a70fee0 RCX: 00007f9a4979e0ca
RDX: 00002000000055c0 RSI: 0000200000000140 RDI: 00007f9a4a70fea0
RBP: 00002000000055c0 R08: 00007f9a4a70fee0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000140
R13: 00007f9a4a70fea0 R14: 000000000000559a R15: 0000200000000080
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:find_lock_entries+0xb13/0xb20 mm/filemap.c:2190
Code: be c2 ff 4c 89 ff 48 c7 c6 20 b6 d7 8b e8 95 07 25 ff 90 0f 0b e8 0d be c2 ff 4c 89 ff 48 c7 c6 20 ae d7 8b e8 7e 07 25 ff 90 <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900035475a0 EFLAGS: 00010246
RAX: 8363da50ef21d600 RBX: ffffea0000adbb88 RCX: 0000000000000046
RDX: 0000000000000002 RSI: ffffffff8e21eb50 RDI: ffff888032f6bd80
RBP: ffffc900035476f0 R08: ffffc90003546fc7 R09: 1ffff920006a8df8
R10: dffffc0000000000 R11: fffff520006a8df9 R12: 0000000000000000
R13: 0000000000000001 R14: 0000000000000200 R15: ffffea0000adbb80
FS: 00007f9a4a7106c0(0000) GS:ffff88812538a000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f12f0df2fe0 CR3: 0000000061bef000 CR4: 0000000000350ef0
* Struck through repros no longer work on HEAD.