Debian Patches

Status for kwin/4:6.5.4-2

Patch Description Author Forwarded Bugs Origin Last update
upstream_fix_power_mode_freezing.patch [PATCH] core/sessions: don't take ownership of an fd that Qt will close

QDBusUnixFileDescriptor closes the file descriptor in its destructor, if we
want to take ownership of it, we need to duplicate the file descriptor.
If we don't duplicate it, but directly take "ownership" of the file descriptor,
the following sequence of events can happen:

1. ~QDBusUnixFileDescriptor closes file descriptor A
2. some new fd B is allocated, which happens to have the same handle as fd A
3. ~FileDescriptor closes fd A, but it has the same handle as fd, so it actually
closes fd B!
4. whenever fd B is used, we run into problems

To make such issues easier to debug in the future, this also adds debug logging
for when closing a file descriptor fails.

(cherry picked from commit 30a7f52841dd1c449965d0c9d5cd4915697ab129)
Xaver Hugl <xaver.hugl@kde.org> no upstream 2025-12-12

All known versions for source package 'kwin'

Links