BLKZEROOUT on dm-crypt container cause OOM / kernel panic
Steps to reproduce: cryptsetup open /dev/sdX[Y] rand --type plain --key-file /dev/random; blkdiscard -z /dev/mapper/rand
Similar issue is NOT found in doing cat /dev/zero > /dev/mapper/rand
on the same hardware and configuration.
The issue has been observed on both a usb thumb drive (BOT only) and a SATA drive on a UAS adapter. For reasons I have no capacity to attach the SATA drive to an AHCI controller so I cannot confirm whether or not it occurs only to USB drives.
Edited by username-removed-1514728