You need to sign in or sign up before continuing.
-
由 Lorenz Bauer 提交于
mainline inclusion from mainline-5.13-rc1 commit 607b9cc9 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5EUVD CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=607b9cc92bd7208338d714a22b8082fe83bcb177 ------------------------------------------------- Share the timing / signal interruption logic between different implementations of PROG_TEST_RUN. There is a change in behaviour as well. We check the loop exit condition before checking for pending signals. This resolves an edge case where a signal arrives during the last iteration. Instead of aborting with EINTR we return the successful result to user space. Signed-off-by: NLorenz Bauer <lmb@cloudflare.com> Signed-off-by: NAlexei Starovoitov <ast@kernel.org> Acked-by: NAndrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210303101816.36774-2-lmb@cloudflare.com (cherry picked from commit 607b9cc9) Signed-off-by: NWang Yufen <wangyufen@huawei.com> Conflicts: net/bpf/test_run.c Signed-off-by: NWang Yufen <wangyufen@huawei.com>
fd7dc3d1