Messages in this thread | | | Date | Thu, 13 Apr 2023 16:07:13 +0200 | From | Christoph Hellwig <> | Subject | Re: [PATCH v2 2/3] net/compat: Update msg_control_is_user when setting a kernel pointer |
| |
On Thu, Apr 13, 2023 at 12:47:04PM +0100, Kevin Brodsky wrote: > cmsghdr_from_user_compat_to_kern() is an unusual case w.r.t. how > the kmsg->msg_control* fields are used. The input struct msghdr > holds a pointer to a user buffer, i.e. ksmg->msg_control_user is > active. However, upon success, a kernel pointer is stored in > kmsg->msg_control. kmsg->msg_control_is_user should therefore be > updated accordingly.
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
| |