Re: [PATCH 5/9] sched: prctl() core-scheduling interface

2021-04-17 Thread Joel Fernandes
On Wed, Apr 07, 2021 at 07:00:33PM +0200, Peter Zijlstra wrote: > On Thu, Apr 01, 2021 at 03:10:17PM +0200, Peter Zijlstra wrote: > > > Current hard-coded policies are: > > > > - a user can clear the cookie of any process they can set a cookie for. > >Lack of a cookie *might* be a security

Re: [PATCH 5/9] sched: prctl() core-scheduling interface

2021-04-07 Thread Peter Zijlstra
On Thu, Apr 01, 2021 at 03:10:17PM +0200, Peter Zijlstra wrote: > Current hard-coded policies are: > > - a user can clear the cookie of any process they can set a cookie for. >Lack of a cookie *might* be a security issue if cookies are being used >for that. ChromeOS people, what are

[PATCH 5/9] sched: prctl() core-scheduling interface

2021-04-01 Thread Peter Zijlstra
From: Chris Hyser This patch provides support for setting, clearing and copying core scheduling 'task cookies' between threads (PID), processes (TGID), and process groups (PGID). The value of core scheduling isn't that tasks don't share a core, 'nosmt' can do that. The value lies in exploiting