Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp25452pxb; Tue, 23 Feb 2021 16:56:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQ0TfM1LXuMPQyAb3CEtTJOZpcsKsta3hZM8tIbtur43+UtLNZTVkqDOXajG32EPVWLe45 X-Received: by 2002:a05:6402:27cf:: with SMTP id c15mr30203014ede.179.1614128183062; Tue, 23 Feb 2021 16:56:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614128183; cv=none; d=google.com; s=arc-20160816; b=rAV3MObyvVi983FEddHaTYK+O7wLgZoZwYPfDXOa3/PrpqMpgR9rrQd2Mqsy+fq1CI Z8u2rCNvd3dAaPXYfPTIyYfWXgxOe8Ekm1KOI0PQ0VGbcwbqW+KcNb23EOUfAd5ghHo3 uaUh8Ttc71NBtC8JaAd7M3EjVZSjevEL96oAZnKhbi5rAY4PfWztc3EYUsyakIo2HMIb XP38lOKmmLa9EYx9jG3Ma5q61/kFSQHTZeJKfYQbEOIkgkhuyrRlt0/JW1FCPfrenRQk Gp9AkYwQn0RMvA7ytHGSyJ5DAnjoWzZ/wPSXf3+qP3McG2luhPSr1I9KTOYgXSaMpMxd z+Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=w1loR0i9/IQnXQEFVUinQYQPT/pSvPKt4JZ95zXT3ww=; b=fHHnsLnTkrxFHJLxUDZdAnpYDxacOePbRx0+GHFideWebipvYoRCAfMgXTTW5/cPyN nayMMVMKKuBSLr90ZZ5A6x+0wROPde/p5j3VlDwBHvHwfOkxKL2SrYP7o+r3peFF2cU5 GAXbgrgdMQlYWaCR6vJ8bgszJSUaWVK2fvjAoCgloLCk6qe5NhH7X1if2f0GQ6QmHNri hd1hPe3We9CeK+7WvVA7IJbe/BqjpLLHVOMgzs42C+GomAQ/kRtKjXJs4BnO2HXVsiFy QBhLrfbdsm7r9bT76rEU+t0BixGmNIG8tCtlyaJF2s3zRzCsQ0WZa1K7KdQidvurAimV 3ekw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CoZ6zpVI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si124175edd.343.2021.02.23.16.55.35; Tue, 23 Feb 2021 16:56:23 -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; dkim=pass header.i=@linaro.org header.s=google header.b=CoZ6zpVI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233960AbhBWXAT (ORCPT + 99 others); Tue, 23 Feb 2021 18:00:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232296AbhBWWrG (ORCPT ); Tue, 23 Feb 2021 17:47:06 -0500 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4066CC06178B for ; Tue, 23 Feb 2021 14:46:26 -0800 (PST) Received: by mail-lj1-x234.google.com with SMTP id q23so106992lji.8 for ; Tue, 23 Feb 2021 14:46:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=w1loR0i9/IQnXQEFVUinQYQPT/pSvPKt4JZ95zXT3ww=; b=CoZ6zpVIQgeA5xgTs9DBjAfLnLxDYBcaUA5qu+4wMpweFUkZtrZDFvPY1bOdP8KCat Yw7SgjVJ0OIpTtJJGFpgBNLpBQjHp9hEuC4i0E6PrW6dnUMnQ7GTljuVzf2G1kZ/QGlw w+i5woCmmlqfEj4+T5/xQE5lpowxUC1v87bPOWGLmks/0LZS2hNYkBwwlC9AD25R2gQh OPtRwg5hYO7lCXcp93rlZmUTkex7vplr3TGgcQy9No/vEuOjLoF7U+KO7a59pZ6v2jTl wye7s5Ql15cO21DouXl7VLwy94XW1tBqcC+tHAlVxNIitn/CYM5ktP+Vz+j32MGMUwy4 7P9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w1loR0i9/IQnXQEFVUinQYQPT/pSvPKt4JZ95zXT3ww=; b=Qq+zNVf6vxUWk9p1uYzFJ58KRKVZ28fQ7i7rwvTJPtwOqBW/jo2Q9DbdgCF7Fv95r9 OGFQhqYojHiPWQ7d/aZrIx5M2HFq5IzrR0Li9DE8yokMKWegmOfUoOqZj4qBT6F3zP7X 5GJaDXVxzPmW4rePw0JLnmDMIuHezJF1QdePpFkgyHikCCnzsSK0h/9H7VoAhpAIzDJt qJg9FRddNcwV0vhCgXho+k0tGldrTvvFNGlaBKV0uuRwWD1xISZ/8qkfufnfGqN5N2LI 4VWMbGYLeABgxc0bWyF7W1R58KZ3Qdc1++SPTUe2ZkkjN7VMVXa8sIKW67ubPBADQSWL ok0g== X-Gm-Message-State: AOAM533HEA6PuJ8JMq8yb3cr5Pvn6eildp0ESOp9k5QPZYuWq43OgQ2f mqCLPH9s1FgI2yQc4oeg/eXEyj1JSJDGraTwMKeYyQ== X-Received: by 2002:a2e:b0f9:: with SMTP id h25mr2979634ljl.232.1614120384650; Tue, 23 Feb 2021 14:46:24 -0800 (PST) MIME-Version: 1.0 References: <20210223070408.GA16980@lst.de> <20210223072252.GA18035@lst.de> In-Reply-To: <20210223072252.GA18035@lst.de> From: John Stultz Date: Tue, 23 Feb 2021 14:46:13 -0800 Message-ID: Subject: Re: [REGRESSION] "split bio_kmalloc from bio_alloc_bioset" causing crash shortly after bootup To: Christoph Hellwig Cc: Johannes Thumshirn , Chaitanya Kulkarni , Damien Le Moal , Jens Axboe , David Anderson , Alistair Delva , Todd Kjos , Amit Pundir , YongQin Liu , lkml , linux-block@vger.kernel.org, Satya Tangirala Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 22, 2021 at 11:22 PM Christoph Hellwig wrote: > > On Tue, Feb 23, 2021 at 08:04:08AM +0100, Christoph Hellwig wrote: > > The problem is that the blk-crypto fallback code calls bio_split > > with a NULL bioset. That was aready broken before, as the mempool > > needed to guarantee forward progress was missing, but is not fatal. > > > > Satya, can you look into adding a mempool that can guarantees forward > > progress here? > > Something like this would be the minimum viable fix: This seems to work for me! Tested-by: John Stultz thanks -john