From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3386EC0015E for ; Wed, 26 Jul 2023 08:29:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233280AbjGZI3t (ORCPT ); Wed, 26 Jul 2023 04:29:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233142AbjGZI3P (ORCPT ); Wed, 26 Jul 2023 04:29:15 -0400 Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DFCE65BA for ; Wed, 26 Jul 2023 01:19:11 -0700 (PDT) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 9BE1B45369; Wed, 26 Jul 2023 10:19:09 +0200 (CEST) Message-ID: Date: Wed, 26 Jul 2023 10:19:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: segfaults of processes while being killed after commit "mm: make the page fault mmap locking killable" Content-Language: en-US To: Linus Torvalds , "Eric W. Biederman" , Oleg Nesterov Cc: akpm@linux-foundation.org, Thomas Lamprecht , Wolfgang Bumiller , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <8d063a26-43f5-0bb7-3203-c6a04dc159f8@proxmox.com> From: Fiona Ebner In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 25.07.23 um 18:38 schrieb Linus Torvalds: > On Tue, 25 Jul 2023 at 04:16, Fiona Ebner 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