linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC][possible bug] when should SS_AUTODISARM have effect?
@ 2020-03-19  2:16 Al Viro
  2020-03-21 17:59 ` Andy Lutomirski
  0 siblings, 1 reply; 3+ messages in thread
From: Al Viro @ 2020-03-19  2:16 UTC (permalink / raw)
  To: Stas Sergeev; +Cc: Ingo Molnar, linux-api, linux-kernel

	Consider the following scenario:  SIGPIPE has SA_ONSTACK
handler, SIGSEGV - non-SA_ONSTACK one.  SIGPIPE is delivered
and we fail halfway through setting a sigframe for it.
OK, we get SIGSEGV forced in, which gets handled not on altstack.
But what should happen if we fail *after* having saved the
altstack settings into the sigframe that got abandoned?

	AFAICS, we get them reset and the original setting
entirely lost.  Shouldn't that thing be applied only after
we have succeeded in building the frame?  In signal_delivered(),
perhaps...

	I realize that this is out of scope for POSIX, so it's
not a matter of standard compliance, but it looks like a bit
of a QoI issue...

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

end of thread, other threads:[~2020-03-21 22:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-19  2:16 [RFC][possible bug] when should SS_AUTODISARM have effect? Al Viro
2020-03-21 17:59 ` Andy Lutomirski
2020-03-21 22:24   ` stsp

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).