syzbot


KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (9)

Status: auto-obsoleted due to no activity on 2023/03/31 03:37
Subsystems: net
[Documentation on labels]
First crash: 411d, last: 411d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (6) net 1 812d 812d 0/26 auto-closed as invalid on 2022/01/05 01:52
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock net 2 1494d 1509d 0/26 auto-closed as invalid on 2020/03/29 01:10
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (8) net 1 713d 713d 0/26 auto-closed as invalid on 2022/04/14 22:36
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (4) net 20 1135d 1167d 0/26 auto-closed as invalid on 2021/02/16 06:00
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (7) net 1 765d 762d 0/26 auto-closed as invalid on 2022/02/21 00:16
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (3) net 1 1298d 1298d 0/26 auto-closed as invalid on 2020/09/05 23:08
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (5) net 47 834d 986d 20/26 fixed on 2021/11/10 00:50
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (2) net 1 1336d 1336d 0/26 auto-closed as invalid on 2020/07/30 12:33

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

write to 0xffff888104ff6f6c of 1 bytes by task 12613 on cpu 0:
 unix_release_sock+0x3c9/0x7b0 net/unix/af_unix.c:630
 unix_release+0x4e/0x70 net/unix/af_unix.c:1041
 __sock_release net/socket.c:650 [inline]
 sock_close+0x6c/0x150 net/socket.c:1365
 __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 0xffff888104ff6f6c of 1 bytes by task 12599 on cpu 1:
 sock_alloc_send_pskb+0x113/0x4f0 net/core/sock.c:2726
 unix_stream_sendmsg+0x3a5/0xaa0 net/unix/af_unix.c:2206
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg+0x75/0xa0 net/socket.c:734
 io_send+0x27d/0x9d0 io_uring/net.c:392
 io_issue_sqe+0x33f/0x890 io_uring/io_uring.c:1851
 io_queue_sqe io_uring/io_uring.c:2023 [inline]
 io_submit_sqe+0x3b1/0xa50 io_uring/io_uring.c:2281
 io_submit_sqes+0x274/0x550 io_uring/io_uring.c:2392
 __do_sys_io_uring_enter io_uring/io_uring.c:3340 [inline]
 __se_sys_io_uring_enter+0x1ef/0xc40 io_uring/io_uring.c:3272
 __x64_sys_io_uring_enter+0x74/0x80 io_uring/io_uring.c:3272
 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: 0x00 -> 0x03

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 12599 Comm: syz-executor.2 Tainted: G        W          6.2.0-rc2-syzkaller-00057-g41c03ba9beea-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
2023/01/06 02:49 upstream 41c03ba9beea 1dac8c7a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock
* Struck through repros no longer work on HEAD.