]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: bti: Document behaviour for dynamically linked binaries
authorMark Brown <broonie@kernel.org>
Mon, 23 Mar 2020 17:01:19 +0000 (17:01 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 25 Mar 2020 09:56:10 +0000 (09:56 +0000)
commit98f320ac397e2ea760558a77f17515fd31857834
treee0ced25f06a7d2d1a2507e80f2fa7760fb3c185b
parent180c0acb691dc68824b40ab759d5edc60f79b862
arm64: bti: Document behaviour for dynamically linked binaries

For dynamically linked binaries the interpreter is responsible for setting
PROT_BTI on everything except itself. The dynamic linker needs to be aware
of PROT_BTI, for example in order to avoid dropping that when marking
executable pages read only after doing relocations, and doing everything
in userspace ensures that we don't get any issues due to divergences in
behaviour between the kernel and dynamic linker within a single executable.
Add a comment indicating that this is intentional to the code to help
people trying to understand what's going on.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/process.c