Skip to content

RFC arm64: Signal context expansion

Dave Martin linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 5 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 5 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 [RFC PATCH 0/5] arm64: Signal context expansion
Quoted 20 lines · Florian Weimer
Quoted 4 lines · Dave Martin
Quoted 2 lines · Szabolcs Nagy

i assume the kernel can avoid saving SVE regs when they are not used by the process.

Quoted 8 lines

I can (and do), in my patches (not posted yet).

The real issue here is that a recently updated shared library might be optimised to use SVE, where the program using it is an older, SVE- unaware binary.

(think of an optimised math library using some new fancy SVE-based number crunching internally).

In my little world, binaries are expected to do run-time CPU feature discovery and fall back to the baseline ABI if the system does not support ABI extensions. This means that a personality flag can disable the extension, the optimized math libraries run with the slower baseline code instead, and the rest of the application sees the expected kernel interface.

Quoted 7 lines

From this perspective, it is quite important that it is possible to get legacy applications running on newer hardware, preferably with out wrapping them in a dedicated VM.

I understand that there are other environments were this is less of a concern, but I also believe that the age of an architecture factors less into this than one might want.

Agreed. I'll need to think some more about how this should work in general.

This series by itself doesn't change the ABI unless something allocates enough signal frame data to exceed the historical frame size -- which for now cannot happen.

What I may do is split off the extra_context part of the series (without which the signal frame never grows).

SVE will still fit if the vector length is below a certain limit.

Cheers
---Dave