syzbot


KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space (6)

Status: auto-closed as invalid on 2021/08/16 16:28
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 650d, last: 506d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space (4) 10 788d 889d 0/24 auto-closed as invalid on 2020/11/07 06:53
upstream KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space 2 1115d 1132d 0/24 closed as invalid on 2019/11/19 14:44
upstream KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space (3) 2 911d 931d 0/24 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space (7) 16 355d 463d 0/24 auto-closed as invalid on 2022/01/14 22:09
upstream KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space (5) 1 687d 687d 0/24 auto-closed as invalid on 2021/02/16 17:07
upstream KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space (2) 7 1021d 1086d 0/24 auto-closed as invalid on 2020/04/23 17:25

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space

write to 0xffff88814b870858 of 4 bytes by task 13088 on cpu 0:
 ext4_da_reserve_space+0x147/0x200 fs/ext4/inode.c:1491
 ext4_insert_delayed_block fs/ext4/inode.c:1656 [inline]
 ext4_da_map_blocks fs/ext4/inode.c:1770 [inline]
 ext4_da_get_block_prep+0x512/0x9b0 fs/ext4/inode.c:1834
 __block_write_begin_int+0x4a2/0x1060 fs/buffer.c:2006
 __block_write_begin+0x2b/0x40 fs/buffer.c:2056
 ext4_da_write_begin+0x4c8/0x820 fs/ext4/inode.c:3018
 generic_perform_write+0x196/0x3c0 mm/filemap.c:3656
 ext4_buffered_write_iter+0x2f2/0x3f0 fs/ext4/file.c:269
 ext4_file_write_iter+0x2e7/0x11d0 fs/ext4/file.c:519
 call_write_iter include/linux/fs.h:2114 [inline]
 aio_write+0x287/0x360 fs/aio.c:1578
 __io_submit_one fs/aio.c:1837 [inline]
 io_submit_one+0x82f/0x1350 fs/aio.c:1880
 __do_sys_io_submit fs/aio.c:1939 [inline]
 __se_sys_io_submit+0xf5/0x260 fs/aio.c:1909
 __x64_sys_io_submit+0x3f/0x50 fs/aio.c:1909
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88814b870858 of 4 bytes by task 13083 on cpu 1:
 ext4_alloc_da_blocks+0x1a/0xd0 fs/ext4/inode.c:3130
 ext4_release_file+0x5b/0x1d0 fs/ext4/file.c:141
 __fput+0x25b/0x4e0 fs/file_table.c:280
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0xae/0x130 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:209
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:302
 do_syscall_64+0x49/0x90 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 13083 Comm: syz-executor.5 Tainted: G        W         5.14.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (23):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/07/12 16:28 upstream e73f0f0ee754 a4869c92 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/07/06 22:50 upstream 3dbdb38e2869 cca78469 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/07/05 03:32 upstream 3dbdb38e2869 55aa55c2 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/06/23 06:24 upstream 0c18f29aae7c aba2b2fb .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/06/21 11:16 upstream 13311e74253f aba2b2fb .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/06/04 07:20 upstream f88cd3fb9df2 0740de69 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/05/31 13:34 upstream 8124c8a6b353 032639db .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/05/29 20:18 upstream f956cb99b938 325a8dab .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/05/21 14:28 upstream 79a106fc6585 3c7fef33 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/05/20 15:45 upstream c3d0e3fd41b7 c560a65d .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/05/14 12:22 upstream 315d99318179 8bdd5343 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/05/13 11:00 upstream c06a2ba62fc4 ed7d41c5 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/05/10 22:22 upstream 6efb943b8616 ca873091 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/05/08 15:24 upstream dd860052c99b bc5434be .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/05/02 14:27 upstream 17ae69aba89d 77e2b668 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/04/29 11:57 upstream d72cd4ad4174 77e2b668 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/04/25 19:36 upstream d2d09fbe33f8 2a82f1b3 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/04/24 05:28 upstream 8db5efb83fa9 17f0b706 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/04/13 08:07 upstream 89698becf06d 6a81331a .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/04/04 10:49 upstream 2023a53bdf41 6a81331a .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/03/25 14:52 upstream e138138003eb 6a383ecf .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/03/24 14:49 upstream 7acac4b3196c 607e3baf .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/02/18 23:58 upstream f40ddce88593 14052202 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
* Struck through repros no longer work on HEAD.