Re: dm-crypt with no_read_workqueue and no_write_workqueue + btrfs scrub = BUG()

"Maciej S. Szmigiero" <[email protected]> Wed, 23 Dec 2020 16:37:34 +0100
Newsgroups gmane.linux.kernel,gmane.linux.kernel.device-mapper.devel,gmane.linux.kernel.device-mapper.dm-crypt,gmane.comp.file-systems.btrfs,gmane.linux.kernel.cryptoapi
Message-ID <[email protected]>
On 14.12.2020 19:11, Maciej S. Szmigiero wrote:
> Hi,
> 
> I hit a reproducible BUG() when scrubbing a btrfs fs on top of
> a dm-crypt device with no_read_workqueue and no_write_workqueue
> flags enabled.

Still happens on the current torvalds/master.

Due to this bug it is not possible to use btrfs on top of
a dm-crypt device with no_read_workqueue and no_write_workqueue
flags enabled.

@Ignat:
Can you have a look at this as the person who added these flags?

It looks like to me that the skcipher API might not be safe to
call from a softirq context, after all.

Maciej