syzbot


kernel BUG in mapping_try_invalidate (2)

Status: upstream: reported on 2026/03/05 20:02
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+bdad05f2e28a336132a6@syzkaller.appspotmail.com
First crash: 78d, last: 2d11h
✨ AI Jobs (3)
ID Workflow Result Correct Bug Created Started Finished Revision Error
d88fcbcf-e4a3-498c-8eb3-262022631a5e repro 💥 kernel BUG in mapping_try_invalidate (2) 2026/03/26 09:57 2026/03/26 09:57 2026/03/26 09:57 c6143aacd8e1a01f2482ab5eec709f9949710cee tool reproduce-crash failed: error: 0 params found, expected 14 <= x <= 16 args: map[ReproSyz:r0 = openat$nullb(0xffffffffffffff9c, &AUTO='/dev/nullb0\x00', 0x2, 0x0) mmap(&(0x7f0000000000/0x200000)=nil, 0x200000, 0x3, 0x11, r0, 0x0) madvise(&(0x7f0000000000/0x200000)=nil, 0x200000, 0xe) read(r0, &(0x7f0000200000/0x200000)=nil, 0x200000) ioctl$BLKFLSBUF(r0, 0x1261, 0x0) (async) fallocate(r0, 0x3, 0x1000, 0x1000)]
5bf5d575-0b65-4177-828c-2ebb55386ba9 repro 💥 kernel BUG in mapping_try_invalidate (2) 2026/03/24 20:18 2026/03/24 20:18 2026/03/24 20:50 b4723e5f74ba22106ffa2bcc9bd0e1eb3f7c962f tool reproduce-crash failed: error: 0 params found, expected 14 <= x <= 16 args: map[ReproSyz:r0 = openat$nullb(0xffffffffffffff9c, &AUTO='/dev/nullb0\x00', 0x2, 0x0) mmap(&(0x7f0000000000/0x200000)=nil, 0x200000, 0x3, 0x11, r0, 0x0) madvise(&(0x7f0000000000/0x200000)=nil, 0x200000, 0xe) read(r0, &(0x7f0000200000/0x200000)=nil, 0x200000) ioctl$BLKFLSBUF(r0, 0x1261, 0x0) (async) fallocate(r0, 0x3, 0x1000, 0x1000)]
1c8289ad-b0c9-46b7-9f9c-3c21f1d11df7 repro 💥 kernel BUG in mapping_try_invalidate (2) 2026/03/24 12:08 2026/03/24 12:18 2026/03/24 20:18 971831e4896625f799f350fe4439dc0774b7154a+ Aborted: assigned agent has been inactive for too long
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] kernel BUG in mapping_try_invalidate (2) 0 (1) 2026/03/05 20:02
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in mapping_try_invalidate block -1 1 832d 832d 0/29 auto-obsoleted due to no activity on 2024/05/17 02:37

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

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/05/17 00:55 upstream 6916d5703ddf de5aae85 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in mapping_try_invalidate
2026/03/17 06:28 upstream 2d1373e4246d 0737c18f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in mapping_try_invalidate
2026/03/01 19:53 upstream eb71ab2bf722 43249bac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in mapping_try_invalidate
* Struck through repros no longer work on HEAD.