Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6081759pxu; Wed, 23 Dec 2020 13:00:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzw1Re02SxBDdEUUSd9tEMGkLiCPXG2w8W+cHvo45fRqp8TCQ3AX9zj4ZKJ6e8Mm1epU/sW X-Received: by 2002:a17:906:589:: with SMTP id 9mr25914888ejn.229.1608757242700; Wed, 23 Dec 2020 13:00:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608757242; cv=none; d=google.com; s=arc-20160816; b=DVdpDyI+YfItaVwOt4AfHPpKo/rs3s04qfguS8PGAhE4JBiB5pitfiBetWgUv4aKeH KnMTxYs64bzBNVRpATekfH70+H2lvHPqrIFVPBm//ADyO/I8BMsHdoU1nzqQ122LzcjD K6+cv1/XkUjNSJ1biINmePrFmkHtlRa0HfPpmu0jfPqje2Muun2E+Ob2c2Ln5yxu6yLl kWbtLmpcssC2jk5Q250yL1lLizQn0fgFj6PSyKvA/cxBnvebkTjm6aJ+cSH70SX1woxj YvqYtwhfXhYlwnUn937r3aQ74QBTVAYFT3I1/zmnep/Legq5jlphXqxR24UvJjx92QlZ 3tcA== 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=lAF0L/gZZgqSEncIXbVB4lfajOwnJDYtHEmaUcDuBhA=; b=SJaktK1/iNeHFPbGGFYFYg76/iiJrGnb6ciqUEQ50g54hiNV2FwEdbKolPhCd3fLEZ eJ6WhlbHgT3XCq7RJX81IpbVr1iIx1MKQkevnwVA75vZqlCM0SquuEWbWiv1QvZitH1D YZTTq7wttt0ejd5BYr4ok+SNgtHzJ/OvrGywbI3OXXdYKcUT65uZ+oykTrhno81/i5od H1rCrxVchB5N1xM7sdSNURvP0ed3vrRlhIOm7DDWrfrGTRYjfJnHxgd2nhluc74VwRmU t7uVOi9Wi6Q+Qf+uHsxElCOc75qCTMJ86yy4acZD3ytkS23CEztVwIBoYV828LTL3IHr rmyg== 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 g10si11760433ejf.344.2020.12.23.13.00.20; Wed, 23 Dec 2020 13:00:42 -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 S1728976AbgLWU6D (ORCPT + 99 others); Wed, 23 Dec 2020 15:58:03 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:39024 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727187AbgLWU6C (ORCPT ); Wed, 23 Dec 2020 15:58:02 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1ksBBa-0002fP-D7; Thu, 24 Dec 2020 07:56:43 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 24 Dec 2020 07:56:42 +1100 Date: Thu, 24 Dec 2020 07:56:42 +1100 From: Herbert Xu To: "Maciej S. Szmigiero" Cc: Ignat Korchagin , agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com, dm-crypt@saout.de, linux-kernel@vger.kernel.org, ebiggers@kernel.org, Damien.LeMoal@wdc.com, mpatocka@redhat.com, kernel-team@cloudflare.com, nobuto.murata@canonical.com, Chris Mason , Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org, linux-crypto Subject: Re: dm-crypt with no_read_workqueue and no_write_workqueue + btrfs scrub = BUG() Message-ID: <20201223205642.GA19817@gondor.apana.org.au> References: <16ffadab-42ba-f9c7-8203-87fda3dc9b44@maciej.szmigiero.name> <74c7129b-a437-ebc4-1466-7fb9f034e006@maciej.szmigiero.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <74c7129b-a437-ebc4-1466-7fb9f034e006@maciej.szmigiero.name> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 23, 2020 at 04:37:34PM +0100, Maciej S. Szmigiero wrote: > > It looks like to me that the skcipher API might not be safe to > call from a softirq context, after all. skcipher is safe to use in a softirq. The problem is only in dm-crypt where it tries to allocate memory with GFP_NOIO. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt