Re: [PATCH RFC net v10 0/6] more virtio-net csum hardening

From
Michael S. Tsirkin <mst@redhat.com>
Date
2026-12-03 07:02:47
Also in
linux-doc, linux-um, virtualization
Reply to
Showta Ishizaki, 2026-12-03
On Thu, Dec 03, 2026 at 11:39:59AM +0900, Showta Ishizaki wrote:
Thanks. This is Michael's series; I'm carrying it, and the issue it
hardens is not theoretical and was not found by an LLM -- it was first
reported by Paulos Yibelo, with further variants from the people
credited in patch 4.

I triggered it at runtime. Injecting, through a tap with a
virtio_net_hdr, a frame whose csum_start/csum_offset point away from the
real transport checksum, a kprobe on __dev_queue_xmit showed the skb
reaching transmit still CHECKSUM_PARTIAL with csum_start inside the
payload; the stack then completes the checksum at that offset, past the
protocol processing that already read those bytes. With the series the
metadata is validated at ingress and such a frame is resolved or
dropped.

For patch 5, Chris Arges triggered a wrong outer UDP checksum with
non-zero Ethernet padding and I reproduced it for a v4 and a v6 outer;
the v10 I posted folds in his fix.
Just to put things into perspective, we are talking about
users who already can inject packets with bad checksums.
I can put these symptoms in the cover letter or the commit messages on
the next repost if that would help.

Showta
Thread (10 messages) 10 messages, 3 authors, last reply 3d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help