aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorWill Deacon <[email protected]>2025-07-17 09:01:13 +0000
committerMichael S. Tsirkin <[email protected]>2025-08-01 13:11:09 +0000
commitfac6b82e0f3eaca33c8c67ec401681b21143ae17 (patch)
tree0cd114a995d746b84cf606cecccf78a83ce21d45 /tools/perf/scripts/python/libxed.py
parentvsock/virtio: Rename virtio_vsock_alloc_skb() (diff)
downloadkernel-fac6b82e0f3eaca33c8c67ec401681b21143ae17.tar.gz
kernel-fac6b82e0f3eaca33c8c67ec401681b21143ae17.zip
vsock/virtio: Move SKB allocation lower-bound check to callers
virtio_vsock_alloc_linear_skb() checks that the requested size is at least big enough for the packet header (VIRTIO_VSOCK_SKB_HEADROOM). Of the three callers of virtio_vsock_alloc_linear_skb(), only vhost_vsock_alloc_skb() can potentially pass a packet smaller than the header size and, as it already has a check against the maximum packet size, extend its bounds checking to consider the minimum packet size and remove the check from virtio_vsock_alloc_linear_skb(). Reviewed-by: Stefano Garzarella <[email protected]> Signed-off-by: Will Deacon <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions