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>
Tue, 1 Mar 2022 00:53:44 +0000 (16:53 -0800)
commit630dc3ca2b04ddcac7bbb4af73027c4a91ac958d
tree72f6a61c24db73bcd04d44ed8720c35478651376
parent7d587c96bb3c4ba6afda8d9891465a1af729d0c4
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]