summaryrefslogtreecommitdiff
path: root/mm/io-mapping.c
diff options
context:
space:
mode:
authorRick Edgecombe <rick.p.edgecombe@intel.com>2023-09-08 13:36:55 -0700
committerDave Hansen <dave.hansen@linux.intel.com>2023-09-19 09:18:34 -0700
commit509ff51ee652c41a277c2b439aea01a8f56a27b9 (patch)
treed968a62e279ab0d41a64bd195438dd85d2606d12 /mm/io-mapping.c
parent748c90c693363d05c6b2f3915edc7999a2f71837 (diff)
downloadlinux-509ff51ee652c41a277c2b439aea01a8f56a27b9.tar.gz
linux-509ff51ee652c41a277c2b439aea01a8f56a27b9.tar.bz2
linux-509ff51ee652c41a277c2b439aea01a8f56a27b9.zip
x86/shstk: Add warning for shadow stack double unmap
There are several ways a thread's shadow stacks can get unmapped. This can happen on exit or exec, as well as error handling in exec or clone. The task struct already keeps track of the thread's shadow stack. Use the size variable to keep track of if the shadow stack has already been freed. When an attempt to double unmap the thread shadow stack is caught, warn about it and abort the operation. Signed-off-by: Rick Edgecombe <rick.p.edgecombe@intel.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Tested-by: H.J. Lu <hjl.tools@gmail.com> Link: https://lore.kernel.org/all/20230908203655.543765-4-rick.p.edgecombe%40intel.com
Diffstat (limited to 'mm/io-mapping.c')
0 files changed, 0 insertions, 0 deletions