lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ac326390-3a3b-4d2d-9be8-f9ec2152eb6b@linux.dev>
Date: Thu, 25 Sep 2025 10:47:40 -0700
From: Martin KaFai Lau <martin.lau@...ux.dev>
To: Amery Hung <ameryhung@...il.com>
Cc: netdev@...r.kernel.org, bpf@...r.kernel.org, davem@...emloft.net,
 edumazet@...gle.com, pabeni@...hat.com, kuba@...nel.org,
 alexei.starovoitov@...il.com, andrii@...nel.org, daniel@...earbox.net,
 martin.lau@...nel.org, stfomichev@...il.com, kernel-team@...a.com
Subject: Re: [PATCH net-next 1/1] selftests: drv-net: Reload pkt pointer after
 calling filter_udphdr

On 9/25/25 9:14 AM, Amery Hung wrote:
> Fix a verification failure. filter_udphdr() calls bpf_xdp_pull_data(),
> which will invalidate all pkt pointers. Therefore, all ctx->data loaded
> before filter_udphdr() cannot be used. Reload it to prevent verification
> errors.
> 
> The error may not appear on some compiler versions if they decide to
> load ctx->data after filter_udphdr() when it is first used.

Acked-by: Martin KaFai Lau <martin.lau@...nel.org>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ