Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 360E6C4332F for ; Tue, 4 Jan 2022 22:32:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235541AbiADWb7 (ORCPT ); Tue, 4 Jan 2022 17:31:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235451AbiADWb6 (ORCPT ); Tue, 4 Jan 2022 17:31:58 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B770DC06179B for ; Tue, 4 Jan 2022 14:31:57 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id bp20so84889581lfb.6 for ; Tue, 04 Jan 2022 14:31:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=drummond.us; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WCROm2fnDVp3gJHoFF4FSh0CLwqqTwPGgd5WC3cykAE=; b=SpNAIy18+a+BDF8ohbOhhPTgn+rzzWGPHdpXue1Z95/qQvcACFPfls+EhsBOb9bJ5I J4obAOpt6rzp6Cc6ysV/HzbOKr1fr3e+TeLO6bRMnYdo3Gyh9nb1rzv1ICxH2cvlIvP1 O7zLwOaJVfjhHVFevNE78XtRHOJLnOt4OvZNOrtO4+Qth9yQuKO3Y0zMqJxHhe1sPN68 AsVbfWMCG2xnfSZ0gRMgCWFuQi9faGM0w08EmIWjCfBZLojXQfuuYl5i08TleIW/7b/n nzMZzBq9PSmCXV2xi+HfGLAjucKoCMHpfD9Bcb6PeCRSN1t/e4GZt0e33JDtOpwXUI3r +ijA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WCROm2fnDVp3gJHoFF4FSh0CLwqqTwPGgd5WC3cykAE=; b=avz7rE1VwFrgpFvWNI72uHW63YsN6ng6M2Xh4lzmnlWRieY3nkC6O1zoqEAhH4rs6a e8j9/dY4hfAObPLftXInzRR1R9xMnAsMNNQfnB0HtYAdRy3UqGXGpPq/M3umRATURCfk BYeA1DvtQPEsxm9wQvVgzAj+8XbZKgXxolkplESlWyFjy9li8HT+H50YVk198ZvDAJb/ h8wmr36WD4ZAP+M95jEkvbiKPcnXv+ql6u+DR/xEqT0oOdmZsT/ukgU8BM+sRs92BeIn aK06emJ7ZlY6ZnLX0/WUGvQsVr7+hYy0/udL2CtCRl9So1Qn/cl7fl5kxILXOSgqeJnd P/Yg== X-Gm-Message-State: AOAM532d+GFlgH56rjeu1/4AGCEzPbv38KEA4wIGyN1Q4bPS1Les/21A pc8UV+Q57FTx8NVk8QA2SDhscSl4fV4JV5Lt4LvRFg== X-Google-Smtp-Source: ABdhPJx1kX6sFLTseOkg2YWGeBhi1W6ClRmDNwQ/+U2YIr6vghHpml3Y6bKghVPjgaFOMW5MDitHq9bLobHNxLYmId8= X-Received: by 2002:a05:6512:ba9:: with SMTP id b41mr43938123lfv.529.1641335515666; Tue, 04 Jan 2022 14:31:55 -0800 (PST) MIME-Version: 1.0 References: <20220103181956.983342-1-walt@drummond.us> <87iluzidod.fsf@email.froward.int.ebiederm.org> <87pmp79mxl.fsf@email.froward.int.ebiederm.org> In-Reply-To: From: Walt Drummond Date: Tue, 4 Jan 2022 14:31:44 -0800 Message-ID: Subject: Re: [RFC PATCH 0/8] signals: Support more than 64 signals To: "Theodore Ts'o" Cc: "Eric W. Biederman" , aacraid@microsemi.com, viro@zeniv.linux.org.uk, anna.schumaker@netapp.com, arnd@arndb.de, bsegall@google.com, bp@alien8.de, chuck.lever@oracle.com, bristot@redhat.com, dave.hansen@linux.intel.com, dwmw2@infradead.org, dietmar.eggemann@arm.com, dinguyen@kernel.org, geert@linux-m68k.org, gregkh@linuxfoundation.org, hpa@zytor.com, idryomov@gmail.com, mingo@redhat.com, yzaikin@google.com, ink@jurassic.park.msu.ru, jejb@linux.ibm.com, jmorris@namei.org, bfields@fieldses.org, jlayton@kernel.org, jirislaby@kernel.org, john.johansen@canonical.com, juri.lelli@redhat.com, keescook@chromium.org, mcgrof@kernel.org, martin.petersen@oracle.com, mattst88@gmail.com, mgorman@suse.de, oleg@redhat.com, pbonzini@redhat.com, peterz@infradead.org, rth@twiddle.net, richard@nod.at, serge@hallyn.com, rostedt@goodmis.org, tglx@linutronix.de, trond.myklebust@hammerspace.com, vincent.guittot@linaro.org, x86@kernel.org, linux-kernel@vger.kernel.org, ceph-devel@vger.kernel.org, kvm@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-m68k@vger.kernel.org, linux-mtd@lists.infradead.org, linux-nfs@vger.kernel.org, linux-scsi@vger.kernel.org, linux-security-module@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The only standard tools that support SIGINFO are sleep, dd and ping, (and kill, for obvious reasons) so it's not like there's a vast hole in the tooling or something, nor is there a large legacy software base just waiting for SIGINFO to appear. So while I very much enjoyed figuring out how to make SIGINFO work ... I'll have the VSTATUS patch out in a little bit. I also think there might be some merit in consolidating the 10 'sigsetsize != sizeof(sigset_t)' checks in a macro and adding comments that wave people off on trying to do what I did. If that would be useful, happy to provide the patch. On Tue, Jan 4, 2022 at 2:23 PM Theodore Ts'o wrote: > > On Tue, Jan 04, 2022 at 04:05:26PM -0600, Eric W. Biederman wrote: > > > > That is all as expected, and does not demonstrate a regression would > > happen if SIGPWR were to treat SIG_DFL as SIG_IGN, as SIGWINCH, SIGCONT, > > SIGCHLD, SIGURG do. It does show there is the possibility of problems. > > > > The practical question is does anything send SIGPWR to anything besides > > init, and expect the process to handle SIGPWR or terminate? > > So if I *cared* about SIGINFO, what I'd do is ask the systemd > developers and users list if there are any users of the sigpwr.target > feature that they know of. And I'd also download all of the open > source UPS monitoring applications (and perhaps documentation of > closed-source UPS applications, such as for example APC's program) and > see if any of them are trying to send the SIGPWR signal. > > I don't personally think it's worth the effort to do that research, > but maybe other people care enough to do the work. > > > > I claim, though, that we could implement VSTATUS without implenting > > > the SIGINFO part of the feature. > > > > I agree that is the place to start. And if we aren't going to use > > SIGINFO perhaps we could have an equally good notification method > > if anyone wants one. Say call an ioctl and get an fd that can > > be read when a VSTATUS request comes in. > > > > SIGINFO vs SIGCONT vs a fd vs something else is something we can sort > > out when people get interested in modifying userspace. > > > Once VSTATUS support lands in the kernel, we can wait and see if there > is anyone who shows up wanting the SIGINFO functionality. Certainly > we have no shortage of userspace notification interfaces in Linux. :-) > > - Ted