🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #11787

Re: [PATCH] mctp: accept MSG_CMSG_COMPAT in recvmsg

#11787
From: Davidlohr Bueso
Date: Thu, 05 Nov 2026 15:32
61 lines
11876 bytes
On Thu, 05 Nov 2026, Simon Horman wrote:

>On Sun, Nov 01, 2026 at 12:03:31PM -0800, Davidlohr Bueso wrote:
>> 32-bit userspace running on a 64-bit kernel is unable to receive MCTP
>> messages on an AF_MCTP socket, even though sending succeeds. There is
>> nothing for MCTP to do with it beyond not rejecting it, as af_packet,
>> af_key and can/isotp already do, for example.
>
>Hi Davidlohr,
>
>Thanks for your patch.
>
>As prompted elsewhere by a bot, it would be good if the patch description
>included some information about how this was found. And also to what
>extent the fix has been tested. I know you answered that already but
>I'm going to ask for a v2 for other reasons. And it would be good
>to include that detail there.

Thanks for taking a look.

So I don't think the changelog should be mentioning random userspace
programs for testing/verifying this - as the bot email suggested, just
replying there should be enough.

>
>>
>> Fixes: 833ef3b91de6 ("mctp: Populate socket implementation")
>> Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
>
>This seems to be a fix that effects users. Which I believe you have
>reproduced. As such I'd lean towards this being for net, CCed to stable.
>
>Subject: [PATCH net v2] ...
>
>Otherwise, it should be for net-next.
>
>Subject: [PATCH net-next v2] ...

Will do.

>
>> ---
>>  net/mctp/af_mctp.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/net/mctp/af_mctp.c b/net/mctp/af_mctp.c
>> index 8af5e2b3c8d1..aa22c0860712 100644
>> --- a/net/mctp/af_mctp.c
>> +++ b/net/mctp/af_mctp.c
>> @@ -292,8 +292,7 @@ static int mctp_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
>
>Strangely this patch has been mangled - the original code is 7 rather than
>8 lines long. (s/,8/,7). Because of this it could not be applied by our
>CI which then did not run the usual tests.

Yeah I messed that up (noticed sashiko couldn't apply it either), not
sure what happened.

Thanks,
Davidlohr
Technical Details
Message-ID: <20261105153239.qmqroxth43ncnln5@offworld>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357480-linux-kernel-netdev=dewy.ru
References: <20261101200331.1956836-1-dave@stgolabs.net> <20261105135808.GS865646@horms.kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357480-linux-kernel-netdev=dewy.ru
From: dave@stgolabs.net (Davidlohr Bueso)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] mctp: accept MSG_CMSG_COMPAT in recvmsg
Date: Thu, 5 Nov 2026 07:32:39 -0800
Organization: Usenet Network
Message-ID: <20261105153239.qmqroxth43ncnln5@offworld>
References: <20261101200331.1956836-1-dave@stgolabs.net>
 <20261105135808.GS865646@horms.kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Injection-Info: usenet.network;
	logging-data="3669564"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:aHlcRcc9/p6a+FJIy3ukRKZypyE= sha256:oMkHeWo8Xeel9YXrK3a1IgwpReuqwVdgsjJHTOo2ctw=
	sha1:kY3IkQ4PkBXXT4SB4ZVlKt2Q5OA= sha256:WoPvj2vYO5uMDvPkwPmQkW6pf6Rx4FXhu7U61ZyNCUA=
Content-Disposition: inline
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 10C6C113011; Thu,  5 Nov 2026 18:51:52 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 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, 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=stgolabs.net
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 RJrPZ7zPX6IT;
	Thu,  5 Nov 2026 18:51:48 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-357480-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=stgolabs.net
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 93FBB113004; Thu,  5 Nov 2026 18:51:38 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 497E32ED4D; Thu,  5 Nov 2026 15:33:31 +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=1793892778;
	b=qj9VkKL4l6Blo4W2mqiMDBdJvw+nJ3oJO50UifyJDE+TNnSsjjFevhnHNLgpNPDUHowz
	 GOVK81thSYY30i4IC40QNi7Sb2JLske6OEkzBiNrVhUz86x/novBGatsWIbznIPfM6Ucw
	 OkB2pBNXdgu5aeqzkOuSdwgUc2X353HtVwHKl59GsbZ89wLZ/MDRtK7+E69VkPieph9W0
	 /C8dyZ+cD69XS0GBx2c3Q524ZF9qJyO+f0acctt60YxKPxYb/+s7Atuaw+NCKYwrvGx/h
	 wXftyeu3FcfH9+WIzgHUwwVJoqunfpq5EHrldFvuocW3a3jfE6rJyZ3au7THT1HmZbw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793892778;
	h=X-Original-To:Received:DMARC-Filter:X-Sender-Id:Received:Received:
	 X-Sender-Id:X-MC-Relay:X-MailChannels-SenderId:X-MailChannels-Auth-Id:
	 X-Chemical-Abaft:X-MC-Loop-Signature:X-MC-Ingress-Time:Received:
	 Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:References:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
	 Content-Disposition:In-Reply-To:User-Agent;
	bh=l1y03LKwED8ZduwAbGwCiRWWK0EB6JTtYi+MQr5n6rc=;
	b=0REMYnntbX31CNvzVIYrd9HFmnMlbAEQLU4O7Rlh/iUvqzWv2UZPG9eBr9Ad9/HHdZO/
	 vHgNHH3nSL2wB36+fOfaZ7ZpFzYTfhcLozaEwfhT28RHsYXTpw1Ay2LyF/Dhjsd8N2kl3
	 vUt/Uts8w6eZ62yM8hXIrvcI9boUw5cKJtQgzVdogMc4ZfOV5b8/mzWQqG5kw+gsbkEJD
	 JX4+N+CaSuupty2Q5rgPZ/n+Vd6epZ/ZrG1jTkgDzIIVFN5zn/XBgTNt6wLJPtKvwLF8m
	 /qffdxEulaprQFCILZbvgb6P1FR10NTv2RwxkuXs4mDxvg72PKEHeucTCwdLN2LRyEQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=stgolabs.net header.i=@stgolabs.net header.a=rsa-sha256 header.s=dreamhost header.b=qU1oqjtV;
	dmarc=none header.from=stgolabs.net;
	spf=fail smtp.mailfrom=stgolabs.net;
	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 146F1606A326;
	Thu,  5 Nov 2026 15:32:58 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=stgolabs.net header.i=@stgolabs.net header.a=rsa-sha256 header.s=dreamhost header.b=qU1oqjtV
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=23.83.209.151
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793892772;
	b=3gJ4W2ukPqKHwn7xWhWH5a13n6mnZCDhlpA4VvFuk+KxC71icADiYupVDDZ1N648N/gn
	 dA9S4bdzzjgDygRg9JIp/WI0Jtp10Lb7yTFkz7RuQ0woY6p6x494tlAWkCS59Jlck+V5c
	 q9h6H6PMHIuqj+Y5VR+U9GSgS8E9qDYqCzgnMvRbCQRmVfwdO+CpdDVH8704HBCn41Ij0
	 JJIvrHyYNT7kXciSWDUmfxiqufJQalQemi+YSP/qUu8y6FuNNgtFac20wvLStJTlgi06T
	 DTk6Ct47okCl1marCZRFUe26Gx+2pT3QnlAYT4dN9LFnR9Ji3ME+qS/bkneKQdi7riw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793892772;
	h=DMARC-Filter:X-Sender-Id:Received:Received:X-Sender-Id:X-MC-Relay:
	 X-MailChannels-SenderId:X-MailChannels-Auth-Id:X-Chemical-Abaft:
	 X-MC-Loop-Signature:X-MC-Ingress-Time:Received:Received:
	 DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:References:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent;
	bh=l1y03LKwED8ZduwAbGwCiRWWK0EB6JTtYi+MQr5n6rc=;
	b=p0X41uAFCdbZ1R2MTdG1nrz2wJxKruBnHxylKGVvrDTDRMGPmDm88stt5tiyZV7nkW9a
	 L2/hkteTzgOQssAxaPQbr5fqbgDho/FxwnDOkvM2P7mZXF9UQhLhjKsaH87z10WAU8wsS
	 e9mBDOPL1LQbs1upgTYJHbqroedSatH2AbF9BsZiRa1rs1ywmJeAbLMPpKiQOUP39gaZo
	 prRwn7nIxvf5+jo4ecuLVNVxC4wEje8rYnX+//NK46p4eRtZ6waegPrrZF8NhOS55tAdE
	 Tz0NoSpDGVJCvYgt8mOMbTG808cSRUIgZRmP3NE9MJNI8mvtge0GGefDshI7EtuHNaw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=stgolabs.net;
	spf=fail smtp.mailfrom=stgolabs.net;
	dkim=pass header.d=stgolabs.net header.i=@stgolabs.net header.a=rsa-sha256 header.s=dreamhost header.b=qU1oqjtV;
	arc=none smtp.remote-ip=23.83.209.151
X-Received: from quail.birch.relay.mailchannels.net (quail.birch.relay.mailchannels.net [23.83.209.151])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7ADF9606EE8A;
	Thu,  5 Nov 2026 15:32:51 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7ADF9606EE8A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=stgolabs.net
X-Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=stgolabs.net
X-Sender-Id: dreamhost|x-authsender|dave@stgolabs.net
X-Received: from relay.mailchannels.net (localhost [127.0.0.1])
	by relay.mailchannels.net (Postfix) with ESMTP id BAD1A405ED;
	Thu, 05 Nov 2026 15:32:45 +0000 (UTC)
X-Received: from pdx1-sub0-mail-a210.dreamhost.com (trex-green-0.trex.outbound.svc.cluster.local [100.99.188.114])
	(Authenticated sender: dreamhost)
	by relay.mailchannels.net (Postfix) with ESMTPA id 03E8640A73;
	Thu, 05 Nov 2026 15:32:45 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|dave@stgolabs.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|dave@stgolabs.net
X-MailChannels-Auth-Id: dreamhost
X-Chemical-Abaft: 166461fe4d6674fb_1793892765466_11164343
X-MC-Loop-Signature: 1793892765466:1908407538
X-MC-Ingress-Time: 1793892765466
X-Received: from pdx1-sub0-mail-a210.dreamhost.com (pop.dreamhost.com
 [64.90.62.162])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384)
	by 100.99.188.114 (trex/8.0.2);
	Thu, 05 Nov 2026 15:32:45 +0000
X-Received: from offworld (unknown [190.113.127.252])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256)
	(No client certificate requested)
	(Authenticated sender: dave@stgolabs.net)
	by pdx1-sub0-mail-a210.dreamhost.com (Postfix) with ESMTPSA id 4jL5sl3CQzzWW;
	Thu,  5 Nov 2026 07:32:43 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stgolabs.net;
	s=dreamhost; t=1793892764;
	bh=l1y03LKwED8ZduwAbGwCiRWWK0EB6JTtYi+MQr5n6rc=;
	h=Date:From:To:Cc:Subject:Content-Type;
	b=qU1oqjtV3XWLiUTZXJFfCY9ulHDxB7xdY0SIZP3nP1RKbbUFdRy69KJom6R6Qjh5u
	 lnFl7Dbc9oMG811FQf0m5LW597SYjIykXKaIZ99q7CVoFEjXMSQ+nsP2+7QTca69/q
	 7PXIvPdvwS/vXU+T6gtHVdVjPRxaYVWmHtHNROKpcuqLotiXYgAOjFAw49OFFFDzlk
	 egPUd6+Kwa2m2P9xNuw6E3XsCpPZVWAr6Lbx8/GiDKoXIS12F+8jnXfXKVw6gADSZH
	 CGSgC6BjLTa9+HOcBJ9eg2ptX3RGQ0aI8GC1nv6Q8DVRikHBuzhTNLkn+BkpdZ0Jpq
	 bzKa+RMO+izjg==
X-Cc: jk@codeconstruct.com.au, matt@codeconstruct.com.au, kuba@kernel.org,
	pabeni@redhat.com, anisa.su@samsung.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
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-In-Reply-To: <20261105135808.GS865646@horms.kernel.org>
X-User-Agent: NeoMutt/20220429