netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] net: two fixes for qdisc_pkt_len_init()
@ 2024-09-24 15:02 Eric Dumazet
  2024-09-24 15:02 ` [PATCH net 1/2] net: avoid potential underflow in qdisc_pkt_len_init() with UFO Eric Dumazet
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Eric Dumazet @ 2024-09-24 15:02 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: David Ahern, netdev, Willem de Bruijn, Jonathan Davies,
	eric.dumazet, Eric Dumazet

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.

Eric Dumazet (2):
  net: avoid potential underflow in qdisc_pkt_len_init() with UFO
  net: add more sanity checks to qdisc_pkt_len_init()

 net/core/dev.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

-- 
2.46.0.792.g87dc391469-goog


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2024-10-01 10:10 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-24 15:02 [PATCH net 0/2] net: two fixes for qdisc_pkt_len_init() Eric Dumazet
2024-09-24 15:02 ` [PATCH net 1/2] net: avoid potential underflow in qdisc_pkt_len_init() with UFO Eric Dumazet
2024-09-26  9:07   ` Willem de Bruijn
2024-09-26 18:00   ` Jonathan Davies
2024-09-24 15:02 ` [PATCH net 2/2] net: add more sanity checks to qdisc_pkt_len_init() Eric Dumazet
2024-09-25 17:51   ` Joe Damato
2024-09-25 18:00     ` Eric Dumazet
2024-09-25 18:24       ` Joe Damato
2024-09-25 18:27         ` Stephen Hemminger
2024-09-25 18:55         ` Eric Dumazet
2024-09-25 19:01           ` Eric Dumazet
2024-09-25 19:15             ` Joe Damato
2024-09-25 19:07           ` Joe Damato
2024-09-25 19:08             ` Eric Dumazet
2024-09-26  9:13   ` Willem de Bruijn
2024-09-26  9:17     ` Willem de Bruijn
2024-09-26  9:19       ` Eric Dumazet
2024-10-01  9:57         ` Paolo Abeni
2024-09-26  2:26 ` [PATCH net 0/2] net: two fixes for qdisc_pkt_len_init() David Ahern
2024-10-01 10:10 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).