-
由 Eugene Syromiatnikov 提交于
mainline inclusion from mainline-v5.16-rc1 commit 61bc346c category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5OOWG CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=61bc346ce64a3864ac55f5d18bdc1572cda4fb18 -------------------------------------------------------------------------- Commit 7ac592aa ("sched: prctl() core-scheduling interface") made use of enum pid_type in prctl's arg4; this type and the associated enumeration definitions are not exposed to userspace. Christian has suggested to provide additional macro definitions that convey the meaning of the type argument more in alignment with its actual usage, and this patch does exactly that. Link: https://lore.kernel.org/r/20210825170613.GA3884@asgard.redhat.comSuggested-by: NChristian Brauner <christian.brauner@ubuntu.com> Acked-by: NChristian Brauner <christian.brauner@ubuntu.com> Signed-off-by: NEugene Syromiatnikov <esyr@redhat.com> Complements: 7ac592aa ("sched: prctl() core-scheduling interface") Signed-off-by: NChristian Brauner <christian.brauner@ubuntu.com> Signed-off-by: NLin Shengwang <linshengwang1@huawei.com> Reviewed-by: Nlihua <hucool.lihua@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
0b89a690