syzbot


KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks (2)

Status: auto-closed as invalid on 2022/01/21 20:42
Reported-by: syzbot+23e6d63bad68d0ee8fe2@syzkaller.appspotmail.com
First crash: 624d, last: 347d
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_free_blocks (3) 1 202d 202d 0/24 closed as invalid on 2022/05/13 11:20
upstream KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks 184 666d 818d 0/24 auto-closed as invalid on 2021/03/09 10:48

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

write to 0xffff8881013d3b54 of 4 bytes by task 1401 on cpu 0:
 mb_free_blocks+0x156/0xb40 fs/ext4/mballoc.c:1802
 ext4_free_data_in_buddy fs/ext4/mballoc.c:3662 [inline]
 ext4_process_freed_data+0x488/0x900 fs/ext4/mballoc.c:3713
 ext4_journal_commit_callback+0x83/0x1a0 fs/ext4/super.c:449
 jbd2_journal_commit_transaction+0x2b1f/0x3460 fs/jbd2/commit.c:1171
 kjournald2+0x263/0x480 fs/jbd2/journal.c:213
 kthread+0x2c7/0x2e0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

read to 0xffff8881013d3b54 of 4 bytes by task 1825 on cpu 1:
 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: 0x000005e9 -> 0x00000610

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

Crashes (150):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/17 20:42 upstream 6441998e2e37 44068e19 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/12/16 19:11 upstream fa36bbe6d43f 8dd6a5e3 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/12/12 22:04 upstream 90d9fbc16b69 49ca1f59 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/12/05 07:35 upstream 79a72162048e a617004c .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/12/01 03:23 upstream f080815fdb3e 80270552 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/11/28 16:00 upstream 3498e7f2bb41 63eeac02 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/11/25 19:58 upstream b501b85957de 63eeac02 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/11/22 15:02 upstream 136057256686 545ab074 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/11/22 02:19 upstream 40c93d7fff6f 4eb20a4e .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/11/20 04:30 upstream a90af8f15bdc 4eb20a4e .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/10/23 10:51 upstream 9c0c4d24ac00 282f03fb .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/10/13 08:39 upstream f4d0cc426f77 9d56e7dd .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/10/13 00:41 upstream f4d0cc426f77 08362356 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/10/10 20:47 upstream efb52a7d9511 838e7e2c .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/10/10 05:29 upstream 7fd2bf83d59a 838e7e2c .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/10/08 10:01 upstream 1da38549dd64 efe0f24d .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/10/06 02:28 upstream 60a9483534ed 0a63fd36 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/10/04 00:55 upstream 6761a0ae9895 db0f5787 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/10/01 04:31 upstream 4de593fb965f 1d849ab4 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/29 14:18 upstream a4e6f95a891a e08fe937 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/24 16:41 upstream f9e36107ec70 8cac236e .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/22 05:11 upstream 92477dd1faa6 169724fe .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/21 07:17 upstream e8f71f89236e af796c18 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/18 08:54 upstream 4357f03d6611 70b76c1d .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/17 19:43 upstream ddf21bd8ab98 70b76c1d .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/17 04:57 upstream bdb575f87217 5b989942 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/16 14:10 upstream ff1ffd71d5f0 aae492f2 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/15 19:55 upstream 80be5998ad63 07e953c1 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/15 12:31 upstream 3ca706c189db 07e953c1 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/14 00:16 upstream 316346243be6 58d09404 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/12 21:03 upstream 78e709522d2c 3ce60af8 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/10 13:13 upstream bf9f243f23e6 5ae8508a .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/10 04:04 upstream bf9f243f23e6 e2776ee4 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/09 18:58 upstream a3fa7a101dcf e2776ee4 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/09 02:11 upstream 2d338201d531 e2776ee4 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/06 19:31 upstream 27151f177827 6ca60148 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/03 18:33 upstream a9c9a6f741cd d236a457 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/09/02 04:00 upstream 835d31d319d9 7eb7e152 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/08/31 08:16 upstream 8596e589b787 8f58a0ef .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/08/30 12:59 upstream 7d2a07b76933 8f58a0ef .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/08/26 12:28 upstream 73f3af7b4611 b599f2fc .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/08/24 02:58 upstream d5ae8d7f85b7 b599f2fc .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/08/22 16:44 upstream 9ff50bf2f2ff b599f2fc .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/08/22 01:37 upstream 002c0aef1090 b599f2fc .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/08/21 11:32 upstream fa54d366a6e4 b599f2fc .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/08/20 17:41 upstream d992fe5318d8 b599f2fc .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/08/20 06:16 upstream f87d64319e6f b599f2fc .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/08/18 05:58 upstream 614cb2751d31 a2fe1cb5 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/08/14 19:33 upstream ba31f97d43be 2489ab88 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/08/13 05:16 upstream f8e6dfc64f61 3fd2ea69 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/08/12 22:33 upstream f8fbb47c6e86 c551a195 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/05/31 19:35 upstream c2131f7e73c9 032639db .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/05/29 03:23 upstream 5ff2756afde0 858ea628 .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
ci2-upstream-kcsan-gce 2021/03/16 07:11 upstream 1a4431a5db2b fdb2bb2c .config log report info KCSAN: data-race in ext4_mb_regular_allocator / mb_free_blocks
* Struck through repros no longer work on HEAD.