linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: Report signal frame size to userspace via auxv
@ 2018-05-08 10:43 Dave Martin
  2018-05-08 10:43 ` [PATCH 1/2] arm64: signal: " Dave Martin
  2018-05-08 10:43 ` [PATCH 2/2] arm64/sve: signal: Include SVE when computing AT_MINSIGSTKSZ Dave Martin
  0 siblings, 2 replies; 7+ messages in thread
From: Dave Martin @ 2018-05-08 10:43 UTC (permalink / raw)
  To: linux-arm-kernel

Because SVE makes the arm64 signal frame size variable, userspace will
ultimately need a way to detect the size.

This series adds support for exposing this information via a new auxv
entry AT_MINSIGSTKSZ.

These patches are taken from [1], with minor updates.  (They were RFC
in that series, but there has been no significant discussion or
objections raised in the meantime, and no change in the understanding
of the problem being addressed here.  I'd like to get discussions for
binding this to glibc started.)

Changes since [1]:

 * Cache the value computed to AT_MINSIGSTKSZ so that the effort of
   computing it does not need to be repeated on every exec.


[1] [PATCH v5 00/30] ARM Scalable Vector Extension (SVE)
lists.infradead.org/pipermail/linux-arm-kernel/2017-October/539993.html

Dave Martin (2):
  arm64: signal: Report signal frame size to userspace via auxv
  arm64/sve: signal: Include SVE when computing AT_MINSIGSTKSZ

 arch/arm64/include/asm/elf.h         |  5 +++
 arch/arm64/include/asm/processor.h   |  3 ++
 arch/arm64/include/uapi/asm/auxvec.h |  3 +-
 arch/arm64/kernel/signal.c           | 68 ++++++++++++++++++++++++++++++++----
 4 files changed, 71 insertions(+), 8 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-05-08 12:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-08 10:43 [PATCH 0/2] arm64: Report signal frame size to userspace via auxv Dave Martin
2018-05-08 10:43 ` [PATCH 1/2] arm64: signal: " Dave Martin
2018-05-08 11:30   ` Mark Rutland
2018-05-08 11:43     ` Dave Martin
2018-05-08 12:26       ` Mark Rutland
2018-05-08 12:29         ` Dave Martin
2018-05-08 10:43 ` [PATCH 2/2] arm64/sve: signal: Include SVE when computing AT_MINSIGSTKSZ Dave Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).