mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net v2] mctp: accept MSG_CMSG_COMPAT in recvmsg
@ 2026-11-05 16:07 Davidlohr Bueso
  2026-11-11  0:00 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Davidlohr Bueso @ 2026-11-05 16:07 UTC (permalink / raw)
  To: jk, matt, kuba, pabeni; +Cc: anisa.su, dave, netdev, linux-kernel, stable

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.

Fixes: 833ef3b91de6 ("mctp: Populate socket implementation")
Cc: stable@vger.kernel.org
Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
---
Found while testing 32bit support for libcxlmi
Changes since v1:
  - target net and Cc stable
  - fix the corrupted hunk header

 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,7 +292,7 @@ static int mctp_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
 	u8 type;
 	int rc;
 
-	if (flags & ~(MSG_DONTWAIT | MSG_TRUNC | MSG_PEEK))
+	if (flags & ~(MSG_DONTWAIT | MSG_TRUNC | MSG_PEEK | MSG_CMSG_COMPAT))
 		return -EOPNOTSUPP;
 
 	skb = skb_recv_datagram(sk, flags, &rc);
-- 
2.39.5


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH net v2] mctp: accept MSG_CMSG_COMPAT in recvmsg
  2026-11-05 16:07 [PATCH net v2] mctp: accept MSG_CMSG_COMPAT in recvmsg Davidlohr Bueso
@ 2026-11-11  0:00 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-11-11  0:00 UTC (permalink / raw)
  To: Davidlohr Bueso
  Cc: jk, matt, kuba, pabeni, anisa.su, netdev, linux-kernel, stable

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu,  5 Nov 2026 08:07:04 -0800 you 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.
> 
> Fixes: 833ef3b91de6 ("mctp: Populate socket implementation")
> Cc: stable@vger.kernel.org
> Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
> 
> [...]

Here is the summary with links:
  - [net,v2] mctp: accept MSG_CMSG_COMPAT in recvmsg
    https://git.kernel.org/netdev/net/c/350e1d0d3b38

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-11  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05 16:07 [PATCH net v2] mctp: accept MSG_CMSG_COMPAT in recvmsg Davidlohr Bueso
2026-11-11  0:00 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®