syzbot


KCSAN: data-race in unix_release_sock / unix_stream_sendpage (2)

Status: auto-closed as invalid on 2020/02/25 15:28
Subsystems: net
[Documentation on labels]
First crash: 1581d, last: 1581d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in unix_release_sock / unix_stream_sendpage net 1 1635d 1635d 0/26 closed as invalid on 2019/11/19 13:44
upstream KCSAN: data-race in unix_release_sock / unix_stream_sendpage (3) net 1 1290d 1290d 0/26 auto-closed as invalid on 2020/11/07 07:43

Sample crash report:
==================================================================
BUG: KCSAN: data-race in unix_release_sock / unix_stream_sendpage

write to 0xffff888121f95a6a of 1 bytes by task 10394 on cpu 0:
 unix_release_sock+0x4fd/0x660 net/unix/af_unix.c:542
 unix_release+0x3e/0x70 net/unix/af_unix.c:842
 __sock_release+0x85/0x160 net/socket.c:592
 sock_close+0x24/0x30 net/socket.c:1270
 __fput+0x1e1/0x520 fs/file_table.c:280
 ____fput+0x1f/0x30 fs/file_table.c:313
 task_work_run+0xf6/0x130 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:278 [inline]
 do_syscall_64+0x384/0x3a0 arch/x86/entry/common.c:304
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888121f95a6a of 1 bytes by task 10398 on cpu 1:
 unix_stream_sendpage+0x1ed/0x8f0 net/unix/af_unix.c:1920
 kernel_sendpage+0x7b/0xc0 net/socket.c:3776
 sock_sendpage+0x6c/0x90 net/socket.c:937
 pipe_to_sendpage+0x102/0x1a0 fs/splice.c:458
 splice_from_pipe_feed fs/splice.c:512 [inline]
 __splice_from_pipe+0x295/0x4a0 fs/splice.c:636
 splice_from_pipe+0xbb/0x100 fs/splice.c:671
 generic_splice_sendpage+0x45/0x60 fs/splice.c:844
 do_splice_from fs/splice.c:863 [inline]
 direct_splice_actor+0xa0/0xc0 fs/splice.c:1037
 splice_direct_to_actor+0x22b/0x540 fs/splice.c:992
 do_splice_direct+0x161/0x1e0 fs/splice.c:1080
 do_sendfile+0x384/0x7f0 fs/read_write.c:1464
 __do_sys_sendfile64 fs/read_write.c:1525 [inline]
 __se_sys_sendfile64 fs/read_write.c:1511 [inline]
 __x64_sys_sendfile64+0x12a/0x140 fs/read_write.c:1511
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 10398 Comm: syz-executor.3 Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/17 15:22 https://github.com/google/ktsan.git kcsan 245a43005292 1af3875f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.