Skip to content

fscrypt hangs indefinitely on setup and status commands #441

@Flamefire

Description

@Flamefire

I want to setup fscrypt on a HPC cluster using Lustre & NFS.

However the first step already fails. When I run fscrypt setup as root it hangs forever.

# fscrypt setup --verbose
2026/03/16 13:04:56 Kernel version is 5.14.0-570.49.1.el9_6.x86_64
Defaulting to policy_version 2 because kernel supports it.
Customizing passphrase hashing difficulty for this system...
2026/03/16 13:04:56 Finding hashing costs that take 1s
2026/03/16 13:04:56 Min Costs={time:1  memory:2040  parallelism:255  truncation_fixed:true}	-> 80.401µs
2026/03/16 13:04:56 Costs={time:1  memory:4080  parallelism:255  truncation_fixed:true}	-> 112.285µs
2026/03/16 13:04:56 Costs={time:1  memory:8160  parallelism:255  truncation_fixed:true}	-> 124.243µs
2026/03/16 13:04:56 Costs={time:1  memory:16320  parallelism:255  truncation_fixed:true}	-> 223.773µs
2026/03/16 13:04:56 Costs={time:1  memory:32640  parallelism:255  truncation_fixed:true}	-> 349.192µs
2026/03/16 13:04:56 Costs={time:1  memory:65280  parallelism:255  truncation_fixed:true}	-> 524.643µs
2026/03/16 13:04:56 Costs={time:1  memory:130560  parallelism:255  truncation_fixed:true}	-> 1.548767ms
2026/03/16 13:04:56 Costs={time:1  memory:131072  parallelism:255  truncation_fixed:true}	-> 1.90042ms
2026/03/16 13:04:57 Costs={time:2  memory:131072  parallelism:255  truncation_fixed:true}	-> 7.188223ms
2026/03/16 13:04:57 Costs={time:4  memory:131072  parallelism:255  truncation_fixed:true}	-> 20.034908ms
2026/03/16 13:04:57 Costs={time:8  memory:131072  parallelism:255  truncation_fixed:true}	-> 44.863474ms
2026/03/16 13:04:57 Costs={time:16  memory:131072  parallelism:255  truncation_fixed:true}	-> 96.694619ms
2026/03/16 13:04:58 Costs={time:32  memory:131072  parallelism:255  truncation_fixed:true}	-> 127.422622ms
2026/03/16 13:04:59 Costs={time:64  memory:131072  parallelism:255  truncation_fixed:true}	-> 152.654053ms
2026/03/16 13:05:00 Costs={time:128  memory:131072  parallelism:255  truncation_fixed:true}	-> 300.801486ms
2026/03/16 13:05:03 Costs={time:256  memory:131072  parallelism:255  truncation_fixed:true}	-> 591.775448ms
2026/03/16 13:05:07 Costs={time:512  memory:131072  parallelism:255  truncation_fixed:true}	-> 1.084762271s
2026/03/16 13:05:07 Creating config at "/etc/fscrypt.conf" with source:custom_passphrase  hash_costs:{time:467  memory:131072  parallelism:255  truncation_fixed:true}  options:{padding:32  contents:AES_256_XTS  filenames:AES_256_CTS  policy_version:2}
Created global config file at "/etc/fscrypt.conf".
2026/03/16 13:05:07 Reading config from "/etc/fscrypt.conf"
2026/03/16 13:05:07 creating context for user "root"

I cannot tell what it exactly does but it shows high CPU utilization.

When I run fscript status it also hangs but contrary to fscrypt setup cannot be aborted by CTRL+C and shows no CPU utilization.
Even with --verbose I get no output at all.

Any ideas what can cause this or how to debug and resolve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions