syzbot


kernel BUG in nilfs_delete_entry

Status: upstream: reported C repro on 2024/04/29 13:18
Subsystems: nilfs
[Documentation on labels]
Reported-by: syzbot+32c3706ebf5d95046ea1@syzkaller.appspotmail.com
Fix commit: ee70999a988b nilfs2: handle errors that nilfs_prepare_chunk() may return
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu-native-arm64-kvm ci-qemu2-arm32]
First crash: 291d, last: 26d
Cause bisection: introduced by (bisect log) :
commit 602ce7b8e1343b19c0cf93a3dd1926838ac5a1cc
Author: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Date: Fri Jan 27 13:22:02 2023 +0000

  nilfs2: prevent WARNING in nilfs_dat_commit_end()

Crash: WARNING in mark_buffer_dirty (log)
Repro: C syz .config
  
Discussions (4)
Title Replies (including bot) Last reply
[PATCH 0/2] nilfs2: fix issues with rename operations 3 (3) 2025/01/11 14:26
[syzbot] Monthly nilfs report (Dec 2024) 0 (1) 2024/12/30 01:15
[syzbot] Monthly nilfs report (Oct 2024) 0 (1) 2024/10/11 15:25
[syzbot] [nilfs?] kernel BUG in nilfs_delete_entry 1 (2) 2024/04/29 18:11
Last patch testing requests (4)
Created Duration User Patch Repo Result
2025/01/08 16:01 13m retest repro upstream report log
2025/01/08 16:01 15m retest repro upstream report log
2024/10/15 01:00 0m retest repro upstream error
2024/05/13 04:47 12m retest repro upstream report log
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2024/10/29 17:15 2h42m bisect fix upstream OK (0) job log log
2024/07/25 01:03 2h29m bisect fix upstream OK (0) job log log
2024/06/12 07:26 1h53m bisect fix upstream OK (0) job log log

Sample crash report:
Remounting filesystem read-only
NILFS (loop0): error -5 reading inode: ino=18
NILFS (loop0): cannot mark inode dirty (ino=18): error -5 loading inode block
NILFS error (device loop0): nilfs_bmap_lookup_contig: broken bmap (inode number=2)
------------[ cut here ]------------
kernel BUG at fs/nilfs2/dir.c:546!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 1 UID: 0 PID: 6092 Comm: syz-executor936 Not tainted 6.13.0-rc1-syzkaller-00182-gb8f52214c61a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:nilfs_delete_entry+0x359/0x360 fs/nilfs2/dir.c:546
Code: e8 4c f5 87 fe eb b9 44 89 f9 80 e1 07 fe c1 38 c1 0f 8c 10 ff ff ff 4c 89 ff e8 02 f5 87 fe e9 03 ff ff ff e8 68 38 20 fe 90 <0f> 0b 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900046778b8 EFLAGS: 00010293
RAX: ffffffff837f3958 RBX: 0000000000000068 RCX: ffff888025fe3c00
RDX: 0000000000000000 RSI: 00000000fffffffb RDI: 0000000000000000
RBP: 00000000fffffffb R08: ffffffff837f381e R09: 1ffff1100e6405d0
R10: dffffc0000000000 R11: ffffed100e6405d1 R12: ffffea0001e3a0c0
R13: ffff888078e83050 R14: 0000000000000038 R15: ffff888078e83038
FS:  00007f74238506c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f741b4ff000 CR3: 0000000032c66000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 nilfs_rename+0x7fa/0xb60 fs/nilfs2/namei.c:428
 vfs_rename+0xbdb/0xf00 fs/namei.c:5067
 do_renameat2+0xd94/0x13f0 fs/namei.c:5224
 __do_sys_rename fs/namei.c:5271 [inline]
 __se_sys_rename fs/namei.c:5269 [inline]
 __x64_sys_rename+0x82/0x90 fs/namei.c:5269
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f74238baad9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 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:00007f7423850218 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f74239436b8 RCX: 00007f74238baad9
RDX: 00007f7423894136 RSI: 0000000020000080 RDI: 00000000200000c0
RBP: 00007f74239436b0 R08: 00007ffeca29b357 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f74239436bc
R13: 00007f742390f0c0 R14: 0000000020002340 R15: 0031656c69662f2e
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:nilfs_delete_entry+0x359/0x360 fs/nilfs2/dir.c:546
Code: e8 4c f5 87 fe eb b9 44 89 f9 80 e1 07 fe c1 38 c1 0f 8c 10 ff ff ff 4c 89 ff e8 02 f5 87 fe e9 03 ff ff ff e8 68 38 20 fe 90 <0f> 0b 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900046778b8 EFLAGS: 00010293
RAX: ffffffff837f3958 RBX: 0000000000000068 RCX: ffff888025fe3c00
RDX: 0000000000000000 RSI: 00000000fffffffb RDI: 0000000000000000
RBP: 00000000fffffffb R08: ffffffff837f381e R09: 1ffff1100e6405d0
R10: dffffc0000000000 R11: ffffed100e6405d1 R12: ffffea0001e3a0c0
R13: ffff888078e83050 R14: 0000000000000038 R15: ffff888078e83038
FS:  00007f74238506c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f741b4ff000 CR3: 0000000032c66000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/06 11:12 upstream b8f52214c61a 946d28f0 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in nilfs_delete_entry
2024/04/27 10:35 upstream 5eb4573ea63d 07b455f9 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-upstream-fs kernel BUG in nilfs_delete_entry
2025/01/18 00:05 upstream 9bffa1ad25b8 953d1c45 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in nilfs_delete_entry
2024/12/25 14:43 upstream 9b2ffa6148b1 444551c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in nilfs_delete_entry
2024/12/21 15:56 upstream 499551201b5f d7f584ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in nilfs_delete_entry
2024/12/19 17:31 upstream eabcdba3ad40 5905cb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in nilfs_delete_entry
2024/12/06 10:08 upstream b8f52214c61a 946d28f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in nilfs_delete_entry
2024/08/26 09:21 upstream 5be63fc19fca d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in nilfs_delete_entry
2024/08/25 11:00 upstream 780bdc1ba776 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in nilfs_delete_entry
2024/06/12 22:57 upstream cea2a26553ac f815599d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in nilfs_delete_entry
2024/04/29 04:40 upstream e67572cd2204 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in nilfs_delete_entry
2024/04/27 09:57 upstream 5eb4573ea63d 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in nilfs_delete_entry
2024/09/29 16:56 upstream 3efc57369a0c ba29ff75 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in nilfs_delete_entry
2024/09/29 16:56 upstream 3efc57369a0c ba29ff75 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in nilfs_delete_entry
2024/09/15 15:52 upstream d42f7708e27c 08d8a733 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in nilfs_delete_entry
2024/09/10 23:16 upstream 8d8d276ba2fb e1ac59f4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in nilfs_delete_entry
2024/09/10 09:53 upstream bc83b4d1f086 784df80e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in nilfs_delete_entry
2024/08/20 17:20 upstream 6e4436539ae1 9f0ab3fb .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in nilfs_delete_entry
2024/08/20 10:50 upstream 6e4436539ae1 9f0ab3fb .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in nilfs_delete_entry
2024/08/20 09:30 upstream 6e4436539ae1 9f0ab3fb .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in nilfs_delete_entry
2024/08/19 04:49 upstream 47ac09b91bef e1c76ab2 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in nilfs_delete_entry
2024/08/17 21:33 upstream df6cbc62cc9b e1c76ab2 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in nilfs_delete_entry
* Struck through repros no longer work on HEAD.