syzbot


KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown (6)

Status: auto-obsoleted due to no activity on 2023/05/15 10:22
Subsystems: net
[Documentation on labels]
First crash: 984d, last: 837d
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown (5) net 6 1 1036d 1036d 0/29 auto-obsoleted due to no activity on 2022/10/28 02:20
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown (2) net 6 1 1492d 1492d 0/29 auto-closed as invalid on 2021/07/29 06:04
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown net 6 1 1850d 1850d 0/29 auto-closed as invalid on 2020/08/04 22:26
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown (4) net 6 5 1101d 1128d 0/29 auto-closed as invalid on 2022/08/23 19:49
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown (3) net 6 3 1405d 1438d 0/29 auto-closed as invalid on 2021/10/24 10:54

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

read-write to 0xffff88816c523d6c of 1 bytes by task 885 on cpu 1:
 unix_shutdown+0x72/0x360 net/unix/af_unix.c:3011
 __sys_shutdown_sock net/socket.c:2343 [inline]
 __sys_shutdown net/socket.c:2355 [inline]
 __do_sys_shutdown net/socket.c:2363 [inline]
 __se_sys_shutdown+0xf8/0x140 net/socket.c:2361
 __x64_sys_shutdown+0x31/0x40 net/socket.c:2361
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88816c523d6c of 1 bytes by task 877 on cpu 0:
 sock_alloc_send_pskb+0x117/0x4e0 net/core/sock.c:2719
 unix_stream_sendmsg+0x35e/0xa90 net/unix/af_unix.c:2213
 sock_sendmsg_nosec net/socket.c:724 [inline]
 sock_sendmsg+0x79/0xd0 net/socket.c:747
 io_send+0x255/0x8f0 io_uring/net.c:393
 io_issue_sqe+0x147/0x660 io_uring/io_uring.c:1907
 io_queue_sqe io_uring/io_uring.c:2079 [inline]
 io_submit_sqe io_uring/io_uring.c:2340 [inline]
 io_submit_sqes+0x689/0xfe0 io_uring/io_uring.c:2450
 __do_sys_io_uring_enter io_uring/io_uring.c:3458 [inline]
 __se_sys_io_uring_enter+0x1e5/0x1b70 io_uring/io_uring.c:3392
 __x64_sys_io_uring_enter+0x78/0x90 io_uring/io_uring.c:3392
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 877 Comm: syz-executor.1 Not tainted 6.3.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
==================================================================

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/10 10:13 upstream 09a9639e56c0 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown
2023/03/10 21:06 upstream 388a810192fd 5205ef30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown
2023/02/06 13:39 upstream d2d11f342b17 0a9c11b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown
2023/01/27 08:13 upstream 7c46948a6e9c 9dfcf09c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown
2022/12/29 17:46 upstream 1b929c02afd3 44712fbc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown
2022/11/25 14:11 upstream c3eb11fbb826 74a66371 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown
2022/11/15 01:13 upstream e01d50cbd6ee 97de9cfc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown
2022/11/14 08:55 upstream 094226ad94f4 7ba4d859 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown
* Struck through repros no longer work on HEAD.