]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
Merge branch 'net-two-fixes-for-qdisc_pkt_len_init'
authorPaolo Abeni <pabeni@redhat.com>
Tue, 1 Oct 2024 09:47:08 +0000 (11:47 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 1 Oct 2024 09:47:08 +0000 (11:47 +0200)
Eric Dumazet says:

====================
net: two fixes for qdisc_pkt_len_init()

Inspired by one syzbot report.

At least one qdisc (fq_codel) depends on qdisc_skb_cb(skb)->pkt_len
having a sane value (not zero)

With the help of af_packet, syzbot was able to fool qdisc_pkt_len_init()
to precisely set qdisc_skb_cb(skb)->pkt_len to zero.

First patch fixes this issue.

Second one (a separate one to help future bisections) adds
more sanity check to SKB_GSO_DODGY users.
====================

Link: https://patch.msgid.link/20240924150257.1059524-1-edumazet@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

Trivial merge