Benedikt Spranger
99a435c378
net/sched: taprio: Check if socket flags are valid
...
[ Upstream commit e8a64bbaaad1f6548cec5508297bc6d45e8ab69e ]
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: 4cfd5779bd ("taprio: Add support for txtime-assist mode")
Signed-off-by: Benedikt Spranger <[email protected] >
Reviewed-by: Kurt Kanzenbach <[email protected] >
Acked-by: Vinicius Costa Gomes <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
2022-04-20 09:19:35 +02:00
..
act_api.c
net: sched: limit TC_ACT_REPEAT loops
2022-02-23 11:59:59 +01:00
act_bpf.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_connmark.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_csum.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_ct.c
net/sched: act_ct: fix err check for nf_conntrack_confirm
2021-07-25 14:35:14 +02:00
act_ctinfo.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_gact.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_ife.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_ipt.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_meta_mark.c
act_meta_skbprio.c
act_meta_skbtcindex.c
act_mirred.c
net: sched: act_mirred: drop dst for the direction from egress to ingress
2021-11-26 10:47:19 +01:00
act_mpls.c
net/sched: act_mpls: ensure LSE is pullable before reading it
2020-12-08 10:40:27 +01:00
act_nat.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_pedit.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_police.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_sample.c
net: sched: lock action when translating it to flow_action infra
2021-12-22 09:29:37 +01:00
act_simple.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_skbedit.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_skbmod.c
net/sched: act_skbmod: Skip non-Ethernet packets
2021-07-28 13:30:57 +02:00
act_tunnel_key.c
net/sched: act_tunnel_key: fix OOB write in case of IPv6 ERSPAN tunnels
2020-10-29 09:57:26 +01:00
act_vlan.c
net/sched: act_vlan: Fix modify to allow 0
2021-07-14 16:53:27 +02:00
cls_api.c
net/sched: fix initialization order when updating chain 0 head
2022-04-20 09:19:35 +02:00
cls_basic.c
cls_bpf.c
cls_cgroup.c
cls_flow.c
sched: consistently handle layer3 header accesses in the presence of VLANs
2020-07-22 09:32:48 +02:00
cls_flower.c
net/sched: flower: fix parsing of ethertype following VLAN header
2022-04-20 09:19:34 +02:00
cls_fw.c
cls_matchall.c
cls_route.c
cls_rsvp.c
cls_rsvp.h
cls_rsvp6.c
cls_tcindex.c
net: sched: fix memory leak in tcindex_partial_destroy_work
2021-07-28 13:30:56 +02:00
cls_u32.c
em_canid.c
em_cmp.c
em_ipset.c
sched: consistently handle layer3 header accesses in the presence of VLANs
2020-07-22 09:32:48 +02:00
em_ipt.c
sched: consistently handle layer3 header accesses in the presence of VLANs
2020-07-22 09:32:48 +02:00
em_meta.c
sched: consistently handle layer3 header accesses in the presence of VLANs
2020-07-22 09:32:48 +02:00
em_nbyte.c
em_text.c
em_u32.c
ematch.c
Kconfig
Makefile
sch_api.c
net: sched: Clarify error message when qdisc kind is unknown
2022-02-16 12:52:48 +01:00
sch_atm.c
net_sched: fix a memory leak in atm_tc_init()
2020-07-22 09:32:48 +02:00
sch_blackhole.c
sch_cake.c
sch_cake: do not call cake_destroy() from cake_init()
2021-12-22 09:29:36 +01:00
sch_cbq.c
net: sched: Fix qdisc_rate_table refcount leak when get tcf_block failed
2021-09-15 09:47:38 +02:00
sch_cbs.c
sch_choke.c
net: sched: validate stab values
2021-03-30 14:35:25 +02:00
sch_codel.c
sch_drr.c
sch_dsmark.c
sch_dsmark: fix a NULL deref in qdisc_reset()
2021-06-03 08:59:15 +02:00
sch_etf.c
sch_fifo.c
net_sched: fix NULL deref in fifo_set_limit()
2021-10-13 10:08:18 +02:00
sch_fq.c
sch_fq_codel.c
fq_codel: reject silly quantum parameters
2021-09-22 12:26:45 +02:00
sch_generic.c
net_sched: restore "mpu xxx" handling
2022-01-27 09:19:55 +01:00
sch_gred.c
net: sched: validate stab values
2021-03-30 14:35:25 +02:00
sch_hfsc.c
sch_hhf.c
sch_htb.c
sch_ingress.c
sch_mq.c
net: sched: update default qdisc visibility after Tx queue cnt changes
2021-11-17 09:48:28 +01:00
sch_mqprio.c
net: sched: update default qdisc visibility after Tx queue cnt changes
2021-11-17 09:48:28 +01:00
sch_multiq.c
sch_netem.c
netem: fix zero division in tabledist
2020-11-01 12:01:03 +01:00
sch_pie.c
sch_plug.c
sch_prio.c
sch_qfq.c
sch_qfq: prevent shift-out-of-bounds in qfq_init_qdisc
2022-01-11 15:23:32 +01:00
sch_red.c
net: sched: validate stab values
2021-03-30 14:35:25 +02:00
sch_sfb.c
sch_sfq.c
net: sched: validate stab values
2021-03-30 14:35:25 +02:00
sch_skbprio.c
sch_taprio.c
net/sched: taprio: Check if socket flags are valid
2022-04-20 09:19:35 +02:00
sch_tbf.c
sch_teql.c
net: sched: sch_teql: fix null-pointer dereference
2021-04-14 08:24:12 +02:00