RISC-V: Fix a race condition during kernel stack overflow
authorPalmer Dabbelt <palmer@rivosinc.com>
Thu, 1 Dec 2022 19:38:39 +0000 (11:38 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 1 Dec 2022 19:38:39 +0000 (11:38 -0800)
commit39cefc5f6cd25d555e0455b24810e9aff365b8d6
tree3f5ae903747a2bec6fab24ea9de151ddbdf766cf
parentd556a9aeb62a6cd44aa05aeadcc48245da0a1939
parent7e1864332fbc1b993659eab7974da9fe8bf8c128
RISC-V: Fix a race condition during kernel stack overflow

This fixes a concrete bug but is also the basis for some cleanup work,
so I'm merging it based on the offending commit in order to minimize
future conflicts.

* commit '7e1864332fbc1b993659eab7974da9fe8bf8c128':
  riscv: fix race when vmap stack overflow
arch/riscv/include/asm/asm.h
arch/riscv/kernel/entry.S
arch/riscv/kernel/traps.c