All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] tipc: discard MSG_CRYPTO msgs when key_exchange_enabled is not set
@ 2021-12-10 18:50 Xin Long
  2021-12-13 12:40 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Xin Long @ 2021-12-10 18:50 UTC (permalink / raw)
  To: network dev, tipc-discussion
  Cc: Jon Maloy, Ying Xue, Hoang Huu Le, davem, kuba

When key_exchange is disabled, there is no reason to accept MSG_CRYPTO
msgs if it doesn't send MSG_CRYPTO msgs.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Jon Maloy <jmaloy@redhat.com>
---
 net/tipc/link.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/tipc/link.c b/net/tipc/link.c
index 09ae8448f394..8d9e09f48f4c 100644
--- a/net/tipc/link.c
+++ b/net/tipc/link.c
@@ -1298,7 +1298,8 @@ static bool tipc_data_input(struct tipc_link *l, struct sk_buff *skb,
 		return false;
 #ifdef CONFIG_TIPC_CRYPTO
 	case MSG_CRYPTO:
-		if (TIPC_SKB_CB(skb)->decrypted) {
+		if (sysctl_tipc_key_exchange_enabled &&
+		    TIPC_SKB_CB(skb)->decrypted) {
 			tipc_crypto_msg_rcv(l->net, skb);
 			return true;
 		}
-- 
2.27.0


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

* Re: [PATCH net-next] tipc: discard MSG_CRYPTO msgs when key_exchange_enabled is not set
  2021-12-10 18:50 [PATCH net-next] tipc: discard MSG_CRYPTO msgs when key_exchange_enabled is not set Xin Long
@ 2021-12-13 12:40 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-12-13 12:40 UTC (permalink / raw)
  To: Xin Long
  Cc: netdev, tipc-discussion, jmaloy, ying.xue, hoang.h.le, davem, kuba

Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Fri, 10 Dec 2021 13:50:40 -0500 you wrote:
> When key_exchange is disabled, there is no reason to accept MSG_CRYPTO
> msgs if it doesn't send MSG_CRYPTO msgs.
> 
> Signed-off-by: Xin Long <lucien.xin@gmail.com>
> Acked-by: Jon Maloy <jmaloy@redhat.com>
> ---
>  net/tipc/link.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Here is the summary with links:
  - [net-next] tipc: discard MSG_CRYPTO msgs when key_exchange_enabled is not set
    https://git.kernel.org/netdev/net-next/c/6180c780e64c

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2021-12-13 12:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-10 18:50 [PATCH net-next] tipc: discard MSG_CRYPTO msgs when key_exchange_enabled is not set Xin Long
2021-12-13 12:40 ` patchwork-bot+netdevbpf

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.