From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 14 Aug 2017 12:18:59 -0400 (EDT) From: Nicolas Pitre In-Reply-To: <20170814155002.GV6321@e103592.cambridge.arm.com> Message-ID: References: <20170814125411.22604-1-ard.biesheuvel@linaro.org> <20170814125411.22604-3-ard.biesheuvel@linaro.org> <20170814152950.GT6321@e103592.cambridge.arm.com> <20170814155002.GV6321@e103592.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: [kernel-hardening] Re: [PATCH 02/30] ARM: assembler: introduce adr_l, ldr_l and str_l macros To: Dave Martin Cc: Ard Biesheuvel , Mark Rutland , Kees Cook , Arnd Bergmann , Marc Zyngier , Kernel Hardening , Russell King , Tony Lindgren , "linux-arm-kernel@lists.infradead.org" , Thomas Garnier , Matt Fleming List-ID: On Mon, 14 Aug 2017, Dave Martin wrote: > On Mon, Aug 14, 2017 at 04:38:02PM +0100, Ard Biesheuvel wrote: > > That's a trick, actually, which I failed to add a comment for. Shame shame shame ! > > We use .arm sections in the thumb2 kernel, and using these macros > > there would result in the wrong offset to be used. Adding the .w > > suffix forces an error in the assembler which even results in a fairly > > meaningful error message complaining about using .w in ARM code. > > Ewww... I think it'd be best to add a comment explaining that. Absolutely! Nicolas