syzbot


WARNING in __mark_inode_dirty (2)

Status: auto-closed as invalid on 2021/07/03 15:16
Reported-by: syzbot+2bbc8c337258efea6df9@syzkaller.appspotmail.com
First crash: 1601d, last: 1374d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __mark_inode_dirty fs 1 2577d 2573d 0/28 closed as invalid on 2018/02/13 19:14
android-414 WARNING in __mark_inode_dirty (2) syz 7 1839d 1900d 0/1 public: reported syz repro on 2019/09/26 21:43
upstream WARNING in __mark_inode_dirty (2) fs 1 2357d 2357d 0/28 auto-closed as invalid on 2019/02/22 10:29
linux-4.14 WARNING in __mark_inode_dirty 3 1751d 1792d 0/1 auto-closed as invalid on 2020/06/21 10:48
android-414 WARNING in __mark_inode_dirty 11 2134d 2067d 0/1 auto-closed as invalid on 2019/08/03 08:11

Sample crash report:
bdi-block not registered
------------[ cut here ]------------
WARNING: CPU: 0 PID: 24432 at fs/fs-writeback.c:2212 __mark_inode_dirty.cold+0x31/0x3f fs/fs-writeback.c:2212
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 24432 Comm: syz-executor.1 Not tainted 4.14.223-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
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:186
 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:964
RIP: 0010:__mark_inode_dirty.cold+0x31/0x3f fs/fs-writeback.c:2212
RSP: 0018:ffff8880b0977540 EFLAGS: 00010282
RAX: 0000000000000018 RBX: ffff88804e4a53d8 RCX: 0000000000000000
RDX: 000000000000c065 RSI: ffffffff81441890 RDI: ffffed101612ee9e
RBP: ffff8880602fa998 R08: 0000000000000018 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880602fa940
R13: ffff88804e4a54b0 R14: ffff88804e4a5460 R15: 0000000000000000
 mark_buffer_dirty+0x337/0x480 fs/buffer.c:1177
 __block_commit_write.constprop.0.isra.0+0x138/0x200 fs/buffer.c:2111
 block_write_end+0x42/0xf0 fs/buffer.c:2189
 blkdev_write_end+0x3c/0x200 fs/block_dev.c:620
 generic_perform_write+0x268/0x420 mm/filemap.c:3066
 __generic_file_write_iter+0x227/0x590 mm/filemap.c:3180
 blkdev_write_iter+0x1d6/0x390 fs/block_dev.c:1926
 call_write_iter include/linux/fs.h:1778 [inline]
 do_iter_readv_writev+0x4cf/0x5f0 fs/read_write.c:675
 do_iter_write+0x152/0x550 fs/read_write.c:954
 vfs_iter_write+0x70/0xa0 fs/read_write.c:967
 iter_file_splice_write+0x52b/0xa90 fs/splice.c:749
 do_splice_from fs/splice.c:851 [inline]
 direct_splice_actor+0x115/0x160 fs/splice.c:1018
 splice_direct_to_actor+0x27c/0x730 fs/splice.c:973
 do_splice_direct+0x164/0x210 fs/splice.c:1061
 do_sendfile+0x47f/0xb30 fs/read_write.c:1441
 SYSC_sendfile64 fs/read_write.c:1502 [inline]
 SyS_sendfile64+0xff/0x110 fs/read_write.c:1488
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x465f69
RSP: 002b:00007f7f502f3188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 0000000000465f69
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006
RBP: 00000000004bfa67 R08: 0000000000000000 R09: 0000000000000000
R10: 0020000102000003 R11: 0000000000000246 R12: 000000000056c008
R13: 00007ffd482efb7f R14: 00007f7f502f3300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/05 15:16 linux-4.14.y 397a88b2cc86 9d751681 .config console log report info ci2-linux-4-14 WARNING in __mark_inode_dirty
2020/12/29 08:08 linux-4.14.y 3f2ecb86cb90 8259d56c .config console log report info ci2-linux-4-14
2020/12/25 22:02 linux-4.14.y 3f2ecb86cb90 821e0b09 .config console log report info ci2-linux-4-14
2020/09/19 03:52 linux-4.14.y cbfa1702aaf6 53ce8104 .config console log report info ci2-linux-4-14
2020/07/21 16:02 linux-4.14.y b850307b279c e562dd8a .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.