syzbot


KCSAN: data-race in ext4_free_inode / find_next_zero_bit

Status: closed as invalid on 2019/10/18 14:11
Subsystems: ext4
[Documentation on labels]
First crash: 1673d, last: 1665d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_free_inode / find_next_zero_bit (2) ext4 136 1546d 1615d 0/26 auto-closed as invalid on 2020/04/23 13:21
upstream KCSAN: data-race in ext4_free_inode / find_next_zero_bit (3) ext4 1164 1097d 1407d 0/26 auto-closed as invalid on 2021/06/04 08:24

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ext4_free_inode / find_next_zero_bit

write to 0xffff88811d5be010 of 8 bytes by task 7194 on cpu 1:
 __test_and_clear_bit include/asm-generic/bitops-instrumented.h:213 [inline]
 __test_and_clear_bit_le include/asm-generic/bitops/le.h:95 [inline]
 ext4_free_inode+0x5f1/0xaa0 fs/ext4/ialloc.c:313
 ext4_evict_inode+0x9a9/0xdb0 fs/ext4/inode.c:333
 evict+0x244/0x410 fs/inode.c:574
 iput_final fs/inode.c:1563 [inline]
 iput+0x371/0x4e0 fs/inode.c:1589
 dentry_unlink_inode+0x27a/0x2f0 fs/dcache.c:374
 d_delete fs/dcache.c:2449 [inline]
 d_delete+0xdb/0xe0 fs/dcache.c:2438
 vfs_rmdir fs/namei.c:3884 [inline]
 vfs_rmdir+0x2e2/0x300 fs/namei.c:3849
 do_rmdir+0x2cb/0x300 fs/namei.c:3932
 __do_sys_rmdir fs/namei.c:3950 [inline]
 __se_sys_rmdir fs/namei.c:3948 [inline]
 __x64_sys_rmdir+0x2f/0x40 fs/namei.c:3948
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88811d5be010 of 8 bytes by task 7799 on cpu 0:
 _find_next_bit lib/find_bit.c:39 [inline]
 find_next_zero_bit+0x4e/0xe0 lib/find_bit.c:79
 find_next_zero_bit_le include/asm-generic/bitops/le.h:15 [inline]
 find_inode_bit.isra.0+0x82/0x300 fs/ext4/ialloc.c:715
 __ext4_new_inode+0xd4b/0x3070 fs/ext4/ialloc.c:914
 ext4_symlink+0x30e/0x970 fs/ext4/namei.c:3262
 vfs_symlink fs/namei.c:4119 [inline]
 vfs_symlink+0x218/0x310 fs/namei.c:4105
 do_symlinkat+0x1a5/0x1e0 fs/namei.c:4146
 __do_sys_symlink fs/namei.c:4165 [inline]
 __se_sys_symlink fs/namei.c:4163 [inline]
 __x64_sys_symlink+0x3f/0x50 fs/namei.c:4163
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 7799 Comm: syz-executor.0 Not tainted 5.4.0-rc3+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/16 21:19 https://github.com/google/ktsan.git kcsan a6311db074d9 8c88c9c1 .config console log report ci2-upstream-kcsan-gce
2019/10/16 20:07 https://github.com/google/ktsan.git kcsan a6311db074d9 8c88c9c1 .config console log report ci2-upstream-kcsan-gce
2019/10/15 23:53 https://github.com/google/ktsan.git kcsan e3d315561216 d4ea592f .config console log report ci2-upstream-kcsan-gce
2019/10/15 14:36 https://github.com/google/ktsan.git kcsan 81f95ec7998e b5268b89 .config console log report ci2-upstream-kcsan-gce
2019/10/14 16:50 https://github.com/google/ktsan.git kcsan d724f94f63de a6aef847 .config console log report ci2-upstream-kcsan-gce
2019/10/11 15:52 https://github.com/google/ktsan.git kcsan d724f94f63de 426631dd .config console log report ci2-upstream-kcsan-gce
2019/10/09 07:23 https://github.com/google/ktsan.git kcsan d724f94f63de 312c6a5a .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.