syzbot


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

Status: auto-obsoleted due to no activity on 2022/11/22 19:17
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 106d, last: 106d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in loop_configure / shmem_write_begin (3) 3 63d 71d 0/24 auto-obsoleted due to no activity on 2023/01/16 15:13
upstream KCSAN: data-race in loop_configure / shmem_write_begin 1 580d 580d 0/24 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 0xffff88813c85a288 of 4 bytes by task 10070 on cpu 1:
 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 0xffff88813c85a288 of 4 bytes by task 10055 on cpu 0:
 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:2514
 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: 0 PID: 10055 Comm: syz-executor.5 Not tainted 6.1.0-rc1-syzkaller-00010-gbb1a1146467a-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2022/10/18 19:07 upstream bb1a1146467a b31320fc .config console log report info [disk image] [vmlinux] KCSAN: data-race in loop_configure / shmem_write_begin
* Struck through repros no longer work on HEAD.