Re: [PATCH] bpf: replace deprecated strncpy with strscpy

2024-04-03 Thread Daniel Borkmann
On 4/3/24 5:06 AM, Ratheesh Kannoth wrote: On 2024-04-03 at 05:22:50, Justin Stitt (justinst...@google.com) wrote: strncpy() is deprecated for use on NUL-terminated destination strings [1] and as such we should prefer more robust and less ambiguous string interfaces. bpf sym names get looked up

Re: [PATCH bpf-next RESEND v2 1/2] bpf: Take return from set_memory_ro() into account with bpf_prog_lock_ro()

2024-03-07 Thread Daniel Borkmann
On 3/1/24 8:57 AM, Christophe Leroy wrote: set_memory_ro() can fail, leaving memory unprotected. Check its return and take it into account as an error. Link: https://github.com/KSPP/linux/issues/7 Signed-off-by: Christophe Leroy Cc: linux-hardening@vger.kernel.org Reviewed-by: Kees Cook ---

Re: [PATCH bpf-next 1/2] bpf: Take return from set_memory_ro() into account with bpf_prog_lock_ro()

2024-02-21 Thread Daniel Borkmann
On 2/19/24 7:39 AM, Christophe Leroy wrote: Le 19/02/2024 à 02:40, Hengqi Chen a écrit : [Vous ne recevez pas souvent de courriers de hengqi.c...@gmail.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] Hello Christophe, On Sun, Feb 18, 2024 at 6:55