Re: [PATCH v2 24/39] x86/cet/shstk: Add user-mode shadow stack support

From: Edgecombe, Rick P
Date: Tue Oct 04 2022 - 12:26:09 EST


On Mon, 2022-10-03 at 21:04 -0700, Kees Cook wrote:
> > I don't _like_ the #defines, but doing one here doesn't seem too
> > onerous
> > considering how critical MSRs are.
>
> I bet there are others, but this just weirded me out. I'll live with
> a
> macro, especially since the chance of it mutating in a non-inline is
> very small, but I figured I'd mention the idea.

Makes sense. I'll change it to a define.