x86/shstk: Move arch detail comment out of core mm
authorRick Edgecombe <rick.p.edgecombe@intel.com>
Thu, 6 Jul 2023 23:32:48 +0000 (16:32 -0700)
committerDave Hansen <dave.hansen@linux.intel.com>
Wed, 2 Aug 2023 22:01:51 +0000 (15:01 -0700)
commit87f0df7828899c552bcdde639c045983d5aeeed9
treee9205629e7195ed227c96a0626cd714056083deb
parent67840ad0fa14ad49a605074b12d5b0f3c3113ed1
x86/shstk: Move arch detail comment out of core mm

The comment around VM_SHADOW_STACK in mm.h refers to a lot of x86
specific details that don't belong in a cross arch file. Remove these
out of core mm, and just leave the non-arch details.

Since the comment includes some useful details that would be good to
retain in the source somewhere, put the arch specifics parts in
arch/x86/shstk.c near alloc_shstk(), where memory of this type is
allocated. Include a reference to the existence of the x86 details near
the VM_SHADOW_STACK definition mm.h.

Signed-off-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/all/20230706233248.445713-1-rick.p.edgecombe%40intel.com
arch/x86/kernel/shstk.c
include/linux/mm.h