summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm
diff options
context:
space:
mode:
authorHari Bathini <hbathini@linux.ibm.com>2023-04-25 12:28:29 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2023-05-15 15:40:31 +1000
commit35a4b8ce4ac00e940b46b1034916ccb22ce9bdef (patch)
treecac056528a08ec32a37cade71b31d4888dfa38f7 /arch/arm/mm
parent2b694fc96fe33a7c042e3a142d27d945c8c668b0 (diff)
downloadlinux-stable-35a4b8ce4ac00e940b46b1034916ccb22ce9bdef.tar.gz
linux-stable-35a4b8ce4ac00e940b46b1034916ccb22ce9bdef.tar.bz2
linux-stable-35a4b8ce4ac00e940b46b1034916ccb22ce9bdef.zip
powerpc/bpf: populate extable entries only during the last pass
Since commit 85e031154c7c ("powerpc/bpf: Perform complete extra passes to update addresses"), two additional passes are performed to avoid space and CPU time wastage on powerpc. But these extra passes led to WARN_ON_ONCE() hits in bpf_add_extable_entry() as extable entries are populated again, during the extra pass, without resetting the index. Fix it by resetting entry index before repopulating extable entries, if and when there is an additional pass. Fixes: 85e031154c7c ("powerpc/bpf: Perform complete extra passes to update addresses") Cc: stable@vger.kernel.org # v6.3+ Signed-off-by: Hari Bathini <hbathini@linux.ibm.com> Reviewed-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230425065829.18189-1-hbathini@linux.ibm.com
Diffstat (limited to 'arch/arm/mm')
0 files changed, 0 insertions, 0 deletions