angler-fishThe Vulnerability History Project

sysctl: pass kernel pointers to ->proc_handler

      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>
Acked-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    
commit 32927393dc1ccd60fb2bdc05b9e8e88753761469
+1 -1
+1 -2
+5 -8
+5 -6
+1 -1
+1 -1
+5 -7
+1 -2
+1 -1
+1 -1
+1 -2
+18 -21
+1 -1
+1 -1
+2 -2
+1 -2
+1 -1
+29 -18
+1 -1
+2 -2
+4 -5
+1 -1
+3 -3
+1 -2
+7 -8
+1 -1
+2 -2
+6 -6
+11 -12
+5 -10
+5 -8
+1 -1
+15 -29
+1 -1
+22 -31
+1 -2
+4 -4
+11 -17
+5 -5
+2 -2
+12 -23
+1 -1
+2 -4
+1 -1
+2 -2
+1 -1
+1 -1
+4 -5
+1 -2
+4 -6
+1 -1
+1 -1
+91 -148
+1 -2
+1 -1
+1 -1
+1 -1
+6 -6
+1 -1
+4 -5
+6 -10
+10 -20
+4 -6
+2 -2
+1 -1
+13 -15
+10 -17
+3 -4
+8 -19
+3 -6
+1 -2
+15 -23
+13 -20
+2 -1
+2 -3
+1 -2
+2 -3
+3 -3
+1 -1
+1 -1
+1 -2
+2 -4
+11 -21
+13 -16
+3 -4
+1 -1
+1 -1
+1 -1
expand_less