Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1994238ybb; Thu, 9 Apr 2020 12:56:46 -0700 (PDT) X-Google-Smtp-Source: APiQypLZHpyKHy9WDHJJic/8mmhE9UWTngDm6WMdrR4juCW5osx4Rl8xx1xVBX71/wrQOWtIPDxO X-Received: by 2002:aed:37c4:: with SMTP id j62mr1068214qtb.279.1586462206033; Thu, 09 Apr 2020 12:56:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586462206; cv=none; d=google.com; s=arc-20160816; b=Z5CMClHPnEdawcXpNZ5ZtRFXDiTqQpkgmM8I8XSOmK6OYTK0ptNU8NgX8Do2tNbKV+ MKilb1FWU1HAbCH2k0I+8HeeefX9nNTXIrVfowVTF6R8jnQCO96jLjgUplNI/uaLQQGn b1CCHukBriiIdDNCWUVUbFwCmbEXrP3905b0eUeiBjEVgxucSDEIuTHLAFg3RCWoIFHU WGkRTDN8d3Ec1ZbFvcDE+qw/R1CjPLwovO+q3T6KFNVqGlYovzOYcwh9KFIhgHax15TJ WuZvKnF2ajBI6lC1ebOV+PKTr8Zob91wTWUc+rJvhEjepcLs1z+a8xAxjzOCdgkK1+MJ jf/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FWqxa7IgEF9kjblzeGUACdh2V+Kc1/x9y1BsC32Ew80=; b=Tb2kvOQIqFTS25u6VfzUFRW/FVImBMO4DFd7hdn1m4vLb8931q3pbGmYfgIxLJRb/q xpycGREY2Vl7Pf/jBD/XZCr9OnY+G0PdmgSEJNcqT5cGdHF1QiLswgdWomNj3Mj3k5cK 97xZFD9vtLL2Qcpp8nYlQyK6ij0j44JxCh5fjbBstM8gwICwwLIXP3V/mid7+BTtUD+p aVtUEXMVKJzsL3t2x8d8LCpKIeW0LG1RUnviaFoiBZu9ifwiKNQsq7rr6sffP3CBs07c UPymoWr93mFY6PpU/QQ56o2WQrS8gBplvdr6H1tacbE5hygG9uVnLWxiT9GGXtancO4I DDWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=aGkY8jiS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3si6247825qvh.79.2020.04.09.12.56.29; Thu, 09 Apr 2020 12:56:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=aGkY8jiS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726796AbgDITzh (ORCPT + 99 others); Thu, 9 Apr 2020 15:55:37 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:37415 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbgDITzh (ORCPT ); Thu, 9 Apr 2020 15:55:37 -0400 Received: by mail-lj1-f195.google.com with SMTP id r24so1032191ljd.4 for ; Thu, 09 Apr 2020 12:55:35 -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=FWqxa7IgEF9kjblzeGUACdh2V+Kc1/x9y1BsC32Ew80=; b=aGkY8jiS6vcqO54+MzZBq6t09AZ9z9nNDAnW2XAwn+SlblvC8sObX5Tr+07IwPurpA Tuaoiydplp3y51TfJ36L1C78h376noZYZ1tlNKwp67EXunNuIaFgvF6lyQsDZtvXg3TS yiPcAguS17DgYZhWDB9geFPpXHoUef6RG+gCY= 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=FWqxa7IgEF9kjblzeGUACdh2V+Kc1/x9y1BsC32Ew80=; b=PKFDGz7eKJn32FMVMqWmRjBFaQ/5UkLvbTaNp5zIDHYXPf0mp9QvUjkL3q7cDM3Ej+ xbNO1G0YWnW1zidduS4bwM9arzuT4Qj7Mrubvuo5J5/oVyhEsUwvp385LKt5cKynmbI8 xZBgEYt6tvyZQnDWKtABX3rBh5srRI9cRvPzaiFqkEQMlFarhx1dUNelJ/dQ8TudyZdb EnciFrTApumj149WWVy2UZB0tEH2aQsLKJ51yFF9cRySMG4VprS08l7sZjQ8JVz6EtdX vRzbgNweCzCITp1w/rwpTpf4yGIVkt+MBxGWJN0MZsswpbSz+2CUVmH0cUv64jVqOJdm a8RQ== X-Gm-Message-State: AGi0PuaUgTxzgP+8F8LvnToAjZ3WeOo8JuABf+PRre3u1GjIzQy+OcUQ ITYyoV/7A2hRpz8vAQ6rS+LRm/+hzsM= X-Received: by 2002:a2e:a176:: with SMTP id u22mr913260ljl.84.1586462134669; Thu, 09 Apr 2020 12:55:34 -0700 (PDT) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com. [209.85.208.174]) by smtp.gmail.com with ESMTPSA id o6sm15239060lji.15.2020.04.09.12.55.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Apr 2020 12:55:33 -0700 (PDT) Received: by mail-lj1-f174.google.com with SMTP id i20so1020163ljn.6 for ; Thu, 09 Apr 2020 12:55:33 -0700 (PDT) X-Received: by 2002:a2e:8652:: with SMTP id i18mr901347ljj.265.1586462132767; Thu, 09 Apr 2020 12:55:32 -0700 (PDT) MIME-Version: 1.0 References: <20200409071133.31734-1-mhocko@kernel.org> In-Reply-To: <20200409071133.31734-1-mhocko@kernel.org> From: Linus Torvalds Date: Thu, 9 Apr 2020 12:55:17 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mm, gup: return EINTR when gup is interrupted by fatal signals To: Michal Hocko Cc: Andrew Morton , Peter Xu , Hillf Danton , Linux-MM , LKML , Michal Hocko Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 9, 2020 at 12:11 AM Michal Hocko wrote: > > ERESTARTSYS is also quite confusing because the signal is fatal and so > no handling will happen before returning to the userspace. Ack. Except I'd rephrase that as "no restart" rather than "no handling". We do end up handling the fatal signal, it's just that the handling doesn't involve restarting, it just involves dying. That said, I'll leave this to the usual channels, since it isn't exactly the same kind of urgent fix that I picked up directly.. Linus