syzbot


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

Status: auto-obsoleted due to no activity on 2023/12/24 00:08
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+97ab1c55da48cee65f77@syzkaller.appspotmail.com
First crash: 145d, last: 104d
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 205d 289d 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 27d 27d 0/26 moderation: reported on 2024/01/27 02:49
upstream KCSAN: data-race in loop_configure / shmem_write_begin (2) block 1 493d 493d 0/26 auto-obsoleted due to no activity on 2022/11/22 19:17
upstream KCSAN: data-race in loop_configure / shmem_write_begin (3) block 3 450d 458d 0/26 auto-obsoleted due to no activity on 2023/01/16 15:13
upstream KCSAN: data-race in loop_configure / shmem_write_begin block 1 967d 967d 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

read-write to 0xffff888129bf13d8 of 4 bytes by task 32511 on cpu 1:
 mapping_set_gfp_mask include/linux/pagemap.h:310 [inline]
 loop_configure+0x7c0/0xca0 drivers/block/loop.c:1077
 lo_ioctl+0x682/0x12e0
 blkdev_ioctl+0x375/0x460 block/ioctl.c:633
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl+0xcf/0x140 fs/ioctl.c:857
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff888129bf13d8 of 4 bytes by task 32497 on cpu 0:
 mapping_gfp_mask include/linux/pagemap.h:294 [inline]
 shmem_get_folio mm/shmem.c:2120 [inline]
 shmem_write_begin+0x84/0x1b0 mm/shmem.c:2702
 generic_perform_write+0x1c9/0x410 mm/filemap.c:3918
 shmem_file_write_iter+0xc8/0xe0 mm/shmem.c:2878
 do_iter_write+0x4ad/0x770 fs/read_write.c:860
 vfs_writev+0x1a8/0x320 fs/read_write.c:933
 do_pwritev fs/read_write.c:1030 [inline]
 __do_sys_pwritev fs/read_write.c:1077 [inline]
 __se_sys_pwritev fs/read_write.c:1072 [inline]
 __x64_sys_pwritev+0x100/0x1c0 fs/read_write.c:1072
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x00100cca -> 0x00100c0a

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 32497 Comm: syz-executor.3 Not tainted 6.6.0-syzkaller-16159-g3ca112b71f35 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/11 15:42 upstream 3ca112b71f35 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in loop_configure / shmem_write_begin
2023/10/11 07:09 upstream 1c8b86a3799f 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in loop_configure / shmem_write_begin
2023/10/01 09:25 upstream e402b08634b3 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in loop_configure / shmem_write_begin
* Struck through repros no longer work on HEAD.