From: Thomas Backlund <tmb@iki.fi> To: ebiederm@xmission.com, Thomas Backlund <tmb@iki.fi> Cc: Greg KH <gregkh@linuxfoundation.org>, keescook@chromium.org, khuey@kylehuey.com, me@kylehuey.com, oliver.sang@intel.com, torvalds@linux-foundation.org, stable@vger.kernel.org Subject: Re: FAILED: patch "[PATCH] signal: Don't always set SA_IMMUTABLE for forced signals" failed to apply to 5.15-stable tree Date: Tue, 23 Nov 2021 23:56:31 +0200 [thread overview] Message-ID: <2406f6cc-3c24-4b0c-20db-194da63640c7@iki.fi> (raw) In-Reply-To: <87k0gyim6z.fsf@email.froward.int.ebiederm.org> Den 2021-11-23 kl. 23:41, skrev ebiederm@xmission.com: > Thomas Backlund <tmb@iki.fi> writes: > >> Den 2021-11-23 kl. 21:24, skrev ebiederm@xmission.com: >>> Maybe I am wrong but I think "Don't always set SA_IMMUTABLE for forced >>> signals" will apply if you drop the hunk modifying force_fatal_sig. >>> Then you don't need to backport all of the cleanups just the fix. >>> >>> I will take a quick look and verify that. >> >> that's why i wrote: "if the other patch for signal that has similar >> description should land" > Apologies for not responding to that bit, I was reading quickly > and I missed that bit. No worries :) > The second patch does not need to land in 5.15. >> (meaning "signal: Replace force_fatal_sig with force_exit_sig when in >> doubt") >> >> as thats the one needing the whole patch series... >> >> >> since going by patch descriptions for: >> >> "signal: Don't always set SA_IMMUTABLE for forced signals" >> >> "signal: Replace force_fatal_sig with force_exit_sig when in doubt" >> >> >> both has the info: >> >> "Unfortunately this broke debuggers[1][2] which reasonably expect >> to be able to trap synchronous SIGTRAP and SIGSEGV even when >> the target process is not configured to handle those signals." >> >> and the second even has: >> "This avoids userspace regressions as older kernels exited with do_exit >> which debuggers also can not intercept." >> >> >> or is the patch description on the second patch somewhat misleading ? > It is the same problem. But it only applies to code that was merged > post 5.15. > > For 5.15 on force_sig_seccomp is really affected. > > For 5.16 there were many calls to do_exit that I turned into signals. > Some of the properly should be oridinary signals and some of them > for correctness purposes can't allow debuggers or userspace to intercept > them. > > The second patch went through and modified everything that was > non-interceptible before 5.16 to be non-interceptible in 5.16. Where > that is not necessary we can relax things later. > > But for 5.15 only the one patch needs to be applied. > > Eric Thanks for the explanation. -- Thomas
next prev parent reply other threads:[~2021-11-23 21:56 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-11-22 12:31 gregkh 2021-11-23 15:08 ` Kyle Huey 2021-11-23 17:29 ` Thomas Backlund 2021-11-23 18:12 ` Greg KH 2021-11-23 19:24 ` Eric W. Biederman 2021-11-23 20:00 ` Eric W. Biederman 2021-11-23 20:00 ` Thomas Backlund 2021-11-23 21:41 ` Eric W. Biederman 2021-11-23 21:56 ` Thomas Backlund [this message] 2021-11-24 1:33 ` Kyle Huey 2021-11-24 5:15 ` Eric W. Biederman 2021-11-29 6:23 ` Kyle Huey 2021-11-29 6:43 ` Greg KH
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=2406f6cc-3c24-4b0c-20db-194da63640c7@iki.fi \ --to=tmb@iki.fi \ --cc=ebiederm@xmission.com \ --cc=gregkh@linuxfoundation.org \ --cc=keescook@chromium.org \ --cc=khuey@kylehuey.com \ --cc=me@kylehuey.com \ --cc=oliver.sang@intel.com \ --cc=stable@vger.kernel.org \ --cc=torvalds@linux-foundation.org \ --subject='Re: FAILED: patch "[PATCH] signal: Don'\''t always set SA_IMMUTABLE for forced signals" failed to apply to 5.15-stable tree' \ /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
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).