syzbot


KCSAN: data-race in __ext4_new_inode / _find_next_bit

Status: auto-closed as invalid on 2022/01/24 22:12
Reported-by: syzbot+d310e698e55975271fec@syzkaller.appspotmail.com
First crash: 567d, last: 340d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __ext4_new_inode / _find_next_bit (2) 1 200d 200d 0/24 closed as invalid on 2022/05/13 11:20

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

read-write to 0xffff888237c68098 of 8 bytes by task 26387 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_set_bit include/asm-generic/bitops/instrumented-non-atomic.h:95 [inline]
 __test_and_set_bit_le include/asm-generic/bitops/le.h:120 [inline]
 __ext4_new_inode+0xf4f/0x2fc0 fs/ext4/ialloc.c:1097
 ext4_symlink+0x2cc/0x700 fs/ext4/namei.c:3293
 vfs_symlink+0x241/0x330 fs/namei.c:4248
 do_symlinkat+0x104/0x380 fs/namei.c:4277
 __do_sys_symlink fs/namei.c:4299 [inline]
 __se_sys_symlink fs/namei.c:4297 [inline]
 __x64_sys_symlink+0x52/0x60 fs/namei.c:4297
 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 0xffff888237c68098 of 8 bytes by task 26388 on cpu 0:
 _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_symlink+0x2cc/0x700 fs/ext4/namei.c:3293
 vfs_symlink+0x241/0x330 fs/namei.c:4248
 do_symlinkat+0x104/0x380 fs/namei.c:4277
 __do_sys_symlink fs/namei.c:4299 [inline]
 __se_sys_symlink fs/namei.c:4297 [inline]
 __x64_sys_symlink+0x52/0x60 fs/namei.c:4297
 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: 0x0000000000000000 -> 0x0000000000000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 26388 Comm: syz-executor.1 Not tainted 5.16.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (118):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/20 22:11 upstream 86085fe79e3c 62bd192b .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/12/19 19:01 upstream 3f667b5d4053 44068e19 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/12/18 08:23 upstream 9eaa88c7036e 44068e19 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/12/16 04:25 upstream 2b14864acbaa 572bcb40 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/12/15 05:48 upstream 5472f14a3742 f752fb53 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/12/13 17:07 upstream 2585cf9dfaad 0304899b .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/12/11 22:25 upstream 6f513529296f 49ca1f59 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/12/10 09:18 upstream ded746bfc943 4d4ce9bc .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/12/08 05:42 upstream 2a987e65025e 0230ba3e .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/12/07 01:01 upstream f80ef9e49fdf 0230ba3e .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/12/05 20:52 upstream 944207047ca4 a617004c .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/12/03 21:30 upstream 5f58da2befa5 c7c20675 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/12/02 13:02 upstream 58e1100fdc59 61f86278 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/11/27 21:36 upstream 741392771338 63eeac02 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/11/25 07:11 upstream 5f53fa508db0 545ab074 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/11/24 02:15 upstream 5d9f4cf36721 545ab074 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/11/19 02:59 upstream 6fdf886424cf 31a30fc0 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/11/13 06:37 upstream 66f4beaa6c1d 75b04091 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/11/12 06:51 upstream ca2ef2d9f2aa 75b04091 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/11/10 07:40 upstream cb690f5238d7 55fa030c .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/11/01 10:15 upstream 8bb7eca972ad 098b5d53 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/10/30 00:27 upstream a379fbbcb88b 098b5d53 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/10/27 17:01 upstream d25f27432f80 be531bb4 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/10/27 06:00 upstream d25f27432f80 d50eb50a .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/10/25 19:33 upstream 87066fdd2e30 c1132b49 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/10/21 09:52 upstream 2f111a6fd5b5 f111d03b .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/10/18 19:09 upstream 519d81956ee2 24dc29db .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/10/16 10:53 upstream 8fe31e0995f0 0c5d9412 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/10/15 02:44 upstream 26d657410983 7aa5fe41 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/10/14 17:17 upstream 26d657410983 5462d470 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/10/08 10:39 upstream 1da38549dd64 efe0f24d .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/09/30 05:17 upstream 02d5e016800d be530f6c .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/09/29 17:22 upstream a4e6f95a891a e08fe937 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/09/21 16:40 upstream d9fb678414c0 169724fe .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/09/18 07:34 upstream 4357f03d6611 70b76c1d .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/09/12 02:50 upstream c605c39677b9 3ce60af8 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/09/11 01:29 upstream e99f23c5bf59 3ce60af8 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/09/07 20:02 upstream 0bcfe68b8767 6ca60148 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/09/03 19:59 upstream a9c9a6f741cd d236a457 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/08/31 01:05 upstream 8596e589b787 8f58a0ef .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/08/27 10:55 upstream 77dd11439b86 b318694d .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/08/24 17:31 upstream 6e764bcd1cf7 b599f2fc .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/08/22 09:12 upstream 9ff50bf2f2ff b599f2fc .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/08/15 21:19 upstream ecf93431963a 2489ab88 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/08/10 02:43 upstream 9a73fa375d58 6972b106 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/08/08 16:23 upstream 85a90500f9a1 6972b106 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/08/06 05:40 upstream 902e7f373fff 2f537099 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/08/05 06:35 upstream 251a1524293d 7f7bb950 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/08/01 21:35 upstream d4affd6b6e81 6c236867 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/06/06 00:05 upstream f5b6eb1e0182 500c2339 .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
ci2-upstream-kcsan-gce 2021/05/07 21:13 upstream 1ad77a05cfae bc5434be .config log report info KCSAN: data-race in __ext4_new_inode / _find_next_bit
* Struck through repros no longer work on HEAD.