[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2024070631-unrivaled-fever-8548@gregkh>
Date: Sat, 6 Jul 2024 11:30:00 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: WangYuli <wangyuli@...ontech.com>
Cc: stable@...r.kernel.org, sashal@...nel.org, ast@...nel.org,
keescook@...omium.org, linux-hardening@...r.kernel.org,
christophe.leroy@...roup.eu, catalin.marinas@....com,
song@...nel.org, puranjay12@...il.com, daniel@...earbox.net,
andrii@...nel.org, martin.lau@...ux.dev, yonghong.song@...ux.dev,
john.fastabend@...il.com, kpsingh@...nel.org, sdf@...gle.com,
haoluo@...gle.com, jolsa@...nel.org, illusionist.neo@...il.com,
linux@...linux.org.uk, bpf@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
chenhuacai@...nel.org, kernel@...0n.name, loongarch@...ts.linux.dev,
johan.almbladh@...finetworks.com, paulburton@...nel.org,
tsbogend@...ha.franken.de, linux-mips@...r.kernel.org,
deller@....de, linux-parisc@...r.kernel.org, iii@...ux.ibm.com,
hca@...ux.ibm.com, gor@...ux.ibm.com, agordeev@...ux.ibm.com,
borntraeger@...ux.ibm.com, svens@...ux.ibm.com,
linux-s390@...r.kernel.org, davem@...emloft.net,
sparclinux@...r.kernel.org, kuba@...nel.org, hawk@...nel.org,
netdev@...r.kernel.org, dsahern@...nel.org, tglx@...utronix.de,
mingo@...hat.com, bp@...en8.de, dave.hansen@...ux.intel.com,
x86@...nel.org, hpa@...or.com, guanwentao@...ontech.com,
baimingcong@...ontech.com
Subject: Re: [PATCH] Revert "bpf: Take return from set_memory_rox() into
account with bpf_jit_binary_lock_ro()" for linux-6.6.37
On Sat, Jul 06, 2024 at 11:11:01AM +0800, WangYuli wrote:
> This reverts commit 08f6c05feb1db21653e98ca84ea04ca032d014c7.
>
> Upstream commit e60adf513275 ("bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro()")
> depends on
> upstream commit 1dad391daef1 ("bpf, arm64: use bpf_prog_pack for memory management").
>
> It will cause a compilation warning on the arm64 if it's not merged:
> arch/arm64/net/bpf_jit_comp.c: In function ‘bpf_int_jit_compile’:
> arch/arm64/net/bpf_jit_comp.c:1651:17: warning: ignoring return value of ‘bpf_jit_binary_lock_ro’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 1651 | bpf_jit_binary_lock_ro(header);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> This will prevent the kernel with the '-Werror' compile option from
> being compiled successfully.
>
> We might as well revert this commit in linux-6.6.37 to solve the
> problem in a simple way.
This makes it sound like you are reverting this because of a build
error, which is not the case here, right? Isn't this because of the
powerpc issue reported here:
https://lore.kernel.org/r/20240705203413.wbv2nw3747vjeibk@altlinux.org
?
If not, why not just backport the single missing arm64 commit, and why
didn't this show up in testing?
confused,
greg k-h
Powered by blists - more mailing lists