Date: Fri, 17 Jun 2022 19:38:47 GMT From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 2c029214d33a - stable/13 - linux(4): Return ENOSYS for unsupported P_PIDFD waitid idtype. Message-ID: <202206171938.25HJclXR015150@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=2c029214d33a5947578cb78ba3a52399d0958c3f commit 2c029214d33a5947578cb78ba3a52399d0958c3f Author: Dmitry Chagin <dchagin@FreeBSD.org> AuthorDate: 2022-03-31 17:42:42 +0000 Commit: Dmitry Chagin <dchagin@FreeBSD.org> CommitDate: 2022-06-17 19:33:45 +0000 linux(4): Return ENOSYS for unsupported P_PIDFD waitid idtype. Reviewed by: emaste Differential revision: https://reviews.freebsd.org/D31559 MFC after: 2 weeks (cherry picked from commit be1e4a0bdf45da4bbdce996d2146eba3e32b3766) --- sys/compat/linux/linux_misc.c | 3 +++ sys/compat/linux/linux_misc.h | 1 + 2 files changed, 4 insertions(+) diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index b761917b2dc9..9a176c15f93d 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1122,6 +1122,9 @@ linux_waitid(struct thread *td, struct linux_waitid_args *args) return (EINVAL); idtype = P_PGID; break; + case LINUX_P_PIDFD: + LINUX_RATELIMIT_MSG("unsupported waitid P_PIDFD idtype"); + return (ENOSYS); default: return (EINVAL); } diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h index 9a7cf89466a2..a2dd5eb9f82b 100644 --- a/sys/compat/linux/linux_misc.h +++ b/sys/compat/linux/linux_misc.h @@ -136,6 +136,7 @@ extern int stclohz; #define LINUX_P_ALL 0 #define LINUX_P_PID 1 #define LINUX_P_PGID 2 +#define LINUX_P_PIDFD 3 #define LINUX_RLIMIT_LOCKS 10 #define LINUX_RLIMIT_SIGPENDING 11
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206171938.25HJclXR015150>