syzbot


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

Status: auto-closed as invalid on 2022/01/14 22:09
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 468d, last: 359d
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 793d 893d 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 1120d 1136d 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 915d 935d 0/24 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space (6) 23 510d 654d 0/24 auto-closed as invalid on 2021/08/16 16:28
upstream KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space (5) 1 691d 691d 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 1025d 1090d 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 0xffff88813748dcc8 of 4 bytes by task 10111 on cpu 1:
 ext4_da_reserve_space+0x12b/0x1f0 fs/ext4/inode.c:1478
 ext4_insert_delayed_block fs/ext4/inode.c:1645 [inline]
 ext4_da_map_blocks fs/ext4/inode.c:1763 [inline]
 ext4_da_get_block_prep+0x513/0x9e0 fs/ext4/inode.c:1827
 __block_write_begin_int+0x4c5/0x1010 fs/buffer.c:2010
 __block_write_begin+0x2b/0x40 fs/buffer.c:2060
 ext4_da_write_begin+0x34e/0x590 fs/ext4/inode.c:2969
 generic_perform_write+0x1c8/0x400 mm/filemap.c:3756
 ext4_buffered_write_iter+0x25b/0x380 fs/ext4/file.c:269
 ext4_file_write_iter+0x2e7/0x1200
 call_write_iter include/linux/fs.h:2162 [inline]
 do_iter_readv_writev+0x2de/0x380 fs/read_write.c:725
 do_iter_write+0x192/0x5c0 fs/read_write.c:851
 vfs_iter_write+0x4c/0x70 fs/read_write.c:892
 iter_file_splice_write+0x43a/0x790 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x650 fs/splice.c:891
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296
 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 0xffff88813748dcc8 of 4 bytes by task 10110 on cpu 0:
 ext4_alloc_da_blocks+0x1a/0x100 fs/ext4/inode.c:3069
 ext4_release_file+0x5b/0x1d0 fs/ext4/file.c:141
 __fput+0x295/0x520 fs/file_table.c:280
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0x8e/0x110 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+0x160/0x190 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300
 do_syscall_64+0x50/0xd0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000189b -> 0x0000189c

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

Crashes (16):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/10 22:09 upstream c741e49150db fc17c959 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/12/07 19:39 upstream cd8c917a56f2 0230ba3e .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/12/05 07:59 upstream 79a72162048e a617004c .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/12/02 00:21 upstream 58e1100fdc59 61f86278 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/11/07 16:51 upstream b5013d084e03 4c1be0be .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/10/11 01:18 upstream efb52a7d9511 838e7e2c .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/10/08 07:01 upstream 1da38549dd64 efe0f24d .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/09/28 23:34 upstream d33bec7b3dfa d82cb927 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/09/28 00:41 upstream 0513e464f900 78494d16 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/09/25 21:30 upstream 85736168463d 8cac236e .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/09/25 12:26 upstream 7d42e9818258 8cac236e .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/09/18 08:46 upstream 4357f03d6611 70b76c1d .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/09/18 04:44 upstream ddf21bd8ab98 70b76c1d .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/09/06 20:40 upstream 27151f177827 6ca60148 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/09/06 05:23 upstream a9c9a6f741cd d236a457 .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
ci2-upstream-kcsan-gce 2021/08/24 04:20 upstream d5ae8d7f85b7 b599f2fc .config log report info KCSAN: data-race in ext4_alloc_da_blocks / ext4_da_reserve_space
* Struck through repros no longer work on HEAD.