#987360 swaylock: Occassional unlock without password entered

Package:
swaylock
Source:
swaylock
Description:
Screen locker for Wayland
Submitter:
Pelle
Date:
2024-05-13 17:39:06 UTC
Severity:
important
Tags:
#987360#5
Date:
2021-04-22 10:28:24 UTC
From:
To:
Dear Maintainer,

I'm running Sway and use Swaylock to lock the screen when the laptop is asleep.
Sometimes when resuming from sleep, Swaylock will respond to the first keypress
of the password and display a spinner, but then freeze for about half a minute
and then just disappear and thereby allow access to Sway without the password
being entered.

I am not yet sure of the exact conditions that cause this issue but it's
happened >10 times so far on my system.

#987360#10
Date:
2021-04-23 15:46:29 UTC
From:
To:
* Pelle <pelle@riseup.net> [210423 15:45]:

Sounds like it crashes?

Please install swaylock-dbgsym and see if you can get a coredump.

Chris

#987360#15
Date:
2021-04-25 15:07:44 UTC
From:
To:
Here's a couple of coredumps.
#987360#20
Date:
2021-05-10 12:55:11 UTC
From:
To:
Here's another coredump.
#987360#25
Date:
2021-05-20 12:29:54 UTC
From:
To:
Pelle,



Would you be able to add a stack trace?
  Here, or directly with the upstream:
https://github.com/swaywm/swaylock/issues/181





Thanks.

#987360#30
Date:
2021-05-31 13:28:17 UTC
From:
To:
It might not have reached him, the Debian bug tracker defaults to not
sending a copy to the submitter.

I'll answer there with a stacktrace based on the coredump.

cu
Adrian

#987360#41
Date:
2021-08-17 09:31:58 UTC
From:
To:
I'm sad to see that we shipped Bullseye without an essential component
of Sway. Is there anything I can do to assist in getting this bug fixed,
perhaps for a potential future bullseye-packports package?

#987360#46
Date:
2022-04-09 12:54:50 UTC
From:
To:
Hi Pelle,

You reported this issue for swaylock 1.5-2.

Do you still experience same isue with swaylock 1.6-1 now in Debian
unstable?

Perhaps sensible to lower severity of this issue, to allow more exposure
to it in Debian testing - and then hopefully close it for good soon,
when work on ext-session-lock-v1 is finalized:
https://github.com/swaywm/sway/pull/6879

Also, please note that you have been kindly requested to also share a
stack trace: https://bugs.debian.org/987360#25


Kind regards,

 - Jonas

#987360#51
Date:
2022-04-11 08:44:44 UTC
From:
To:
Hi all.

Jonas Smedegaard <dr@jones.dk> writes:

I cannot answer for Pelle, but I was also experiencing this bug back
when it was reported. FWIW: I'm unable to reproduce it with 1.6-1. That
being said, triggering the bug does seem somewhat stochastic, so I can't
rule out that a bunch more suspend/resume cycles would trigger it. But
so far, so good!

I agree; I think we can lower the severity and let swaylock back into
testing, and just raise the severity back up if anyone is able to
reproduce on 1.6-1.


 Best,
 Gard

#987360#56
Date:
2022-04-11 18:22:06 UTC
From:
To:
Same here, no crashes recently, yay, however, I think that this crash bug
illustrates the more general issue that the lock screen is bypassed on
any crash. Swaylock should be able to restart itself on failure, perhaps
with a daemon. There could be more vulnerabilities of this class, right?
I believe XScreensaver has a strategy for mitigating these types of
vulns too.

Thank you so much for your work. I wish I knew C and could help, but now
I can only complain and hope someone else fixes it. I could probably
write a daemon in shell script though if such a patch would be accepted,
although there are probably more elegant solutions to this in the swaylock code itself.

#987360#61
Date:
2022-04-12 08:29:59 UTC
From:
To:
Pelle <pelle@riseup.net> writes:

Great!

Indeed. I believe this is what Jonas was referring to when he linked to
https://github.com/swaywm/sway/pull/6879 (it is about Sway supporting an
extension to the Wayland protocol for performing this kind of locking
reliably).

This is of course the right way forward, but for now, I think we at
least should downgrade the severity of this bug and let swaylock
re-enter testing.


 Best,
 Gard