Skip to content

net/sched: sch_teql: fix shared headroom and header strip

Jamal Hadi Salim netdev stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net/sched: sch_teql: fix shared headroom and header strip on slave retrynet/sched/sch_teql.c+27 -53 replies
2/2net/sched: sch_teql: keep skb->dev consistent on the arp-queue pathnet/core/neighbour.c net/sched/sch_teql.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/2] net/sched: sch_teql: fix shared headroom and header strip

Two pre-existing defects on the teql transmit path, both around teql_master_xmit() -> teql_resolve(). The first makes the slave's headroom write corrupt a shared skb and strips a userspace-supplied link header on retry; the second leaves skb->dev pointing at the teql master while the skb is parked on a slave's neighbour arp_queue.

Patch 1 fixes the shared-headroom write and the header-strip on retry, tracking the header length the slave actually added.
Patch 2 moves skb->dev = slave ahead of teql_resolve() and restores skb->dev at the arp-queue reinjection point, so a parked skb names the device whose neighbour took it and is delivered with a link header.

Both are follow-ups to commit dc4b95b8fee9 ("net/sched: sch_teql: restore skb->dev on the slave failure path").

Jamal Hadi Salim (2):
net/sched: sch_teql: fix shared headroom and header strip on slave
retry
net/sched: sch_teql: keep skb->dev consistent on the arp-queue path

 net/core/neighbour.c |  1 +
 net/sched/sch_teql.c | 34 ++++++++++++++++++++++++++++------
 2 files changed, 29 insertions(+), 6 deletions(-)
Signature · 1 line
2.43.0