syzbot


WARNING in mark_buffer_dirty (2)

Status: upstream: reported C repro on 2022/02/10 08:17
Subsystems: nilfs2
[Documentation on labels]
Reported-by: syzbot+d459c405b646d7baa326@syzkaller.appspotmail.com
First crash: 966d, last: 583d
Fix bisection: failed (error log, bisect log)
  
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 641d 987d 0/1 upstream: reported C repro on 2022/01/20 22:23
upstream WARNING in mark_buffer_dirty (6) bfs nilfs C error 7638 14m 352d 0/28 upstream: reported C repro on 2023/10/17 15:53
upstream WARNING in mark_buffer_dirty (4) bfs nilfs C inconclusive 1152 483d 822d 22/28 fixed on 2023/06/08 14:41
android-44 WARNING in mark_buffer_dirty 2 2101d 1999d 0/2 auto-closed as invalid on 2019/07/01 11:44
upstream WARNING in mark_buffer_dirty fs C 21 2131d 2513d 0/28 closed as invalid on 2019/07/24 04:22
upstream WARNING in mark_buffer_dirty (2) ext4 665 1633d 1765d 0/28 auto-closed as invalid on 2020/07/14 01:44
upstream WARNING in mark_buffer_dirty (5) nilfs C done 172 360d 479d 23/28 fixed on 2023/10/12 12:48
upstream WARNING in mark_buffer_dirty (3) ext4 2 1314d 1327d 0/28 auto-closed as invalid on 2021/06/27 09:01
android-49 WARNING in mark_buffer_dirty 7 1947d 1999d 0/3 auto-closed as invalid on 2019/10/25 08:47
linux-4.14 WARNING in mark_buffer_dirty 1 1726d 1726d 0/1 auto-closed as invalid on 2020/05/11 07:45
linux-5.15 WARNING in mark_buffer_dirty origin:upstream C error 71 9d02h 568d 0/3 upstream: reported C repro on 2023/03/15 22:22
linux-6.1 WARNING in mark_buffer_dirty origin:upstream C 98 1d04h 570d 0/3 upstream: reported C repro on 2023/03/13 14:09
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2022/10/13 02:13 0m bisect fix linux-4.14.y error job log
2022/08/30 10:47 25m bisect fix linux-4.14.y OK (0) job log log
2022/07/30 11:03 23m bisect fix linux-4.14.y OK (0) job log log
2022/06/11 21:44 21m bisect fix linux-4.14.y OK (0) job log log
2022/05/12 21:17 27m bisect fix linux-4.14.y OK (0) job log log
2022/04/12 20:49 27m bisect fix linux-4.14.y OK (0) job log log
2022/03/13 20:23 22m bisect fix linux-4.14.y OK (0) job log log

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 (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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] ci2-linux-4-14 WARNING in mark_buffer_dirty
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] ci2-linux-4-14 WARNING in mark_buffer_dirty
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] ci2-linux-4-14 WARNING in mark_buffer_dirty
2022/06/30 11:03 linux-4.14.y f051383ef03b 1434eec0 .config console log report syz C ci2-linux-4-14 WARNING in mark_buffer_dirty
2022/02/10 08:16 linux-4.14.y 21ad423fe521 0b33604d .config console log report syz C ci2-linux-4-14 WARNING in mark_buffer_dirty
2023/02/28 05:43 linux-4.14.y 7878a41b6cc1 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in mark_buffer_dirty
2023/02/27 23:40 linux-4.14.y 7878a41b6cc1 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in mark_buffer_dirty
2023/01/09 21:47 linux-4.14.y c4215ee4771b 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in mark_buffer_dirty
* Struck through repros no longer work on HEAD.