selftests/exec: Test for empty string on NULL argv
authorKees Cook <keescook@chromium.org>
Tue, 1 Feb 2022 01:16:37 +0000 (17:16 -0800)
committerKees Cook <keescook@chromium.org>
Wed, 2 Mar 2022 00:16:27 +0000 (16:16 -0800)
commit9132c3947b09a6c67372424ff69f867f2cee82f8
tree8165db6efc1e3ea4922fffc793aeac8fb8cfb930
parentdcd46d897adb70d63e025f175a00a89797d31a43
selftests/exec: Test for empty string on NULL argv

Test for the NULL argv argument producing a single empty string on exec.

Cc: Eric Biederman <ebiederm@xmission.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Yang Yingliang <yangyingliang@huawei.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kselftest@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/lkml/20220201011637.2457646-1-keescook@chromium.org
tools/testing/selftests/exec/Makefile
tools/testing/selftests/exec/null-argv.c [new file with mode: 0644]