Merge branch 'fix-bpf_strnstr-len-error'
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 29 Aug 2025 18:32:03 +0000 (11:32 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 9 Sep 2025 22:09:29 +0000 (15:09 -0700)
commit813104c192740ca58ce7131faf31a7f118645ae1
treeb28fb0d124e318582dbf9586f3de16535c41bb45
parent387be23a95b14705a804900c3a0db5a12bf19636
parent6624fb2f3382271953f951d46f2ea30415a0917e
Merge branch 'fix-bpf_strnstr-len-error'

Rong Tao says:

====================
Fix bpf_strnstr() wrong 'len' parameter, bpf_strnstr("open", "open", 4)
should return 0 instead of -ENOENT. And fix a more general case when s2
is a suffix of the first len characters of s1.
====================

Link: https://patch.msgid.link/tencent_E72A37AF03A3B18853066E421B5969976208@qq.com
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>