Thread (19 messages) 19 messages, 3 authors, 2017-06-23
STALE3276d REVIEWED: 3 (3M)

[PATCH 2/5] arm64: signal: Refactor sigcontext parsing in rt_sigreturn

From: catalin.marinas@arm.com (Catalin Marinas)
Date: 2017-06-15 17:01:30
Also in: linux-arch

On Thu, Jun 15, 2017 at 03:03:39PM +0100, Dave P Martin wrote:
Currently, rt_sigreturn does very limited checking on the
sigcontext coming from userspace.

Future additions to the sigcontext data will increase the potential
for surprises.  Also, it is not clear whether the sigcontext
extension records are supposed to occur in a particular order.

To allow the parsing code to be extended more easily, this patch
factors out the sigcontext parsing into a separate function, and
adds extra checks to validate the well-formedness of the sigcontext
structure.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help