aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorVincent Mailhol <[email protected]>2022-06-10 14:30:09 +0000
committerMarc Kleine-Budde <[email protected]>2022-06-11 15:11:02 +0000
commita6d190f8c7670068d8c154ef8477eca07b5e3574 (patch)
tree4271015a286269a3c526c3b71e9d2855e6c3546b /net/unix/sysctl_net_unix.c
parentcan: skb: move can_dropped_invalid_skb() and can_skb_headroom_valid() to skb.c (diff)
downloadkernel-a6d190f8c7670068d8c154ef8477eca07b5e3574.tar.gz
kernel-a6d190f8c7670068d8c154ef8477eca07b5e3574.zip
can: skb: drop tx skb if in listen only mode
Frames can be directly injected to a can driver via the packet socket. By doing so, it is possible to reach the net_device_ops::ndo_start_xmit function even if the driver is configured in listen only mode. Add a check in can_dropped_invalid_skb() to discard the skb if CAN_CTRLMODE_LISTENONLY is set. Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Vincent Mailhol <[email protected]> Acked-by: Max Staudt <[email protected]> Tested-by: Oliver Hartkopp <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions