Message ID | CAADnVQLfu8L06R96fHV9-7055yVwVQe=7vrHeHkTxN4tuqyCsw@mail.gmail.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | sk_lookup + test_bprm = huge delay | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
On Fri, Feb 26, 2021 at 5:59 PM Alexei Starovoitov <alexei.starovoitov@gmail.com> wrote: > > Crazy ideas are welcome :) So it was my .bashrc. Something in it was causing a delay. I've added this line to choke it for non-interactive shell: [ -z "$PS1" ] && return
diff --git a/tools/testing/selftests/bpf/prog_tests/test_bprm_opts.c b/tools/testing/selftests/bpf/prog_tests/test_bprm_opts.c index 2559bb775762..cdd2182c83a2 100644 --- a/tools/testing/selftests/bpf/prog_tests/test_bprm_opts.c +++ b/tools/testing/selftests/bpf/prog_tests/test_bprm_opts.c @@ -66,8 +66,10 @@ static int run_set_secureexec(int map_fd, int secureexec) * If the value of TMPDIR is set, the bash command returns 10 * and if the value is unset, it returns 20. */ + null_fd = open("/dev/console", O_WRONLY); + dprintf(null_fd, "before_bash\n"); execle("/bin/bash", "bash", "-c", - "[[ -z \"${TMPDIR}\" ]] || exit 10 && exit 20", NULL, + "echo running_bash > /dev/console;[[ -z \"${TMPDIR}\" ]] || exit 10 && exit 20", NULL, bash_envp); exit(errno);