[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADCN6nzT-Dw-AabtwWrfVRDd5HzMS3EOy8WkeomicJF07nQyoA@mail.gmail.com>
Date: Tue, 4 Jan 2022 14:31:44 -0800
From: Walt Drummond <walt@...mmond.us>
To: "Theodore Ts'o" <tytso@....edu>
Cc: "Eric W. Biederman" <ebiederm@...ssion.com>, aacraid@...rosemi.com,
viro@...iv.linux.org.uk, anna.schumaker@...app.com, arnd@...db.de,
bsegall@...gle.com, bp@...en8.de, chuck.lever@...cle.com,
bristot@...hat.com, dave.hansen@...ux.intel.com,
dwmw2@...radead.org, dietmar.eggemann@....com, dinguyen@...nel.org,
geert@...ux-m68k.org, gregkh@...uxfoundation.org, hpa@...or.com,
idryomov@...il.com, mingo@...hat.com, yzaikin@...gle.com,
ink@...assic.park.msu.ru, jejb@...ux.ibm.com, jmorris@...ei.org,
bfields@...ldses.org, jlayton@...nel.org, jirislaby@...nel.org,
john.johansen@...onical.com, juri.lelli@...hat.com,
keescook@...omium.org, mcgrof@...nel.org,
martin.petersen@...cle.com, mattst88@...il.com, mgorman@...e.de,
oleg@...hat.com, pbonzini@...hat.com, peterz@...radead.org,
rth@...ddle.net, richard@....at, serge@...lyn.com,
rostedt@...dmis.org, tglx@...utronix.de,
trond.myklebust@...merspace.com, vincent.guittot@...aro.org,
x86@...nel.org, linux-kernel@...r.kernel.org,
ceph-devel@...r.kernel.org, kvm@...r.kernel.org,
linux-alpha@...r.kernel.org, linux-arch@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-m68k@...r.kernel.org,
linux-mtd@...ts.infradead.org, linux-nfs@...r.kernel.org,
linux-scsi@...r.kernel.org, linux-security-module@...r.kernel.org
Subject: Re: [RFC PATCH 0/8] signals: Support more than 64 signals
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 <tytso@....edu> 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
Powered by blists - more mailing lists