mbox series

[v3,0/2] Work around missing `bti c` in modules

Message ID 20220902001551.2349544-1-scott@os.amperecomputing.com (mailing list archive)
Headers show
Series Work around missing `bti c` in modules | expand

Message

D Scott Phillips Sept. 2, 2022, 12:15 a.m. UTC
Changes since v2:
 - Split the kernel BTI exception behavior change into a separate patch

Changes since v1:
 - Add the gcc bug id into the traps.c comment
 - Cover the try_module_get with the preempt_disable
 - Add a CC_HAS_ config for the compiler bug that we'll eventually refine


D Scott Phillips (2):
  arm64: Handle kernel BTI exceptions
  arm64: Work around missing `bti c` in modules

 arch/arm64/Kconfig               |  3 +++
 arch/arm64/kernel/entry-common.c | 12 +++++++++
 arch/arm64/kernel/traps.c        | 43 ++++++++++++++++++++++++++++++--
 3 files changed, 56 insertions(+), 2 deletions(-)