guix: shepherd pid 1 holds /dev/console

  • Open
  • quality assurance status badge
Details
One participant
  • muradm
Owner
unassigned
Submitted by
muradm
Severity
normal
M
M
muradm wrote on 24 Aug 2021 20:37
(address . bug-guix@gnu.org)
87pmu2n0qn.fsf@muradm.net
On IRC chat we identified an issue related to linux SAK, which
is explained here

Following the check what processes will be SAK'ed:

~# ls -l /proc/[0-9]*/fd/* | grep console
lrwx------ 1 root root 64 Aug 24 21:22 /proc/1/fd/1 ->
/dev/console
lrwx------ 1 root root 64 Aug 24 21:22 /proc/1/fd/2 ->
/dev/console
l-wx------ 1 root root 64 Aug 24 21:22 /proc/578/fd/4 ->
/dev/console
lrwx------ 1 root root 64 Aug 24 21:22 /proc/593/fd/1 ->
/dev/console
lrwx------ 1 root root 64 Aug 24 21:22 /proc/593/fd/2 ->
/dev/console
lrwx------ 1 root root 64 Aug 24 20:03 /proc/705/fd/1 ->
/dev/console
lrwx------ 1 root root 64 Aug 24 20:03 /proc/705/fd/2 ->
/dev/console
lrwx------ 1 root root 64 Aug 24 21:22 /proc/909/fd/1 ->
/dev/console
lrwx------ 1 root root 64 Aug 24 21:22 /proc/909/fd/2 ->
/dev/console

As it is seen from above output, pid 1 which is shepherd holds
/dev/console
making linux SAK feature useless. When SAK command issued by
shortcut keys,
all above proceses gets killed including pid 1 which is shepherd,
causing
system to stall.
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 50193@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 50193
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch