RISC-V: Add some comments about the shadow and overflow stacks
authorPalmer Dabbelt <palmer@rivosinc.com>
Wed, 30 Nov 2022 02:35:15 +0000 (18:35 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Mon, 12 Dec 2022 17:30:35 +0000 (09:30 -0800)
commitde57ecc476103179e93fd85091770921f76a19af
treeab42c39857b5efc8bd705a08bbd1a8b1517abda4
parentb003b3b77d65133a0011ae3b7b255347438c12f6
RISC-V: Add some comments about the shadow and overflow stacks

It took me a while to page all this back in when trying to review the
recent spin_shadow_stack, so I figured I'd just write up some comments.

Reviewed-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Jisheng Zhang <jszhang@kernel.org>
Link: https://lore.kernel.org/r/20221130023515.20217-2-palmer@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/traps.c