All of lore.kernel.org
 help / color / mirror / Atom feed
From: mark.rutland@arm.com (Mark Rutland)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm64: signal: don't force known signals to SIGKILL
Date: Wed, 18 Apr 2018 14:44:25 +0100	[thread overview]
Message-ID: <20180418134425.wmqmxlsphedf36d5@lakrids.cambridge.arm.com> (raw)
In-Reply-To: <20180418133331.GJ16308@e103592.cambridge.arm.com>

On Wed, Apr 18, 2018 at 02:33:32PM +0100, Dave Martin wrote:
> On Wed, Apr 18, 2018 at 12:36:52PM +0100, Mark Rutland wrote:
> > On Tue, Apr 17, 2018 at 03:46:31PM +0100, Dave Martin wrote:
> > > On Mon, Apr 16, 2018 at 04:45:01PM +0100, Mark Rutland wrote:
> > > > -	if (WARN_ON(signal != SIGKILL ||
> > > > +	if (WARN_ON(signal != SIGKILL &&
> > > >  		    siginfo_layout(signal, code) != SIL_FAULT)) {
> > > >  		signal = SIGKILL;
> > 
> > Do you have a concern with the logical change here, or can I ask for
> > your ack? ;)
> 
> No concern, I just wanted to make sure I'd understood the background
> right.  The commit message for this patch doesn't fully explain why the
> original code was wrong and why the new code is right, and my memory of
> the context for this was a bit fuzzy.
> 
> I should probably have followed the Fixes tag for context, but I was
> lazy :P
> 

> Anyway, FWIW
> 
> Reviewed-by: Dave Martin <Dave.Martin@arm.com>

Cheers!

Catalin, are you happy to queue this as a fix for v4.17-rc2?

> Out of interest, what were you seeing in userspace prior to this fix?
> Please don't tell me systemd is functionally reliant on SIGILL :(

I spotted this with a pointer authentication test case I wrote, which I
expected to receive SIGILL when using an instruction trapped and UNDEF'd
by EL2.

Thanks,
Mark.

  reply	other threads:[~2018-04-18 13:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-16 15:45 [PATCH] arm64: signal: don't force known signals to SIGKILL Mark Rutland
2018-04-17 14:46 ` Dave Martin
2018-04-18 11:36   ` Mark Rutland
2018-04-18 13:33     ` Dave Martin
2018-04-18 13:44       ` Mark Rutland [this message]
2018-04-18 14:14 ` Catalin Marinas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180418134425.wmqmxlsphedf36d5@lakrids.cambridge.arm.com \
    --to=mark.rutland@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.