Skip to content

Batched user access support

Russell King - ARM Linux linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Batched user access support
Quoted 4 lines · Linus Torvalds

So this patch series introduces a model for batching that SMAP overhead on x86, and the reason the ARM people are involved is that the same _may_ be true of the PAN overhead. I don't know - for all I know, the pstate "set pan" instruction may be so cheap on ARM64 that it doesn't really matter.

I think it may be of use on 32-bit ARM, so we don't have to keep switching the domain register between allowing and denying userspace access across a batch of userspace operations.

The area I'm specifically thinking that it'd be useful is in the ARM signal handling code, where we already have our special "__get_user_error" which tries to be as efficient as possible, though that may be a false optimisation. Since the SW PAN stuff, I've been debating about converting that to use copy_to_user()/copy_from_user() instead, but haven't yet found the time to do any analysis.

See restore_sigframe() and setup_sigframe() in arch/arm/kernel/signal.c.

I'm not sure I'll have any time to look into this before the new year though.

Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.