[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<169382233675.16998.16382040577067342952.git-patchwork-notify@kernel.org>
Date: Mon, 04 Sep 2023 10:12:16 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Kuniyuki Iwashima <kuniyu@...zon.com>
Cc: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, brauner@...nel.org, kuni1840@...il.com,
netdev@...r.kernel.org, hca@...ux.ibm.com,
aleksandr.mikhalitsyn@...onical.com
Subject: Re: [PATCH v2 net] af_unix: Fix msg_controllen test in scm_pidfd_recv()
for MSG_CMSG_COMPAT.
Hello:
This patch was applied to netdev/net.git (main)
by David S. Miller <davem@...emloft.net>:
On Fri, 1 Sep 2023 16:46:04 -0700 you wrote:
> Heiko Carstens reported that SCM_PIDFD does not work with MSG_CMSG_COMPAT
> because scm_pidfd_recv() always checks msg_controllen against sizeof(struct
> cmsghdr).
>
> We need to use sizeof(struct compat_cmsghdr) for the compat case.
>
> Fixes: 5e2ff6704a27 ("scm: add SO_PASSPIDFD and SCM_PIDFD")
> Reported-by: Heiko Carstens <hca@...ux.ibm.com>
> Closes: https://lore.kernel.org/netdev/20230901200517.8742-A-hca@linux.ibm.com/
> Signed-off-by: Kuniyuki Iwashima <kuniyu@...zon.com>
> Tested-by: Heiko Carstens <hca@...ux.ibm.com>
> Reviewed-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@...onical.com>
>
> [...]
Here is the summary with links:
- [v2,net] af_unix: Fix msg_controllen test in scm_pidfd_recv() for MSG_CMSG_COMPAT.
https://git.kernel.org/netdev/net/c/718e6b51298e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists