Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp95481iof; Sun, 5 Jun 2022 22:12:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFOuWIrMjgJml9ZRnpOr6V+rimp2QvHK8O7U4pBFV4mbk09iZxc9/nFE6jnM9PbfSTYkVV X-Received: by 2002:a05:6a00:cd2:b0:51c:28b5:1573 with SMTP id b18-20020a056a000cd200b0051c28b51573mr867687pfv.59.1654492376465; Sun, 05 Jun 2022 22:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654492376; cv=none; d=google.com; s=arc-20160816; b=K62kgIKeliytg9/1jumgsZ96whU4rA5peuZBKGjD9Zj5NwEubHDNciZWNWJLrerWq8 wJf/mMm0CttMb9xAFngtxd9jmBXQof/s/xs5acaQyht8o8E7NDvoT+7AKIDEXjMFpuup 35VNXgtLIwNPjI/jgrzNr8D+ivTUsCTKy+2+SXeNtGtRCDD/I16Nng+iorUpmlJRkkaC jRRl6afx9Wtiu9n25bY1OhBIKV6zDfGEn3u9VMyBIziGs2DvKkA4jZ7p7qAm7Pe5lTeC cGcXVARi1ozE5rLNGvJryPYgHUI89ovedMyx9fHC87Hs35GImmK1ka6ZhUzl2dNwMnsm XjbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=A8jLFNkPyAC7r3i//Hc0w4BzIXVIddf8yI5Yswnk4Do=; b=0bO65B5iijbAvvdSGe5J68OhpIuRCI6Komll631aUxNgjwMBuCEJGobnu7TG2QlHOg EaNs36t89zHyvHSMDhNrVWHch9XEknXUUQjjeOjmj1+TUADsb/4O92xNtbnRFbRQmGAT Da6RYJ8xqM7ZL0pKMy+GR0HrgXCcAtbmUvhGDny2cs+rHgIkqgEQCmzFecyEKbhFjTn0 wm+RtQZa2QThsb2/+98Hx8GypfIrm+ewrw9FAj6P3k0xI413wou+nsiKqnWwqd9/uqrd Bj5wdpq6d5G6kLyLWMZwAglMv79S9F21AMGao004FXn5Y+PojYLgG/o359c0ZdthEb+a cq/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TFygasQS; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s2-20020a056a0008c200b0050e0a5aa240si20718736pfu.6.2022.06.05.22.12.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 22:12:56 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TFygasQS; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0A0EF63CB; Sun, 5 Jun 2022 21:18:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345993AbiFCSSJ (ORCPT + 99 others); Fri, 3 Jun 2022 14:18:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347619AbiFCSGK (ORCPT ); Fri, 3 Jun 2022 14:06:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAA725C648; Fri, 3 Jun 2022 10:59:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7293BB82419; Fri, 3 Jun 2022 17:58:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADBBCC385A9; Fri, 3 Jun 2022 17:58:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654279114; bh=XNeBLSYMPSQjPWmzLH3dmNef5spnlWweGemETuSTW7o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TFygasQSINCaWjc8gHWztbbXmDnjgfHy+Tz0i0mwWANwzQL0dsRDzzS1L+wgTpfGt loFphZRh5XiofsCodEnBg1VBUsyjWXlR8BW6xWA0YdsV46slEW8k6byiGAUZgOWxAu oV04FM6RKGg1yQxoR6TdR56+sEhR6n2iyNsXUlps= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Olga Kornievskaia , Trond Myklebust , Anna Schumaker Subject: [PATCH 5.18 57/67] NFS: Memory allocation failures are not server fatal errors Date: Fri, 3 Jun 2022 19:43:58 +0200 Message-Id: <20220603173822.365946973@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220603173820.731531504@linuxfoundation.org> References: <20220603173820.731531504@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Trond Myklebust commit 452284407c18d8a522c3039339b1860afa0025a8 upstream. We need to filter out ENOMEM in nfs_error_is_fatal_on_server(), because running out of memory on our client is not a server error. Reported-by: Olga Kornievskaia Fixes: 2dc23afffbca ("NFS: ENOMEM should also be a fatal error.") Cc: stable@vger.kernel.org Signed-off-by: Trond Myklebust Signed-off-by: Anna Schumaker Signed-off-by: Greg Kroah-Hartman --- fs/nfs/internal.h | 1 + 1 file changed, 1 insertion(+) --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h @@ -841,6 +841,7 @@ static inline bool nfs_error_is_fatal_on case 0: case -ERESTARTSYS: case -EINTR: + case -ENOMEM: return false; } return nfs_error_is_fatal(err);