syzbot


WARNING in ext4_write_inode (2)

Status: upstream: reported on 2022/02/12 00:47
Reported-by: syzbot+748cc361874fca7d33cc@syzkaller.appspotmail.com
First crash: 237d, last: 4d07h
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in ext4_write_inode 6 952d 954d 0/1 auto-closed as invalid on 2020/06/22 22:10
upstream WARNING in ext4_write_inode 13 943d 950d 17/24 fixed on 2020/05/10 10:41
linux-4.19 WARNING in ext4_write_inode 1 953d 953d 0/1 auto-closed as invalid on 2020/06/22 14:27

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3718 at fs/ext4/inode.c:5223 ext4_write_inode+0x333/0x570 fs/ext4/inode.c:5223
Modules linked in:
CPU: 1 PID: 3718 Comm: syz-executor.1 Not tainted 6.0.0-rc7-syzkaller-00081-gc3e0e1e23c70 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
RIP: 0010:ext4_write_inode+0x333/0x570 fs/ext4/inode.c:5223
Code: b6 04 02 84 c0 74 08 3c 03 0f 8e 28 02 00 00 8b b5 b0 06 00 00 4c 89 f7 e8 ba 94 12 00 41 89 c4 e9 ed fd ff ff e8 7d 48 61 ff <0f> 0b 45 31 e4 e9 de fd ff ff e8 6e 48 61 ff 48 89 ef 48 8d 74 24
RSP: 0018:ffffc90002f7f290 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 1ffff920005efe52 RCX: 0000000000000000
RDX: ffff8880702cc200 RSI: ffffffff8219eea3 RDI: 0000000000000005
RBP: ffff88804850d4b0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000800 R11: 0000000000000000 R12: 0000000000000800
R13: ffffc90002f7f408 R14: dffffc0000000000 R15: ffff88804850d4d8
FS:  0000555555709400(0000) GS:ffff88802c900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f690b69f2d0 CR3: 00000000710d7000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 write_inode fs/fs-writeback.c:1440 [inline]
 __writeback_single_inode+0xb5c/0x10b0 fs/fs-writeback.c:1652
 writeback_single_inode+0x2ad/0x4c0 fs/fs-writeback.c:1708
 write_inode_now+0x16a/0x1e0 fs/fs-writeback.c:2723
 iput_final fs/inode.c:1735 [inline]
 iput.part.0+0x45b/0x810 fs/inode.c:1774
 iput+0x58/0x70 fs/inode.c:1764
 dentry_unlink_inode+0x2b1/0x460 fs/dcache.c:401
 __dentry_kill+0x3c0/0x640 fs/dcache.c:607
 dentry_kill fs/dcache.c:745 [inline]
 dput+0x64d/0xdb0 fs/dcache.c:913
 ovl_destroy_inode+0x38/0x110 fs/overlayfs/super.c:208
 destroy_inode+0xc4/0x1b0 fs/inode.c:310
 iput_final fs/inode.c:1748 [inline]
 iput.part.0+0x55d/0x810 fs/inode.c:1774
 iput+0x58/0x70 fs/inode.c:1764
 dentry_unlink_inode+0x2b1/0x460 fs/dcache.c:401
 __dentry_kill+0x3c0/0x640 fs/dcache.c:607
 shrink_dentry_list+0x23c/0x800 fs/dcache.c:1201
 prune_dcache_sb+0xe7/0x140 fs/dcache.c:1282
 super_cache_scan+0x336/0x590 fs/super.c:104
 do_shrink_slab+0x428/0xbd0 mm/vmscan.c:831
 shrink_slab_memcg mm/vmscan.c:900 [inline]
 shrink_slab+0x3e9/0x6f0 mm/vmscan.c:979
 shrink_node_memcgs mm/vmscan.c:3182 [inline]
 shrink_node+0x8c9/0x1e80 mm/vmscan.c:3304
 shrink_zones mm/vmscan.c:3542 [inline]
 do_try_to_free_pages+0x3b4/0x17a0 mm/vmscan.c:3601
 try_to_free_mem_cgroup_pages+0x364/0x960 mm/vmscan.c:3916
 reclaim_high.constprop.0+0x182/0x230 mm/memcontrol.c:2335
 mem_cgroup_handle_over_high+0x18c/0x510 mm/memcontrol.c:2520
 resume_user_mode_work include/linux/resume_user_mode.h:58 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:169 [inline]
 exit_to_user_mode_prepare+0x18c/0x250 kernel/entry/common.c:201
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7feb6428a0e8
Code: 24 18 31 c0 41 83 e2 40 75 40 89 f0 25 00 00 41 00 3d 00 00 41 00 74 32 44 89 c2 4c 89 ce bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 40 48 8b 4c 24 18 64 48 2b 0c 25 28 00 00 00
RSP: 002b:00007ffeff532430 EFLAGS: 00000287 ORIG_RAX: 0000000000000101
RAX: 0000000000000005 RBX: 0000000000000000 RCX: 00007feb6428a0e8
RDX: 0000000000090800 RSI: 00007ffeff533660 RDI: 00000000ffffff9c
RBP: 00007ffeff533660 R08: 0000000000090800 R09: 00007ffeff533660
R10: 0000000000000000 R11: 0000000000000287 R12: 00007feb642e45f6
R13: 00007ffeff533660 R14: 000055555570a810 R15: 00007ffeff534760
 </TASK>

Crashes (22):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-qemu-upstream 2022/09/29 14:18 upstream c3e0e1e23c70 d9da3ac6 .config log report info WARNING in ext4_write_inode
ci2-upstream-fs 2022/09/25 02:03 upstream 3db61221f4e8 0042f2b4 .config log report info WARNING in ext4_write_inode
ci2-upstream-fs 2022/09/24 19:10 upstream 3db61221f4e8 0042f2b4 .config log report info WARNING in ext4_write_inode
ci-qemu-upstream 2022/08/23 03:38 upstream 072e51356cd5 26a13b38 .config log report info WARNING in ext4_write_inode
ci-qemu-upstream 2022/08/18 23:49 upstream 573ae4f13f63 26a13b38 .config log report info WARNING in ext4_write_inode
ci-qemu-upstream 2022/07/27 00:12 upstream 4a57a8400075 ae971e66 .config log report info WARNING in ext4_write_inode
ci-qemu-upstream 2022/07/19 12:49 upstream 4a57a8400075 72a3cc0c .config log report info WARNING in ext4_write_inode
ci-upstream-kasan-gce-root 2022/03/14 22:10 upstream 09688c0166e7 9e8eaa75 .config log report info WARNING in ext4_write_inode
ci-upstream-kasan-gce-root 2022/03/05 18:31 upstream ac84e82f78cb 7bdd8b2c .config log report info WARNING in ext4_write_inode
ci-upstream-kasan-gce-root 2022/03/01 03:37 upstream 719fce7539cd 45a13a73 .config log report info WARNING in ext4_write_inode
ci-upstream-kasan-gce-root 2022/02/25 02:09 upstream 73878e5eb1bd 7c337266 .config log report info WARNING in ext4_write_inode
ci-upstream-kasan-gce-root 2022/02/19 09:49 upstream 4f12b742eb2b 3cd800e4 .config log report info WARNING in ext4_write_inode
ci-upstream-kasan-gce-root 2022/02/11 21:04 upstream 1d41d2e82623 8b9ca619 .config log report info WARNING in ext4_write_inode
ci-qemu-upstream-386 2022/09/19 11:19 upstream 521a547ced64 dd9a85ff .config log report info WARNING in ext4_write_inode
ci-qemu-upstream-386 2022/09/19 08:51 upstream 521a547ced64 dd9a85ff .config log report info WARNING in ext4_write_inode
ci-qemu-upstream-386 2022/09/02 05:38 upstream 42e66b1cc3a0 a805568e .config log report info WARNING in ext4_write_inode
ci-qemu-upstream-386 2022/08/31 19:00 upstream c5e4d5e99162 51e54e30 .config log report info WARNING in ext4_write_inode
ci-qemu-upstream-386 2022/06/29 11:53 upstream 941e3e791269 1434eec0 .config log report info WARNING in ext4_write_inode
ci-qemu-upstream-386 2022/06/21 03:30 upstream 78ca55889a54 0fc5c330 .config log report info WARNING in ext4_write_inode
ci-qemu-upstream-386 2022/06/13 12:36 upstream b13baccc3850 0d5abf15 .config log report info WARNING in ext4_write_inode
ci-qemu-upstream-386 2022/02/08 00:41 upstream 2ade8eef993c a7dab638 .config log report info WARNING in ext4_write_inode
ci-upstream-bpf-kasan-gce 2022/07/05 13:13 bpf ea1c3b77bc0b bff65f44 .config log report info WARNING in ext4_write_inode
* Struck through repros no longer work on HEAD.