Re: [PATCH bpf v3] xsk: Add missing overflow check in xdp_umem_reg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/16/23 1:52 PM, Magnus Karlsson wrote:
On Wed, 8 Mar 2023 at 18:51, Kal Conley <kal.conley@xxxxxxxxxxx> wrote:

The number of chunks can overflow u32. Make sure to return -EINVAL on
overflow.

Also remove a redundant u32 cast assigning umem->npgs.

Thanks!

Acked-by: Magnus Karlsson <magnus.karlsson@xxxxxxxxx>

Fixes: bbff2f321a86 ("xsk: new descriptor addressing scheme")
Signed-off-by: Kal Conley <kal.conley@xxxxxxxxxxx>

Looks like patchbot was on partial strike, this was applied to bpf, thanks!



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux