Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp747823rwb; Wed, 26 Jul 2023 02:05:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlFgW8RnSxVKrS6teCqS5aq3+mxrU+DYKuHXhLZt1/8XBf9S45mn4JpkqnjI4v4aMxOCRvk4 X-Received: by 2002:a17:906:8472:b0:99b:5161:8e0d with SMTP id hx18-20020a170906847200b0099b51618e0dmr970597ejc.21.1690362328650; Wed, 26 Jul 2023 02:05:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690362328; cv=none; d=google.com; s=arc-20160816; b=y4wl2Y6WJsTz3CMB1Tf2HVvBMdwkCmRgmJfETZt+zMkmkToc/wLosUjsedp5dZzQDQ jd2SKf/RDXN1207FEoFyCI+VQU3ASOV2cWS5f0dwqG92OH4FlPOb76pD4DQXBx6WOHZ3 6EQCws8pOJLvtxwAkUAmOIgU3dt00fihDnbpXOhbU0VTW8GTekHOBIhZXrpnDouNXpp1 yo4KVsf/5at4eZt5NRCCOCvQrjeuj921FAtszOki9jWpGRduW5z7GjaANW1h4M8R1kG1 72isJFAi6PqxT6Oz4vgN3i7AppK7rsbz5HyRxn52q/zmgEiE7F03CXbXoFjohZisSjpR 0gkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=qUrUjcOqAKjIZ9uY4AqDkUnWcHrJmQiG40boXzTKFBg=; fh=gAbpvzGc4ysxcHpapmW7BoK+uf9z0sXdJJdD0LSBKEc=; b=t+mJegA7QphHERbjIidgqwH0iOimTKkNIbeSMSXPgzKJMA4BNvGFIXF9v1L3iv0ouv Y0rWi00lJqrRo8bfiHzPS7wwncPwXZvaU571kkVOIiImSPe+XIn42ziQ5n3gfB6DaeCO CJ9N1DmMTp1W8/W2FUply+xvpXIW5dogrM2ZQkuGbFO5N5e/Np1MvJNgsYWi/mnvC42S Ncl6EgHoP80x5iIS5gS83DdCxwi1EY1PZJwdoQCRAg+WYoatZ72Bl1V5fqWNWngKo93z PVf+1POwQFJiTR/37+XCRO/7EAq5P0qIf+jHqbZYyl6kmkk2Dvag3WET9B8AuuCmw9YB YiwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ju28-20020a17090798bc00b0098cf3eaee47si8888285ejc.689.2023.07.26.02.05.03; Wed, 26 Jul 2023 02:05:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233274AbjGZI3s (ORCPT + 99 others); Wed, 26 Jul 2023 04:29:48 -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 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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