Re: [PATCH v2] exec: load_script: Allow interpreter argument truncation

From: Linus Torvalds
Date: Thu Feb 14 2019 - 12:59:43 EST

On Thu, Feb 14, 2019 at 8:43 AM Kees Cook <keescook@xxxxxxxxxxxx> wrote:
> This documents the parsing steps, and will fail to exec if the string was
> truncated with neither an end-of-line nor any trailing whitespace.

Is there any reason why we don't just revert 8099b047ecc4 ("exec:
load_script: don't blindly truncate shebang string").

That revert patch would seem to be much simpler than this rather
complicated thing.