linux_dsm_epyc7002/include/linux/sched
Jann Horn 0b9dc6c9f0 keys: safe concurrent user->{session,uid}_keyring access
The current code can perform concurrent updates and reads on
user->session_keyring and user->uid_keyring. Add a comment to
struct user_struct to document the nontrivial locking semantics, and use
READ_ONCE() for unlocked readers and smp_store_release() for writers to
prevent memory ordering issues.

Fixes: 69664cf16a ("keys: don't generate user and user session keyrings unless they're accessed")
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: James Morris <james.morris@microsoft.com>
2019-04-10 10:29:50 -07:00
..
autogroup.h
clock.h
coredump.h oom, oom_reaper: do not enqueue same task twice 2019-02-01 15:46:23 -08:00
cpufreq.h
cputime.h
deadline.h
debug.h
hotplug.h
idle.h
init.h
isolation.h
jobctl.h
loadavg.h
mm.h mm/cma: add PF flag to force non cma alloc 2019-03-05 21:07:19 -08:00
nohz.h
numa_balancing.h
prio.h
rt.h
signal.h sched/core: Convert signal_struct.sigcnt to refcount_t 2019-02-04 08:53:53 +01:00
smt.h
stat.h
sysctl.h sched/topology: Introduce a sysctl for Energy Aware Scheduling 2019-01-27 12:29:37 +01:00
task_stack.h sched/core: Convert task_struct.stack_refcount to refcount_t 2019-02-04 08:53:56 +01:00
task.h sched/core: Convert task_struct.usage to refcount_t 2019-02-04 08:53:55 +01:00
topology.h sched/topology: Fix percpu data types in struct sd_data & struct s_data 2019-02-11 08:02:15 +01:00
user.h keys: safe concurrent user->{session,uid}_keyring access 2019-04-10 10:29:50 -07:00
wake_q.h sched/wake_q: Reduce reference counting for special users 2019-02-04 09:03:28 +01:00
xacct.h