[PATCH xserver] xfree86/common: Fix VT leave lockup #103782

Michal Srb msrb at suse.com
Mon Nov 20 08:06:45 UTC 2017


On čtvrtek 16. listopadu 2017 21:28:05 CET Алексей Шилин  wrote:
> When xf86VTSwitchAway() returns true to xf86VTLeave(), the input
> mutex does not get unlocked. As the result, any other thread which
> later tries to execute input_lock() freezes forever, which in turn
> may lead to X server lockup.

I think that the input mutex is kept locked for a reason (although I do not 
know the reason), because it is then again unlocked at the end of xf86VTEnter. 
If you unlock it in xf86VTLeave, you will get a double unlock in xf86VTEnter.

Few days ago I sent alternative fix for this bug:
  Subject: [PATCH] os/inputthread: Force unlock when stopping thread.

  It did not get a response so far.

Michal Srb


More information about the xorg-devel mailing list