πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #15106

Re: [PATCH net] vhost/vsock: Fix socket state constant

#15106
From: Michal Luczaj
Date: Thu, 12 Nov 2026 10:52
15 lines
9819 bytes
On 11/12/26 11:36, netdev-bot+sinfo@kernel.org wrote:

>  - How the issue was discovered, e.g. hit in production, hit during
>    development, syzbot report, manual code inspection, LLM or static
>    analysis tool scan.

Discovered by reading the code and not getting it.

>  - Whether the issue was actually triggered, or is only theoretical
>    (e.g. found by LLM and not proven at runtime). If it was triggered
>    please include the symptoms, like the stack trace or kernel messages.

Not triggered at runtime. It's a correctness fix, I didn't try to work out
what could/would actually go wrong.
Technical Details
Message-ID: <b4dbeace-95ad-4b0e-8f13-a418ab59e8df@rbox.co>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361737-linux-kernel-netdev=dewy.ru
References: <20261112-transport-reset-state-fix-v1-1-5698375f52a9@rbox.co> <179447976386.2168702.18392043659968828325@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361737-linux-kernel-netdev=dewy.ru
From: mhal@rbox.co (Michal Luczaj)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] vhost/vsock: Fix socket state constant
Date: Thu, 12 Nov 2026 11:52:48 +0100
Organization: Usenet Network
Message-ID: <b4dbeace-95ad-4b0e-8f13-a418ab59e8df@rbox.co>
References: <20261112-transport-reset-state-fix-v1-1-5698375f52a9@rbox.co>
 <179447976386.2168702.18392043659968828325@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1076677"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:BeK0xUu2NAFF2PrhPVSfB3MEe2I= sha256:7gwS9zqkHt02+x3ChJ034UX/6n+9pxw54B74i8lrGog=
	sha1:cgE7gYgV07+Nm4Wgn+KuCkYLaxk= sha256:hzz0ww/rZbIzhSXFcMPaQKJo0zV356AyAMvvV9Pgg5c=
Content-Language: pl-PL, en-GB
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 0F69D114203; Thu, 12 Nov 2026 14:45:24 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=rbox.co
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Ny6DU-VxNLZr;
	Thu, 12 Nov 2026 14:45:20 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-361737-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=rbox.co
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 8E96411415E; Thu, 12 Nov 2026 14:45:09 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 15E081E2675; Thu, 12 Nov 2026 10:53:21 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794480797;
	b=XoQjnaiibX9Wss6CDippGjkgRBi3ddsdpgJg649fptRkEMSle+tqAxIaV/ECnJSSlmXa
	 MXUrXFfhhGS5P1h0sU8kPZYPSEg9XxDaPnQk8ThheUf7n+ZI36Al+GpNY1/6xIP5S9sOw
	 Bq+hyv6u+tu2mGWTZIDT6rbfKTQs46SubBmCnQ6ABMm7BsoK7klMQh6eprkQnZzdORa4W
	 YHoij5JbCCh7LExlxu9Q6QLtfW5PAplNhVa40Zb5saQ8RWr+4/hUlR9T/F77OaGlXFyGy
	 R4GXVnrlFJt70UnO8fnevVLNaODmW1/XRItIQ9TBetvANudFCs59sb9ntz6lPN/hW2g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794480797;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:Received:
	 Received:Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 User-Agent:From:Subject:To:Cc:References:Content-Language:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	bh=YkfsgtQgDkRJaBVA+m0bj+SaLpO/MI4c2Nw9+WXxjHw=;
	b=BoC5qGR/PSea1DtG6a6+Hi+1EO/mqqhaeUymPlpB8nUasLbp5VigthymyGGtL2zQoWao
	 jCH+6pjoegtTzHTlmWfnh4EWI1O+VMRnAK1YdyhT57Zq/R98IFSMJr/wtLZn/KC9bzeCh
	 JvbDdbLrX9t8HKJkTCtuqcWDmcMRSgpbcYf8w4TpjuTBrUGAhSp48u8cAnSRQsxF28OTi
	 bmfGtAYUraMiRhDsohwOtGPkqd5W7BJ5lVklKl5yX+yfTtuNwR1ZByEwCPFUuG/8tsUem
	 cTpDrZkdxSci/27VmLNWStMQw075yRZEFgLp8BhXoeyTjX4nPFubhHZSct5OaeM0I/A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=rbox.co header.i=@rbox.co header.a=rsa-sha256 header.s=selector1 header.b=vA5prnCr;
	dmarc=pass header.from=rbox.co;
	spf=pass smtp.mailfrom=rbox.co;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id BC1C9606A339;
	Thu, 12 Nov 2026 10:53:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=rbox.co header.i=@rbox.co header.a=rsa-sha256 header.s=selector1 header.b=vA5prnCr
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.226.149.38
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794480796;
	b=Wdmu3zDBfny0ZTyPosRD/z8K+XPMMxYAtstVFoPEaEmO0El4X1N6iZyt9gH2VhSJ6RXQ
	 QTpAN2E01gGEkUQEVVqDEOSih/YO5RpXu8WD41fGDtulVmnIElKXuw0uWkXPLyMIhdhsC
	 EY1lYg3hrgawVqXJIxh4ODSabcFnS3i8bO8P93Y4UuS+dt8R0Z/hWeDd5FvsS8MtklZib
	 JBxOMc4orEryMnFrxqMo/qAWr50KH6T4FN5LBv1Aqi9XHw+6jZ17bTxMOIiB5KZg9cjIY
	 myabrNzXg/pa2KfqWq8yKfS5rFZWvBdovjOHOn7C12iaZFkTDsN7ZMLkF+jiAwyDUYA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794480796;
	h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Message-ID:
	 Date:MIME-Version:User-Agent:From:Subject:To:Cc:References:
	 Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding;
	bh=YkfsgtQgDkRJaBVA+m0bj+SaLpO/MI4c2Nw9+WXxjHw=;
	b=jDTNPSAO0i4sXCqeXJkKEHSL7IXC8Mo9R8TEkmuVB6W9hWo6gqTWJ9pdHTc3QNg6McZS
	 hPVSGJneNeuloHVtgCZkpPfNgZOiHnOTUxNdKOeOqJEnAVNmv8cRfjoKtkv0dUAVgPN2y
	 F3bT7SKwTUpaVjwe30CorPe4LU4uCM5RwJZ03HgFj8k4BvrfmtKbS4aA0Y0yp5BOOWAJj
	 frRRZGRGEfWlUTWF9Woz+QnA+wUB4sphmWBMoQ8QoXKl5ZTxNL02xBiyTcz8o2h+b5KDG
	 rMCgT8VV0cCPBu/ReGwiYF/pqTvJ/OEHSIb2wTQkGcd3tso4NH+v9e7SnI0K4NZ4LHg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=rbox.co;
	spf=pass smtp.mailfrom=rbox.co;
	dkim=pass header.d=rbox.co header.i=@rbox.co header.a=rsa-sha256 header.s=selector1 header.b=vA5prnCr;
	arc=none smtp.remote-ip=185.226.149.38
X-Received: from mailtransmit05.runbox.com (mailtransmit05.runbox.com [185.226.149.38])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 952A7606A31C;
	Thu, 12 Nov 2026 10:53:16 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 952A7606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rbox.co
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rbox.co
X-Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com)
	by mailtransmit05.runbox.com with esmtps  (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
	(Exim 4.93)
	(envelope-from <mhal@rbox.co>)
	id 1xRSQY-004vrT-LI; Thu, 12 Nov 2026 11:53:10 +0100
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=rbox.co;
	s=selector1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:
	Cc:To:Subject:From:MIME-Version:Date:Message-ID;
	bh=YkfsgtQgDkRJaBVA+m0bj+SaLpO/MI4c2Nw9+WXxjHw=; b=vA5prnCrpzhzImvR6dL1hZ5aRx
	7AZfRRw/AHFTjjH14a9+SL6btoKJD7r3qjUU6vZluBY4yiXzj4EkPT7O3tsVzytYT9F8Q6omZRhfC
	rjSP+lIYyhcccVt4FQ1thHaQ3EB6KMYIe/k57NBQvE7wNuU7BcbkkS9ovsfC6acXFlZtcWsM9txun
	FJ2/cNs1c28l736y6d8qTxoZ2gOebmT3UyROCGjzS51oBTV7NUGLlU0rIXGpJBU9fe5CFAQJcq0nj
	ZkQsf115+s82VBjiu2kpUJLwMUDvyKVnUlu0npvonOx6HadHmshrDy+wIJxfA6Fzg6b31WLoCZrH5
	IrE54w5A==;
X-Received: from [10.9.9.74] (helo=submission03.runbox)
	by mailtransmit02.runbox with esmtp (Exim 4.86_2)
	(envelope-from <mhal@rbox.co>)
	id 1xRSQT-0004QY-4T; Thu, 12 Nov 2026 11:53:05 +0100
X-Received: by submission03.runbox with esmtpsa  [Authenticated ID (604044)]  (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.95)
	id 1xRSQD-005W3c-UH;
	Thu, 12 Nov 2026 11:52:50 +0100
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-User-Agent: Mozilla Thunderbird
X-Cc: Stefan Hajnoczi <stefanha@redhat.com>,
 Stefano Garzarella <sgarzare@redhat.com>,
 Bobby Eshleman <bobbyeshleman@meta.com>, "Michael S. Tsirkin"
 <mst@redhat.com>, Jason Wang <jasowangio@gmail.com>,
 Eugenio PΓ©rez <eperezma@redhat.com>,
 "David S. Miller" <davem@davemloft.net>, kvm@vger.kernel.org,
 virtualization@lists.linux.dev, netdev@vger.kernel.org,
 linux-kernel@vger.kernel.org
X-In-Reply-To: <179447976386.2168702.18392043659968828325@kernel.org>