diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2018-02-08 19:18:38 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-02-13 22:37:46 +1100 |
commit | b00b62898631b756c3e123542bbb0487aa343dd9 (patch) | |
tree | 524da2a6bbde3c518a8c7ebd4dcdd72f2a211a2d /arch/alpha | |
parent | c9dccf1d074a67d36c510845f663980d69e3409b (diff) |
powerpc/vas: Don't set uses_vas for kernel windows
cp_abort is only required for user windows, because kernel context
must not be preempted between a copy/paste pair.
Without this patch, the init task gets used_vas set when it runs the
nx842_powernv_init initcall, which opens windows for kernel usage.
used_vas is then never cleared anywhere, so it gets propagated into
all other tasks. It's a property of the address space, so it should
really be cleared when a new mm is created (or in dup_mmap if the
mmaps are marked as VM_DONTCOPY). For now we seem to have no such
driver, so leave that for another patch.
Fixes: 6c8e6bb2a52d ("powerpc/vas: Add support for user receive window")
Cc: stable@vger.kernel.org # v4.15+
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/alpha')
0 files changed, 0 insertions, 0 deletions