Re: [PATCH net-next v2 02/13] virtio_ring: split: record extras for indirect buffers
From: Jason Wang <hidden>
Date: 2024-11-11 01:28:13
Also in:
bpf, virtualization
From: Jason Wang <hidden>
Date: 2024-11-11 01:28:13
Also in:
bpf, virtualization
On Wed, Nov 6, 2024 at 3:42 PM Michael S. Tsirkin [off-list ref] wrote:
On Wed, Nov 06, 2024 at 09:44:39AM +0800, Jason Wang wrote:quoted
quoted
quoted
quoted
while (vq->split.vring.desc[i].flags & nextflag) { - vring_unmap_one_split(vq, i); + vring_unmap_one_split(vq, &extra[i]);Not sure if I've asked this before. But this part seems to deserve an independent fix for -stable.What fix?I meant for hardening we need to check the flags stored in the extra instead of the descriptor itself as it could be mangled by the device. ThanksGood point. Jason, want to cook up a patch?
Will do. Thanks
-- MST