linux-stable/include/linux/sched
Matthew Wilcox (Oracle) 149fc78735 include/linux/sched/mm.h: use rcu_dereference in in_vfork()
Fix a sparse warning by using rcu_dereference().  Technically this is a
bug and a sufficiently aggressive compiler could reload the `real_parent'
pointer outside the protection of the rcu lock (and access freed memory),
but I think it's pretty unlikely to happen.

Link: https://lkml.kernel.org/r/20210221194207.1351703-1-willy@infradead.org
Fixes: b18dc5f291 ("mm, oom: skip vforked tasks from being selected")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-03-13 11:27:30 -08:00
..
autogroup.h
clock.h
coredump.h
cpufreq.h cpufreq: Add special-purpose fast-switching callback for drivers 2020-12-15 19:24:18 +01:00
cputime.h
deadline.h
debug.h
hotplug.h sched/hotplug: Consolidate task migration on CPU unplug 2020-11-10 18:38:58 +01:00
idle.h
init.h
isolation.h
jobctl.h signal: kill JOBCTL_TASK_WORK 2020-12-12 09:17:38 -07:00
loadavg.h
mm.h include/linux/sched/mm.h: use rcu_dereference in in_vfork() 2021-03-13 11:27:30 -08:00
nohz.h
numa_balancing.h
prio.h sched: Remove USER_PRIO, TASK_USER_PRIO and MAX_USER_PRIO 2021-02-17 14:08:17 +01:00
rt.h
sd_flags.h
signal.h tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
smt.h
stat.h
sysctl.h
task.h kernel: provide create_io_thread() helper 2021-03-04 15:45:03 -07:00
task_stack.h
topology.h sched/topology,schedutil: Wrap sched domains rebuild 2020-11-19 11:25:47 +01:00
types.h
user.h
wake_q.h
xacct.h