Re: [PATCH bpf v2 2/2] selftests/bpf: Exercise negative optlen in cgroup getsockopt hook

Junseo Lim <[email protected]>
Newsgroups org.kernel.vger.bpf,org.kernel.vger.linux-kernel
Message-ID <aoKQ04mN7zzWAqkI@hp-zirajs>
On Tue, Aug 11, 2026 at 03:10:47PM +0000, [email protected] wrote:
> Is the intent that this test relies on WARN/taint detection or
> panic_on_warn, or is the value of the test primarily as a WARN-only
> reproducer rather than a pass/fail assertion?

Yes, the intent is for this to serve as a reproducer for the WARN rather
than a pass/fail regression test. A clear pass/fail verdict would be
preferable, but that does not seem feasible here since EFAULT is
returned regardless of the patch.

Another option would be to add a KUnit test for the negative optlen
validation, but that seemed excessive for this fix.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.