]> Gentwo Git Trees - linux/.git/commit
virtio-net: zero unused hash fields
authorJason Wang <jasowang@redhat.com>
Wed, 22 Oct 2025 03:44:21 +0000 (11:44 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Oct 2025 14:13:21 +0000 (07:13 -0700)
commitb2284768c6b32aa224ca7d0ef0741beb434f03aa
tree2c499bc5bc2255369d90087c54ce7f1fd7bd8fd8
parent399d10934740ae8cdaa4e3245f7c5f6c332da844
virtio-net: zero unused hash fields

When GSO tunnel is negotiated virtio_net_hdr_tnl_from_skb() tries to
initialize the tunnel metadata but forget to zero unused rxhash
fields. This may leak information to another side. Fixing this by
zeroing the unused hash fields.

Acked-by: Michael S. Tsirkin <mst@redhat.com>
Fixes: a2fb4bc4e2a6a ("net: implement virtio helpers to handle UDP GSO tunneling")
Cc: <stable@vger.kernel.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Link: https://patch.msgid.link/20251022034421.70244-1-jasowang@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/virtio_net.h