syzbot


KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del (2)

Status: auto-closed as invalid on 2021/12/15 18:27
Reported-by: syzbot+766df5fe37c3450cc3f6@syzkaller.appspotmail.com
First crash: 417d, last: 391d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del 48 634d 672d 0/24 auto-closed as invalid on 2021/05/17 10:23

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del

write to 0xffff88813482da1c of 4 bytes by task 1818 on cpu 0:
 ext4_orphan_del+0x579/0x730 fs/ext4/orphan.c:296
 ext4_evict_inode+0xb9f/0xf10 fs/ext4/inode.c:318
 evict+0x1aa/0x410 fs/inode.c:592
 iput_final fs/inode.c:1672 [inline]
 iput+0x3ef/0x580 fs/inode.c:1698
 dentry_unlink_inode+0x23d/0x250 fs/dcache.c:376
 d_delete+0x78/0xa0 fs/dcache.c:2505
 vfs_rmdir+0x2bf/0x2e0 fs/namei.c:3982
 do_rmdir+0x18d/0x330 fs/namei.c:4030
 __do_sys_rmdir fs/namei.c:4049 [inline]
 __se_sys_rmdir fs/namei.c:4047 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:4047
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88813482da1c of 4 bytes by task 25592 on cpu 1:
 ext4_do_update_inode fs/ext4/inode.c:5007 [inline]
 ext4_mark_iloc_dirty+0x47b/0x16e0 fs/ext4/inode.c:5683
 __ext4_mark_inode_dirty+0x4ec/0x5f0 fs/ext4/inode.c:5879
 __ext4_ext_dirty fs/ext4/extents.c:170 [inline]
 ext4_ext_rm_leaf+0x82a/0xe70 fs/ext4/extents.c:2708
 ext4_ext_remove_space+0x956/0x1450 fs/ext4/extents.c:2920
 ext4_ext_truncate+0xfe/0x170 fs/ext4/extents.c:4382
 ext4_truncate+0x76e/0xae0 fs/ext4/inode.c:4204
 ext4_evict_inode+0xad5/0xf10 fs/ext4/inode.c:287
 evict+0x1aa/0x410 fs/inode.c:592
 iput_final fs/inode.c:1672 [inline]
 iput+0x3ef/0x580 fs/inode.c:1698
 dentry_unlink_inode+0x23d/0x250 fs/dcache.c:376
 d_delete+0x78/0xa0 fs/dcache.c:2505
 vfs_rmdir+0x2bf/0x2e0 fs/namei.c:3982
 do_rmdir+0x18d/0x330 fs/namei.c:4030
 __do_sys_rmdir fs/namei.c:4049 [inline]
 __se_sys_rmdir fs/namei.c:4047 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:4047
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x000004a7 -> 0x00000486

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 25592 Comm: syz-executor.0 Tainted: G        W         5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (57):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/11/10 18:26 upstream 89d714ab6043 75b04091 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/11/10 12:31 upstream cb690f5238d7 75b04091 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/11/09 14:05 upstream d2f38a3c6507 59bcaf9a .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/11/09 00:10 upstream e851dfae4371 8ab17e57 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/11/08 18:21 upstream e851dfae4371 d29682f1 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/11/08 00:11 upstream 6b75d88fa81b 4c1be0be .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/11/07 10:53 upstream b5013d084e03 4c1be0be .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/11/06 21:42 upstream 512b7931ad05 4c1be0be .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/11/05 18:41 upstream fe91c4725aee 4c1be0be .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/11/05 05:24 upstream d4439a1189f9 4c1be0be .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/11/04 16:16 upstream 7ddb58cb0eca 4c1be0be .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/11/03 14:45 upstream dcd68326d29b 4c1be0be .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/11/03 06:18 upstream 56d33754481f 17f3edd2 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/11/02 17:29 upstream bfc484fe6abb 17f3edd2 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/11/02 17:07 upstream bfc484fe6abb 17f3edd2 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/11/02 11:29 upstream bfc484fe6abb 098b5d53 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/11/01 22:21 upstream e66435936756 098b5d53 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/11/01 01:11 upstream 8bb7eca972ad 098b5d53 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/31 11:28 upstream 180eca540ae0 098b5d53 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/30 21:58 upstream 119c85055d86 098b5d53 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/30 00:22 upstream a379fbbcb88b 098b5d53 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/30 00:10 upstream a379fbbcb88b 2353a3ec .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/29 07:42 upstream f25a5481af12 2353a3ec .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/28 18:55 upstream 411a44c24a56 be531bb4 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/28 18:52 upstream 411a44c24a56 be531bb4 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/27 22:42 upstream 1fc596a56b33 be531bb4 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/27 13:20 upstream d25f27432f80 be531bb4 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/27 13:13 upstream d25f27432f80 be531bb4 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/27 12:40 upstream d25f27432f80 373bf66b .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/27 12:37 upstream d25f27432f80 373bf66b .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/27 03:49 upstream d25f27432f80 d50eb50a .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/26 12:19 upstream 3906fe9bb7f1 d50eb50a .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/25 18:48 upstream 87066fdd2e30 c1132b49 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/25 17:26 upstream 87066fdd2e30 4f0000ee .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/24 23:12 upstream 6c62666d8879 4f0000ee .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/22 16:07 upstream 64222515138e 282f03fb .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/22 16:05 upstream 64222515138e 282f03fb .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/22 14:11 upstream 64222515138e 55f90bc6 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/21 19:32 upstream 2f111a6fd5b5 55f90bc6 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/21 19:22 upstream 2f111a6fd5b5 55f90bc6 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/21 13:29 upstream 2f111a6fd5b5 c5cb7da8 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/20 23:19 upstream 2f111a6fd5b5 f111d03b .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/20 23:13 upstream 2f111a6fd5b5 f111d03b .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/20 10:37 upstream d9abdee5fd5a 418a00eb .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/20 10:36 upstream d9abdee5fd5a 418a00eb .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/19 17:21 upstream d9abdee5fd5a 466b7db1 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/19 16:15 upstream d9abdee5fd5a 24dc29db .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/18 17:49 upstream 519d81956ee2 24dc29db .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/18 17:11 upstream 519d81956ee2 24dc29db .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/18 04:10 upstream cf52ad5ff16c 0c5d9412 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/17 06:02 upstream d999ade1cc86 0c5d9412 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/16 16:52 upstream 304040fb4909 0c5d9412 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
ci2-upstream-kcsan-gce 2021/10/15 15:14 upstream 8fe31e0995f0 0c5d9412 .config log report info KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del
* Struck through repros no longer work on HEAD.