]> 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:16:42 +0000 (11:16 +0200)
commit4c2c59cc838c999b62c0bca2b90817e561ac5f79
treeb319efc27233140fc054696b5d522b892b91c086
parentc2ff91255e0157b356cff115d8dc3eeb5162edf2
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