summaryrefslogtreecommitdiff
path: root/io_uring
diff options
context:
space:
mode:
authorPaul Barker <paul.barker.ct@bp.renesas.com>2024-04-16 15:02:54 +0300
committerPaolo Abeni <pabeni@redhat.com>2024-04-18 12:34:28 +0300
commit2e36c9fbc476f95a1b19e3fa0a2cdf408475ff56 (patch)
tree8a6e5237607f27fa26cd2536bff3746ae3057bb2 /io_uring
parentc7c449502b51c5b5de79f97a42be750b28f6ecee (diff)
downloadlinux-2e36c9fbc476f95a1b19e3fa0a2cdf408475ff56.tar.xz
net: ravb: Fix RX byte accounting for jumbo packets
The RX byte accounting for jumbo packets was changed to fix a potential use-after-free bug. However, that fix used the wrong variable and so only accounted for the number of bytes in the final descriptor, not the number of bytes in the whole packet. To fix this, we can simply update our stats with the correct number of bytes before calling napi_gro_receive(). Also rename pkt_len to desc_len in ravb_rx_gbeth() to avoid any future confusion. The variable name pkt_len is correct in ravb_rx_rcar() as that function does not handle packets spanning multiple descriptors. Fixes: 5a5a3e564de6 ("ravb: Fix potential use-after-free in ravb_rx_gbeth()") Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com> Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'io_uring')
0 files changed, 0 insertions, 0 deletions