syzbot


KCSAN: data-race in ext4_mb_good_group / mb_mark_used
Status: auto-closed as invalid on 2022/01/25 08:47
Reported-by: syzbot+8e3395a2626bcc035af1@syzkaller.appspotmail.com
First crash: 961d, last: 156d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_mb_good_group / mb_mark_used (3) 3 15d 17d 0/22 closed as invalid on 2022/05/13 11:20
upstream KCSAN: data-race in ext4_mb_good_group / mb_mark_used (2) 4 112d 114d 0/22 auto-closed as invalid on 2022/03/10 23:58

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

write to 0xffff8881013eba94 of 4 bytes by task 10545 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_complex_scan_group+0x57d/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_new_meta_blocks+0x84/0x180 fs/ext4/balloc.c:699
 ext4_ext_grow_indepth fs/ext4/extents.c:1321 [inline]
 ext4_ext_create_new_leaf fs/ext4/extents.c:1427 [inline]
 ext4_ext_insert_extent+0xa10/0x3060 fs/ext4/extents.c:2097
 ext4_split_extent_at+0x6eb/0xcd0 fs/ext4/extents.c:3251
 ext4_force_split_extent_at fs/ext4/extents.c:319 [inline]
 ext4_swap_extents+0xd7a/0x1470 fs/ext4/extents.c:5707
 move_extent_per_page fs/ext4/move_extent.c:339 [inline]
 ext4_move_extents+0x1fb1/0x2210 fs/ext4/move_extent.c:673
 __ext4_ioctl fs/ext4/ioctl.c:988 [inline]
 ext4_ioctl+0x1532/0x2170 fs/ext4/ioctl.c:1279
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xcb/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 0xffff8881013eba94 of 4 bytes by task 10546 on cpu 0:
 ext4_mb_good_group+0x136/0x370 fs/ext4/mballoc.c:2432
 ext4_mb_good_group_nolock fs/ext4/mballoc.c:2545 [inline]
 ext4_mb_regular_allocator+0x15c2/0x24a0 fs/ext4/mballoc.c:2747
 ext4_mb_new_blocks+0x78c/0x1ee0 fs/ext4/mballoc.c:5586
 ext4_new_meta_blocks+0x84/0x180 fs/ext4/balloc.c:699
 ext4_ext_grow_indepth fs/ext4/extents.c:1321 [inline]
 ext4_ext_create_new_leaf fs/ext4/extents.c:1427 [inline]
 ext4_ext_insert_extent+0xa10/0x3060 fs/ext4/extents.c:2097
 ext4_split_extent_at+0x6eb/0xcd0 fs/ext4/extents.c:3251
 ext4_force_split_extent_at fs/ext4/extents.c:319 [inline]
 ext4_swap_extents+0xd7a/0x1470 fs/ext4/extents.c:5707
 move_extent_per_page fs/ext4/move_extent.c:339 [inline]
 ext4_move_extents+0x1fb1/0x2210 fs/ext4/move_extent.c:673
 __ext4_ioctl fs/ext4/ioctl.c:988 [inline]
 ext4_ioctl+0x1532/0x2170 fs/ext4/ioctl.c:1279
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xcb/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: 0x00001176 -> 0x00001175

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 10546 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 (850):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/21 08:46 upstream 6e0567b73052 a938f0b8 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/20 21:23 upstream 86085fe79e3c 62bd192b .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/20 09:36 upstream a7904a538933 021b36cb .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/19 21:12 upstream a76c3d035872 44068e19 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/19 05:31 upstream 3f667b5d4053 44068e19 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/18 04:08 upstream 9eaa88c7036e 44068e19 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/17 16:45 upstream 6441998e2e37 44068e19 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/17 03:19 upstream fa36bbe6d43f 44068e19 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/16 20:38 upstream fa36bbe6d43f 8dd6a5e3 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/15 21:14 upstream 2b14864acbaa 572bcb40 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/15 19:15 upstream 5472f14a3742 572bcb40 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/15 03:03 upstream 5472f14a3742 f752fb53 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/14 14:27 upstream 5472f14a3742 d018dd31 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/14 00:30 upstream 5472f14a3742 5d14b1ea .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/13 15:03 upstream 2585cf9dfaad 0304899b .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/12 20:10 upstream 90d9fbc16b69 49ca1f59 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/12 07:55 upstream a763d5a5abd6 49ca1f59 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/11 15:23 upstream 6f513529296f 49ca1f59 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/11 07:15 upstream 9e65da135b39 49ca1f59 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/10 18:10 upstream c741e49150db fc17c959 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/10 02:41 upstream ded746bfc943 4d4ce9bc .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/09 23:40 upstream ded746bfc943 b54aa474 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/09 15:58 upstream 2a987e65025e b54aa474 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/08 11:33 upstream 2a987e65025e a4a2a501 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/08 01:28 upstream 2a987e65025e 0230ba3e .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/07 01:12 upstream f80ef9e49fdf 0230ba3e .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/06 11:03 upstream 0fcfb00b28c0 579a8754 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/05 08:30 upstream 79a72162048e a617004c .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/05 08:24 upstream 79a72162048e a617004c .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/04 18:32 upstream bbef3c7a63d2 a617004c .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/04 03:34 upstream 12119cfa1052 a617004c .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/03 12:12 upstream 5f58da2befa5 c7c20675 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/02 21:32 upstream a51e3ac43ddb 61f86278 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/12/01 16:15 upstream 58e1100fdc59 5fa3eacc .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/30 19:31 upstream f080815fdb3e 80270552 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/30 12:09 upstream d58071a8a76d 80270552 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/29 18:45 upstream d58071a8a76d d0830353 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/29 11:50 upstream d58071a8a76d 63eeac02 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/29 05:35 upstream d06c942efea4 63eeac02 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/28 18:10 upstream 3498e7f2bb41 63eeac02 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/27 19:17 upstream 741392771338 63eeac02 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/26 22:38 upstream c5c17547b778 63eeac02 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/26 11:42 upstream a4849f6000e2 63eeac02 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/25 23:06 upstream b501b85957de 63eeac02 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/24 20:29 upstream 5f53fa508db0 545ab074 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/23 23:52 upstream 5d9f4cf36721 545ab074 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/22 15:26 upstream 136057256686 545ab074 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/22 11:37 upstream 136057256686 4eb20a4e .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/21 22:51 upstream 40c93d7fff6f 4eb20a4e .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/21 12:49 upstream 923dcc5eb0c1 4eb20a4e .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/11/20 23:30 upstream 61564e7b3abc 4eb20a4e .config log report info KCSAN: data-race in ext4_mb_good_group / mb_mark_used
ci2-upstream-kcsan-gce 2021/01/16 04:41 upstream 5ee88057889b 65a7a854 .config log report info
ci2-upstream-kcsan-gce 2019/10/08 15:16 https://github.com/google/ktsan.git kcsan 3675607974a2 137e37ca .config log report