All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mptcp-net] mptcp: drop unconditional pr_warn on bad opt
@ 2021-05-18 17:15 Paolo Abeni
  2021-05-18 21:43 ` Mat Martineau
  2021-05-20 18:32 ` Matthieu Baerts
  0 siblings, 2 replies; 3+ messages in thread
From: Paolo Abeni @ 2021-05-18 17:15 UTC (permalink / raw)
  To: mptcp

This is a left-over of early day. A malicious peer can flood
the kernel logs with useless messages, just drop it.

Fixes: f296234c98a8 ("mptcp: Add handling of incoming MP_JOIN requests")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
---
 net/mptcp/options.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/net/mptcp/options.c b/net/mptcp/options.c
index b713828819b6..f5daccaaac99 100644
--- a/net/mptcp/options.c
+++ b/net/mptcp/options.c
@@ -141,7 +141,6 @@ static void mptcp_parse_option(const struct sk_buff *skb,
 			memcpy(mp_opt->hmac, ptr, MPTCPOPT_HMAC_LEN);
 			pr_debug("MP_JOIN hmac");
 		} else {
-			pr_warn("MP_JOIN bad option size");
 			mp_opt->mp_join = 0;
 		}
 		break;
-- 
2.26.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH mptcp-net] mptcp: drop unconditional pr_warn on bad opt
  2021-05-18 17:15 [PATCH mptcp-net] mptcp: drop unconditional pr_warn on bad opt Paolo Abeni
@ 2021-05-18 21:43 ` Mat Martineau
  2021-05-20 18:32 ` Matthieu Baerts
  1 sibling, 0 replies; 3+ messages in thread
From: Mat Martineau @ 2021-05-18 21:43 UTC (permalink / raw)
  To: Paolo Abeni; +Cc: mptcp

On Tue, 18 May 2021, Paolo Abeni wrote:

> This is a left-over of early day. A malicious peer can flood
> the kernel logs with useless messages, just drop it.
>
> Fixes: f296234c98a8 ("mptcp: Add handling of incoming MP_JOIN requests")
> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
> ---
> net/mptcp/options.c | 1 -
> 1 file changed, 1 deletion(-)

Thanks for catching this Paolo, looks good.

Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>


>
> diff --git a/net/mptcp/options.c b/net/mptcp/options.c
> index b713828819b6..f5daccaaac99 100644
> --- a/net/mptcp/options.c
> +++ b/net/mptcp/options.c
> @@ -141,7 +141,6 @@ static void mptcp_parse_option(const struct sk_buff *skb,
> 			memcpy(mp_opt->hmac, ptr, MPTCPOPT_HMAC_LEN);
> 			pr_debug("MP_JOIN hmac");
> 		} else {
> -			pr_warn("MP_JOIN bad option size");
> 			mp_opt->mp_join = 0;
> 		}
> 		break;
> -- 
> 2.26.3

--
Mat Martineau
Intel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH mptcp-net] mptcp: drop unconditional pr_warn on bad opt
  2021-05-18 17:15 [PATCH mptcp-net] mptcp: drop unconditional pr_warn on bad opt Paolo Abeni
  2021-05-18 21:43 ` Mat Martineau
@ 2021-05-20 18:32 ` Matthieu Baerts
  1 sibling, 0 replies; 3+ messages in thread
From: Matthieu Baerts @ 2021-05-20 18:32 UTC (permalink / raw)
  To: Paolo Abeni, Mat Martineau; +Cc: mptcp

Hi Paolo, Mat,

On 18/05/2021 19:15, Paolo Abeni wrote:
> This is a left-over of early day. A malicious peer can flood
> the kernel logs with useless messages, just drop it.
> 
> Fixes: f296234c98a8 ("mptcp: Add handling of incoming MP_JOIN requests")
> Signed-off-by: Paolo Abeni <pabeni@redhat.com>

Thank you for the patch and the review:

- 1cb1f9c4c940: mptcp: drop unconditional pr_warn on bad opt
- Results: bdf8ab2fa53b..f7c7d5a50852

Builds and tests are now in progress:

https://cirrus-ci.com/github/multipath-tcp/mptcp_net-next/export/20210520T183134
https://github.com/multipath-tcp/mptcp_net-next/actions/workflows/build-validation.yml?query=branch:export/20210520T183134

Cheers,
Matt
-- 
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-20 18:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-18 17:15 [PATCH mptcp-net] mptcp: drop unconditional pr_warn on bad opt Paolo Abeni
2021-05-18 21:43 ` Mat Martineau
2021-05-20 18:32 ` Matthieu Baerts

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.