Re: [linux-yocto][v5.10/standard/base][PATCH 1/1] bpf: Reject variable offset alu on PTR_TO_FLOW_KEYS

2024-07-31 Thread Polampalli, Archana via lists.yoctoproject.org
cto@lists.yoctoproject.org > on behalf of Polampalli, Archana via lists.yoctoproject.org > =windriver@lists.yoctoproject.org> > Sent: Thursday, July 18, 2024 12:15 > To: bruce.ashfi...@gmail.com > Cc: linux-yocto@lists.yoctoproject.org > Subject: [linux-yocto][v5.10/st

Re: [linux-yocto][v5.10/standard/base][PATCH 1/1] bpf: Reject variable offset alu on PTR_TO_FLOW_KEYS

2024-07-17 Thread Polampalli, Archana via lists.yoctoproject.org
Hi Bruce, This commit is not backported to older stable kernels, therefore backported it from 5.15.y series. Kindly approve. Regards, Archana From: linux-yocto@lists.yoctoproject.org on behalf of Polampalli, Archana via lists.yoctoproject.org Sent: Thursday

[linux-yocto][v5.10/standard/base][PATCH 1/1] bpf: Reject variable offset alu on PTR_TO_FLOW_KEYS

2024-07-17 Thread Polampalli, Archana via lists.yoctoproject.org
From: Hao Sun [ Upstream commit 22c7fa171a02d310e3a3f6ed46a698ca8a0060ed ] For PTR_TO_FLOW_KEYS, check_flow_keys_access() only uses fixed off for validation. However, variable offset ptr alu is not prohibited for this ptr kind. So the variable offset is not checked. The following prog is accept