syzbot


WARNING in mark_buffer_dirty (5)

Status: fixed on 2023/10/12 12:48
Subsystems: nilfs
[Documentation on labels]
Reported-by: syzbot+cdfcae656bac88ba0e2d@syzkaller.appspotmail.com
Fix commit: cdaac8e7e5a0 nilfs2: fix WARNING in mark_buffer_dirty due to discarded buffer reuse
First crash: 519d, last: 395d
Cause bisection: introduced by (bisect log) :
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

Crash: WARNING in mark_buffer_dirty (log)
Repro: C syz .config
  
Discussions (4)
Title Replies (including bot) Last reply
[PATCH] nilfs2: fix WARNING in mark_buffer_dirty due to discarded buffer reuse 1 (1) 2023/08/18 13:18
[syzbot] [nilfs?] WARNING in mark_buffer_dirty (5) 0 (2) 2023/08/18 00:58
[syzbot] Monthly nilfs report (Jul 2023) 0 (1) 2023/07/30 13:15
[syzbot] Monthly nilfs report (Jun 2023) 0 (1) 2023/06/29 08:55
Similar bugs (12)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in mark_buffer_dirty bfs C error 10 677d 1023d 0/1 upstream: reported C repro on 2022/01/20 22:23
upstream WARNING in mark_buffer_dirty (6) nilfs C error 9329 38m 388d 0/28 upstream: reported C repro on 2023/10/17 15:53
upstream WARNING in mark_buffer_dirty (4) bfs nilfs C inconclusive 1152 519d 858d 22/28 fixed on 2023/06/08 14:41
android-44 WARNING in mark_buffer_dirty 2 2137d 2035d 0/2 auto-closed as invalid on 2019/07/01 11:44
upstream WARNING in mark_buffer_dirty fs C 21 2166d 2549d 0/28 closed as invalid on 2019/07/24 04:22
linux-4.14 WARNING in mark_buffer_dirty (2) nilfs2 C error 8 619d 1002d 0/1 upstream: reported C repro on 2022/02/10 08:17
upstream WARNING in mark_buffer_dirty (2) ext4 665 1668d 1801d 0/28 auto-closed as invalid on 2020/07/14 01:44
upstream WARNING in mark_buffer_dirty (3) ext4 2 1350d 1363d 0/28 auto-closed as invalid on 2021/06/27 09:01
android-49 WARNING in mark_buffer_dirty 7 1982d 2035d 0/3 auto-closed as invalid on 2019/10/25 08:47
linux-4.14 WARNING in mark_buffer_dirty 1 1762d 1762d 0/1 auto-closed as invalid on 2020/05/11 07:45
linux-5.15 WARNING in mark_buffer_dirty origin:upstream C error 82 3d03h 604d 0/3 upstream: reported C repro on 2023/03/15 22:22
linux-6.1 WARNING in mark_buffer_dirty origin:upstream C 190 5d13h 606d 0/3 upstream: reported C repro on 2023/03/13 14:09
Cause bisection attempts (2)
Created Duration User Patch Repo Result
2023/08/17 17:11 7h46m bisect upstream OK (1) job log log
2023/06/08 17:26 9h00m bisect upstream error job log
marked invalid by nogikh@google.com

Sample crash report:
NILFS (loop0): inode bitmap is inconsistent for reserved inodes
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5624 at fs/buffer.c:1193 mark_buffer_dirty+0x376/0x3e0 fs/buffer.c:1193
Modules linked in:
CPU: 1 PID: 5624 Comm: syz-executor324 Not tainted 6.5.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:mark_buffer_dirty+0x376/0x3e0 fs/buffer.c:1193
Code: e9 df e9 8b ff e8 da e9 8b ff 48 89 ef e8 62 ea e7 ff 5b 5d e9 cb e9 8b ff e8 c6 e9 8b ff 0f 0b e9 10 fe ff ff e8 ba e9 8b ff <0f> 0b e9 b7 fc ff ff e8 ae e9 8b ff 0f 0b e9 d6 fc ff ff 48 89 df
RSP: 0018:ffffc9000470f650 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88807537d658 RCX: 0000000000000000
RDX: ffff88807e195940 RSI: ffffffff81fa1f26 RDI: 0000000000000001
RBP: 1ffff920008e1e00 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff88807534ae30
R13: ffff88807534ace0 R14: ffffc9000470f6c8 R15: ffffc9000470f6d0
FS:  00005555557c1380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555557d2738 CR3: 000000002b406000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 nilfs_palloc_commit_alloc_entry+0x71/0x190 fs/nilfs2/alloc.c:586
 nilfs_ifile_create_inode+0xdf/0x280 fs/nilfs2/ifile.c:75
 nilfs_new_inode+0x82b/0x9a0 fs/nilfs2/inode.c:357
 nilfs_create fs/nilfs2/namei.c:85 [inline]
 nilfs_create+0x11d/0x320 fs/nilfs2/namei.c:75
 lookup_open.isra.0+0x1049/0x1360 fs/namei.c:3492
 open_last_lookups fs/namei.c:3560 [inline]
 path_openat+0x931/0x29c0 fs/namei.c:3790
 do_filp_open+0x1de/0x430 fs/namei.c:3820
 do_sys_openat2+0x176/0x1e0 fs/open.c:1407
 do_sys_open fs/open.c:1422 [inline]
 __do_sys_openat fs/open.c:1438 [inline]
 __se_sys_openat fs/open.c:1433 [inline]
 __x64_sys_openat+0x175/0x210 fs/open.c:1433
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f7d2f0081d9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 21 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd59e14098 EFLAGS: 00000246
 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7d2f0081d9
RDX: 000000000000275a RSI: 0000000020006ac0 RDI: 00000000ffffff9c
RBP: 0000000000000004 R08: 0000000000000f5f R09: 00000000022100d8
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd59e140e0
R13: 00007ffd59e14120 R14: 0000000000200000 R15: 0000000000000003
 </TASK>

Crashes (172):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/29 04:39 upstream 2dde18cd1d8f 7ba13a15 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root WARNING in mark_buffer_dirty
2023/08/27 08:29 upstream 28f20a19294d 03d9c195 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root WARNING in mark_buffer_dirty
2023/08/06 18:03 upstream f0ab9f34e59e 4ffcc9ef .config strace log report syz C [mounted in repro] ci-upstream-kasan-gce-selinux-root WARNING in mark_buffer_dirty
2023/07/24 10:19 upstream 6eaae1980760 b03242d7 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/07/18 03:25 upstream fdf0eaf11452 20f8b3c2 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/06/16 01:28 upstream b6dad5178cea 757d26ed .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root WARNING in mark_buffer_dirty
2023/06/08 16:28 upstream 5f63595ebd82 058b3a5a .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/14 13:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6f09e57d8cf6 39990d51 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in mark_buffer_dirty
2023/07/10 22:19 upstream 3f01e9fed845 52ae002a .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING in mark_buffer_dirty
2023/08/20 02:26 linux-next 7271b2a53042 d216d8a0 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in mark_buffer_dirty
2023/10/08 06:16 upstream b9ddbb0cde2a 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/10/07 02:39 upstream 7de25c855b63 ea12a918 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/10/03 22:29 upstream 5e62ed3b1c8a 65faba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/10/03 20:48 upstream ce36c8b14987 65faba36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in mark_buffer_dirty
2023/10/01 13:57 upstream 3b517966c561 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in mark_buffer_dirty
2023/09/29 07:21 upstream 9ed22ae6be81 d265efd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/09/26 12:49 upstream 6465e260f487 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in mark_buffer_dirty
2023/09/24 09:12 upstream 3aba70aed91f 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/09/20 23:25 upstream 5d2f53532ecc 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in mark_buffer_dirty
2023/09/18 07:24 upstream e789286468a9 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in mark_buffer_dirty
2023/09/18 05:36 upstream e789286468a9 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in mark_buffer_dirty
2023/09/16 15:45 upstream 57d88e8a5974 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in mark_buffer_dirty
2023/09/13 22:02 upstream 23f108dc9ed2 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/09/13 09:06 upstream 3669558bdf35 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/09/12 05:50 upstream 0bb80ecc33a8 59da8366 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/09/04 23:29 upstream 708283abf896 8bc9053e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in mark_buffer_dirty
2023/09/01 01:58 upstream b97d64c72259 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/31 09:04 upstream ef2a0b7cdbc5 84803932 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/10/09 22:17 upstream 94f6f0550c62 f3a9f550 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in mark_buffer_dirty
2023/08/30 09:31 upstream d68b4b6f307d b42ca3a7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in mark_buffer_dirty
2023/08/28 06:56 upstream 2dde18cd1d8f 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/26 18:41 upstream 382d4cd18475 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/26 16:18 upstream 382d4cd18475 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/25 10:10 upstream 4f9e7fabf864 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/23 14:10 upstream 89bf6209cad6 b81ca3f6 .config console log report info ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/20 14:17 upstream 9e6c269de404 d216d8a0 .config console log report info ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/19 07:55 upstream d4ddefee5160 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/18 06:22 upstream 0e8860d2125f 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/18 04:35 upstream 16931859a650 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/16 14:02 upstream 4853c74bd7ab 7773e940 .config console log report info ci-upstream-kasan-badwrites-root WARNING in mark_buffer_dirty
2023/08/15 22:41 upstream 4853c74bd7ab 39990d51 .config console log report info ci-upstream-kasan-badwrites-root WARNING in mark_buffer_dirty
2023/08/15 19:53 upstream 91aa6c412d7f 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/15 06:25 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/15 00:25 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/14 19:32 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/13 22:48 upstream a785fd28d31f 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/11 09:05 upstream 25aa0bebba72 da3c3ef8 .config console log report info ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/10 21:23 upstream 374a7f47bf40 4df3089c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in mark_buffer_dirty
2023/08/10 18:37 upstream 374a7f47bf40 da3c3ef8 .config console log report info ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/09 23:35 upstream cacc6e22932f 13ca4cd6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in mark_buffer_dirty
2023/08/08 21:31 upstream 14f9643dc90a 9552ae77 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/08 18:26 upstream 14f9643dc90a 9552ae77 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/06 23:33 upstream f0ab9f34e59e 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in mark_buffer_dirty
2023/08/04 00:25 upstream ec351c8f2e62 b95100df .config console log report info ci-qemu-upstream WARNING in mark_buffer_dirty
2023/09/23 10:48 linux-next 940fcc189c51 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in mark_buffer_dirty
2023/09/23 09:01 linux-next 940fcc189c51 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in mark_buffer_dirty
2023/09/22 06:41 linux-next 940fcc189c51 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in mark_buffer_dirty
2023/09/12 04:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe4469582053 59da8366 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in mark_buffer_dirty
2023/08/11 19:59 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in mark_buffer_dirty
* Struck through repros no longer work on HEAD.