* [PATCH] nfsd: don't WARN/backtrace for invalid container deployment.
@ 2015-08-25 20:59 Paul Gortmaker
2015-08-25 21:06 ` Paul Gortmaker
2015-08-26 19:07 ` J. Bruce Fields
0 siblings, 2 replies; 4+ messages in thread
From: Paul Gortmaker @ 2015-08-25 20:59 UTC (permalink / raw)
To: linux-kernel; +Cc: Paul Gortmaker, J. Bruce Fields, linux-nfs
These messages, combined with the backtrace they trigger, makes it seem
like a serious problem, though a quick search shows distros marking
it as a "won't fix" non-issue when the problem is reported by users.
The backtrace is overkill, and only really manages to show that if
you follow the code path, you can't really avoid it with bootargs
or configuration settings in the container.
Given that, lets tone it down a bit and get rid of the WARN severity,
and the associated backtrace, so people aren't needlessly alarmed.
Also, lets drop the split printk line, since they are grep unfriendly.
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: linux-nfs@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c
index 9c271f42604a..fe8a3da5eb63 100644
--- a/fs/nfsd/nfs4recover.c
+++ b/fs/nfsd/nfs4recover.c
@@ -526,8 +526,7 @@ nfsd4_legacy_tracking_init(struct net *net)
/* XXX: The legacy code won't work in a container */
if (net != &init_net) {
- WARN(1, KERN_ERR "NFSD: attempt to initialize legacy client "
- "tracking in a container!\n");
+ pr_warn("NFSD: attempt to initialize legacy client tracking in a container ignored.\n");
return -EINVAL;
}
@@ -1191,8 +1190,7 @@ nfsd4_umh_cltrack_init(struct net __attribute__((unused)) *net)
{
/* XXX: The usermode helper s not working in container yet. */
if (net != &init_net) {
- WARN(1, KERN_ERR "NFSD: attempt to initialize umh client "
- "tracking in a container!\n");
+ pr_warn("NFSD: attempt to initialize umh client tracking in a container ignored.\n");
return -EINVAL;
}
return nfsd4_umh_cltrack_upcall("init", NULL, NULL);
--
2.1.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] nfsd: don't WARN/backtrace for invalid container deployment.
2015-08-25 20:59 [PATCH] nfsd: don't WARN/backtrace for invalid container deployment Paul Gortmaker
@ 2015-08-25 21:06 ` Paul Gortmaker
2015-08-25 21:16 ` J. Bruce Fields
2015-08-26 19:07 ` J. Bruce Fields
1 sibling, 1 reply; 4+ messages in thread
From: Paul Gortmaker @ 2015-08-25 21:06 UTC (permalink / raw)
To: linux-kernel; +Cc: J. Bruce Fields, linux-nfs
[[PATCH] nfsd: don't WARN/backtrace for invalid container deployment.] On 25/08/2015 (Tue 16:59) Paul Gortmaker wrote:
> These messages, combined with the backtrace they trigger, makes it seem
> like a serious problem, though a quick search shows distros marking
> it as a "won't fix" non-issue when the problem is reported by users.
Ah crap, didn't notice I was on a slightly older kernel when generating
this ; it still applies to master with minor fuzz. I can resend if need
be, and if folks are OK with the general approach.
Paul.
--
>
> The backtrace is overkill, and only really manages to show that if
> you follow the code path, you can't really avoid it with bootargs
> or configuration settings in the container.
>
> Given that, lets tone it down a bit and get rid of the WARN severity,
> and the associated backtrace, so people aren't needlessly alarmed.
>
> Also, lets drop the split printk line, since they are grep unfriendly.
>
> Cc: "J. Bruce Fields" <bfields@fieldses.org>
> Cc: linux-nfs@vger.kernel.org
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
>
> diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c
> index 9c271f42604a..fe8a3da5eb63 100644
> --- a/fs/nfsd/nfs4recover.c
> +++ b/fs/nfsd/nfs4recover.c
> @@ -526,8 +526,7 @@ nfsd4_legacy_tracking_init(struct net *net)
>
> /* XXX: The legacy code won't work in a container */
> if (net != &init_net) {
> - WARN(1, KERN_ERR "NFSD: attempt to initialize legacy client "
> - "tracking in a container!\n");
> + pr_warn("NFSD: attempt to initialize legacy client tracking in a container ignored.\n");
> return -EINVAL;
> }
>
> @@ -1191,8 +1190,7 @@ nfsd4_umh_cltrack_init(struct net __attribute__((unused)) *net)
> {
> /* XXX: The usermode helper s not working in container yet. */
> if (net != &init_net) {
> - WARN(1, KERN_ERR "NFSD: attempt to initialize umh client "
> - "tracking in a container!\n");
> + pr_warn("NFSD: attempt to initialize umh client tracking in a container ignored.\n");
> return -EINVAL;
> }
> return nfsd4_umh_cltrack_upcall("init", NULL, NULL);
> --
> 2.1.0
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] nfsd: don't WARN/backtrace for invalid container deployment.
2015-08-25 21:06 ` Paul Gortmaker
@ 2015-08-25 21:16 ` J. Bruce Fields
0 siblings, 0 replies; 4+ messages in thread
From: J. Bruce Fields @ 2015-08-25 21:16 UTC (permalink / raw)
To: Paul Gortmaker; +Cc: linux-kernel, linux-nfs
On Tue, Aug 25, 2015 at 05:06:43PM -0400, Paul Gortmaker wrote:
> [[PATCH] nfsd: don't WARN/backtrace for invalid container deployment.] On 25/08/2015 (Tue 16:59) Paul Gortmaker wrote:
>
> > These messages, combined with the backtrace they trigger, makes it seem
> > like a serious problem, though a quick search shows distros marking
> > it as a "won't fix" non-issue when the problem is reported by users.
>
> Ah crap, didn't notice I was on a slightly older kernel when generating
> this ; it still applies to master with minor fuzz. I can resend if need
> be, and if folks are OK with the general approach.
Well, this really is something we need to fix, but given that it's going
to take a while, OK, maybe toning this down is best.
--b.
>
> Paul.
> --
>
> >
> > The backtrace is overkill, and only really manages to show that if
> > you follow the code path, you can't really avoid it with bootargs
> > or configuration settings in the container.
> >
> > Given that, lets tone it down a bit and get rid of the WARN severity,
> > and the associated backtrace, so people aren't needlessly alarmed.
> >
> > Also, lets drop the split printk line, since they are grep unfriendly.
> >
> > Cc: "J. Bruce Fields" <bfields@fieldses.org>
> > Cc: linux-nfs@vger.kernel.org
> > Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> >
> > diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c
> > index 9c271f42604a..fe8a3da5eb63 100644
> > --- a/fs/nfsd/nfs4recover.c
> > +++ b/fs/nfsd/nfs4recover.c
> > @@ -526,8 +526,7 @@ nfsd4_legacy_tracking_init(struct net *net)
> >
> > /* XXX: The legacy code won't work in a container */
> > if (net != &init_net) {
> > - WARN(1, KERN_ERR "NFSD: attempt to initialize legacy client "
> > - "tracking in a container!\n");
> > + pr_warn("NFSD: attempt to initialize legacy client tracking in a container ignored.\n");
> > return -EINVAL;
> > }
> >
> > @@ -1191,8 +1190,7 @@ nfsd4_umh_cltrack_init(struct net __attribute__((unused)) *net)
> > {
> > /* XXX: The usermode helper s not working in container yet. */
> > if (net != &init_net) {
> > - WARN(1, KERN_ERR "NFSD: attempt to initialize umh client "
> > - "tracking in a container!\n");
> > + pr_warn("NFSD: attempt to initialize umh client tracking in a container ignored.\n");
> > return -EINVAL;
> > }
> > return nfsd4_umh_cltrack_upcall("init", NULL, NULL);
> > --
> > 2.1.0
> >
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] nfsd: don't WARN/backtrace for invalid container deployment.
2015-08-25 20:59 [PATCH] nfsd: don't WARN/backtrace for invalid container deployment Paul Gortmaker
2015-08-25 21:06 ` Paul Gortmaker
@ 2015-08-26 19:07 ` J. Bruce Fields
1 sibling, 0 replies; 4+ messages in thread
From: J. Bruce Fields @ 2015-08-26 19:07 UTC (permalink / raw)
To: Paul Gortmaker; +Cc: linux-kernel, linux-nfs
On Tue, Aug 25, 2015 at 04:59:16PM -0400, Paul Gortmaker wrote:
> These messages, combined with the backtrace they trigger, makes it seem
> like a serious problem, though a quick search shows distros marking
> it as a "won't fix" non-issue when the problem is reported by users.
>
> The backtrace is overkill, and only really manages to show that if
> you follow the code path, you can't really avoid it with bootargs
> or configuration settings in the container.
>
> Given that, lets tone it down a bit and get rid of the WARN severity,
> and the associated backtrace, so people aren't needlessly alarmed.
>
> Also, lets drop the split printk line, since they are grep unfriendly.
OK, applying.--b.
>
> Cc: "J. Bruce Fields" <bfields@fieldses.org>
> Cc: linux-nfs@vger.kernel.org
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
>
> diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c
> index 9c271f42604a..fe8a3da5eb63 100644
> --- a/fs/nfsd/nfs4recover.c
> +++ b/fs/nfsd/nfs4recover.c
> @@ -526,8 +526,7 @@ nfsd4_legacy_tracking_init(struct net *net)
>
> /* XXX: The legacy code won't work in a container */
> if (net != &init_net) {
> - WARN(1, KERN_ERR "NFSD: attempt to initialize legacy client "
> - "tracking in a container!\n");
> + pr_warn("NFSD: attempt to initialize legacy client tracking in a container ignored.\n");
> return -EINVAL;
> }
>
> @@ -1191,8 +1190,7 @@ nfsd4_umh_cltrack_init(struct net __attribute__((unused)) *net)
> {
> /* XXX: The usermode helper s not working in container yet. */
> if (net != &init_net) {
> - WARN(1, KERN_ERR "NFSD: attempt to initialize umh client "
> - "tracking in a container!\n");
> + pr_warn("NFSD: attempt to initialize umh client tracking in a container ignored.\n");
> return -EINVAL;
> }
> return nfsd4_umh_cltrack_upcall("init", NULL, NULL);
> --
> 2.1.0
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-08-26 19:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-25 20:59 [PATCH] nfsd: don't WARN/backtrace for invalid container deployment Paul Gortmaker
2015-08-25 21:06 ` Paul Gortmaker
2015-08-25 21:16 ` J. Bruce Fields
2015-08-26 19:07 ` J. Bruce Fields
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).