syzbot


KCSAN: data-race in _find_next_bit / ext4_free_inode (2)

Status: auto-closed as invalid on 2022/03/09 08:01
Subsystems: ext4
[Documentation on labels]
First crash: 813d, last: 813d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in _find_next_bit / ext4_free_inode ext4 299 856d 1061d 0/26 auto-closed as invalid on 2022/01/24 12:49

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

read-write to 0xffff88823ff0b088 of 8 bytes by task 1828 on cpu 1:
 instrument_read_write include/linux/instrumented.h:57 [inline]
 __instrument_read_write_bitop include/asm-generic/bitops/instrumented-non-atomic.h:81 [inline]
 __test_and_clear_bit include/asm-generic/bitops/instrumented-non-atomic.h:109 [inline]
 __test_and_clear_bit_le include/asm-generic/bitops/le.h:61 [inline]
 ext4_free_inode+0x5bf/0xa30 fs/ext4/ialloc.c:316
 ext4_evict_inode+0xbff/0xf10 fs/ext4/inode.c:333
 evict+0x1aa/0x410 fs/inode.c:664
 iput_final fs/inode.c:1744 [inline]
 iput+0x3ef/0x580 fs/inode.c:1770
 d_delete_notify include/linux/fsnotify.h:261 [inline]
 vfs_rmdir+0x270/0x320 fs/namei.c:4032
 do_rmdir+0x18d/0x330 fs/namei.c:4080
 __do_sys_rmdir fs/namei.c:4099 [inline]
 __se_sys_rmdir fs/namei.c:4097 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:4097
 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 0xffff88823ff0b088 of 8 bytes by task 1857 on cpu 0:
 _find_next_bit+0xe0/0x190 lib/find_bit.c:60
 find_next_zero_bit include/linux/find.h:102 [inline]
 find_next_zero_bit_le include/linux/find.h:218 [inline]
 find_inode_bit+0xc8/0x330 fs/ext4/ialloc.c:725
 __ext4_new_inode+0xbf4/0x30b0 fs/ext4/ialloc.c:1066
 ext4_mkdir+0x28a/0x760 fs/ext4/namei.c:2929
 vfs_mkdir+0x216/0x320 fs/namei.c:3933
 do_mkdirat+0x12e/0x2c0 fs/namei.c:3959
 __do_sys_mkdir fs/namei.c:3979 [inline]
 __se_sys_mkdir fs/namei.c:3977 [inline]
 __x64_sys_mkdir+0x40/0x50 fs/namei.c:3977
 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: 0xbfffffffffffffff -> 0x7fffffffffffffff

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1857 Comm: syz-executor.4 Not tainted 5.17.0-rc2-syzkaller-00039-g9f7fb8de5d9b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/02/02 07:58 upstream 9f7fb8de5d9b 4ebb2798 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in _find_next_bit / ext4_free_inode
* Struck through repros no longer work on HEAD.