Thread (8 messages) flat view 8 messages, 3 authors, 2017-06-01

[PATCH 3/4] arm64/kasan: don't allocate extra shadow memory

From: mark.rutland@arm.com (Mark Rutland)
Date: 2017-06-01 16:53:00
Also in: linux-mm, lkml

On Thu, Jun 01, 2017 at 06:45:32PM +0200, Dmitry Vyukov wrote:
On Thu, Jun 1, 2017 at 6:34 PM, Mark Rutland [off-list ref] wrote:
quoted
On Thu, Jun 01, 2017 at 07:23:37PM +0300, Andrey Ryabinin wrote:
quoted
We used to read several bytes of the shadow memory in advance.
Therefore additional shadow memory mapped to prevent crash if
speculative load would happen near the end of the mapped shadow memory.

Now we don't have such speculative loads, so we no longer need to map
additional shadow memory.
I see that patch 1 fixed up the Linux helpers for outline
instrumentation.

Just to check, is it also true that the inline instrumentation never
performs unaligned accesses to the shadow memory?
Inline instrumentation generally accesses only a single byte.
Sorry to be a little pedantic, but does that mean we'll never access the
additional shadow, or does that mean it's very unlikely that we will?

I'm guessing/hoping it's the former!

Thanks,
Mark.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help