]> 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)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 10 Sep 2025 12:24:19 +0000 (14:24 +0200)
commitdf447a3b4a4b961c9979b4b3ffb74317394b9b40
treef54e649eed2414eba5746e35323d2a00b4d9d8fd
parent7ebf70cf181651fe3f2e44e95e7e5073d594c9c0
um: Fix FD copy size in os_rcv_fd_msg()

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>
arch/um/os-Linux/file.c