Re: Userspace regression in LTS and stable kernels

From: Kees Cook
Date: Wed Feb 13 2019 - 19:55:55 EST


On Wed, Feb 13, 2019 at 4:41 PM Samuel Dionne-Riel
<samuel@xxxxxxxxxxxxxxx> wrote:
> Before, the interpreter was still used (assuming it wasn't cut by the
> length), and the interpreter was free to re-read the shebang if
> desired.

Oh awesome. Yeah, so, nevermind about the WARN_ONCE().

So, to address the "wrong binary" problem, how about we ENOEXEC only
if no newline or spaces are found in the string?

--
Kees Cook