Date: Tue, 2 Jan 2024 00:37:24 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 4b4f8106bdfb - stable/14 - jail: Ignore errors from copyout() while copying the error string Message-ID: <202401020037.4020bOAA085483@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=4b4f8106bdfbf2dd03f89bc8ea02c6991de0555a commit 4b4f8106bdfbf2dd03f89bc8ea02c6991de0555a Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2023-12-26 01:41:54 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2024-01-02 00:29:52 +0000 jail: Ignore errors from copyout() while copying the error string Reviewed by: zlei, jamie MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D43142 (cherry picked from commit abbc260f74b203646dd108ad4038627fcfb0ded7) --- sys/kern/kern_jail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index 57e6024a9939..e95008be42e8 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -2163,7 +2163,7 @@ kern_jail_set(struct thread *td, struct uio *optuio, int flags) optuio->uio_iov[errmsg_pos].iov_base, errmsg_len); else - copyout(errmsg, + (void)copyout(errmsg, optuio->uio_iov[errmsg_pos].iov_base, errmsg_len); } @@ -2548,7 +2548,7 @@ kern_jail_get(struct thread *td, struct uio *optuio, int flags) optuio->uio_iov[errmsg_pos].iov_base, errmsg_len); else - copyout(errmsg, + (void)copyout(errmsg, optuio->uio_iov[errmsg_pos].iov_base, errmsg_len); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401020037.4020bOAA085483>