sysctl: don't overflow the user-supplied buffer with '\0'
Linus Torvalds authored

If the string was too long to fit in the user-supplied buffer,
the sysctl layer would zero-terminate it by writing past the
end of the buffer. Don't do that.

Noticed by Yi Yang <yang.y.yi@gmail.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
8febdd85
Name Last commit Last update
..