syzbot


WARNING in ext4_write_inode

Status: fixed on 2020/05/10 10:41
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+1f9dc49e8de2582d90c2@syzkaller.appspotmail.com
Fix commit: 10a98cb16d80 xfs: clear PF_MEMALLOC before exiting xfsaild thread
First crash: 1698d, last: 1687d
Discussions (9)
Title Replies (including bot) Last reply
[PATCH 5.6 000/106] 5.6.9-rc1 review 115 (115) 2020/05/03 07:14
[PATCH 4.19 00/46] 4.19.120-rc1 review 51 (51) 2020/05/02 23:17
[PATCH 5.4 00/83] 5.4.37-rc1 review 89 (89) 2020/05/02 23:15
[PATCH AUTOSEL 5.4 001/108] net: wan: wanxl: use allow to pass CROSS_COMPILE_M68k for rebuilding firmware 111 (111) 2020/04/17 17:18
[PATCH AUTOSEL 5.6 001/149] net: hns3: drop the WQ_MEM_RECLAIM flag when allocating WQ 152 (152) 2020/04/17 17:06
[PATCH AUTOSEL 5.5 001/121] net: wan: wanxl: use allow to pass CROSS_COMPILE_M68k for rebuilding firmware 122 (122) 2020/04/12 01:16
[PATCH AUTOSEL 4.19 01/66] net: wan: wanxl: use allow to pass CROSS_COMPILE_M68k for rebuilding firmware 67 (67) 2020/04/12 01:16
[PATCH] xfs: clear PF_MEMALLOC before exiting xfsaild thread 12 (12) 2020/03/12 22:20
WARNING in ext4_write_inode 0 (1) 2020/02/26 06:57
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in ext4_write_inode 6 1696d 1697d 0/1 auto-closed as invalid on 2020/06/22 22:10
upstream WARNING in ext4_write_inode (2) ext4 128 8d23h 977d 0/28 upstream: reported on 2022/02/12 00:47
linux-5.15 WARNING in ext4_write_inode 1 567d 567d 0/3 auto-obsoleted due to no activity on 2023/07/26 10:16
linux-4.19 WARNING in ext4_write_inode 1 1696d 1696d 0/1 auto-closed as invalid on 2020/06/22 14:27
linux-6.1 WARNING in ext4_write_inode 5 490d 572d 0/3 auto-obsoleted due to no activity on 2023/09/21 16:26

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 9406 at fs/ext4/inode.c:5097 ext4_write_inode+0x372/0x660 fs/ext4/inode.c:5097
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 9406 Comm: xfsaild/loop2 Not tainted 5.6.0-rc2-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org 04/01/2014
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x197/0x210 lib/dump_stack.c:118
 panic+0x2e3/0x75c kernel/panic.c:221
 __warn.cold+0x2f/0x3e kernel/panic.c:582
 report_bug+0x289/0x300 lib/bug.c:195
 fixup_bug arch/x86/kernel/traps.c:174 [inline]
 fixup_bug arch/x86/kernel/traps.c:169 [inline]
 do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:267
 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:286
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027
RIP: 0010:ext4_write_inode+0x372/0x660 fs/ext4/inode.c:5097
Code: 02 84 c0 74 08 3c 03 0f 8e b3 02 00 00 41 8b b4 24 a8 05 00 00 4c 89 ef e8 fb af 12 00 41 89 c5 e9 cd fd ff ff e8 6e ce 6e ff <0f> 0b 45 31 ed e9 be fd ff ff e8 5f ce 6e ff 49 8d 77 a0 31 d2 4c
RSP: 0018:ffffc900019bf578 EFLAGS: 00010293
RAX: ffff88801ed89300 RBX: 1ffff92000337eb2 RCX: ffffffff8206b637
RDX: 0000000000000000 RSI: ffffffff8206b8e2 RDI: 0000000000000005
RBP: ffffc900019bf638 R08: ffff88801ed89300 R09: ffffed1005a2707c
R10: ffffed1005a2707b R11: ffff88802d1383db R12: ffff888014e455c8
R13: 0000000000000800 R14: dffffc0000000000 R15: ffffc900019bf610
 write_inode fs/fs-writeback.c:1312 [inline]
 __writeback_single_inode+0xd67/0x1400 fs/fs-writeback.c:1511
 writeback_single_inode+0x2cf/0x440 fs/fs-writeback.c:1565
 sync_inode fs/fs-writeback.c:2602 [inline]
 sync_inode_metadata+0xa8/0xe0 fs/fs-writeback.c:2622
 ext4_fsync_nojournal fs/ext4/fsync.c:94 [inline]
 ext4_sync_file+0x7e7/0x10f0 fs/ext4/fsync.c:172
 vfs_fsync_range+0x141/0x230 fs/sync.c:197
 generic_write_sync include/linux/fs.h:2867 [inline]
 ext4_buffered_write_iter+0x30a/0x460 fs/ext4/file.c:277
 ext4_file_write_iter+0x1fe/0x14e0 fs/ext4/file.c:642
 call_write_iter include/linux/fs.h:1901 [inline]
 new_sync_write+0x4d3/0x770 fs/read_write.c:483
 __vfs_write+0xe1/0x110 fs/read_write.c:496
 __kernel_write+0x11b/0x3b0 fs/read_write.c:515
 do_acct_process+0xd3b/0x1150 kernel/acct.c:522
 slow_acct_process kernel/acct.c:581 [inline]
 acct_process+0x559/0x60f kernel/acct.c:607
 do_exit+0x1b6e/0x2f50 kernel/exit.c:791
 kthread+0x2d0/0x430 kernel/kthread.c:257
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/04 05:47 upstream dca132a60f22 2c36e7a7 .config console log report ci-qemu-upstream
2020/02/24 01:57 upstream d2eee25858f2 d801cb02 .config console log report ci-upstream-kasan-gce-smack-root
2020/02/24 01:46 upstream d2eee25858f2 d801cb02 .config console log report ci-upstream-kasan-gce-root
2020/02/24 01:30 upstream d2eee25858f2 d801cb02 .config console log report ci-upstream-kasan-gce-smack-root
2020/02/23 16:59 upstream 0a115e5f23b9 2c36e7a7 .config console log report ci-upstream-kasan-gce-selinux-root
2020/02/23 16:50 upstream 0a115e5f23b9 2c36e7a7 .config console log report ci-upstream-kasan-gce-selinux-root
2020/02/23 16:50 upstream 0a115e5f23b9 2c36e7a7 .config console log report ci-upstream-kasan-gce-root
2020/02/23 15:38 upstream 0a115e5f23b9 2c36e7a7 .config console log report ci-upstream-kasan-gce-smack-root
2020/02/23 14:44 upstream 0a115e5f23b9 2c36e7a7 .config console log report ci-upstream-kasan-gce-smack-root
2020/02/23 14:21 upstream 54dedb5b571d 2c36e7a7 .config console log report ci-upstream-kasan-gce-smack-root
2020/02/23 11:32 upstream 54dedb5b571d 2c36e7a7 .config console log report ci-upstream-kasan-gce-selinux-root
2020/02/22 01:32 upstream b0dd1eb220c0 2ffa6679 .config console log report ci-upstream-kasan-gce-selinux-root
2020/02/24 01:38 linux-next bee46b309a13 d801cb02 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.