Thread (18 messages) 18 messages, 5 authors, 2020-04-21

Re: [PATCH 6/6] sysctl: pass kernel pointers to ->proc_handler

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2020-04-17 07:46:07
Also in: bpf, linux-fsdevel, linux-mm, lkml

On Fri, Apr 17, 2020 at 08:41:46AM +0200, Christoph Hellwig wrote:
Instead of having all the sysctl handlers deal with user pointers, which
is rather hairy in terms of the BPF interaction, copy the input to and
from  userspace in common code.  This also means that the strings are
always NUL-terminated by the common code, making the API a little bit
safer.

As most handler just pass through the data to one of the common handlers
a lot of the changes are mechnical.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Ah, nice!

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help