From: Steffen Klassert <steffen.klassert@secunet.com>
To: Vegard Nossum <vegard.nossum@oracle.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>, <netdev@vger.kernel.org>
Subject: Re: [PATCH] xfrm: use printk instead of WARN for bad policy reporting
Date: Wed, 20 Jul 2016 14:15:20 +0200 [thread overview]
Message-ID: <20160720121520.GD3775@gauss.secunet.com> (raw)
In-Reply-To: <1469003555-30599-1-git-send-email-vegard.nossum@oracle.com>
On Wed, Jul 20, 2016 at 10:32:35AM +0200, Vegard Nossum wrote:
> AFAICT this message is just printed whenever input validation fails.
> This is a normal failure and we shouldn't be dumping the stack over it.
>
> Looks like it was originally a printk that was maybe incorrectly
> upgraded to a WARN:
>
> commit 62db5cfd70b1ef53aa21f144a806fe3b78c84fab
> Author: stephen hemminger <shemminger@vyatta.com>
> Date: Wed May 12 06:37:06 2010 +0000
>
> xfrm: add severity to printk
>
> Cc: Stephen Hemminger <stephen@networkplumber.org>
> Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
> ---
> net/xfrm/xfrm_user.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c
> index 4fb04ce..0b81bfc 100644
> --- a/net/xfrm/xfrm_user.c
> +++ b/net/xfrm/xfrm_user.c
> @@ -2150,7 +2150,7 @@ static int xfrm_add_acquire(struct sk_buff *skb, struct nlmsghdr *nlh,
> return 0;
>
> bad_policy:
> - WARN(1, "BAD policy passed\n");
> + printk(KERN_WARNING "xfrm_user: bad policy passed\n");
Why should we print here anything at all? If it is a normal
configuration error, we should remove the printing.
next prev parent reply other threads:[~2016-07-20 12:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-20 8:32 [PATCH] xfrm: use printk instead of WARN for bad policy reporting Vegard Nossum
2016-07-20 11:53 ` Vegard Nossum
2016-07-27 3:01 ` Herbert Xu
2016-07-27 6:20 ` Vegard Nossum
2016-07-27 6:31 ` Herbert Xu
2016-07-27 6:44 ` Vegard Nossum
2016-07-28 4:58 ` Steffen Klassert
2016-07-20 12:15 ` Steffen Klassert [this message]
2016-07-27 6:03 ` Vegard Nossum
2016-07-28 4:57 ` Steffen Klassert
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=20160720121520.GD3775@gauss.secunet.com \
--to=steffen.klassert@secunet.com \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
--cc=vegard.nossum@oracle.com \
/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.