syzbot


KCSAN: data-race in loop_configure / shmem_write_begin (3)

Status: auto-obsoleted due to no activity on 2023/01/16 15:13
Subsystems: block
[Documentation on labels]
First crash: 508d, last: 501d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in loop_configure / shmem_write_begin (4) block 5 256d 340d 0/26 auto-obsoleted due to no activity on 2023/09/06 15:54
upstream KCSAN: data-race in loop_configure / shmem_write_begin (6) block 1 78d 78d 0/26 auto-obsoleted due to no activity on 2024/03/02 02:49
upstream KCSAN: data-race in loop_configure / shmem_write_begin (2) block 1 544d 544d 0/26 auto-obsoleted due to no activity on 2022/11/22 19:17
upstream KCSAN: data-race in loop_configure / shmem_write_begin (5) block 3 155d 126d 0/26 auto-obsoleted due to no activity on 2023/12/24 00:08
upstream KCSAN: data-race in loop_configure / shmem_write_begin block 1 1018d 1018d 0/26 auto-closed as invalid on 2021/09/03 06:19

Sample crash report:
==================================================================
BUG: KCSAN: data-race in loop_configure / shmem_write_begin

write to 0xffff8881055d7540 of 4 bytes by task 20880 on cpu 0:
 mapping_set_gfp_mask include/linux/pagemap.h:290 [inline]
 loop_configure+0x7f5/0xc30 drivers/block/loop.c:1077
 lo_ioctl+0x641/0x1290
 blkdev_ioctl+0x20e/0x440 block/ioctl.c:614
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856
 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+0x63/0xcd

read to 0xffff8881055d7540 of 4 bytes by task 20869 on cpu 1:
 mapping_gfp_mask include/linux/pagemap.h:274 [inline]
 shmem_get_folio mm/shmem.c:2045 [inline]
 shmem_write_begin+0x86/0x1e0 mm/shmem.c:2531
 generic_perform_write+0x1d4/0x3f0 mm/filemap.c:3753
 __generic_file_write_iter+0xe3/0x280 mm/filemap.c:3881
 generic_file_write_iter+0x79/0x1c0 mm/filemap.c:3913
 do_iter_write+0x494/0x750 fs/read_write.c:861
 vfs_writev fs/read_write.c:934 [inline]
 do_pwritev+0x235/0x430 fs/read_write.c:1031
 __do_sys_pwritev fs/read_write.c:1078 [inline]
 __se_sys_pwritev fs/read_write.c:1073 [inline]
 __x64_sys_pwritev+0x54/0x60 fs/read_write.c:1073
 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+0x63/0xcd

value changed: 0x00100cca -> 0x00100c0a

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 20869 Comm: syz-executor.5 Not tainted 6.1.0-rc7-syzkaller-00101-g01f856ae6d0c-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/30 16:57 upstream 01f856ae6d0c 4c2a66e8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in loop_configure / shmem_write_begin
2022/11/25 17:10 upstream c3eb11fbb826 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in loop_configure / shmem_write_begin
2022/11/22 21:12 upstream eb7081409f94 9da37ae8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in loop_configure / shmem_write_begin
* Struck through repros no longer work on HEAD.