diff options
| author | Vincent Mailhol <[email protected]> | 2022-06-10 14:30:09 +0000 |
|---|---|---|
| committer | Marc Kleine-Budde <[email protected]> | 2022-06-11 15:11:02 +0000 |
| commit | a6d190f8c7670068d8c154ef8477eca07b5e3574 (patch) | |
| tree | 4271015a286269a3c526c3b71e9d2855e6c3546b /net/unix/sysctl_net_unix.c | |
| parent | can: skb: move can_dropped_invalid_skb() and can_skb_headroom_valid() to skb.c (diff) | |
| download | kernel-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
