syzbot


WARNING in mark_buffer_dirty (2)

Status: upstream: reported C repro on 2022/02/10 08:17
Reported-by: syzbot+d459c405b646d7baa326@syzkaller.appspotmail.com
First crash: 355d, last: 22d

Fix bisection: failed (bisect log)
similar bugs (8):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in mark_buffer_dirty bfs C error 10 30d 376d 0/1 upstream: reported C repro on 2022/01/20 22:23
upstream WARNING in mark_buffer_dirty (4) nilfs2 bfs C inconclusive 751 9h50m 211d 0/24 upstream: reported C repro on 2022/07/04 10:22
android-44 WARNING in mark_buffer_dirty 2 1490d 1388d 0/2 auto-closed as invalid on 2019/07/01 11:44
upstream WARNING in mark_buffer_dirty C 21 1519d 1902d 0/24 closed as invalid on 2019/07/24 04:22
upstream WARNING in mark_buffer_dirty (2) 665 1021d 1154d 0/24 auto-closed as invalid on 2020/07/14 01:44
upstream WARNING in mark_buffer_dirty (3) 2 703d 716d 0/24 auto-closed as invalid on 2021/06/27 09:01
android-49 WARNING in mark_buffer_dirty 7 1335d 1388d 0/3 auto-closed as invalid on 2019/10/25 08:47
linux-4.14 WARNING in mark_buffer_dirty 1 1115d 1115d 0/1 auto-closed as invalid on 2020/05/11 07:45

Sample crash report:
NILFS (loop0): discard dirty block: blocknr=18446744073709551615, size=1024
NILFS (loop0): discard dirty block: blocknr=18446744073709551615, size=1024
NILFS (loop0): discard dirty block: blocknr=46, size=1024
NILFS (loop0): discard dirty block: blocknr=18446744073709551615, size=1024
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7982 at fs/buffer.c:1149 mark_buffer_dirty+0x347/0x480 fs/buffer.c:1149
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 7982 Comm: syz-executor100 Not tainted 4.14.301-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x44 kernel/panic.c:547
 report_bug+0x208/0x250 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:967
RIP: 0010:mark_buffer_dirty+0x347/0x480 fs/buffer.c:1149
RSP: 0018:ffff88809184f8a8 EFLAGS: 00010297
RAX: ffff888095592000 RBX: ffff88808df73d20 RCX: 0000000000005c16
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff88808df73d20
RBP: ffff88808df74220 R08: ffffffff8b9d1bb0 R09: 000000000004058c
R10: ffff8880955928d8 R11: ffff888095592000 R12: dffffc0000000000
R13: ffff88809727b8b8 R14: ffff88808df73d20 R15: ffff88808df74230
 nilfs_segctor_collect_dirty_files fs/nilfs2/segment.c:1979 [inline]
 nilfs_segctor_do_construct+0x2af/0x79c0 fs/nilfs2/segment.c:2038
 nilfs_segctor_construct+0x6db/0x8e0 fs/nilfs2/segment.c:2394
 nilfs_segctor_write_out fs/nilfs2/segment.c:2717 [inline]
 nilfs_segctor_destroy fs/nilfs2/segment.c:2750 [inline]
 nilfs_detach_log_writer+0x398/0x980 fs/nilfs2/segment.c:2830
 nilfs_put_super+0x3f/0x190 fs/nilfs2/super.c:480
 generic_shutdown_super+0x144/0x370 fs/super.c:446
 kill_block_super+0x95/0xe0 fs/super.c:1161
 deactivate_locked_super+0x6c/0xd0 fs/super.c:319
 deactivate_super+0x7f/0xa0 fs/super.c:350
 cleanup_mnt+0x186/0x2c0 fs/namespace.c:1183
 task_work_run+0x11f/0x190 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xa44/0x2850 kernel/exit.c:868
 do_group_exit+0x100/0x2e0 kernel/exit.c:965
 SYSC_exit_group kernel/exit.c:976 [inline]
 SyS_exit_group+0x19/0x20 kernel/exit.c:974
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7fd4c79ad9c9
RSP: 002b:00007fff2fc24998 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007fd4c7a23330 RCX: 00007fd4c79ad9c9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffffffffffc0 R09: 00007fd4c7a1de40
R10: 0000000000000a1a R11: 0000000000000246 R12: 00007fd4c7a23330
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (6):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-linux-4-14 2022/12/13 17:01 linux-4.14.y 65afe34ac33d 67be1ae7 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in mark_buffer_dirty
ci2-linux-4-14 2022/11/01 16:56 linux-4.14.y 41f36d7859a7 a1d8560a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in mark_buffer_dirty
ci2-linux-4-14 2022/10/27 09:04 linux-4.14.y 41f36d7859a7 86777b7f .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in mark_buffer_dirty
ci2-linux-4-14 2022/06/30 11:03 linux-4.14.y f051383ef03b 1434eec0 .config console log report syz C WARNING in mark_buffer_dirty
ci2-linux-4-14 2022/02/10 08:16 linux-4.14.y 21ad423fe521 0b33604d .config console log report syz C WARNING in mark_buffer_dirty
ci2-linux-4-14 2023/01/09 21:47 linux-4.14.y c4215ee4771b 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in mark_buffer_dirty
* Struck through repros no longer work on HEAD.