Thread (92 messages) 92 messages, 7 authors, 2022-11-22

Re: [PATCH v3 27/37] x86/shstk: Introduce routines modifying shstk

From: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>
Date: 2022-11-15 20:57:14
Also in: linux-arch, linux-doc, linux-mm, lkml

On Tue, 2022-11-15 at 15:22 +0100, Peter Zijlstra wrote:
On Fri, Nov 04, 2022 at 03:35:54PM -0700, Rick Edgecombe wrote:
quoted
+static unsigned long get_user_shstk_addr(void)
+{
+     unsigned long long ssp;
+
+     fpregs_lock_and_load();
+
+     rdmsrl(MSR_IA32_PL3_SSP, ssp);
+
+     fpregs_unlock();
+
+     return ssp;
+}
This doesn't return the shstk addr, unlike what the name suggests,
right?
That's a good point. get_user_ssp() would be a better name.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help