Article View: linux.debian.bugs.dist
Article #4706Bug#1154149: kf6-kio: plasmashell freezes when a network/FUSE mount is unreachable (KMountPoint lstat()s every mount point; fixe...
From: Emmanuel Revah
Date: Mon, 16 Nov 2026 11:10
Date: Mon, 16 Nov 2026 11:10
181 lines
9282 bytes
9282 bytes
--=_50e544a8a8fdbf81b24aca78da7fdf46
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII;
format=flowed
Source: kf6-kio
Version: 6.13.0-6
Severity: important
Tags: patch fixed-upstream trixie
Dear Maintainer,
In trixie, the whole Plasma panel (task manager, launcher, tray, clock)
can
freeze for as long as a network or FUSE mount stays unreachable. That
can be
forever: the usual case is an sshfs mount whose ssh connection died
during
suspend. The only way out is to kill the mount.
Cause
-----
Since KF 6.11 (upstream commit 35e575eb, for KDE bug 494129),
KMountPoint::currentMountPoints() calls lstat() on every mount point to
get
its device id. If one of those mounts is a network/FUSE mount that no
longer
answers, that lstat() blocks until the server replies.
currentMountPoints() is called on the GUI thread in plasmashell.
KFilePlacesItem calls it for every fuse.sshfs device, to hide KDE
Connect's
own mounts. Any KFilePlacesModel in plasmashell therefore freezes the
shell
whenever a new sshfs mount appears while another mount is dead.
plasma-workspace's job notifications create a KFilePlacesModel on the
first
file transfer, and it lives for the whole session
(libnotificationmanager/job_p.cpp). From then on, any new sshfs mount
(KDE
Connect mounting a phone, for example) while another mount is
unreachable
freezes the panel. Here it happened right after a resume, when the
connection behind an sshfs mount had died during suspend.
Upstream fixed this in KF 6.23 with commit 4709688a, "kmountpoint: use
statx
to get device id":
https://invent.kde.org/frameworks/kio/-/commit/4709688a
Its message: "using stat on every mountpoint could lead to serious
performance issues when it comes to network mounts ... we use statx
which
allows us to ask the kernel for only a cached value ... This saves us a
network roundtrip and avoids blocking."
KF 6.24 then added AT_NO_AUTOMOUNT to the same call (part of 089402fe).
Without it, the new statx() would trigger autofs/systemd automounts,
which
lstat() never did. On a machine with automounted NFS, that brings back
the
same freeze whenever the NFS server is down. The attached backport
includes
that flag.
forky (6.30.0-1) and sid (6.32.0-1) already contain both changes. Only
trixie is affected.
Observed
--------
On the frozen plasmashell, the main thread was in request_wait_answer
(FUSE), in newfstatat(AT_FDCWD, "<sshfs mount point>", ...,
AT_SYMLINK_NOFOLLOW), i.e. an lstat() of the mount root. The ssh child
of
sshfs had died during suspend; sshfs itself was still running.
Reproduce (plain trixie, Plasma 6.3.6, KF 6.13.0-6)
---------------------------------------------------
1. Mount something with sshfs: sshfs host:/tmp ~/a
2. Copy any file with a KIO tool, e.g. kioclient copy of a few hundred
MB,
so that plasmashell shows a job and creates its places model.
3. Make the connection dead without unmounting:
kill -STOP <pid of the "ssh ... host sftp" process for ~/a>
4. Wait more than 20 s. sshfs answers from its own attribute cache until
then.
5. Mount another sshfs, e.g. sshfs host:/tmp ~/b
6. The panel freezes. cat /proc/$(pidof plasmashell)/wchan shows
request_wait_answer. It recovers on kill -CONT of the ssh process.
Tested
------
A/B run of the steps above, on the same machine, with the same trigger
each
time:
- long-running plasmashell, libKF6KIOCore 6.13.0-6: frozen
(lstat of the dead mount root)
- freshly started plasmashell, 6.13.0-6: frozen
(lstat of the dead mount root)
- freshly started plasmashell, 6.13.0-6 + attached patch only: no freeze
The patched library was built from the Debian 6.13.0-6 source with only
this patch added. It exports the same 1104 symbols.
Request
-------
Please consider the attached patch (a DEP-3 backport of 4709688a plus
the
AT_NO_AUTOMOUNT flag from 089402fe) for a trixie stable update.
-- System Information:
Debian Release: 13 (trixie)
Kernel: Linux 6.12.116+deb13-amd64
Versions: libkf6kiocore6 6.13.0-6, plasma-workspace 4:6.3.6-2, sshfs
3.7.3
--
Emmanuel Revah
--=_50e544a8a8fdbf81b24aca78da7fdf46
Content-Transfer-Encoding: base64
Content-Type: text/x-diff; charset=us-ascii;
name=kf6-kio_4709688a_kmountpoint-use-statx.patch
Content-Disposition: attachment;
filename=kf6-kio_4709688a_kmountpoint-use-statx.patch;
size=2180
RGVzY3JpcHRpb246IGttb3VudHBvaW50OiB1c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BVEJVRiBidWZmOyBRVF9MU1RBVChtcC0+ZC0+bV9t
b3VudFBvaW50LnRvTGF0aW4xKCkuY29uc3REYXRhKCksICZidWZmKSA9PSAwKSB7Ci0gICAgICAg
ICAgICAgICAgICAgICAgICBtcC0+ZC0+bV9kZXZpY2VJZCA9IGJ1ZmYuc3RfZGV2OwotICAgICAg
ICAgICAgICAgICAgICB9Ci0gICAgICAgICAgICAgICAgfSBlbHNlIHsKLSAgICAgICAgICAgICAg
ICAgICAgbXAtPmQtPm1fZGV2aWNlSWQgPSBtbnRfZnNfZ2V0X2Rldm5vKGZzKTsKKyAgICAgICAg
ICAgICAgICBpZiAoc3RydWN0IHN0YXR4IGJ1ZmY7IHN0YXR4KEFUX0ZEQ1dELCBtbnRfZnNfZ2V0
X3RhcmdldChmcyksIEFUX1NUQVRYX0RPTlRfU1lOQyB8IEFUX05PX0FVVE9NT1VOVCwgU1RBVFhf
SU5PLCAmYnVmZikgPT0gMCkgeworICAgICAgICAgICAgICAgICAgICBtcC0+ZC0+bV9kZXZpY2VJ
ZCA9IG1ha2VkZXYoYnVmZi5zdHhfZGV2X21ham9yLCBidWZmLnN0eF9kZXZfbWlub3IpOwogICAg
ICAgICAgICAgICAgIH0KIAogICAgICAgICAgICAgICAgIGlmIChpbmZvTmVlZGVkICYgTmVlZE1v
dW50T3B0aW9ucykgewo=
--=_50e544a8a8fdbf81b24aca78da7fdf46--
Technical Details
Message-ID:
<O02L0-ceSc-9@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!newsfeed.xs3.de!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!newsfeed.xs3.de!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Emmanuel Revah <bugreport@manurevah.com> Newsgroups: linux.debian.bugs.dist Subject: Bug#1154149: kf6-kio: plasmashell freezes when a network/FUSE mount is unreachable (KMountPoint lstat()s every mount point; fixed upstream in 6.23) Date: Mon, 16 Nov 2026 12:10:02 +0100 Message-ID: <O02L0-ceSc-9@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Nov 16 11:05:10 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Emmanuel Revah <bugreport@manurevah.com>, 1154149@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-qt-kde@lists.debian.org X-Debian-Pr-Message: report 1154149 X-Debian-Pr-Package: src:kf6-kio X-Debian-Pr-Keywords: fixed-upstream patch trixie X-Debian-Pr-Source: kf6-kio MIME-Version: 1.0 User-Agent: Roundcube Webmail X-Sender: bugreport@manurevah.com Content-Type: multipart/mixed; boundary="=_50e544a8a8fdbf81b24aca78da7fdf46" X-Greylist: delayed 572 seconds by postgrey-1.37 at buxtehude; Mon, 16 Nov 2026 11:02:20 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002941 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 181 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 16 Nov 2026 11:52:37 +0100 X-Original-Message-ID: <179482479483.37270.4741263688982115828@manurevah.com>