]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "exec: load_script: don't blindly truncate shebang string"
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 14 Feb 2019 23:02:18 +0000 (15:02 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 14 Feb 2019 23:02:18 +0000 (15:02 -0800)
commit858ab2c06308c28a2f6dce082d932bd38f5cb921
treedd680d270410e8df9114ad98246e92c650291318
parenteeb51027c5e28a177075c1faed0e75825f3489f7
Revert "exec: load_script: don't blindly truncate shebang string"

This reverts commit a5d0c2f731381ac23fdadddcc8ab49e3841501ea.

It turns out that people do actually depend on the shebang string being
truncated, and on the fact that an interpreter (like perl) will often
just re-interpret it entirely to get the full argument list.

Reported-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/binfmt_script.c