From: Fiona Ebner <f.ebner@proxmox.com>
To: Linus Torvalds <torvalds@linux-foundation.org>,
"Eric W. Biederman" <ebiederm@xmission.com>,
Oleg Nesterov <oleg@redhat.com>
Cc: akpm@linux-foundation.org,
Thomas Lamprecht <t.lamprecht@proxmox.com>,
Wolfgang Bumiller <w.bumiller@proxmox.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: segfaults of processes while being killed after commit "mm: make the page fault mmap locking killable"
Date: Wed, 26 Jul 2023 10:19:02 +0200 [thread overview]
Message-ID: <cc502fe7-716b-8114-c9e6-439e3b9cf0f6@proxmox.com> (raw)
In-Reply-To: <CAHk-=whKBx_UUKagfyF72EJrpqNCupF4yeoPgapjEBe1bynGcw@mail.gmail.com>
Am 25.07.23 um 18:38 schrieb Linus Torvalds:
> On Tue, 25 Jul 2023 at 04:16, Fiona Ebner <f.ebner@proxmox.com> wrote:
>>
>> will end up without a vma and cause/log the segfault. Of course the
>> process is already being killed, but I'd argue it is very confusing to
>> users when apparent segfaults from such processes are being logged by
>> the kernel.
>
> Ahh. Yes, that wasn't the intent. A process that is being killed
> should exit with the lethal signal, not SIGSEGV.
>
Checking the status from waitpid, it does show that the process was
terminated by signal 9, even if the segfault was logged.
> But before we revert it, would you mind trying out the attached
> trivial patch instead?
>
The patch works for me too :) (after adding the missing tsk argument
like Thomas pointed out)
> I'd also still be interested if the symptoms were anything else than
> 'show_unhandled_signals' causing the show_signal_msg() dance, and
> resulting in a message something like
>
> a.out[1567]: segfault at xyz ip [..] likely on CPU X
>
> in dmesg...
>
Yes, AFAICS, it is just those messages and nothing else.
Best Regards,
Fiona
next prev parent reply other threads:[~2023-07-26 8:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-25 11:16 segfaults of processes while being killed after commit "mm: make the page fault mmap locking killable" Fiona Ebner
2023-07-25 16:38 ` Linus Torvalds
2023-07-26 6:51 ` Thomas Lamprecht
2023-07-26 8:19 ` Fiona Ebner [this message]
2023-07-26 17:59 ` Linus Torvalds
2023-07-27 7:57 ` Fiona Ebner
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=cc502fe7-716b-8114-c9e6-439e3b9cf0f6@proxmox.com \
--to=f.ebner@proxmox.com \
--cc=akpm@linux-foundation.org \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=oleg@redhat.com \
--cc=t.lamprecht@proxmox.com \
--cc=torvalds@linux-foundation.org \
--cc=w.bumiller@proxmox.com \
/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 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).