syzbot


KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
Status: auto-closed as invalid on 2022/01/24 21:39
Reported-by: syzbot+47daa2074a04c7113db2@syzkaller.appspotmail.com
First crash: 942d, last: 156d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used (2) 1 112d 112d 0/22 auto-closed as invalid on 2022/03/09 09:21
upstream KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used (3) 2 14d 15d 0/22 closed as invalid on 2022/05/13 11:20

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used

write to 0xffff8881013b5b54 of 4 bytes by task 422 on cpu 1:
 mb_mark_used+0x13b/0xc50 fs/ext4/mballoc.c:1947
 ext4_mb_use_best_found+0x102/0x300 fs/ext4/mballoc.c:2019
 ext4_mb_try_best_found+0x231/0x3b0 fs/ext4/mballoc.c:2185
 ext4_mb_regular_allocator+0x2240/0x24a0 fs/ext4/mballoc.c:2797
 ext4_mb_new_blocks+0x78c/0x1ee0 fs/ext4/mballoc.c:5586
 ext4_ext_map_blocks+0x1658/0x2120 fs/ext4/extents.c:4285
 ext4_map_blocks+0x71e/0xf00 fs/ext4/inode.c:637
 ext4_alloc_file_blocks+0x281/0x730 fs/ext4/extents.c:4472
 ext4_fallocate+0x2a7/0x540 fs/ext4/extents.c:4753
 vfs_fallocate+0x486/0x720 fs/open.c:307
 do_vfs_ioctl+0x13cb/0x14a0 fs/ioctl.c:853
 __do_sys_ioctl fs/ioctl.c:872 [inline]
 __se_sys_ioctl+0x83/0x140 fs/ioctl.c:860
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:860
 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 0xffff8881013b5b54 of 4 bytes by task 424 on cpu 0:
 ext4_mb_find_by_goal+0x13f/0x880 fs/ext4/mballoc.c:2207
 ext4_mb_regular_allocator+0x12b/0x24a0 fs/ext4/mballoc.c:2654
 ext4_mb_new_blocks+0x78c/0x1ee0 fs/ext4/mballoc.c:5586
 ext4_ext_map_blocks+0x1658/0x2120 fs/ext4/extents.c:4285
 ext4_map_blocks+0x71e/0xf00 fs/ext4/inode.c:637
 ext4_alloc_file_blocks+0x281/0x730 fs/ext4/extents.c:4472
 ext4_fallocate+0x2a7/0x540 fs/ext4/extents.c:4753
 vfs_fallocate+0x486/0x720 fs/open.c:307
 do_vfs_ioctl+0x13cb/0x14a0 fs/ioctl.c:853
 __do_sys_ioctl fs/ioctl.c:872 [inline]
 __se_sys_ioctl+0x83/0x140 fs/ioctl.c:860
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:860
 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: 0x00000004 -> 0x00000003

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

Crashes (326):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/20 21:38 upstream 86085fe79e3c 62bd192b .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/19 16:48 upstream 3f667b5d4053 44068e19 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/18 22:12 upstream 9eaa88c7036e 44068e19 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/18 02:35 upstream 6441998e2e37 44068e19 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/14 21:58 upstream 5472f14a3742 d018dd31 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/11 05:09 upstream 9e65da135b39 49ca1f59 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/10 13:18 upstream ded746bfc943 4d4ce9bc .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/07 05:58 upstream f80ef9e49fdf 0230ba3e .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/06 16:08 upstream 0fcfb00b28c0 579a8754 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/03 15:31 upstream 5f58da2befa5 c7c20675 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/24 06:24 upstream 5d9f4cf36721 545ab074 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/21 09:10 upstream 923dcc5eb0c1 4eb20a4e .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/20 19:50 upstream 61564e7b3abc 4eb20a4e .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/16 15:06 upstream 8ab774587903 600426bd .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/15 20:13 upstream 8ab774587903 75b04091 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/15 08:20 upstream ce49bfc8d037 75b04091 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/13 12:57 upstream 66f4beaa6c1d 75b04091 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/12 04:15 upstream ca2ef2d9f2aa 75b04091 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/10 13:29 upstream cb690f5238d7 75b04091 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/10 06:12 upstream cb690f5238d7 55fa030c .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/09 06:09 upstream e851dfae4371 8ab17e57 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/02 13:21 upstream bfc484fe6abb 098b5d53 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/10/29 10:21 upstream f25a5481af12 2353a3ec .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/10/27 18:17 upstream d25f27432f80 be531bb4 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/10/26 13:58 upstream 3906fe9bb7f1 d50eb50a .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/10/23 11:17 upstream 9c0c4d24ac00 282f03fb .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/10/18 23:16 upstream 519d81956ee2 24dc29db .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/10/18 04:33 upstream cf52ad5ff16c 0c5d9412 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/10/15 16:27 upstream 8fe31e0995f0 0c5d9412 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/10/10 06:32 upstream 7fd2bf83d59a 838e7e2c .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/10/09 22:54 upstream 5d6ab0bb408f 838e7e2c .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/10/08 17:58 upstream 1da38549dd64 efe0f24d .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/10/08 01:42 upstream 4a16df549d23 efe0f24d .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/10/07 09:23 upstream 5af4055fa813 62ee0987 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/10/06 23:55 upstream 60a9483534ed 62ee0987 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/10/06 14:15 upstream 60a9483534ed 0a63fd36 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/09/30 23:19 upstream 4de593fb965f 0f01403d .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/09/30 03:55 upstream 02d5e016800d be530f6c .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/09/28 12:06 upstream 0513e464f900 78494d16 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/09/25 01:20 upstream 7d42e9818258 8cac236e .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/09/23 16:19 upstream 58e2cf5d7946 8cac236e .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/09/22 20:38 upstream cf1d2c3e7e2f 8cac236e .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/09/20 12:35 upstream e4e737bb5c17 3d9c9a2a .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/09/18 09:05 upstream 4357f03d6611 70b76c1d .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/09/15 08:26 upstream 3ca706c189db 07e953c1 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/09/14 08:16 upstream d0ee23f9d78b 58d09404 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/09/09 21:02 upstream a3fa7a101dcf e2776ee4 .config log report info KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
ci2-upstream-kcsan-gce 2021/01/17 11:50 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2020/06/09 14:57 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 092934c1 .config log report
ci2-upstream-kcsan-gce 2019/10/26 05:54 https://github.com/google/ktsan.git kcsan 05f2236801fe 413926c5 .config log report