syzbot


KCSAN: data-race in ext4_mb_good_group / mb_free_blocks

Status: auto-closed as invalid on 2021/03/07 11:56
Reported-by: syzbot+41525f42a971ade8fd71@syzkaller.appspotmail.com
First crash: 1030d, last: 565d
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_free_blocks (2) 132 297d 469d 0/23 auto-closed as invalid on 2021/11/30 12:17
upstream KCSAN: data-race in ext4_mb_good_group / mb_free_blocks (3) 3 255d 260d 0/23 auto-closed as invalid on 2022/01/11 14:33

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

write to 0xffff888141726014 of 4 bytes by task 12358 on cpu 1:
 mb_free_blocks+0x156/0xb60 fs/ext4/mballoc.c:1464
 ext4_free_blocks+0x134d/0x1bd0 fs/ext4/mballoc.c:5449
 ext4_ext_try_to_merge_up fs/ext4/extents.c:1830 [inline]
 ext4_ext_try_to_merge+0x2fa/0x310 fs/ext4/extents.c:1857
 ext4_swap_extents+0x102d/0x13a0 fs/ext4/extents.c:5693
 move_extent_per_page+0x143c/0x16c0 fs/ext4/move_extent.c:339
 ext4_move_extents+0xaac/0xc00 fs/ext4/move_extent.c:673
 __ext4_ioctl fs/ext4/ioctl.c:988 [inline]
 ext4_ioctl+0x20ec/0x3560 fs/ext4/ioctl.c:1322
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:739
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:739
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888141726014 of 4 bytes by task 12365 on cpu 0:
 ext4_mb_good_group+0x11c/0x350 fs/ext4/mballoc.c:2091
 ext4_mb_good_group_nolock fs/ext4/mballoc.c:2190 [inline]
 ext4_mb_regular_allocator+0xccf/0x18f0 fs/ext4/mballoc.c:2386
 ext4_mb_new_blocks+0x71a/0x1170 fs/ext4/mballoc.c:4975
 ext4_new_meta_blocks+0x84/0x180 fs/ext4/balloc.c:679
 ext4_ext_grow_indepth fs/ext4/extents.c:1276 [inline]
 ext4_ext_create_new_leaf fs/ext4/extents.c:1380 [inline]
 ext4_ext_insert_extent+0x9b3/0x2bc0 fs/ext4/extents.c:2054
 ext4_split_extent_at+0x6f2/0xb40 fs/ext4/extents.c:3208
 ext4_force_split_extent_at fs/ext4/extents.c:305 [inline]
 ext4_swap_extents+0xd76/0x13a0 fs/ext4/extents.c:5664
 move_extent_per_page+0x143c/0x16c0 fs/ext4/move_extent.c:339
 ext4_move_extents+0xaac/0xc00 fs/ext4/move_extent.c:673
 __ext4_ioctl fs/ext4/ioctl.c:988 [inline]
 ext4_ioctl+0x20ec/0x3560 fs/ext4/ioctl.c:1322
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:739
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:739
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (273):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/01/31 11:56 upstream 6642d600b541 fc9fd31e .config log report info KCSAN: data-race in ext4_mb_good_group / mb_free_blocks
ci2-upstream-kcsan-gce 2021/01/30 23:47 upstream 8c947645151c fc9fd31e .config log report info KCSAN: data-race in ext4_mb_good_group / mb_free_blocks
ci2-upstream-kcsan-gce 2021/01/29 20:00 upstream bec4c2968fce fc9fd31e .config log report info KCSAN: data-race in ext4_mb_good_group / mb_free_blocks
ci2-upstream-kcsan-gce 2021/01/29 08:33 upstream bec4c2968fce 6593fd32 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_free_blocks
ci2-upstream-kcsan-gce 2021/01/27 18:20 upstream 2ab38c17aac1 a57db36f .config log report info KCSAN: data-race in ext4_mb_good_group / mb_free_blocks
ci2-upstream-kcsan-gce 2021/01/26 13:26 upstream 13391c60da33 52e37319 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_free_blocks
ci2-upstream-kcsan-gce 2021/01/24 19:43 upstream e68061375f79 52e37319 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_free_blocks
ci2-upstream-kcsan-gce 2021/01/22 19:54 upstream 83d09ad4b950 52e37319 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_free_blocks
ci2-upstream-kcsan-gce 2021/01/18 05:44 upstream 19c329f68089 fd103621 .config log report info KCSAN: data-race in ext4_mb_good_group / mb_free_blocks
ci2-upstream-kcsan-gce 2021/01/17 10:42 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2021/01/16 22:06 upstream 54c6247d06f1 65a7a854 .config log report info
ci2-upstream-kcsan-gce 2021/01/16 09:20 upstream 1d94330a437a 65a7a854 .config log report info
ci2-upstream-kcsan-gce 2021/01/15 02:04 upstream 146620506274 468dbb55 .config log report info
ci2-upstream-kcsan-gce 2021/01/14 15:34 upstream 65f0d2414b70 468dbb55 .config log report info
ci2-upstream-kcsan-gce 2021/01/13 21:08 upstream 65f0d2414b70 a945f0a3 .config log report info
ci2-upstream-kcsan-gce 2021/01/13 12:05 upstream e609571b5ffa a945f0a3 .config log report info
ci2-upstream-kcsan-gce 2021/01/12 00:09 upstream a0d54b4f5b21 2c1f2513 .config log report info
ci2-upstream-kcsan-gce 2021/01/08 21:30 upstream 6279d812eab6 c104d4a3 .config log report info
ci2-upstream-kcsan-gce 2021/01/07 04:35 upstream 71c061d24438 c104d4a3 .config log report info
ci2-upstream-kcsan-gce 2021/01/04 21:30 upstream 36bbbd0e234d 2a28ff1f .config log report info
ci2-upstream-kcsan-gce 2021/01/04 19:25 upstream 36bbbd0e234d 79264ae3 .config log report info
ci2-upstream-kcsan-gce 2021/01/04 04:31 upstream e71ba9452f0b 79264ae3 .config log report info
ci2-upstream-kcsan-gce 2021/01/02 21:48 upstream 3516bd729358 79264ae3 .config log report info
ci2-upstream-kcsan-gce 2020/12/31 14:21 upstream f6e1ea196492 79264ae3 .config log report info
ci2-upstream-kcsan-gce 2020/12/30 23:24 upstream f6e1ea196492 ecb8c012 .config log report info
ci2-upstream-kcsan-gce 2020/12/30 04:19 upstream 139711f033f6 0fa352f2 .config log report info
ci2-upstream-kcsan-gce 2020/12/29 10:32 upstream dea8dcf2a9fa 8259d56c .config log report info
ci2-upstream-kcsan-gce 2020/12/28 22:31 upstream c76e02c59e13 8259d56c .config log report info
ci2-upstream-kcsan-gce 2020/12/28 20:07 upstream 5c8fe583cce5 8259d56c .config log report info
ci2-upstream-kcsan-gce 2020/12/28 18:57 upstream 5c8fe583cce5 8259d56c .config log report info
ci2-upstream-kcsan-gce 2020/12/25 23:06 upstream 5814bc2d4cc2 821e0b09 .config log report info
ci2-upstream-kcsan-gce 2020/12/21 09:37 upstream e37b12e4bb21 04201c06 .config log report info
ci2-upstream-kcsan-gce 2020/12/20 20:01 upstream 6a447b0e3151 04201c06 .config log report info
ci2-upstream-kcsan-gce 2020/12/19 22:18 upstream 467f8165a2b0 04201c06 .config log report info
ci2-upstream-kcsan-gce 2020/12/18 11:50 upstream a409ed156a90 04201c06 .config log report info
ci2-upstream-kcsan-gce 2020/12/18 00:32 upstream d64c6f96ba86 04201c06 .config log report info
ci2-upstream-kcsan-gce 2020/12/15 21:02 upstream 148842c98a24 f213e07e .config log report info
ci2-upstream-kcsan-gce 2020/12/15 10:49 upstream 148842c98a24 97183ed7 .config log report info
ci2-upstream-kcsan-gce 2020/12/14 18:52 upstream 2c85ebc57b3e 97183ed7 .config log report info
ci2-upstream-kcsan-gce 2020/12/14 07:07 upstream 2c85ebc57b3e b22a7ec3 .config log report info
ci2-upstream-kcsan-gce 2020/12/13 20:45 upstream ec6f5e0e5ca0 8f160dd5 .config log report info
ci2-upstream-kcsan-gce 2020/12/12 00:00 upstream 7f376f1917d7 bca53db9 .config log report info
ci2-upstream-kcsan-gce 2020/12/11 11:44 upstream 33dc9614dc20 ba24ffcd .config log report info
ci2-upstream-kcsan-gce 2020/12/10 11:40 upstream a2f5ea9e314b 2a55c22b .config log report info
ci2-upstream-kcsan-gce 2020/12/09 22:01 upstream ca4bbdaf1716 c090b4da .config log report info
ci2-upstream-kcsan-gce 2020/03/27 16:03 https://github.com/google/ktsan.git kcsan 40959e34d670 831e9a81 .config log report
ci2-upstream-kcsan-gce 2019/10/24 09:17 https://github.com/google/ktsan.git kcsan 05f2236801fe d01bb02a .config log report