From: "Paul Gortmaker" <paul.gortmaker@windriver.com>
To: Luca Boccassi <Luca.Boccassi@microsoft.com>
Cc: "richard.purdie@linuxfoundation.org"
<richard.purdie@linuxfoundation.org>,
"openembedded-core@lists.openembedded.org"
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] systemd: dont spew hidepid mount errors for kernels < v5.8
Date: Fri, 15 Jan 2021 09:47:25 -0500 [thread overview]
Message-ID: <20210115144724.GM16838@windriver.com> (raw)
In-Reply-To: <a81ea7e632a26636d966540a86ec1978f557e63c.camel@microsoft.com>
[Re: [PATCH] systemd: dont spew hidepid mount errors for kernels < v5.8] On 15/01/2021 (Fri 09:57) Luca Boccassi wrote:
> On Fri, 2021-01-15 at 08:37 +0000, Richard Purdie wrote:
> > On Fri, 2021-01-15 at 00:26 -0500, Paul Gortmaker wrote:
> > > Recent systemd started using ascii args to "hidepid=" mount options
> > > for proc fs - unconditionally -- even though kernels older than v5.8
> > > emit an error message on each attempt:
> > >
> > > root@qemux86-64:~# cat /proc/version
> > > Linux version 5.4.87-yocto-standard (oe-user@oe-host) (gcc version 10.2.0 (GCC)) #1 SMP PREEMPT Fri Jan 8 01:47:13 UTC 2021
> > > root@qemux86-64:~# dmesg|grep proc:
> > > [ 29.487995] proc: Bad value for 'hidepid'
> > > [ 43.170571] proc: Bad value for 'hidepid'
> > > [ 44.175615] proc: Bad value for 'hidepid'
> > > [ 46.213300] proc: Bad value for 'hidepid'
> > > root@qemux86-64:~#
>
> Wouldn't it be better to patch the kernel to downgrade that message to
> debug level?
The problem is that the breakage is forced upon older kernels, so you'd
have to effectively mainline that kind of "fix" to v5.12 (where there is
no problem) and then you could in theory request it for v5.4 linux-stable
according to "stable rules".
Besides, if something with root/mount priv. is consistently trying to
drive a square peg into a round hole - by trying to mount something and
failing -- it should be something that a sysadmin would want to
investigate. Which is precisely why I am here now. I think burying it
at debug level is counterproductive to that.
> > > +The systemd maintainer has dismissed this as something people should
> > > +simply ignore[1] and has no interest in trying to avoid it by
> > > +proactively checking the kernel version, so people can safely assume
> > > +that they will never see this version check commit upstream.
> > > +
> > > +However, as can be seen above, telling people to just ignore it is not
> > > +an option, as we'll end up answering the same question and dealing with
> > > +the same bug over and over again.
> > > +
> > > +The commit that triggers this is systemd v247-rc1~378^2~3 -- so any
> > > +systemd 247 and above plus kernel v5.7 or older will need this.
> > > +
> > > +[1] https://github.com/systemd/systemd/issues/16896
> > > +
> > > +Upstream-Status: Actively hostile
> >
> > The status needs to be
> >
> > Upstream-Status: Denied [Actively hostile
> > https://github.com/systemd/systemd/issues/16896]
> >
> > (so our tools have an idea of what status patches are in)
>
> Paul, please, let's avoid loaded language - Denied is fine by itself
> and conveys what it needs to. I understand it can be frustrating when
> upstream maintainers do not agree with user assessments, but the linked
> discussion was polite and professional and there's no need to call it
> "hostile".
Normally I'd agree with you, but it isn't just this one thread/instance,
but instead *years* of continued "my way or the highway" behaviour
demonstrated by systemd on various lists like LKML, for all to see. In
any case, in the interest of not breaking existing tooling, and getting
the fix to our users, I am fine with it being changed to simply be:
Upstream-Status: Denied [https://github.com/systemd/systemd/issues/16896]
Paul.
--
>
> Also, speaking as an upstream maintainer, I'd be willing to review a
> patch that adds a log_debug notice to advise to ignore the error if the
> fallback path is taken. It's low cost and reasonable, so I don't think
> it would be a problem to merge it.
>
> > https://wiki.yoctoproject.org/wiki/Best_Known_Methods#Patch_Comments
>
> Richard, FYI this appears to be an empty page.
>
> --
> Kind regards,
> Luca Boccassi
next prev parent reply other threads:[~2021-01-15 14:47 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-15 5:26 [PATCH] systemd: dont spew hidepid mount errors for kernels < v5.8 Paul Gortmaker
2021-01-15 6:02 ` [OE-core] " Konrad Weihmann
2021-01-15 8:37 ` Richard Purdie
2021-01-15 9:57 ` Luca Boccassi
2021-01-15 10:14 ` Richard Purdie
2021-01-15 10:20 ` Luca Boccassi
2021-01-15 14:47 ` Paul Gortmaker [this message]
2021-01-15 15:37 ` Luca Boccassi
2021-01-15 16:07 ` [OE-core] " Bruce Ashfield
2021-01-15 16:31 ` Luca Boccassi
2021-01-15 16:59 ` Bruce Ashfield
2021-01-15 17:35 ` Luca Boccassi
2021-01-18 11:07 ` Leon Woestenberg
2021-01-18 12:36 ` Richard Purdie
2021-01-15 15:27 ` Luca Boccassi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210115144724.GM16838@windriver.com \
--to=paul.gortmaker@windriver.com \
--cc=Luca.Boccassi@microsoft.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.