diff options
author | Matthew Wilcox (Oracle) <[email protected]> | 2021-03-12 21:08:03 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2021-03-13 11:27:30 -0800 |
commit | 149fc787353f65b7e72e05e7b75d34863266c3e2 (patch) | |
tree | 9c1436d6fd11b3ba6e8151c707f11b8c5cfe788e /lib/mpi/mpiutil.c | |
parent | 0aa41cae92c1e2e61ae5b3a2dde8e674172e40ac (diff) |
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/[email protected]
Fixes: b18dc5f291c0 ("mm, oom: skip vforked tasks from being selected")
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by: Miaohe Lin <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions