diff options
| author | Qingshuang Fu <fuqingshuang@kylinos.cn> | 2026-08-21 11:14:42 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-08-24 11:40:29 -0700 |
| commit | 11e41444a3f6d854937672343a040607c219db0f (patch) | |
| tree | 2ad37d06a62a2db9de5aeb56bec312346579c342 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 2d83aa65dc983368ce14f1a1daa05ca56d38ab5c (diff) | |
selftests/net: check fork() return value in fin_ack_lat
main() never checks fork() for failure. When fork() returns -1
(EAGAIN/ENOMEM/RLIMIT_NPROC), the !child_pid test is false and the
process falls into server()'s infinite accept() loop with no client ever
connecting, producing empty output. The wrapper script treats an
empty log as a passing test, producing a false positive.
Check fork() for failure with error(), as is done for every other
syscall in this file.
Signed-off-by: Qingshuang Fu <fuqingshuang@kylinos.cn>
Reviewed-by: Hangbin Liu <liuhangbin@kylinos.cn>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260821031442.1124777-2-fffsqian@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
