Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp93764iof; Sun, 5 Jun 2022 22:09:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoQ7HNSZBUFkuwFP/jUXXjy04g+wK83soHXfEqueoD4OKoCXr9K/2lGoktKgXt+sF4U6cn X-Received: by 2002:a17:90b:388b:b0:1e8:7347:c3cd with SMTP id mu11-20020a17090b388b00b001e87347c3cdmr6662728pjb.135.1654492181752; Sun, 05 Jun 2022 22:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654492181; cv=none; d=google.com; s=arc-20160816; b=w7VJjA6EMXzC7Y50/qhHpwSL+kQzj6/cVKr/pim7c5xhPS4hp1ov4oUeUsuXqejx9b WHxahreJKifKU1flhxNhnSYAOcXFLQSsdX2OzqgqBvDj1WKyA3qtiushKgtSCTl0BoZ/ 0gKQwWLyadz0fG79eJ+63DZkOtfGSHpHVchZnKdAh44NdazQX4hrilUlTyfsRcJMgrCM TIu+Nw4INbyvzcetFNLMKCxBD2KTq821TRtNDwJjKoXYJCkAoJqxmyIuC7d5uA43E89M vYcP8tcEiPljMY2FXwq6nnzqvTNpK6RCYZ/fushCVEt+DphJzHXsir3YhU00Pk9FgBlg mskQ== 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=5nNLgyNiPXQw94GqszRRHNCi6B9xkGL75cBPSFlf6I8=; b=jSlgjdAJtiJaLu4NdoVzEns/cozctpJEN2TKIoeDRT84cuBvsWll2arFC/3aabtBkh G1J+MILxEq5vpVfNdLzMNYlryhCk0dOasDzsFztZaCgJ41X3Gfh8DQZOn93ml4z/52BP vRlVerd5kKBOZww9QO8f6/3oWr2VciWkLpuUW4VL1piD4Dsgsvz/Xu9E/fHDLvDFfeVY 7M7iJDpmtOUnP+PaU2YEapVkA32p2FkUkgNO+tzHnxdjN/6KyZUm6ok06JmLDKiU5TfC ow50LuVLRvGbICY/wD90x7JNIjfEMZAUDxonuZDuUj1SIZV07FIXrF0E98iS8o9q2ht5 HdHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Axym0vvp; 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 j131-20020a636e89000000b003fa1591abfdsi19529890pgc.867.2022.06.05.22.09.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 22:09:41 -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=Axym0vvp; 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 5AB8F8E1B2; Sun, 5 Jun 2022 21:22:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347064AbiFCSFh (ORCPT + 99 others); Fri, 3 Jun 2022 14:05:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346442AbiFCRvK (ORCPT ); Fri, 3 Jun 2022 13:51:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F010C54012; Fri, 3 Jun 2022 10:48:16 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 8D46C60EE9; Fri, 3 Jun 2022 17:48:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86BBCC385A9; Fri, 3 Jun 2022 17:48:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654278496; bh=KO1ohSc23MpU4JrZTJenIlK69t/iwj/E9M6ULzZ72sA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Axym0vvp4GwdVKjDoAC16aW1tr3knGvpsDkCRMU1VgKI70DlQENqay8AYmCrf5xMm U9nI2BxST+gtjmFauxvDauuJUZx5xaOXMVm/JM9fcRdjGdgr8YUXIQNmZqbKDzkGI6 M4kvzmIEQsh5h2C5IwcXfAIn3PD140hXiB5tU3DI= 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.10 50/53] NFS: Memory allocation failures are not server fatal errors Date: Fri, 3 Jun 2022 19:43:35 +0200 Message-Id: <20220603173820.173496769@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220603173818.716010877@linuxfoundation.org> References: <20220603173818.716010877@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 @@ -832,6 +832,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);