arg1 may point to a variable string which is not null-terminated. When micro-optimizing this string as a readonly one, strlen() may report a length exceeding the max length, hence it is possible to leak a portion of kernel memory to the userland.
Fixes: 210176ad76ee sysctl(9): add CTLFLAG_NEEDGIANT flag
MFC after: 1 week