]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
um: Fix FD copy size in os_rcv_fd_msg()
authorTiwei Bie <tiwei.btw@antgroup.com>
Mon, 1 Sep 2025 00:27:15 +0000 (08:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Sep 2025 09:13:42 +0000 (11:13 +0200)
commit3112c70b2e01f7a934c7664c5f34e4e5745f2458
tree38bbdd28dfa27673bd5c85c2c109c086b5ee8b20
parent00e98b5a69034b251bb36dc6e7123d7648e218e4
um: Fix FD copy size in os_rcv_fd_msg()

[ Upstream commit df447a3b4a4b961c9979b4b3ffb74317394b9b40 ]

When copying FDs, the copy size should not include the control
message header (cmsghdr). Fix it.

Fixes: 5cde6096a4dd ("um: generalize os_rcv_fd")
Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/um/os-Linux/file.c