summaryrefslogtreecommitdiff
path: root/net/sched/act_mpls.c
diff options
context:
space:
mode:
authorBenedikt Spranger <b.spranger@linutronix.de>2022-04-08 11:47:45 +0200
committerDavid S. Miller <davem@davemloft.net>2022-04-11 10:51:00 +0100
commite8a64bbaaad1f6548cec5508297bc6d45e8ab69e (patch)
treef2ec554ff816f591d175f4247b94175eebad0882 /net/sched/act_mpls.c
parenta6aaa00324240967272b451bfa772547bd576ee6 (diff)
net/sched: taprio: Check if socket flags are valid
A user may set the SO_TXTIME socket option to ensure a packet is send at a given time. The taprio scheduler has to confirm, that it is allowed to send a packet at that given time, by a check against the packet time schedule. The scheduler drop the packet, if the gates are closed at the given send time. The check, if SO_TXTIME is set, may fail since sk_flags are part of an union and the union is used otherwise. This happen, if a socket is not a full socket, like a request socket for example. Add a check to verify, if the union is used for sk_flags. Fixes: 4cfd5779bd6e ("taprio: Add support for txtime-assist mode") Signed-off-by: Benedikt Spranger <b.spranger@linutronix.de> Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de> Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_mpls.c')
0 files changed, 0 insertions, 0 deletions