syzbot


KCSAN: data-race in pipe_release / pipe_wait_writable (2)

Status: auto-obsoleted due to no activity on 2022/12/15 02:24
Subsystems: fs
[Documentation on labels]
First crash: 533d, last: 533d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pipe_release / pipe_wait_writable fs 1 828d 828d 0/26 auto-closed as invalid on 2022/02/23 01:29

Sample crash report:
==================================================================
BUG: KCSAN: data-race in pipe_release / pipe_wait_writable

read-write to 0xffff8881265ba1ec of 4 bytes by task 5854 on cpu 0:
 put_pipe_info fs/pipe.c:704 [inline]
 pipe_release+0x164/0x1c0 fs/pipe.c:734
 __fput+0x245/0x570 fs/file_table.c:320
 ____fput+0x11/0x20 fs/file_table.c:348
 task_work_run+0xde/0x110 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x124/0x130 kernel/entry/common.c:171
 exit_to_user_mode_prepare kernel/entry/common.c:203 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:296
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff8881265ba1ec of 4 bytes by task 5886 on cpu 1:
 pipe_lock_nested fs/pipe.c:81 [inline]
 pipe_lock fs/pipe.c:90 [inline]
 pipe_wait_writable+0x1f5/0x240 fs/pipe.c:1056
 wait_for_space fs/splice.c:995 [inline]
 splice_file_to_pipe+0x142/0x360 fs/splice.c:1011
 do_sendfile+0x361/0x910 fs/read_write.c:1262
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1309
 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: 0x00000002 -> 0x00000001

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/10 02:21 upstream f67dd6ce0723 b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pipe_release / pipe_wait_writable
* Struck through repros no longer work on HEAD.