Messages in this thread | | | Date | Fri, 16 Apr 2021 15:58:46 -0700 | From | Kees Cook <> | Subject | Re: [PATCH 05/15] x86: Implement function_nocfi |
| |
On Fri, Apr 16, 2021 at 03:52:44PM -0700, Andy Lutomirski wrote: > > > char entry_whatever[]; > > > wrmsrl(..., (unsigned long)entry_whatever); > > > > This is just casting. It'll still resolve to the jump table entry. > > How? As far as clang is concerned, entry_whatever isn't a function at > all. What jump table entry?
Whoops, sorry, I misread the [] as (). I thought you were just showing an arbitrary function declaration, but I see what you mean now.
I am digesting the rest of your email now... :)
-- Kees Cook
| |