syzbot


KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used

Status: auto-closed as invalid on 2022/01/25 08:42
Reported-by: syzbot+14b716e569456dfb95c3@syzkaller.appspotmail.com
First crash: 903d, last: 353d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used (2) 4 309d 311d 0/24 auto-closed as invalid on 2022/03/11 01:18
upstream KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used (3) 6 211d 215d 0/24 closed as invalid on 2022/05/13 11:20

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

write to 0xffff888101372b54 of 4 bytes by task 3722 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_measure_extent fs/ext4/mballoc.c:2135 [inline]
 ext4_mb_complex_scan_group+0x359/0x880 fs/ext4/mballoc.c:2365
 ext4_mb_regular_allocator+0x19c8/0x24a0 fs/ext4/mballoc.c:2778
 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_getblk+0xc6/0x3e0 fs/ext4/inode.c:847
 ext4_bread+0x28/0x100 fs/ext4/inode.c:900
 ext4_append+0xd1/0x1c0 fs/ext4/namei.c:67
 ext4_init_new_dir+0x177/0x500 fs/ext4/namei.c:2893
 ext4_mkdir+0x329/0x760 fs/ext4/namei.c:2939
 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

read to 0xffff888101372b54 of 4 bytes by task 3874 on cpu 0:
 ext4_mb_good_group_nolock fs/ext4/mballoc.c:2504 [inline]
 ext4_mb_regular_allocator+0xa97/0x24a0 fs/ext4/mballoc.c:2747
 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_getblk+0xc6/0x3e0 fs/ext4/inode.c:847
 ext4_bread+0x28/0x100 fs/ext4/inode.c:900
 ext4_append+0xd1/0x1c0 fs/ext4/namei.c:67
 ext4_init_new_dir+0x177/0x500 fs/ext4/namei.c:2893
 ext4_mkdir+0x329/0x760 fs/ext4/namei.c:2939
 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: 0x0000064a -> 0x00000649

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

Crashes (675):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/21 08:42 upstream 6e0567b73052 a938f0b8 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/20 21:08 upstream 86085fe79e3c 62bd192b .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/20 09:48 upstream a7904a538933 021b36cb .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/19 23:32 upstream a76c3d035872 44068e19 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/19 09:29 upstream 3f667b5d4053 44068e19 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/18 04:23 upstream 9eaa88c7036e 44068e19 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/17 03:21 upstream fa36bbe6d43f 44068e19 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/16 15:35 upstream 2b14864acbaa 8dd6a5e3 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/15 19:48 upstream 2b14864acbaa 572bcb40 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/15 00:54 upstream 5472f14a3742 f752fb53 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/14 13:08 upstream 5472f14a3742 d018dd31 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/14 03:30 upstream 5472f14a3742 5d14b1ea .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/13 11:22 upstream 2585cf9dfaad 49ca1f59 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/12 05:25 upstream a763d5a5abd6 49ca1f59 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/11 16:52 upstream 6f513529296f 49ca1f59 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/11 02:42 upstream 9e65da135b39 49ca1f59 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/10 15:55 upstream c741e49150db fc17c959 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/10 03:16 upstream ded746bfc943 4d4ce9bc .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/09 22:24 upstream ded746bfc943 b54aa474 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/09 18:56 upstream 2a987e65025e b54aa474 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/08 10:31 upstream 2a987e65025e a4a2a501 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/08 04:07 upstream 2a987e65025e 0230ba3e .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/07 13:26 upstream cd8c917a56f2 0230ba3e .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/07 01:36 upstream f80ef9e49fdf 0230ba3e .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/06 12:23 upstream 0fcfb00b28c0 579a8754 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/05 21:20 upstream 944207047ca4 a617004c .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/04 19:24 upstream bbef3c7a63d2 a617004c .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/04 03:35 upstream 12119cfa1052 a617004c .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/03 12:07 upstream 5f58da2befa5 c7c20675 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/02 21:24 upstream a51e3ac43ddb 61f86278 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/02 00:47 upstream 58e1100fdc59 61f86278 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/01 17:56 upstream 58e1100fdc59 5fa3eacc .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/30 10:54 upstream d58071a8a76d 80270552 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/30 04:11 upstream d58071a8a76d d0830353 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/28 22:37 upstream d06c942efea4 63eeac02 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/27 21:21 upstream 741392771338 63eeac02 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/26 08:52 upstream a4849f6000e2 63eeac02 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/24 19:54 upstream 5f53fa508db0 545ab074 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/23 23:48 upstream 5d9f4cf36721 545ab074 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/21 10:38 upstream 923dcc5eb0c1 4eb20a4e .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/20 22:51 upstream 61564e7b3abc 4eb20a4e .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/19 23:32 upstream 4c388a8e740d 3a9d0024 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/18 23:21 upstream 6fdf886424cf 31a30fc0 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/18 15:51 upstream 42eb8fdac2fc 31a30fc0 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/18 08:32 upstream 42eb8fdac2fc cafff8b6 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_mark_used
ci2-upstream-kcsan-gce 2021/01/16 21:14 upstream 54c6247d06f1 65a7a854 .config log report info
ci2-upstream-kcsan-gce 2020/07/28 21:47 upstream 6ba1b005ffc3 cb93dc6a .config log report
ci2-upstream-kcsan-gce 2020/07/25 11:35 upstream 23ee3e4e5bd2 1f7cc1ca .config log report
ci2-upstream-kcsan-gce 2020/06/19 16:32 upstream 5e857ce6eae7 123cf502 .config log report
* Struck through repros no longer work on HEAD.