Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp921006lqo; Wed, 8 May 2024 21:52:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUs4yXPA6jbMtw2Bg7J59UIfvklvzoFbkHC06coOrXA7w7HomBZ1xWDn2ap9MBsNAEUplQLKw7ev6ZTWCk9rDmbzZNg+WkhfVA97+NMgg== X-Google-Smtp-Source: AGHT+IG4cTigbUqDuh0+OZNBJpAXTutdv/2J7yxf/Vn7RZh8K3yA49jn4qXtlMjHQeQP1oaaK/S2 X-Received: by 2002:ac2:4109:0:b0:51c:5570:f570 with SMTP id 2adb3069b0e04-5217cf3cb96mr3438181e87.59.1715230367245; Wed, 08 May 2024 21:52:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715230367; cv=pass; d=google.com; s=arc-20160816; b=wvp9ilrvtbtaSZXK/GaLcjDFGH56H4538K0PUnO0jsUfqRliI0EK8M/FpFaYlqRdQO ZI63wBp8FEho09TXPHTXKSgovnJ4X6B6KIukuZo5TS3yBdAFodAgV0xb3WQSqHGIb7m6 WsiFZxz6Br6t66M87u+NPQxY5sVr6DfEaEJcfraFJHg/adc5n0nZNaZb9Nypdll6oBGl BLBULYGym4VjyMu+KSvsXHBcVCAn+HIsozJWbY1ks/bCQssegd+wBEQvqoBtYZGt4yIC 7faqvxvYhWV9IqWS/BO0Mny4GaHmQC++L33x86VNTrNQyuEFmpRPwvb6GhDTJICU8GVf bH2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GK8skucNd3RCC7HoRVlzYUTm9Wu/E1K3l93ozVZHIl4=; fh=9QkNDCDtsftFamHPQaYOM3U40envZKeOEubCSrU/t8s=; b=rrzaqFBcBWDjft/qB4SZ2c1+wuiYzSljdZB0eaREqhTCYkHbay8YE8WQzZbCRmQw8y KxMc3TMwMilOzofvd6TaxB5+hy5NO3oiQ7/Hy6nKLb3EQtNFI37y4nBGFb1V6I9r63rq luHVRQuKU+33MQcTKQSw/lTVbqkaHrjvCB1VEgQDcg//kxcDdpRtH2QcaS4NuBPHaJQX 6wdIxROuCHb276PmDJg6aiHywQeM2+W/IBOy5alNVGFIPddSyXWdciLo3I6B4EQ/CpD5 9hd4wND5mVLXJarn0QOMvrVWa5Mw5BFhZEP927sRSbXHaqiJP4aCCOl47aUedYMHFxKi 85wA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1OW70ydo; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-174139-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174139-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17ba5720si39938866b.642.2024.05.08.21.52.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 21:52:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174139-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1OW70ydo; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-174139-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174139-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EC6D91F22CDB for ; Thu, 9 May 2024 04:52:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 27C3E149007; Thu, 9 May 2024 04:52:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="1OW70ydo" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 481A1D26D for ; Thu, 9 May 2024 04:52:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715230358; cv=none; b=jmCioPeapVPs9Hsd8kXR0kOFI0l8OZo38k4hG6eNQbvVsy0TjmKrsIiebgighw6wSlxM+9aUl8Lr+PjioXR4cuCDVDLuuFHgvEFFqPaj60j2JOgSLs6k4gZUdvoV2GghhBzG4C9plFZqaa3njEfH/yFvnZPSNYDUaI4aWR9ot8M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715230358; c=relaxed/simple; bh=fYnFG2PrP95ZslKYekACDfFg/PRLLfiLU16BTpA/irI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CCdScoGZdDonQAQs76nbBa3vD+2z3Hob7XVEAsoQXht7bPHLk+lShvulUWMsaKIrbL1BnH9xbtkFUewzvdMR3UUltDBF/HOCvUHfkSaUHGWmgBqke/0zh7EwLOMnXd42Ln9xvYU7d1U8Xv1U0C+NhSYxFBwCvOKvni9iGoshIm0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=1OW70ydo; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=GK8skucNd3RCC7HoRVlzYUTm9Wu/E1K3l93ozVZHIl4=; b=1OW70ydophlQncbAq89LV4LOpR RK1UsHgA2PsqhlFa2fOeQA930u3Tf5bjmO7rPHIZ7dFjFa3oVfeOA2hVTSSYphpFF0A9EG/C+qpJ+ E+/H0mlJP2aQijinCkU4GLG7D+TFQesTkEskQQHwpO4Addc0W14z7MRxOUPn3N1Ndzwkd1D76BWSZ loDlz6ZS0wrmRnEf71ZYAGZEq2Zb0CVTxieMj16/gDXI+KcIAaYVzSbLyZ7WhI+7cIC6MkpczAXXF 5xgOkE3yG26chVjNbKmVXoCVz7eqDRSjv3qsP4XaCousiMdcxVHO6dUNCm0K4qhNbq3nY3rgAy3t5 +dRjscYg==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4vli-00000000M7q-3CR3; Thu, 09 May 2024 04:52:34 +0000 Date: Wed, 8 May 2024 21:52:34 -0700 From: Christoph Hellwig To: Barry Song <21cnbao@gmail.com> Cc: hailong.liu@oppo.com, akpm@linux-foundation.org, urezki@gmail.com, hch@infradead.org, lstoakes@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, xiang@kernel.org, chao@kernel.org, Oven Subject: Re: [RFC PATCH] mm/vmalloc: fix vmalloc which may return null if called with __GFP_NOFAIL Message-ID: References: <20240508125808.28882-1-hailong.liu@oppo.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Thu, May 09, 2024 at 02:20:03PM +1200, Barry Song wrote: > reverting the fix intended to address the OOM-killer issue in commit > dd544141b9eb. > Should we indeed permit the NOFAIL flag for large kvmalloc allocations? What is large? When you don't allow actually use cases people will just reimplement it poorly. E.g. we'd probably have to add back the XFS kmem_ wrappers.