#1146120 keepassxc-full: Suspend fails when database opened on SSHFS filesystem

Package:
keepassxc-full
Source:
keepassxc-full
Description:
Cross Platform Password Manager
Submitter:
Sean Lauritzen
Date:
2026-08-30 02:13:01 UTC
Severity:
normal
#1146120#5
Date:
2026-08-30 02:01:22 UTC
From:
To:
Dear Maintainer,

When the currently opened database is on an SSHFS Fuse filesystem, the
keepassxc process fails to suspend when the device goes to sleep. The
process hangs for twenty seconds before being forced to suspend, as
indicated by the included dmesg log. Do note the information from the
WiFi interface (a RTL8821CE chip). It sleeps when the lid closes, so
obviously the filesystem would not very responsive when keepassxc is
trying to suspend.

This bug affects my personal laptop, a HP Pavilion 15. When I close the
lid, the screen and fan remain on indefinitely. Upon opening the lid,
the entire system is unresponsive for 20+ seconds. This behavior only
occurs when keepassxc is running with my database unlocked. This bug is
quite annoying and may not be reproducible, so I am willing to help with
testing any solutions/patches.

/etc/mtab entry:
desktop:/ /mnt/desktop fuse.sshfs
rw,nosuid,nodev,relatime,user_id=1000,group_id=1000,default_permissions,allow_other
0 0

dmesg log:
[50227.427980] PM: suspend entry (s2idle)
[50227.433938] Filesystems sync: 0.005 seconds
[50227.435325] Freezing user space processes
[50247.437721] Freezing user space processes failed after 20.002 seconds
(1 tasks refusing to freeze, wq_busy=0):
[50247.437768] task:keepassxc       state:D stack:0     pid:267539
tgid:267539 ppid:1      flags:0x00004006
[50247.437780] Call Trace:
[50247.437784]  <TASK>
[50247.437791]  __schedule+0x505/0xc00
[50247.437804]  schedule+0x27/0xc0
[50247.437809]  request_wait_answer+0xd0/0x2a0
[50247.437821]  ? __pfx_autoremove_wake_function+0x10/0x10
[50247.437830]  __fuse_simple_request+0xd7/0x290
[50247.437841]  fuse_dentry_revalidate+0x132/0x340
[50247.437847]  ? fuse_do_getattr+0x154/0x200
[50247.437858]  lookup_fast+0xce/0xf0
[50247.437868]  walk_component+0x1f/0x150
[50247.437874]  link_path_walk.part.0.constprop.0+0x21e/0x390
[50247.437881]  path_lookupat+0x3e/0x1a0
[50247.437887]  filename_lookup+0xde/0x1d0
[50247.437898]  vfs_statx+0x8d/0x100
[50247.437908]  do_statx+0x63/0xa0
[50247.437920]  __x64_sys_statx+0x98/0xe0
[50247.437930]  do_syscall_64+0x87/0x1b0
[50247.437936]  ? __memcg_slab_free_hook+0xf7/0x140
[50247.437946]  ? kmem_cache_free+0x3a4/0x440
[50247.437953]  ? arch_exit_to_user_mode_prepare.isra.0+0x75/0xa0
[50247.437959]  ? syscall_exit_to_user_mode+0x37/0x1b0
[50247.437965]  ? do_syscall_64+0x93/0x1b0
[50247.437972]  ? vfs_write+0xf8/0x440
[50247.437980]  ? arch_exit_to_user_mode_prepare.isra.0+0x16/0xa0
[50247.437985]  ? syscall_exit_to_user_mode+0x37/0x1b0
[50247.437990]  ? do_syscall_64+0x93/0x1b0
[50247.437996]  ? arch_exit_to_user_mode_prepare.isra.0+0x16/0xa0
[50247.438000]  ? syscall_exit_to_user_mode+0x37/0x1b0
[50247.438005]  ? do_syscall_64+0x93/0x1b0
[50247.438011]  ? vfs_write+0xf8/0x440
[50247.438015]  ? arch_exit_to_user_mode_prepare.isra.0+0x16/0xa0
[50247.438020]  ? syscall_exit_to_user_mode+0x37/0x1b0
[50247.438025]  ? do_syscall_64+0x93/0x1b0
[50247.438030]  ? arch_exit_to_user_mode_prepare.isra.0+0x16/0xa0
[50247.438035]  ? syscall_exit_to_user_mode+0x37/0x1b0
[50247.438040]  ? do_syscall_64+0x93/0x1b0
[50247.438044]  ? do_syscall_64+0x93/0x1b0
[50247.438049]  ? do_syscall_64+0x93/0x1b0
[50247.438053]  ? clear_bhb_loop+0x70/0xc0
[50247.438062]  ? clear_bhb_loop+0x70/0xc0
[50247.438069]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[50247.438077] RIP: 0033:0x7f5dbb22035a
[50247.438119] RSP: 002b:00007ffc89a2f588 EFLAGS: 00000206 ORIG_RAX:
000000000000014c
[50247.438126] RAX: ffffffffffffffda RBX: 0000564ec7a07c40 RCX:
00007f5dbb22035a
[50247.438130] RDX: 0000000000000900 RSI: 0000564ec7a0e6e8 RDI:
00000000ffffff9c
[50247.438134] RBP: 0000000000510000 R08: 00007ffc89a2f5e0 R09:
0000000000000001
[50247.438138] R10: 0000000000000fff R11: 0000000000000206 R12:
00007ffc89a2f5c0
[50247.438141] R13: 00007ffc89a2f5b8 R14: 0000564ec7a07c60 R15:
0000000000010000
[50247.438149]  </TASK>
[50247.438575] OOM killer enabled.
[50247.438578] Restarting tasks ... done.
[50247.439001] random: crng reseeded on system resumption
[50247.566905] PM: suspend exit
[50253.821574] wlo1: authenticate with f8:c6:50:d7:2d:ec (local
address=74:97:79:66:55:ad)
[50253.844324] wlo1: send auth to f8:c6:50:d7:2d:ec (try 1/3)
[50253.863473] wlo1: authenticated
[50253.864162] wlo1: associate with f8:c6:50:d7:2d:ec (try 1/3)
[50253.870480] wlo1: RX AssocResp from f8:c6:50:d7:2d:ec (capab=0x1111
status=0 aid=4)
[50253.870885] wlo1: associated
[50253.908404] wlo1: Limiting TX power to 30 (30 - 0) dBm as advertised
by f8:c6:50:d7:2d:ec