linux/net/l2tp
Zihan Xi af20e269f7 net: l2tp: do not propagate multicast notification errors
The tunnel create, tunnel modify, session create, and session modify
netlink handlers send multicast notifications through helpers that can fail
while allocating or encoding a message, or while multicasting it.

For tunnel and session create/modify, a notification is sent after the live
operation has completed. Returning a best-effort notification error as the
command result can therefore report failure for an operation that already
committed and can cause callers to retry and accumulate live objects.

Keep sending notifications for listener visibility, but do not propagate
their best-effort status as the command result. This also keeps the tunnel
modify command consistent with the other notification-only paths.

Fixes: 33f72e6f0c ("l2tp : multicast notification to the registered listeners")
Cc: stable@vger.kernel.org
Reported-by: Vega <vega@nebusec.ai>
Signed-off-by: Zihan Xi <zihanx@nebusec.ai>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/54f48e812ca0424c47ffdb9a8182180921f7e6b2.1787247008.git.zihanx@nebusec.ai
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-08-24 11:43:28 -07:00
..
Kconfig ipv6: convert CONFIG_IPV6 to built-in only and clean up Kconfigs 2026-03-29 11:21:22 -07:00
l2tp_core.c net: Use helpers to get/set UDP len tree-wide 2026-07-22 13:47:02 +02:00
l2tp_core.h l2tp: improve tunnel/session refcount helpers 2024-08-11 04:38:50 +01:00
l2tp_debugfs.c l2tp: fix tunnel and session refcount leak on seq_file release 2026-08-13 11:49:31 +02:00
l2tp_eth.c net: l2tp_eth: Replace deprecated strcpy with strscpy in l2tp_eth_create 2026-02-24 13:38:33 +01:00
l2tp_ip.c net: remove addr_len argument of recvmsg() handlers 2026-03-02 18:17:17 -08:00
l2tp_ip6.c net: remove addr_len argument of recvmsg() handlers 2026-03-02 18:17:17 -08:00
l2tp_netlink.c net: l2tp: do not propagate multicast notification errors 2026-08-24 11:43:28 -07:00
l2tp_ppp.c l2tp: fix tunnel and session refcount leak on seq_file release 2026-08-13 11:49:31 +02:00
Makefile l2tp: add tracepoint infrastructure to core 2020-08-22 12:44:37 -07:00
trace.h l2tp: add tracepoint definitions in trace.h 2020-08-22 12:44:37 -07:00