syzbot


WARNING in nilfs_dat_commit_end

Status: upstream: reported C repro on 2023/03/19 21:57
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+360baff8facad197fe86@syzkaller.appspotmail.com
First crash: 186d, last: 1d15h
Fix commit to backport (bisect log) :
tree: upstream
commit 28a65b49eb53e172d23567005465019658bfdb4d
Author: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Date: Thu Apr 27 01:15:26 2023 +0000

  nilfs2: do not write dirty data after degenerating to read-only

  
Bug presence (2)
Date Name Commit Repro Result
2023/05/12 linux-6.1.y (ToT) bf4ad6fa4e53 C [report] WARNING in nilfs_dat_commit_end
2023/05/12 upstream (ToT) 47a2ee5d4a0b C Didn't crash
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in nilfs_dat_commit_end nilfs C error 267 200d 356d 24/25 fixed on 2023/06/08 14:41
linux-5.15 WARNING in nilfs_dat_commit_end origin:lts-only C done 157 1d15h 187d 0/3 upstream: reported C repro on 2023/03/19 13:38
linux-4.19 WARNING in nilfs_dat_commit_end C error 4 204d 357d 0/1 upstream: reported C repro on 2022/09/30 13:59
linux-4.14 WARNING in nilfs_dat_commit_end nilfs2 C 6 204d 356d 0/1 upstream: reported C repro on 2022/10/01 18:00
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2023/08/31 23:19 4h38m fix candidate upstream job log (1)

Sample crash report:
loop0: detected capacity change from 0 to 2048
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3540 at fs/nilfs2/dat.c:193 nilfs_dat_commit_end+0x59c/0x6a0
Modules linked in:
CPU: 0 PID: 3540 Comm: syz-executor197 Not tainted 6.1.50-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:nilfs_dat_commit_end+0x59c/0x6a0 fs/nilfs2/dat.c:193
Code: 48 89 ee 48 83 c4 38 5b 41 5c 41 5d 41 5e 41 5f 5d e9 18 80 03 00 e8 43 3b 3f fe e8 3e c2 b5 fd e9 d8 fc ff ff e8 34 3b 3f fe <0f> 0b e9 39 fc ff ff e8 28 3b 3f fe e8 23 c2 b5 fd 43 80 7c 35 00
RSP: 0018:ffffc90003adf170 EFLAGS: 00010293
RAX: ffffffff834acb9c RBX: ffff888018edb1a0 RCX: ffff88807f3d8000
RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000200000002
RBP: 0000000000000003 R08: ffffffff834ac7ce R09: ffffed10288e841b
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807894a9a0
R13: 1ffff1100fae3b56 R14: 0000000200000002 R15: ffff88807f3d9770
FS:  0000555555d5c380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6cb87ff000 CR3: 000000001b262000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 nilfs_bmap_commit_end_ptr fs/nilfs2/bmap.h:219 [inline]
 nilfs_btree_commit_delete fs/nilfs2/btree.c:1571 [inline]
 nilfs_btree_delete+0xef0/0x11b0 fs/nilfs2/btree.c:1602
 nilfs_bmap_do_delete fs/nilfs2/bmap.c:184 [inline]
 nilfs_bmap_do_truncate fs/nilfs2/bmap.c:272 [inline]
 nilfs_bmap_truncate+0x2fc/0x560 fs/nilfs2/bmap.c:305
 nilfs_truncate_bmap+0x203/0x3c0 fs/nilfs2/inode.c:846
 nilfs_truncate+0x28b/0x500 fs/nilfs2/inode.c:876
 nilfs_setattr+0x216/0x2c0 fs/nilfs2/inode.c:990
 notify_change+0xdcd/0x1080 fs/attr.c:483
 do_truncate+0x21c/0x300 fs/open.c:65
 handle_truncate fs/namei.c:3216 [inline]
 do_open fs/namei.c:3561 [inline]
 path_openat+0x27e2/0x2e60 fs/namei.c:3714
 do_filp_open+0x230/0x480 fs/namei.c:3741
 do_sys_openat2+0x13b/0x500 fs/open.c:1318
 do_sys_open fs/open.c:1334 [inline]
 __do_sys_creat fs/open.c:1410 [inline]
 __se_sys_creat fs/open.c:1404 [inline]
 __x64_sys_creat+0x11f/0x160 fs/open.c:1404
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f6cc0b3d5f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff6cbb1df8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fff6cbb1fd8 RCX: 00007f6cc0b3d5f9
RDX: 00007f6cc0b3c8f0 RSI: 0000000000000000 RDI: 0000000020000080
RBP: 00007f6cc0bb1610 R08: 0000000000000a29 R09: 0000000000000000
R10: 00007fff6cbb1cc0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fff6cbb1fc8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (177):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/01 13:14 linux-6.1.y a2943d2d9a00 696ea0d2 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/03/23 17:02 linux-6.1.y e3a87a10f259 f94b4a29 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/05/22 02:57 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/05/22 02:40 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/09/21 02:27 linux-6.1.y a356197db198 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/09/16 16:54 linux-6.1.y 09045dae0d90 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/09/15 21:13 linux-6.1.y 09045dae0d90 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/09/01 02:18 linux-6.1.y a2943d2d9a00 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/08/22 04:21 linux-6.1.y 6c44e13dc284 6b415825 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/08/19 10:57 linux-6.1.y 6c44e13dc284 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/08/17 11:00 linux-6.1.y 6c44e13dc284 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/08/11 09:15 linux-6.1.y 0a4a7855302d da3c3ef8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/08/03 02:02 linux-6.1.y d2a6dc4eaf6d b178af49 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/07/30 13:50 linux-6.1.y d2a6dc4eaf6d 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/07/25 06:31 linux-6.1.y 5302e81aa209 b03242d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/07/18 10:57 linux-6.1.y 61fd484b2cf6 20f8b3c2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/07/13 10:40 linux-6.1.y 61fd484b2cf6 86081196 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/07/10 07:15 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/07/09 06:56 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/07/09 01:49 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/07/08 18:30 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/07/08 14:14 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/07/08 12:08 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/07/02 09:49 linux-6.1.y 0f4ac6b4c5f0 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/07/01 23:13 linux-6.1.y 0f4ac6b4c5f0 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/03/19 21:56 linux-6.1.y 7eaef76fbc46 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in nilfs_dat_commit_end
2023/08/11 07:57 linux-6.1.y 0a4a7855302d da3c3ef8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/13 13:17 linux-6.1.y 61fd484b2cf6 86081196 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/11 18:32 linux-6.1.y 61fd484b2cf6 2f19aa4f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/11 12:45 linux-6.1.y 61fd484b2cf6 f8780940 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/11 04:38 linux-6.1.y 61fd484b2cf6 52ae002a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/10 16:22 linux-6.1.y 61fd484b2cf6 d47e94ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/10 12:42 linux-6.1.y 61fd484b2cf6 d47e94ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/10 04:05 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/09 05:06 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/08 05:04 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/07 17:08 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/07 07:53 linux-6.1.y 61fd484b2cf6 22ae5830 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/07 02:21 linux-6.1.y 61fd484b2cf6 22ae5830 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/06 17:54 linux-6.1.y 61fd484b2cf6 1a2f6297 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/06 15:28 linux-6.1.y 61fd484b2cf6 1a2f6297 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/06 03:15 linux-6.1.y 61fd484b2cf6 ba5dba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/05 21:10 linux-6.1.y 61fd484b2cf6 ba5dba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/05 19:45 linux-6.1.y 0f4ac6b4c5f0 ba5dba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/05 16:12 linux-6.1.y 0f4ac6b4c5f0 ba5dba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/05 08:54 linux-6.1.y 0f4ac6b4c5f0 80298b6f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/05 03:36 linux-6.1.y 0f4ac6b4c5f0 80298b6f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/04 20:33 linux-6.1.y 0f4ac6b4c5f0 f99c2404 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/04 15:59 linux-6.1.y 0f4ac6b4c5f0 f99c2404 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/04 00:06 linux-6.1.y 0f4ac6b4c5f0 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
2023/07/03 20:31 linux-6.1.y 0f4ac6b4c5f0 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_dat_commit_end
* Struck through repros no longer work on HEAD.