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: 109d, last: 74d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in ext4_write_inode 6 824d 825d 0/1 auto-closed as invalid on 2020/06/22 22:10
upstream WARNING in ext4_write_inode 13 814d 821d 17/22 fixed on 2020/05/10 10:41
linux-4.19 WARNING in ext4_write_inode 1 824d 824d 0/1 auto-closed as invalid on 2020/06/22 14:27

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3629 at fs/ext4/inode.c:5160 ext4_write_inode+0x333/0x5a0 fs/ext4/inode.c:5160
Modules linked in:
CPU: 1 PID: 3629 Comm: syz-executor.1 Not tainted 5.17.0-rc8-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ext4_write_inode+0x333/0x5a0 fs/ext4/inode.c:5160
Code: b6 04 02 84 c0 74 08 3c 03 0f 8e 46 02 00 00 8b b5 b0 06 00 00 4c 89 f7 e8 4a 20 12 00 41 89 c4 e9 ed fd ff ff e8 4d ba 63 ff <0f> 0b 45 31 e4 e9 de fd ff ff e8 3e ba 63 ff 48 89 ef 48 8d 74 24
RSP: 0018:ffffc900027df2c8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 1ffff920004fbe59 RCX: 0000000000000000
RDX: ffff888022150000 RSI: ffffffff821505e3 RDI: 0000000000000003
RBP: ffff88802548d260 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff82150361 R11: 0000000000000000 R12: 0000000000000800
R13: ffffc900027df428 R14: dffffc0000000000 R15: ffff88802548d288
FS:  0000555555bc7400(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000140 CR3: 0000000048329000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 write_inode fs/fs-writeback.c:1471 [inline]
 __writeback_single_inode+0xb70/0x10d0 fs/fs-writeback.c:1683
 writeback_single_inode+0x2a5/0x460 fs/fs-writeback.c:1739
 write_inode_now+0x15c/0x1d0 fs/fs-writeback.c:2739
 iput_final fs/inode.c:1731 [inline]
 iput.part.0+0x460/0x820 fs/inode.c:1770
 iput+0x58/0x70 fs/inode.c:1760
 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:207
 destroy_inode+0xc4/0x1b0 fs/inode.c:310
 iput_final fs/inode.c:1744 [inline]
 iput.part.0+0x562/0x820 fs/inode.c:1770
 iput+0x58/0x70 fs/inode.c:1760
 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+0x42d/0xbd0 mm/vmscan.c:773
 shrink_slab_memcg mm/vmscan.c:842 [inline]
 shrink_slab+0x3ee/0x6f0 mm/vmscan.c:921
 shrink_node_memcgs mm/vmscan.c:3174 [inline]
 shrink_node+0x8c1/0x1eb0 mm/vmscan.c:3295
 shrink_zones mm/vmscan.c:3532 [inline]
 do_try_to_free_pages+0x3b5/0x1700 mm/vmscan.c:3590
 try_to_free_mem_cgroup_pages+0x323/0x920 mm/vmscan.c:3904
 reclaim_high.constprop.0+0x190/0x250 mm/memcontrol.c:2300
 mem_cgroup_handle_over_high+0x18c/0x540 mm/memcontrol.c:2484
 tracehook_notify_resume include/linux/tracehook.h:197 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x1ab/0x290 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f8c942274b7
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd0e66c7a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: ffffffffffffffea RBX: 0000000000000137 RCX: 00007f8c942274b7
RDX: 00007ffd0e66c87d RSI: 000000000000000a RDI: 00007ffd0e66c870
RBP: 00007ffd0e66c870 R08: 00000000ffffffff R09: 00007ffd0e66c640
R10: 0000555555bc8853 R11: 0000000000000246 R12: 00007f8c9427f1ea
R13: 00007ffd0e66d930 R14: 0000555555bc8810 R15: 00007ffd0e66d970
 </TASK>

Crashes (7):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
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/02/08 00:41 upstream 2ade8eef993c a7dab638 .config log report info WARNING in ext4_write_inode