syzbot


kernel BUG in clear_inode (3)

Status: upstream: reported C repro on 2024/11/22 00:29
Bug presence: origin:lts-only
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+fd3c895d1c86f6104539@syzkaller.appspotmail.com
First crash: 329d, last: 38d
Fix commit to backport (bisect log) :
tree: upstream
commit 8c3f9a70d2d4dd6c640afe294b05c6a0a45434d9
Author: Dmitry Antipov <dmantipov@yandex.ru>
Date: Thu Nov 7 05:42:28 2024 +0000

  jfs: reject on-disk inodes of an unsupported type

[report pending]
  
Bug presence (2)
Date Name Commit Repro Result
2025/09/08 linux-5.15.y (ToT) 7a6c2d093c45 C [report] kernel BUG in clear_inode
2025/09/08 upstream (ToT) 76eeb9b8de98 C Didn't crash
Similar bugs (9)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in clear_inode (2) jfs -1 C inconclusive 986 128d 353d 28/29 fixed on 2025/06/10 16:19
linux-6.1 kernel BUG in clear_inode origin:upstream missing-backport -1 C inconclusive 28 61d 875d 0/3 upstream: reported C repro on 2023/05/25 23:24
linux-6.6 kernel BUG in clear_inode origin:upstream missing-backport -1 C inconclusive 6 61d 121d 0/2 upstream: reported C repro on 2025/06/18 00:00
upstream kernel BUG in clear_inode (4) f2fs -1 C done 6 6d05h 37d 27/29 upstream: reported C repro on 2025/09/09 21:11
linux-5.15 kernel BUG in clear_inode -1 1 899d 899d 0/3 auto-obsoleted due to no activity on 2023/08/23 09:07
upstream kernel BUG in clear_inode (3) jfs -1 C error 637 45d 126d 29/29 fixed on 2025/09/04 16:57
linux-5.15 kernel BUG in clear_inode (2) -1 2 454d 533d 0/3 auto-obsoleted due to no activity on 2024/10/27 05:50
upstream kernel BUG in clear_inode btrfs -1 C 12 361d 503d 28/29 fixed on 2024/10/22 11:57
upstream kernel BUG at fs/inode.c:LINE! (2) fs -1 C done unreliable 322 527d 1875d 25/29 fixed on 2024/05/21 07:00
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2025/06/06 21:06 4h54m fix candidate upstream OK (1) job log

Sample crash report:
ntfs: (device loop0): load_system_files(): Failed to load $LogFile.  Will not be able to remount read-write.  Mount in Windows.
ntfs: (device loop0): ntfs_lookup_inode_by_name(): Directory index record with vcn 0xffffffffffffffff is corrupt.  Corrupt inode 0x5.  Run chkdsk.
------------[ cut here ]------------
kernel BUG at fs/inode.c:567!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4019 Comm: syz-executor253 Not tainted 5.15.173-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : clear_inode+0x124/0x148 fs/inode.c:567
lr : clear_inode+0x124/0x148 fs/inode.c:567
sp : ffff80001fd776b0
x29: ffff80001fd776b0 x28: dfff800000000000 x27: 1fffe0001c4128a9
x26: 1fffe0001c4128dd x25: 1fffe0001c4128bf x24: dfff800000000000
x23: ffff0000e20945a8 x22: dfff800000000000 x21: 0000000000000001
x20: ffff0000e2094750 x19: ffff0000e2094520 x18: 0000000000000000
x17: 0000000000000000 x16: ffff8000083052d8 x15: 0000000000000406
x14: 1ffff0000296c06c x13: dfff800000000000 x12: ffff700003faeebc
x11: 0000000000000001 x10: 0000000000000000 x9 : ffff0000c8d9d1c0
x8 : ffff8000089eb224 x7 : ffff8000089eb134 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff800008305408
x2 : 0000000000000001 x1 : 0000000000000001 x0 : 0000000000000000
Call trace:
 clear_inode+0x124/0x148 fs/inode.c:567
 ntfs_evict_big_inode+0x44/0x430 fs/ntfs/inode.c:2252
 evict+0x418/0x894 fs/inode.c:622
 iput_final fs/inode.c:1744 [inline]
 iput+0x744/0x824 fs/inode.c:1770
 ntfs_put_super+0x82c/0xe28 fs/ntfs/super.c:2356
 generic_shutdown_super+0x130/0x2f0 fs/super.c:475
 kill_block_super+0x70/0xdc fs/super.c:1427
 deactivate_locked_super+0xb8/0x13c fs/super.c:335
 deactivate_super+0x108/0x128 fs/super.c:366
 cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
 __cleanup_mnt+0x20/0x30 fs/namespace.c:1150
 task_work_run+0x130/0x1e4 kernel/task_work.c:188
 exit_task_work include/linux/task_work.h:33 [inline]
 do_exit+0x670/0x20bc kernel/exit.c:874
 do_group_exit+0x110/0x268 kernel/exit.c:996
 __do_sys_exit_group kernel/exit.c:1007 [inline]
 __se_sys_exit_group kernel/exit.c:1005 [inline]
 __wake_up_parent+0x0/0x60 kernel/exit.c:1005
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
Code: a8c47bfd d50323bf d65f03c0 97eb6437 (d4210000) 
---[ end trace 51f66081bdf2aee2 ]---

Crashes (25):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/28 17:51 linux-5.15.y 0a51d2d4527b 5df23865 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in clear_inode
2025/08/16 07:11 linux-5.15.y c79648372d02 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in clear_inode
2025/07/28 12:21 linux-5.15.y c79648372d02 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in clear_inode
2025/07/21 09:39 linux-5.15.y c79648372d02 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in clear_inode
2025/06/13 03:47 linux-5.15.y 1c700860e8bc 98683f8f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in clear_inode
2025/06/08 08:03 linux-5.15.y 1c700860e8bc 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in clear_inode
2025/06/01 14:54 linux-5.15.y 98f47d0e9b8c 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in clear_inode
2025/04/21 00:37 linux-5.15.y f7347f400572 2a20f901 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan kernel BUG in clear_inode
2025/04/20 23:18 linux-5.15.y f7347f400572 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in clear_inode
2025/01/23 15:58 linux-5.15.y 4735586da88e a44b0418 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in clear_inode
2025/01/21 01:13 linux-5.15.y 4735586da88e 6e87cfa2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in clear_inode
2024/12/09 11:19 linux-5.15.y 0a51d2d4527b 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in clear_inode
2024/12/07 02:24 linux-5.15.y 0a51d2d4527b 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in clear_inode
2024/11/22 20:19 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in clear_inode
2024/11/22 18:50 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in clear_inode
2024/11/22 16:58 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in clear_inode
2024/11/22 14:58 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in clear_inode
2024/11/22 13:49 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in clear_inode
2024/11/22 03:09 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in clear_inode
2024/11/22 00:30 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in clear_inode
2024/11/22 00:28 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in clear_inode
2024/11/22 00:28 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in clear_inode
2025/05/13 05:34 linux-5.15.y 3b8db0e4f263 f6671af7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in clear_inode
2025/02/07 16:11 linux-5.15.y c16c81c81336 53657d1b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in clear_inode
2025/02/04 20:44 linux-5.15.y c16c81c81336 8f267cef .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in clear_inode
* Struck through repros no longer work on HEAD.