Filed upstream on GNOME GitLab:

- Issue (full analysis: core dump backtrace, root cause, race mechanism, 
reproduction): https://gitlab.gnome.org/GNOME/gdm/-/work_items/1113
- Merge request with the fix (separate pending slot for authd custom JSON 
requests; graceful collision handling instead of the g_assert abort; NULL 
guards; teardown cancellation): 
https://gitlab.gnome.org/GNOME/gdm/-/merge_requests/421

The MR was validated in an Ubuntu 26.04 VM against the exact conditions
from the production crash:

- deterministic reproduction (harness simulating the stale pending_invocation 
state from the core dump): unpatched worker aborts on every unlock with the 
identical assertion and destroys the session; patched worker does not abort, 
the racing query is cancelled cleanly and the session survives;
- production unlock flow (authd JSON handshake + pam_unix password prompt, both 
query slots in use): 3 consecutive successful unlocks with the patched worker, 
no assertions.

The revision also addresses an independent maintainer review of the
first proposal (newest-query-wins semantics for classic prompts so a
user's answer cannot complete an unrelated pending invocation; refusal +
no emission for concurrent custom JSON requests; NULL guards on the
error paths; teardown cancellation).

An authd-side follow-up (pam_authd keeps using the gdm JSON channel from
background threads after returning PAM_IGNORE for the local broker,
which creates the overlap) will be filed separately against authd.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gdm3 in Ubuntu.
https://bugs.launchpad.net/bugs/2174396

Title:
  gdm-session-worker aborts on unlock when authd CustomJSONRequest races
  with a password prompt (session destroyed)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2174396/+subscriptions


-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to