Btrfs blocked/frozen io when running on top of luks encrypted partition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-hwe-5.8 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Issue description
Issue is present on any ubuntu-20.04 kernel, the issue was present when installing using the first iso & it's present now with a fully updated system running on the hwe kernel. But also on the 5.4.0 kernel.
kcryptd freeze waiting for io for a dm-crypt (luks2) partition formatted with btrfs on top.
The system has 4 cores.
Steps for reproducing the issue
For me it happens randomly for 1 kernel thread, then after a while 3 others also freeze and the system is then dead.
Starting a heavy io task like btrfs scrub will reproduce the issue within seconds.
eg first after a few minutes with heavy io
ps aux
...
root 265 0.5 0.0 0 0 ? D 21:16 0:02 [kworker/
...
then a bit later
root 265 0.1 0.0 0 0 ? D 21:16 0:02 [kworker/
root 310 0.1 0.0 0 0 ? D 21:16 0:02 [kworker/
root 312 0.2 0.0 0 0 ? D 21:16 0:03 [kworker/
root 313 0.1 0.0 0 0 ? D 21:16 0:02 [kworker/
root 314 0.1 0.0 0 0 ? D 21:16 0:01 [kworker/
root 315 0.1 0.0 0 0 ? D 21:16 0:02 [kworker/
root 1612 0.0 0.0 0 0 ? D 21:16 0:00 [btrfs-transacti]
root 4133 0.0 0.0 0 0 ? D 21:22 0:00 [kworker/
root 4135 0.0 0.0 0 0 ? D 21:22 0:00 [kworker/
root 4137 0.0 0.0 0 0 ? D 21:22 0:00 [kworker/
root 4977 0.0 0.0 0 0 ? D 21:30 0:00 [kworker/
root 4978 0.0 0.0 0 0 ? D 21:30 0:00 [kworker/
Additional info
Ubuntu focal install with btrfs on luks partitions.
Kernel info
Linux 5.4.0-31-generic #35-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 39 bits physical, 48 bits virtual
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 95
Model name: Intel(R) Atom(TM) CPU C3558 @ 2.20GHz
Stepping: 1
CPU MHz: 2200.413
CPU max MHz: 2200,0000
CPU min MHz: 800,0000
BogoMIPS: 4400.00
Virtualization: VT-x
L1d cache: 96 KiB
L1i cache: 128 KiB
L2 cache: 8 MiB
NUMA node0 CPU(s): 0-3
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Full generic retpoline, IBPB conditional, IBRS_FW, STIBP disabled, RSB filling
Vulnerability Tsx async abort: Not affected
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc
art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg cx16 xtpr
pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave rdrand lahf_lm 3dnowprefetch cpuid_fault epb cat_l2 ssbd ibrs ibpb stibp tpr_shadow vnmi flex
priority ept vpid ept_ad fsgsbase tsc_adjust smep erms mpx rdt_a rdseed smap clflushopt intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves dtherm arat pln pts md_clea
r arch_capabilities
kernel crypto flags
cat /boot/config-
CONFIG_
CONFIG_
CONFIG_CRYPTO_AES=y
CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
/etc/crypttab
LUKS_DATA_6T_1 UUID=the_uuid /etc/....keyfile luks
Related bug reports:
https:/
---
ProblemType: Bug
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 Mar 31 10:18 seq
crw-rw---- 1 root audio 116, 33 Mar 31 10:18 timer
AplayDevices: aplay: device_list:274: no soundcards found...
ApportVersion: 2.20.11-
Architecture: amd64
ArecordDevices: arecord: device_list:274: no soundcards found...
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CasperMD5CheckR
DistroRelease: Ubuntu 20.04
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
MachineType: Supermicro Super Server
Package: linux (not installed)
PciMultimedia:
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_DK.UTF-8
SHELL=/bin/bash
ProcFB: 0 astdrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.187.10
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
Tags: focal
Uname: Linux 5.8.0-48-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True
dmi.bios.date: 11/05/2019
dmi.bios.release: 5.13
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1.2
dmi.board.
dmi.board.name: A2SDi-4C-HLN4F
dmi.board.vendor: Supermicro
dmi.board.version: 1.00
dmi.chassis.
dmi.chassis.type: 17
dmi.chassis.vendor: Supermicro
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: To be filled by O.E.M.
dmi.product.name: Super Server
dmi.product.sku: To be filled by O.E.M.
dmi.product.
dmi.sys.vendor: Supermicro
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
description: | updated |
description: | updated |
summary: |
- Btrfs blocked io when running on top of luks encrypted partition + Btrfs blocked/frozen io when running on top of luks encrypted partition |
tags: | added: btrfs kernel-fs luks |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1922022
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.