All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: "Eva Kurchatova (Virtuozzo)" <eva.kurchatova@virtuozzo.com>
To: no-reply@sashiko.virtuozzo.com, khorenko@virtuozzo.com
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.1 v8 2/2] selftests: ve: introduce vtty pair teardown stress test
Date: Fri, 9 Oct 2026 05:43:30 +0300	[thread overview]
Message-ID: <81b895dc-01b6-4fc1-b106-8d0e9fa0f8ed@virtuozzo.com> (raw)
In-Reply-To: <010701a119ae339d-bcb8a448-8c9c-4fbc-b543-fac59c11c6cd-000000@eu-central-1.amazonses.com>

For future reference:

On Thu, 8 Oct 2026 04:03:29 +0000, no-reply@sashiko.virtuozzo.com wrote:
 > - [Medium] selftests/ve: kmsg_check() fails on any unrelated host log 
record or ring overrun

Deliberate, and settled in v7: a kernel that warns during the run is a
kernel to look at, whatever warned, and the test prints the record so
the reader sees what it was. ACKed by Konstantin.

 > - [Low] selftests/ve: master loop ignores early exit of slave child 
in main()

It changes when the verdict is printed, not the verdict. A slave that
stops on its first open is reported as a skip or a failure at the end
of the run.

 > - [Low] selftests/ve: wait_child() leaves status 0 when waitpid() 
fails non-EINTR

waitpid() has no way to fail there: the child is this process's own
fork, nothing else reaps it, and SIGCHLD is not ignored, so ECHILD
cannot come back, and the arguments are fixed. The only error it can
return is EINTR, which the loop handles.

 > - [Low] selftests/ve: stop flag check races with blocking 
waitpid()/read() in main()

A child that is blocked in a syscall is interrupted by the signal,
since SA_RESTART is disabled, and a child that landed on the racy
window will still eventually stop at its own deadline.
I am not aware of an atomic way to read()/waitpid() and check variable,
like a futex, that would be useful here for sure.

 > - [Low] selftests/ve: deadline uses 1s-granularity time(NULL) in 
main() and hammer_slave()

That one is right: a run asked for one second could end immediately,
and the timeout can jitter in 1-second units, however that is not
a useful run time for this test, and adding monotonic clocksource
would in my opinion be redundant here.

Eva

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

  reply	other threads:[~2026-10-09  2:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-08  3:52 [Devel] [PATCH hci-8.1 v8 0/2] selftests: ve: fix ve_perms, introduce vtty_stress Eva Kurchatova
2026-10-08  3:52 ` [Devel] [PATCH hci-8.1 v8 1/2] selftests: ve: grant the directories the files sit in Eva Kurchatova
2026-10-08  3:56   ` no-reply
2026-10-08  3:52 ` [Devel] [PATCH hci-8.1 v8 2/2] selftests: ve: introduce vtty pair teardown stress test Eva Kurchatova
2026-10-08  4:03   ` no-reply
2026-10-09  2:43     ` Eva Kurchatova (Virtuozzo) [this message]
2026-10-08 16:24 ` [Devel] [PATCH hci-8.1 v8 0/2] selftests: ve: fix ve_perms, introduce vtty_stress Konstantin Khorenko
2026-10-08 16:32 ` Konstantin Khorenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81b895dc-01b6-4fc1-b106-8d0e9fa0f8ed@virtuozzo.com \
    --to=eva.kurchatova@virtuozzo.com \
    --cc=devel@openvz.org \
    --cc=khorenko@virtuozzo.com \
    --cc=no-reply@sashiko.virtuozzo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.