Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3651719ybi; Mon, 10 Jun 2019 14:10:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxW9y74l66wKb9GCDEWrTEx3jg535a2Xmh/KGFy3o+HW1oGdk0RxUaESCkGetww5IQ0hSXo X-Received: by 2002:a17:902:d717:: with SMTP id w23mr28999932ply.275.1560201020554; Mon, 10 Jun 2019 14:10:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560201020; cv=none; d=google.com; s=arc-20160816; b=DMUAovDOMtNTaeo7RYiBy1N3FasvlFs3kzZTvjEjvCIJvGbR+akkmSgTTN/3fEvHDx nU0eFzzVpEfr3qg/dxjZUTC/feKCC4ola9JtMVm3DnMCi5q23wnMff8ltxpC9MWa54kM jmX0VN2OlMlQSKkfpNqfUrEKUvyqAa0NF7MOMEvSJQkl0XmsJS0+XuDvIojlZy6qbe/A qy5TO+XphgVcCyHL5SkHAeuTm0pV8ZfVhnnnwtP4F5H8Md13n0Gq3JXIk5G2JvfA+cKG X21SUGLdfmJeVakm0KmoKVPqQgfE2Z0rHYo8bQGJZ1E7xIcFj3TdsS51TcPiOFeSD3u3 fmHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=RnqJvuP47eygGAcCI6o0uHW2YRUzwdS2mc5Ld3Nd0qg=; b=FWRGRERbm0FP93/j/Vvv+SgyQONtq0dE8oEHytC+7vgz9FxjiaUXaOBn9OzpYQJpxN +A4/xn/NkzXUXBr3nWncqSNNfH05jI0Y9GOPQejIgq2vV/dABp8+3CWe2KpH/YeCkOIz z2rxLaGsVYUM1fWEwSgxAYGMAH8b3UvtEcpOP/51PzHg7DB6r4GcF6E6Fq94gUUk4Iyr XSY05eRNcT5Mh3b43i0mjXF48ATAhAQt17oKD0sVUVoRTrV5mNGf2hVgnXXJ3bwuj6v/ qlxZXNsLw8n7Swy1elBYyOE9zf5CYbBM5PrTwz3usg1R3dcyXMpVDU5EZ74NyyItTWUk 1Pyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b=TvZtoqZb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si493859pjs.10.2019.06.10.14.10.05; Mon, 10 Jun 2019 14:10:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b=TvZtoqZb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389785AbfFJVJ1 (ORCPT + 99 others); Mon, 10 Jun 2019 17:09:27 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:42727 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726663AbfFJVJ1 (ORCPT ); Mon, 10 Jun 2019 17:09:27 -0400 Received: by mail-oi1-f195.google.com with SMTP id s184so7313219oie.9 for ; Mon, 10 Jun 2019 14:09:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=RnqJvuP47eygGAcCI6o0uHW2YRUzwdS2mc5Ld3Nd0qg=; b=TvZtoqZbjQpegfCVWww5yb1sIBQbI2vFCZ+2g/WKSDMnmvZ7g0ZUr1jH24/VG+adbt tM9pqVnaK4zqgDgpNiyWwa4cEHXWwAp1chnHNbhAIUs07Qt5KYFTVN0nS4aCMdPawYsw aAb1LlawIeJ07zDUJjNasfCU3TsOb2pFCowJNfwtH1ikerpLpPE0WNtfBMJGmg9bty+G Jsg5ptgyzc5FnTmBZ3OW6xvqGcK6ISzYlCsc4x0mi+q+ZgbumcSsciozDCUvacAm8Pw9 lqndUJduHc226pY57AjtHpEypNWUKzc/Kfkwq8kOnpExipVG+uoUE+aKXZj9g9ZvFuV9 PT+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=RnqJvuP47eygGAcCI6o0uHW2YRUzwdS2mc5Ld3Nd0qg=; b=BQYKxY0GkaCpRjZw+CNVlhjvU2vtYDNwoOZqFVMaPYLWUcMWxdoEi2OpiuC9mKI1SY pJ64w497rUxmYk6LqtcVNk3nj0RsVLWcAd/pw909GcJL2TtFbIL5ds/gposjgshs78UR 7ipeKaXvjVAW+GkgrJCcvT0SecgGIMvupp8KbaCMd/GBLPcbmuX6yp8z3tazVo3gbzXo i82zAe2ELIqSwKGhWIBVehtd0A9vvfVpUVVCBSL4ViIsR9kA2heJ/BgnvhCYPiErDZ4v LTHfpI8JXs2Bf0IzT8Gx9R/Nlf03B/DHzrs47n49Oe5yKB+Fo4c+4CV7+rzQyQxhIpuc aVeA== X-Gm-Message-State: APjAAAXmL8L1gnsuuv0x950KG+3XhEMiTR4MyYFBwdPu4e+jeiUpgQvs aKSl0cnm9K+RPZywcg8TKd34BPefCzY= X-Received: by 2002:aca:318c:: with SMTP id x134mr12789946oix.125.1560200966914; Mon, 10 Jun 2019 14:09:26 -0700 (PDT) Received: from [192.168.1.5] (072-182-052-210.res.spectrum.com. [72.182.52.210]) by smtp.googlemail.com with ESMTPSA id b62sm4392772otc.9.2019.06.10.14.09.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 14:09:26 -0700 (PDT) Subject: Re: [PATCH 1/7] signal.h: Define SIGINFO on all architectures To: Arseny Maslennikov , Greg Kroah-Hartman , Jiri Slaby , Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org Cc: "Vladimir D . Seleznev" References: <20190605081906.28938-1-ar@cs.msu.ru> <20190605081906.28938-2-ar@cs.msu.ru> From: Rob Landley Message-ID: <43d9e091-7f7c-1175-dca9-06c5e547803d@landley.net> Date: Mon, 10 Jun 2019 16:10:39 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190605081906.28938-2-ar@cs.msu.ru> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/5/19 3:19 AM, Arseny Maslennikov wrote: > This complementary patch defines SIGINFO as a synonym for SIGPWR > on every architecture supported by the kernel. > The particular signal number chosen does not really matter and is only > required for the related tty functionality to work properly, > so if it does not suite expectations, any suggestions are warmly > welcome. This was the problem I saw last month: 32 bits worth of signal numbers already defined, gotta alias something. > SIGPWR looks like a nice candidate for this role, because it is > defined on every supported arch; it is currently only used to inform > PID 1 of power failures, and daemons that care about low-level > events do not tend to have a controlling terminal. /dev/console isn't a controlling tty so ctrl-T wouldn't send SIGPWR to PID 1 anyway. > However, on sparcs SIGPWR is a synonym for SIGLOST, a signal unique > to that architecture, with a narrow set of intended uses that do not > combine well with interactively requesting status. > SIGLOST is not used by any kernel code at the moment. > I'm not sure there is a more reasonable alternative right now. The fact it's already _been_ aliased once says it's a good candidate for it. The easy solution is don't support SIGINFO on sparc until the sparc guys figure out what to do there and add sparc support in a follow-up patch. Rob