Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp70093iof; Sun, 5 Jun 2022 21:24:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVq+s100aEYm0SBhQ/xXzghgb6giXZ6DwtWTGb08/e5hW3y6/SDOJMm5danSit6mFyT7f7 X-Received: by 2002:a17:90b:682:b0:1e3:142:a562 with SMTP id m2-20020a17090b068200b001e30142a562mr40367601pjz.91.1654489492196; Sun, 05 Jun 2022 21:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654489492; cv=none; d=google.com; s=arc-20160816; b=fsaJa4Jom9D5CdQ23zIYF6KNq/Xyljpmoo/wiWqqDR/qUm7t3yYFPmTfbnY0mUAK8o MxbSBqvOcsNvGzkQ1blWmLLQns1jCq06Wh9EVBnrR2up+Qj6BIbiOPsC5QVSFhVTwDxd kDfNvog9OYKrjB5A61UR+SHB/hK1LLow34A49Fhry/HwbRMqWGro61kDTUDAIrCrIk5r CEqIkImGyF9vCEWIkOBpbxNoMakNaL+5+cf90k2KXlAxioqMaP4nNDv7+S4IOrN/QpDW twH+qT2A/IJgPbEKHGBxHn+aIilq+3rlq9DXRCIl52ryG96T+VnAfajwqHqdLTlw8rnR EPAQ== 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=tyQVMoz2Ic3qkb8aKthQledVKY5bXgb1GoXpVQsyIbU=; b=xMCXIcvKZ+IcouQmG7CbkA+1vnQDuxGHNBdb3EXi6Lkl6LOMdqfAJrRo6kYQOQ3EId SuVHeAZ42xVn5dRGs4F4yRHoU2Ql+yTnI7oulge5rMAISabMzKe+dt5KWHChXcqLhwBB O6VTWWZ/2qOh7MfIGsmYnaBFDli86Pd6NQUWRR7CVhbkFdKe3da7J6D96aKS16Va9s4g 9VJuVY80pdjCaDv/hTugEeWQi6sOOsbyhQJDa1NhUJOW7DPoxyioKU25ZyEodXtEzB4l cF/ypfx1I3moCLvBvqM3lIfDYW1nkYr1+WJfoD8z5oAds0fapdxWZ8qgOWXwC5r1BAyN ON2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NLNF20dP; 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 cm18-20020a056a00339200b0051b98c3d62asi10724304pfb.233.2022.06.05.21.24.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 21:24:52 -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=NLNF20dP; 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 021539548E; Sun, 5 Jun 2022 20:56:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345399AbiFCRw1 (ORCPT + 99 others); Fri, 3 Jun 2022 13:52:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345389AbiFCRsu (ORCPT ); Fri, 3 Jun 2022 13:48:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E046C0C; Fri, 3 Jun 2022 10:45:34 -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 5737360A52; Fri, 3 Jun 2022 17:45:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55C42C385A9; Fri, 3 Jun 2022 17:45:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654278332; bh=sfPesHts5NEETGJlacjo7cJ3lGQkFq0c+AHqqGjnCjA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NLNF20dP4bXydS6BTyLjBsdNZQFccNjr1XpZecKmXNhAoYlULmx8xUKAuVfPAEq7d O6cAlign9KW5lYcusRKH0zU1Lgd4PWRF1Yn99TVcknDPne5V8aXxNqO/90k4QwG2se WCeguCXFiNM43aLCaLrCbaj/UpPVulbrvX77Do7g= 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.4 32/34] NFS: Memory allocation failures are not server fatal errors Date: Fri, 3 Jun 2022 19:43:28 +0200 Message-Id: <20220603173817.114480083@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220603173815.990072516@linuxfoundation.org> References: <20220603173815.990072516@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 @@ -775,6 +775,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);