All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net v2 0/2] selftests/net: fixes for fin_ack_lat
@ 2026-08-21  3:09 Qingshuang Fu
  2026-08-21  3:14 ` [PATCH net v2 1/2] selftests/net: fix kill() argument order and wrapper cleanup in fin_ack_lat Qingshuang Fu
  2026-08-21  6:45 ` [PATCH net v2 0/2] selftests/net: fixes for fin_ack_lat Hangbin Liu
  0 siblings, 2 replies; 4+ messages in thread
From: Qingshuang Fu @ 2026-08-21  3:09 UTC (permalink / raw)
  To: Andy Whitcroft, Joe Perches, David S . Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Simon Horman, Shuah Khan,
	SeongJae Park
  Cc: netdev, linux-kselftest, linux-kernel, Qingshuang Fu,
	Qingshuang Fu

From: Qingshuang Fu <fuqingshuang@kylinos.cn>

This series fixes two bugs in the fin_ack_lat self-test.

Patch 1 fixes the swapped kill() arguments in sig_handler(), so the
server actually forwards SIGTERM to the client.  It also makes the
wrapper script's cleanup tolerant of ESRCH, since the client may now
exit before the kill command reaches its PID.

Patch 2 adds a missing fork() error check: on failure the code falls
into server()'s infinite accept loop, producing empty output that the
wrapper script treats as a passing test.

Qingshuang Fu (2):
  selftests/net: fix kill() argument order and wrapper cleanup in fin_ack_lat
  selftests/net: check fork() return value in fin_ack_lat

 tools/testing/selftests/net/fin_ack_lat.c  | 5 +++-
 tools/testing/selftests/net/fin_ack_lat.sh | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
v1: https://lore.kernel.org/all/20260817091017.281104-1-fffsqian@163.com/

v2:
- Split into two patches
- Add shell cleanup tolerance for ESRCH per Sashiko-AI review
- Add missing fork() error check per Sashiko-AI review
-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-08-21  6:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-21  3:09 [PATCH net v2 0/2] selftests/net: fixes for fin_ack_lat Qingshuang Fu
2026-08-21  3:14 ` [PATCH net v2 1/2] selftests/net: fix kill() argument order and wrapper cleanup in fin_ack_lat Qingshuang Fu
2026-08-21  3:14   ` [PATCH net v2 2/2] selftests/net: check fork() return value " Qingshuang Fu
2026-08-21  6:45 ` [PATCH net v2 0/2] selftests/net: fixes for fin_ack_lat Hangbin Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.