Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2161848pxb; Mon, 22 Feb 2021 23:15:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpvpzJWJ4BURgN7+LjM3ycKdHCpqqFgZmbpXCt9QFItl+oBKi0iluxp/+Ek5unaPJz6sTN X-Received: by 2002:a17:906:2bce:: with SMTP id n14mr23637156ejg.171.1614064518568; Mon, 22 Feb 2021 23:15:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614064518; cv=none; d=google.com; s=arc-20160816; b=ca8RwBzAaJZqQgd6+VS1e2MoBFd1qv6Kxsn8bGTxMWjTIwEidjp22Fl35uu0XJbcbX ozPAjnD2TLquTSYunY2woGZc7nd+AB/x3Y9JwWjdygBnVYX4yfdYckci5c4Y2Un+2x/F QqjFMjoOGihdUTHRRk1lUYJexD+yXV4PCrIvH3JLp8tAam072zkEOKxQYNwBCnNUsls/ pcz2YPCbqroTv77YmIZpQWBYtMPTpeLyQbqPDN3pX/WaRsAOVnjy9oKqXQMLUqckdgRo hCOObkDLRlnvNmwWQWvbGuOYYa9E/4s1xLgOQA/seuOF5QEg0b1qJj16z9e6N6KJVBxM 3D9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=mJktB4g6rDQgylYrT6d2PBo8UV4U/BahHgHPOQsiVvM=; b=ja6yVz76YHhFiupAJZz0zgT4gJkeb9fbuZoZI8j8L4+xNUjcOiJOIbKKIMeOOZQptg tfcTG+pCaJpii+WO9kWCvw6TVPEH0Sx13J7NmWuHcNjIqA8SStIinVzWKGqfriGxdugE R2Gh9acBalIVBbI0VdJA4JaqPRMGr5nKtBs+EcpM3OM6dPfHx3qHYJiRs6U8gF0LVmBL lXGHBTNtii2gmn8jku4bd8M7BfwnMxkyWJeqmhEGInzswWHrAI01ULhwqEloWPcmbQSk UGvWyYwq5W5ZnH37um5/1mZlL74BHBNqyofPkDj+mLUo92f8FEuIKpZo3gxCo69d01Gx y+dQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si2562733eje.631.2021.02.22.23.14.52; Mon, 22 Feb 2021 23:15:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231741AbhBWHMg (ORCPT + 99 others); Tue, 23 Feb 2021 02:12:36 -0500 Received: from verein.lst.de ([213.95.11.211]:32956 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231740AbhBWHMb (ORCPT ); Tue, 23 Feb 2021 02:12:31 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id E369A68D0D; Tue, 23 Feb 2021 08:11:48 +0100 (CET) Date: Tue, 23 Feb 2021 08:11:48 +0100 From: Christoph Hellwig To: John Stultz Cc: Chaitanya Kulkarni , David Anderson , Christoph Hellwig , Johannes Thumshirn , Damien Le Moal , Jens Axboe , Alistair Delva , Todd Kjos , Amit Pundir , YongQin Liu , lkml , "linux-block@vger.kernel.org" Subject: Re: [REGRESSION] "split bio_kmalloc from bio_alloc_bioset" causing crash shortly after bootup Message-ID: <20210223071148.GC16980@lst.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 22, 2021 at 08:22:09PM -0800, John Stultz wrote: > I'm wondering if given there are multiple call sites, that in > bio_alloc_bioset() would something like the following make more sense? > (apologies, copy pasted so this is whitespace corrupted) > thanks No. The fallback from the mempool backing to plain kmalloc is highly dangerous, which is one of the reasons it was removed. The other being that we don't want to disturb the fast path with this slow path.