[PATCH] ARM: disallow ARM_THUMB for ARMv4 builds
Nicolas Pitre
nicolas.pitre at linaro.org
Sun Dec 18 20:10:50 PST 2016
On Sun, 18 Dec 2016, Russell King - ARM Linux wrote:
> On Sun, Dec 18, 2016 at 03:04:24PM +0000, Ard Biesheuvel wrote:
> > The only issue I spotted is that the kuser_get_tls routine has only
> > two instruction slots for the return sequence, but we can easily work
> > around that by moving the TLS hardware instruction around in the
> > template (and update the memcpy accordingly in kuser_init()
>
> You can't actually - everything in this page is ABI, and moving
> that breaks the ABI.
>
> One thing I'm toying with is splitting out the kuser helpers. That
> means we can build it according to the configuration, and select the
> appropriate version at run time. Work in progress.
That's the best solution indeed. In fact there is already some runtime
patching of the kuser page for how to retrieve the tls value in
kuser_init().
Nicolas
More information about the linux-arm-kernel
mailing list