From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WFX1G8I9JWHhPQEAgWs5BA (envelope-from ) for ; Tue, 24 Aug 2021 20:43:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8JWPF8I9JWEYJAAA1q6Kng (envelope-from ) for ; Tue, 24 Aug 2021 18:43:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 70AE9CD71 for ; Tue, 24 Aug 2021 20:43:13 +0200 (CEST) Received: from localhost ([::1]:33760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIbOB-0003ck-5L for larch@yhetil.org; Tue, 24 Aug 2021 14:43:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIbO2-0003c5-Rr for bug-guix@gnu.org; Tue, 24 Aug 2021 14:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33681) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mIbO2-0005EX-KH for bug-guix@gnu.org; Tue, 24 Aug 2021 14:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mIbO2-0005Sz-HG for bug-guix@gnu.org; Tue, 24 Aug 2021 14:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50193: guix: shepherd pid 1 holds /dev/console Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 24 Aug 2021 18:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50193 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 50193@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162983053820940 (code B ref -1); Tue, 24 Aug 2021 18:43:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Aug 2021 18:42:18 +0000 Received: from localhost ([127.0.0.1]:45222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIbNK-0005Rg-GR for submit@debbugs.gnu.org; Tue, 24 Aug 2021 14:42:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:37130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIbNJ-0005RY-0k for submit@debbugs.gnu.org; Tue, 24 Aug 2021 14:42:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIbNI-0003Yt-Ot for bug-guix@gnu.org; Tue, 24 Aug 2021 14:42:16 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:46758) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mIbNG-0004gs-AM for bug-guix@gnu.org; Tue, 24 Aug 2021 14:42:16 -0400 Received: by mail-wr1-x435.google.com with SMTP id f5so32665349wrm.13 for ; Tue, 24 Aug 2021 11:42:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muradm-net.20150623.gappssmtp.com; s=20150623; h=user-agent:from:to:subject:date:message-id:mime-version; bh=nYHIM8HnuwvqX0rPpC7VFNNk5iZeoWsbvsGR5olTYzw=; b=NfX+8o2viu0xXImfot/Pg4tcgeIG/Hz5nBpi7laXArsHTzSLDy9Ypt/yoI/tx3HqZj n87lLN1gytJzEUM52okL3pr8NoDHKcYkzGev4DnRuAtIOnCkaPwLd/vuhsEMqFMA2kks QBwhD+OQKrjA7ZRmQOeaNr9Gr0j+gavNeDq62uR8HMHrEFEtGtouWxvCf4BS5+YH3DJ4 o/6PAFofOSnKOaD0POy9j7pjRqF/jpDdVhucIJgYSd7t9OejIc02LmzrlVJTDqXwigJ1 K2AsyEGO1RBc3EW45ZWFaarupdotHiTK7vpFv1sboXdA7QUhMic3HZydCLpY+l/QpbvK 2tFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=nYHIM8HnuwvqX0rPpC7VFNNk5iZeoWsbvsGR5olTYzw=; b=dQDHBR8Wcm88U0ttoiaxYR/2HnwQRunpv4rwBrKLZgkc2fHdSSdA1xlTXNnYzYfsjh kDmr3K/vFNL2hQJs6RcryQIEn+dycbQpyX5T+cMw2+MRGNORlxudn7FLGuj50rkWT8Cf 7nnFFwYAYb0gvjlxbeR8cBFM4GIp5pX8hF/ASMjyALOoTrRvLfv4sl0x0CSFc+pvNLun 3MGwebJPTzKw0DkeXUfJ7snVvuK2rS1DOSLFg7Ql02R78ZPY3SB9KErxL69fXTX5p/oD V0XeMjxNhErzlb3zKt0NbSzRaFBkHydgIYuNTnQEVwAj6YA0GNpGnys39LNXsToEWdR2 fsNw== X-Gm-Message-State: AOAM532S3n/jzc9EkZB+ANyMjIrUa9rJuLEom8+rkBxkurv2JYShP2PE WMY/yDtqzlbs2M2xzQRVu0ek8adFYuXiWg== X-Google-Smtp-Source: ABdhPJzxrQ/Voo8JzqHXBcHmtzwE8oHFrTWcB5hC4745b4y7Z8Ft2bCqfiMvUS5LF702U3Ba60i4Ng== X-Received: by 2002:a05:6000:124f:: with SMTP id j15mr4367131wrx.101.1629830531845; Tue, 24 Aug 2021 11:42:11 -0700 (PDT) Received: from nomad-lp1 ([188.58.22.235]) by smtp.gmail.com with ESMTPSA id z126sm3383716wmc.11.2021.08.24.11.42.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Aug 2021 11:42:11 -0700 (PDT) User-agent: mu4e 1.6.3; emacs 28.0.50 From: muradm Date: Tue, 24 Aug 2021 21:37:59 +0300 Message-ID: <87pmu2n0qn.fsf@muradm.net> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: none client-ip=2a00:1450:4864:20::435; envelope-from=mail@muradm.net; helo=mail-wr1-x435.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629830594; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=nYHIM8HnuwvqX0rPpC7VFNNk5iZeoWsbvsGR5olTYzw=; b=F5HKZ4lKs9voE/EaMfALuq0XdL0QtTEODezID9Se9jt7/6jmHKTQFwRRXy9K7Ion3Y1/Ch NVnN6TYJleBHJ8iVxeGXXmQJI8ImGgqkwKTGDn89sLiPPTfcMMg69UbZhIoRW5GodseS2n XWfOSGwXwWtvGPVj4qW9H2W/TBi6+4IqxwFOWmMiGlf4xL8Ni0p34mpug1e9Uualw1RSKg xO7j+urehMs8dbPRS7CGrUX7ldGQa/S55Eftg9p5XLu9AnIDsSps6RaDqtaCxCd6tcI6kt UYUgV8oD61zAd7eOd0b5hdY6PTO2FKCtuXh7dPYfMiHi+OabFcQQ1h+Ul9OxdQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629830594; a=rsa-sha256; cv=none; b=RThJ9tmf1JqAOEZrorwJ3XDTvgba6sj2GOvxTqq3m6XbM0dXTJZIn1lOEK/7ZnRjLe/Kpz iGia2eDrIk2tpbeO05xZ3RI3SNVFdy8A3X9d12lKNgrQy3yAwGd7tYUd6LmvrtR5l57DTO NBHzXm9RLePVk81RXJmz+iUetWEW8pU58lqJXUQg3toLtbsgL0tpbHSUbsjfexbzVnkxoH PcHJeb7clNAo6Wc92wx5SKuns6/z4asCdlb1KiBbLZOBnRed33X3ndz8tNID4KNQHxsFWK heJkkiKCszQDRyMO10Ua/DR7aSFigXPoOsmcx405nIWxPb56RNCWty7afjSxag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm-net.20150623.gappssmtp.com header.s=20150623 header.b=NfX+8o2v; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm-net.20150623.gappssmtp.com header.s=20150623 header.b=NfX+8o2v; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 70AE9CD71 X-Spam-Score: -1.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4n2Mt5q+UVJa On IRC chat we identified an issue related to linux SAK, which is explained here https://www.kernel.org/doc/html/latest/security/sak.html 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.