syzbot


WARNING in nilfs_btree_assign

Status: fixed on 2023/08/10 11:37
Reported-by: syzbot+f4b1c5d06555002d6949@syzkaller.appspotmail.com
Fix commit: b12011cea56b nilfs2: fix buffer corruption due to concurrent device reads
First crash: 386d, last: 312d
Fix bisection: fixed by (bisect log) :
commit b12011cea56bd80d52e2d9a6a320ee6ce89034c8
Author: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Date: Fri Jun 9 03:57:32 2023 +0000

  nilfs2: fix buffer corruption due to concurrent device reads

  
Bug presence (1)
Date Name Commit Repro Result
2023/07/05 upstream (ToT) d528014517f2 C Didn't crash
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in nilfs_btree_assign origin:upstream missing-backport C unreliable 18 230d 401d 0/3 upstream: reported C repro on 2023/03/22 07:45
upstream WARNING in nilfs_btree_assign (2) nilfs 1 149d 145d 0/26 auto-obsoleted due to no activity on 2024/03/08 05:10
linux-4.14 WARNING in nilfs_btree_assign nilfs2 C 7 433d 545d 0/1 upstream: reported C repro on 2022/10/28 16:42
upstream WARNING in nilfs_btree_assign nilfs C error 799 275d 578d 23/26 fixed on 2023/09/28 17:51

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3600 at fs/nilfs2/btree.c:2284 nilfs_btree_assign+0xa9b/0xd00
Modules linked in:
CPU: 1 PID: 3600 Comm: segctord Not tainted 5.15.117-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:nilfs_btree_assign+0xa9b/0xd00 fs/nilfs2/btree.c:2284
Code: 00 0f 85 81 02 00 00 44 89 f0 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 b1 c0 5c fe 4c 8b 7c 24 38 eb a6 e8 a5 c0 5c fe <0f> 0b 41 be fe ff ff ff eb 97 44 89 f1 80 e1 07 80 c1 03 38 c1 0f
RSP: 0018:ffffc9000308f5c0 EFLAGS: 00010293
RAX: ffffffff832338ab RBX: ffff88806fdc59c8 RCX: ffff888022083b80
RDX: 0000000000000000 RSI: 00000000fffffffe RDI: 00000000fffffffe
RBP: ffffc9000308f6f0 R08: ffffffff83233207 R09: ffffed100dfc1540
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88801b51cb00 R14: 00000000fffffffe R15: 1ffff92000611ec8
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffda499cda8 CR3: 0000000023527000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 nilfs_bmap_assign+0x87/0x160 fs/nilfs2/bmap.c:390
 nilfs_segctor_update_payload_blocknr fs/nilfs2/segment.c:1615 [inline]
 nilfs_segctor_assign fs/nilfs2/segment.c:1649 [inline]
 nilfs_segctor_do_construct+0x3930/0x7190 fs/nilfs2/segment.c:2079
 nilfs_segctor_construct+0x145/0x8c0 fs/nilfs2/segment.c:2404
 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2512 [inline]
 nilfs_segctor_thread+0x512/0x1130 fs/nilfs2/segment.c:2595
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>

Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/17 09:10 linux-5.15.y 471e639e59d1 f3921d4d .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/06/04 02:21 linux-5.15.y 0ab06468cbd1 a4ae4f42 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/06/03 09:19 linux-5.15.y 0ab06468cbd1 a4ae4f42 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/05/29 02:14 linux-5.15.y 1fe619a7d252 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/05/14 06:21 linux-5.15.y b0ece631f84a 2b9ba477 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in nilfs_btree_assign
2023/05/07 18:11 linux-5.15.y 8a7f2a5c5aa1 90c93c40 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/05/20 06:13 linux-5.15.y 9d6bde853685 96689200 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in nilfs_btree_assign
2023/05/08 18:33 linux-5.15.y 8a7f2a5c5aa1 90c93c40 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in nilfs_btree_assign
2023/05/06 05:36 linux-5.15.y 8a7f2a5c5aa1 de870ca5 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in nilfs_btree_assign
2023/06/19 13:15 linux-5.15.y 471e639e59d1 d521bc56 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/06/05 18:46 linux-5.15.y d7af3e5ba454 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/05/16 02:44 linux-5.15.y b0ece631f84a 71b00cfb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/05/09 11:09 linux-5.15.y 8a7f2a5c5aa1 30aa2a7e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/05/06 13:40 linux-5.15.y 8a7f2a5c5aa1 90c93c40 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/04/26 02:10 linux-5.15.y 3299fb36854f 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/04/25 23:10 linux-5.15.y 3299fb36854f 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/04/25 06:07 linux-5.15.y 3299fb36854f 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/04/21 12:36 linux-5.15.y 3299fb36854f 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/04/16 22:45 linux-5.15.y 4fdad925aa1a ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/04/16 00:57 linux-5.15.y 4fdad925aa1a ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/04/14 11:32 linux-5.15.y 4fdad925aa1a 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/04/09 02:44 linux-5.15.y d86dfc4d95cd 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in nilfs_btree_assign
2023/05/05 22:49 linux-5.15.y 8a7f2a5c5aa1 de870ca5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in nilfs_btree_assign
2023/04/18 22:16 linux-5.15.y 4fdad925aa1a d931e9f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in nilfs_btree_assign
2023/04/15 23:39 linux-5.15.y 4fdad925aa1a ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in nilfs_btree_assign
2023/04/05 21:10 linux-5.15.y d86dfc4d95cd 8b834965 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in nilfs_btree_assign
* Struck through repros no longer work on HEAD.