UPSTREAM: sched: Don't report SCHED_FLAG_SUGOV in sched_getattr()
SCHED_FLAG_SUGOV is supposed to be a kernel-only flag that userspace cannot interact with. However, sched_getattr() currently reports it in sched_flags if called on a sugov worker even though it is not actually defined in a UAPI header. To avoid this, make sure to clean-up the sched_flags field in sched_getattr() before returning to userspace. Bug: 208552362 Signed-off-by:Quentin Perret <qperret@google.com> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20210727101103.2729607-3-qperret@google.com (cherry picked from commit 7ad721bf) Signed-off-by:
Quentin Perret <qperret@google.com> Change-Id: I6ffe847ce0cc1135519b7061882d118cc8d683e1
Loading
Please sign in to comment