syzbot


KCSAN: data-race in _find_next_bit / ext4_free_inode
Status: auto-closed as invalid on 2022/01/24 12:49
Reported-by: syzbot+9e944794bbb2d8a4ff2f@syzkaller.appspotmail.com
First crash: 378d, last: 152d
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 (2) 1 108d 108d 0/22 auto-closed as invalid on 2022/03/09 08:01

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

read-write to 0xffff888237c69088 of 8 bytes by task 1821 on cpu 0:
 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:125 [inline]
 ext4_free_inode+0x5bf/0xa30 fs/ext4/ialloc.c:316
 ext4_evict_inode+0xbff/0xf10 fs/ext4/inode.c:332
 evict+0x1aa/0x410 fs/inode.c:590
 iput_final fs/inode.c:1670 [inline]
 iput+0x3ef/0x580 fs/inode.c:1696
 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 0xffff888237c69088 of 8 bytes by task 1816 on cpu 1:
 _find_next_bit+0xe0/0x190 lib/find_bit.c:60
 find_next_zero_bit include/asm-generic/bitops/find.h:94 [inline]
 find_next_zero_bit_le include/asm-generic/bitops/le.h:17 [inline]
 find_inode_bit+0xc8/0x330 fs/ext4/ialloc.c:725
 __ext4_new_inode+0xc9a/0x2fc0 fs/ext4/ialloc.c:1066
 ext4_mkdir+0x28a/0x760 fs/ext4/namei.c:2929
 vfs_mkdir+0x2c8/0x3d0 fs/namei.c:3883
 do_mkdirat+0x12e/0x2c0 fs/namei.c:3909
 __do_sys_mkdir fs/namei.c:3929 [inline]
 __se_sys_mkdir fs/namei.c:3927 [inline]
 __x64_sys_mkdir+0x40/0x50 fs/namei.c:3927
 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: 1 PID: 1816 Comm: syz-executor.4 Not tainted 5.16.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (299):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/20 12:48 upstream a7904a538933 021b36cb .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/12/20 05:22 upstream a76c3d035872 44068e19 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/12/18 14:36 upstream 9eaa88c7036e 44068e19 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/12/17 01:28 upstream fa36bbe6d43f 44068e19 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/12/16 08:51 upstream 2b14864acbaa 572bcb40 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/12/15 06:53 upstream 5472f14a3742 f752fb53 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/12/14 00:35 upstream 5472f14a3742 5d14b1ea .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/12/13 03:24 upstream 90d9fbc16b69 49ca1f59 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/12/11 01:12 upstream c741e49150db fc17c959 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/12/08 18:47 upstream 2a987e65025e a4a2a501 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/12/08 05:52 upstream 2a987e65025e 0230ba3e .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/12/04 02:03 upstream 12119cfa1052 a617004c .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/11/28 17:42 upstream 3498e7f2bb41 63eeac02 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/11/18 15:57 upstream 42eb8fdac2fc 31a30fc0 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/11/13 16:31 upstream 66f4beaa6c1d 75b04091 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/11/11 03:22 upstream 89d714ab6043 75b04091 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/11/09 07:12 upstream e851dfae4371 8ab17e57 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/11/04 18:54 upstream 7ddb58cb0eca 4c1be0be .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/11/04 15:37 upstream ce840177930f 4c1be0be .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/11/03 13:07 upstream 56d33754481f 17f3edd2 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/11/01 19:32 upstream 8bb7eca972ad 098b5d53 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/30 08:29 upstream a379fbbcb88b 098b5d53 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/28 19:50 upstream 411a44c24a56 be531bb4 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/25 01:22 upstream 6c62666d8879 4f0000ee .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/23 13:16 upstream 9c0c4d24ac00 282f03fb .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/21 21:35 upstream 2f111a6fd5b5 55f90bc6 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/20 17:48 upstream d9abdee5fd5a 418a00eb .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/19 22:31 upstream d9abdee5fd5a 466b7db1 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/16 16:04 upstream 8fe31e0995f0 0c5d9412 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/15 11:28 upstream ec681c53f8d2 aab7690b .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/15 06:10 upstream 26d657410983 7aa5fe41 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/13 21:05 upstream 348949d9a444 5462d470 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/13 10:09 upstream f4d0cc426f77 9d56e7dd .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/13 00:32 upstream f4d0cc426f77 08362356 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/11 10:46 upstream 64570fbc14f8 838e7e2c .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/11 01:14 upstream efb52a7d9511 838e7e2c .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/10 08:14 upstream 7fd2bf83d59a 838e7e2c .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/09 12:24 upstream 5d6ab0bb408f 838e7e2c .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/09 10:15 upstream 5d6ab0bb408f efe0f24d .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/09 02:03 upstream 741668ef7832 efe0f24d .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/08 16:14 upstream 1da38549dd64 efe0f24d .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/07 19:56 upstream 4a16df549d23 efe0f24d .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/07 04:46 upstream 5af4055fa813 62ee0987 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/06 22:37 upstream 60a9483534ed 62ee0987 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/06 04:04 upstream 60a9483534ed 0a63fd36 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/04 23:57 upstream 84b3e42564ac ce697b49 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/04 18:45 upstream 9e1ff307c779 ce697b49 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/03 09:16 upstream 7b66f4393ad4 db0f5787 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/02 21:25 upstream ab2a7a35c4e7 db0f5787 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/10/02 18:24 upstream 53d5fc89d66a db0f5787 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/05/29 15:59 upstream 6799d4f2da49 325a8dab .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/05/25 16:25 upstream a050a6d2b7e8 93d3a9f6 .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode
ci2-upstream-kcsan-gce 2021/05/07 21:21 upstream 1ad77a05cfae bc5434be .config log report info KCSAN: data-race in _find_next_bit / ext4_free_inode