https://bugs.kde.org/show_bug.cgi?id=528042

Harald Sitter <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/kscreenlocker/-/commit/a |ma/kscreenlocker/-/commit/8
                   |352e263f201ed6dd5ac76cab85b |e02b5832aa9bb7da09f18cac40f
                   |4b052de227c4                |ecc7cf8c3c72

--- Comment #4 from Harald Sitter <[email protected]> ---
Git commit 8e02b5832aa9bb7da09f18cac40fecc7cf8c3c72 by Harald Sitter.
Committed on 18/11/2026 at 16:08.
Pushed by sitter into branch 'Plasma/6.8'.

Greeter: don't select a remembered authenticator that is disabled

The greeter remembers which authenticator was last used and tries to select it
again the next time it starts. However, if that authenticator has since been
disabled (for example, Face=false after a face unlock), it won't exist in
`PAMAuthenticatorModel`. This leaves `m_hash.value()` with a null descriptor,
which `isFunctional()` then dereferences.

As a result, the greeter crashes on startup. After three consecutive restarts,
KWin eventually falls back to the emergency screen.

Fall back to the default authenticator if the remembered one is disabled or
unrecognised. Also make sure `markDefunct()` and `isFunctional()` safely handle
authenticators with no descriptor.


(cherry picked from commit 1c621deb33122ee1cd086c1b3a377b77de874224)

Co-authored-by: Rishon Jonathan R <[email protected]>

M  +9    -0    autotests/CMakeLists.txt
A  +70   -0    autotests/authenticatorstest.cpp     [License: GPL(v2.0+)]
M  +10   -2    greeter/pamauthenticatormodel.cpp
M  +1    -0    greeter/pamauthenticatormodel.h
M  +7    -2    greeter/pamauthenticators.cpp

https://invent.kde.org/plasma/kscreenlocker/-/commit/8e02b5832aa9bb7da09f18cac40fecc7cf8c3c72

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to