summaryrefslogtreecommitdiff
path: root/arch/openrisc/kernel/patching.c
diff options
context:
space:
mode:
authorFernando Fernandez Mancera <fmancera@suse.de>2025-10-20 15:55:33 +0200
committerJakub Kicinski <kuba@kernel.org>2025-10-22 19:22:22 -0700
commitc0178eec8884231a5ae0592b9fce827bccb77e86 (patch)
treea55c226841f4b7d01e8a2ec9341b349831eb4279 /arch/openrisc/kernel/patching.c
parent441f0647f7673e0e64d4910ef61a5fb8f16bfb82 (diff)
net: hsr: prevent creation of HSR device with slaves from another netns
HSR/PRP driver does not handle correctly having slaves/interlink devices in a different net namespace. Currently, it is possible to create a HSR link in a different net namespace than the slaves/interlink with the following command: ip link add hsr0 netns hsr-ns type hsr slave1 eth1 slave2 eth2 As there is no use-case on supporting this scenario, enforce that HSR device link matches netns defined by IFLA_LINK_NETNSID. The iproute2 command mentioned above will throw the following error: Error: hsr: HSR slaves/interlink must be on the same net namespace than HSR link. Fixes: f421436a591d ("net/hsr: Add support for the High-availability Seamless Redundancy protocol (HSRv0)") Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de> Link: https://patch.msgid.link/20251020135533.9373-1-fmancera@suse.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'arch/openrisc/kernel/patching.c')
0 files changed, 0 insertions, 0 deletions