Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5289705pxj; Wed, 9 Jun 2021 13:54:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgQhxrFksHB+YT9YcCxt/JCNjkwzh3+xO8u+FS9TUlrTlUC5fAPpx4B7dh7FAs4OqfS6Gs X-Received: by 2002:a17:906:a0a:: with SMTP id w10mr1535766ejf.416.1623272089248; Wed, 09 Jun 2021 13:54:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623272089; cv=none; d=google.com; s=arc-20160816; b=DsUeG3/fmNRo9S55zXTU5aTB6snVKDMw4sQXIXXnTxZM7Brtqw7zAxtxm+W74dT3AW gJ4u8+dqCV/0yR3HJl5CoeK1nKYX5SC/GuBSWMG6v2zxxHGKkcHcMfgM7ZjH/VyJFKt2 mOZuhCpREwr/IoSmffDbxsB7LK61mkXquwa6W/izNDHH4GGBSEd8mCl/gS2hZzE/c8a8 vNOKqjCmaa70Ohec1rjiOc4RtMFkVxjWEc/4emihFNEZwdNESqzW5Fn2HrClfn+mLiYk v4IpCkg0pd+q6KePP8bkB463K0VleOxW5Da1A/fGrDwYxyXMS4WtEH89Ht01saQ9PmsH lhUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=XArs7dfKd1jb8KVECknZ5tHK7pCuauc7kNtOU0BuGyQ=; b=k2bTgEVUp/ETo+AthXAHfUe44qBjLHzhRqPcbSmJ91j/1OxjGltFEf+Wf8P/1P2Kh3 UoIOVPdnqo7V598H3Wc5yyIA4qTFQ3Td1fsuoIdEk0/e2g6IA59a3p+Z9RZV04nWtfX+ Q5KrvzSBmlknQP04t8OLqvzW0BbzX+jVikTBzLLksXRhsfJOQf86gDx+XYbzKcRkfin3 xlQO0cI5+rw08wpmn4fPsMfd8CSlCndwk77jXJJOJp204jUWn94s6LYVUlzG99uYWttj aEg5hPgEJhDSDLi+DHZJHihYgUrCzUitgZFYG7pYwH3ROFRHqN0NvZ5Ue1xudZnCui7o zYMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=d2c1kWEJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gf2si713952ejb.500.2021.06.09.13.54.24; Wed, 09 Jun 2021 13:54:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=d2c1kWEJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229935AbhFIUyk (ORCPT + 99 others); Wed, 9 Jun 2021 16:54:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbhFIUyj (ORCPT ); Wed, 9 Jun 2021 16:54:39 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0B11C061574 for ; Wed, 9 Jun 2021 13:52:27 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id j2so12562767lfg.9 for ; Wed, 09 Jun 2021 13:52:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XArs7dfKd1jb8KVECknZ5tHK7pCuauc7kNtOU0BuGyQ=; b=d2c1kWEJ0AgEydECoXutpmofFDQXFyVtEZ9eA5D5JURcxb31tlEXBtljToI9e7Yp4S nnIcfeTgiuCVJKge24fWKsfVzi+rcZe0APlOb5EAnE+y2tUwASVAyuMnEM1BsjngaF8O 6ZbYHAR2LSXCzqR6zx26XbzDZ2HReHBMouhrY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XArs7dfKd1jb8KVECknZ5tHK7pCuauc7kNtOU0BuGyQ=; b=qmKbGEldLgle+uViy1PDPX8pRHOmrc8hiUEluqxI+4QMs0KzOurVBWMPTdoovZ+r8T SZvXZY9CVon8JaN9R0vFYwPZTbhQBTBJTDV/H4BRNxhIEvLYm4+YiFWRRugfMrbcGq9c /TVNJdmsR9i80Q2ZQEnDRNDe6dRk8Q91zEuAVHpQ+5Xamic6qIljYYsmdY1RDi4rb+cl lUsntle3zKywb2W1Uhlz5b2jNPLWIffh5F1fX6w/rJhg1hFGO5hmI0zp83ruHKY7FWma buESUmS5qbawbA7tMuJMlXKwp/7D2RD/450N897Gyrh8vDTGyXLDPyWYVzIiMVpLJOpH j/yw== X-Gm-Message-State: AOAM533BvZwJwAlYgedu/LuMDhUIgWyvsJybqzK3fO6cZvWDgNtvtASm ugHTzs6oezhkTbi8ILwnSTpfY0Xy5R+mNMij2WM= X-Received: by 2002:a19:4f1a:: with SMTP id d26mr820535lfb.265.1623271945153; Wed, 09 Jun 2021 13:52:25 -0700 (PDT) Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com. [209.85.167.51]) by smtp.gmail.com with ESMTPSA id t3sm90744lfl.78.2021.06.09.13.52.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Jun 2021 13:52:24 -0700 (PDT) Received: by mail-lf1-f51.google.com with SMTP id f30so40202597lfj.1 for ; Wed, 09 Jun 2021 13:52:24 -0700 (PDT) X-Received: by 2002:ac2:43b9:: with SMTP id t25mr826068lfl.253.1623271944108; Wed, 09 Jun 2021 13:52:24 -0700 (PDT) MIME-Version: 1.0 References: <192c9697e379bf084636a8213108be6c3b948d0b.camel@trillion01.com> <9692dbb420eef43a9775f425cb8f6f33c9ba2db9.camel@trillion01.com> <87h7i694ij.fsf_-_@disp2133> <8735tq9332.fsf@disp2133> In-Reply-To: <8735tq9332.fsf@disp2133> From: Linus Torvalds Date: Wed, 9 Jun 2021 13:52:07 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC] coredump: Do not interrupt dump for TIF_NOTIFY_SIGNAL To: "Eric W. Biederman" Cc: Linux Kernel Mailing List , linux-fsdevel , io-uring , Alexander Viro , Olivier Langlois , Jens Axboe , "Pavel Begunkov>" , Oleg Nesterov Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 9, 2021 at 1:48 PM Eric W. Biederman wrote: > > It looks like it would need to be: > > static bool dump_interrupted(void) > { > return fatal_signal_pending() || freezing(); > } > > As the original implementation of dump_interrupted 528f827ee0bb > ("coredump: introduce dump_interrupted()") is deliberately allowing the > freezer to terminate the core dumps to allow for reliable system > suspend. Ack. That would seem to be the right conversion to do. Now, I'm not sure if system suspend really should abort a core dump, but it's clearly what we have done in the past. Maybe we'd like to remove that "|| freezing()" at some point, but that's a separate discussion, I think. At least having it in that form makes it all very explicit, instead of the current very subtle exact interaction with the TIF_NOTIFY_SIGNAL bit (that has other meanings). Hmm? Linus