syzbot


KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used (3)

Status: closed as invalid on 2022/05/13 11:20
Subsystems: ext4
[Documentation on labels]
First crash: 714d, last: 712d
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 ext4 326 854d 1409d 0/26 auto-closed as invalid on 2022/01/24 21:39
upstream KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used (2) ext4 1 811d 811d 0/26 auto-closed as invalid on 2022/03/09 09:21

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

read-write to 0xffff888102c1da94 of 4 bytes by task 17028 on cpu 1:
 mb_mark_used+0x124/0xb80 fs/ext4/mballoc.c:1947
 ext4_mb_use_best_found+0x105/0x440 fs/ext4/mballoc.c:2019
 ext4_mb_find_by_goal+0x589/0x660
 ext4_mb_regular_allocator+0x12b/0x1ff0 fs/ext4/mballoc.c:2654
 ext4_mb_new_blocks+0x839/0xfd0 fs/ext4/mballoc.c:5616
 ext4_ext_map_blocks+0xd55/0x1bb0 fs/ext4/extents.c:4281
 ext4_map_blocks+0x75b/0xfc0 fs/ext4/inode.c:636
 ext4_alloc_file_blocks+0x281/0x730 fs/ext4/extents.c:4466
 ext4_zero_range+0x37b/0x880 fs/ext4/extents.c:4583
 ext4_fallocate+0x230/0x420 fs/ext4/extents.c:4716
 vfs_fallocate+0x355/0x3d0 fs/open.c:308
 ksys_fallocate fs/open.c:331 [inline]
 __do_sys_fallocate fs/open.c:339 [inline]
 __se_sys_fallocate fs/open.c:337 [inline]
 __x64_sys_fallocate+0x75/0xc0 fs/open.c:337
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888102c1da94 of 4 bytes by task 17018 on cpu 0:
 ext4_mb_find_by_goal+0x143/0x660 fs/ext4/mballoc.c:2207
 ext4_mb_regular_allocator+0x12b/0x1ff0 fs/ext4/mballoc.c:2654
 ext4_mb_new_blocks+0x839/0xfd0 fs/ext4/mballoc.c:5616
 ext4_ext_map_blocks+0xd55/0x1bb0 fs/ext4/extents.c:4281
 ext4_map_blocks+0x75b/0xfc0 fs/ext4/inode.c:636
 ext4_alloc_file_blocks+0x281/0x730 fs/ext4/extents.c:4466
 ext4_zero_range+0x37b/0x880 fs/ext4/extents.c:4583
 ext4_fallocate+0x230/0x420 fs/ext4/extents.c:4716
 vfs_fallocate+0x355/0x3d0 fs/open.c:308
 ksys_fallocate fs/open.c:331 [inline]
 __do_sys_fallocate fs/open.c:339 [inline]
 __se_sys_fallocate fs/open.c:337 [inline]
 __x64_sys_fallocate+0x75/0xc0 fs/open.c:337
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000410e -> 0x0000390e

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

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/05/11 14:16 upstream feb9c5e19e91 8d7b3b67 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
2022/05/10 06:40 upstream 9be9ed2612b5 8b277b8e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used
* Struck through repros no longer work on HEAD.