syzbot


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

Status: auto-closed as invalid on 2022/01/05 01:52
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 367d, last: 367d
similar bugs (7):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock 2 1049d 1063d 0/24 auto-closed as invalid on 2020/03/29 01:10
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (8) 1 267d 267d 0/24 auto-closed as invalid on 2022/04/14 22:36
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (4) 20 690d 721d 0/24 auto-closed as invalid on 2021/02/16 06:00
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (7) 1 320d 316d 0/24 auto-closed as invalid on 2022/02/21 00:16
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (3) 1 853d 853d 0/24 auto-closed as invalid on 2020/09/05 23:08
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (5) 47 389d 540d 22/24 fixed on 2021/11/10 00:50
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (2) 1 890d 890d 0/24 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 0xffff888107a88ff8 of 1 bytes by task 6159 on cpu 0:
 unix_release_sock+0x298/0x680 net/unix/af_unix.c:565
 unix_release+0x4e/0x70 net/unix/af_unix.c:949
 __sock_release net/socket.c:649 [inline]
 sock_close+0x6c/0x150 net/socket.c:1314
 __fput+0x295/0x520 fs/file_table.c:280
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0x8e/0x110 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x160/0x190 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300
 do_syscall_64+0x50/0xd0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888107a88ff8 of 1 bytes by task 6257 on cpu 1:
 sock_alloc_send_pskb+0x113/0x4e0 net/core/sock.c:2560
 unix_dgram_sendmsg+0x4c7/0x16b0 net/unix/af_unix.c:1811
 unix_seqpacket_sendmsg+0xcc/0x110 net/unix/af_unix.c:2258
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0x39a/0x510 net/socket.c:2409
 __sys_sendmsg_sock+0x25/0x30 net/socket.c:2475
 io_sendmsg fs/io_uring.c:4837 [inline]
 io_issue_sqe+0x2f79/0x55e0 fs/io_uring.c:6691
 __io_queue_sqe+0x20/0x440 fs/io_uring.c:7018
 io_queue_sqe fs/io_uring.c:7060 [inline]
 io_submit_sqe+0x77a/0x47d3 fs/io_uring.c:7263
 io_submit_sqes+0x25d/0x670 fs/io_uring.c:7369
 __do_sys_io_uring_enter fs/io_uring.c:10070 [inline]
 __se_sys_io_uring_enter+0x212/0xb00 fs/io_uring.c:10012
 __x64_sys_io_uring_enter+0x74/0x80 fs/io_uring.c:10012
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00 -> 0x03

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 6257 Comm: syz-executor.5 Tainted: G        W         5.16.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/01 01:52 upstream f080815fdb3e 80270552 .config log report info KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock
* Struck through repros no longer work on HEAD.