From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (unknown [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id 86F5F8080B for ; Thu, 8 Oct 2026 03:55:00 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6983rhsZ019093; Thu, 8 Oct 2026 06:53:44 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6983rhsZ019093 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="U25NaKfq" Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6983rdc4019076 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Thu, 8 Oct 2026 06:53:39 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6983rdc4019076 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-48b09f01f56so2973135f8f.1 for ; Wed, 07 Oct 2026 20:53:39 -0700 (PDT) X-Gm-Message-State: AFq9FYK/0mlWTns6M2vHX20GPKPavvhOJ3/K+XVSKKPbAYUsTn28og3o NqjI/7/y058Fqs5WJTYXwoK+gLyVsy9j1CLLLXClVqQnY0Bh2tiEFqHEKT7IePFa1c+R0/MAIiB Il8+uOSzUcalbod64PGFXJ/bW523EcLIDMbWjBiyBfqJikS1t5bQb8g== X-Gm-Gg: AYBFou0U7eY3Nd92OkmxpWWGyekQbrgtq/NzdvWXnFZcg6qczoHH5PIF/QBsz85qqEe USDr4ISiqS9OnsBBXF0I18Q7hc45Dy8eT83GKL32i8vSamjFd9bjuIk2UMHt6w9ZxlnyWRECFH7 1ezEIfwAQvQBxtXBx8iOOFl155qPxjzNOHUNafi1XhJrznF6SqElXJf6e9/SEgRy4Pp5ii3/xo8 chsXucOpVmAcpijkPV4rq9SUdJlAZvmq52x8KR6eGrkQTPMInT3UfIzeQx84pvTlXpBVttf2n++ yUN+8LmRtHyjB9zR3Exwho7WWT8di9U65KXY9csfwd6PbIWX84r3Z0bkZlvgrRVpmCStn89RQq5 ZHvpJANWgn7zcy3ms+w7eGogd X-Received: by 2002:a05:6000:4719:b0:48c:58e7:942e with SMTP id ffacd0b85a97d-48c7278c0f1mr7777436f8f.49.1791431618837; Wed, 07 Oct 2026 20:53:38 -0700 (PDT) X-Received: by 2002:a05:6000:4719:b0:48c:58e7:942e with SMTP id ffacd0b85a97d-48c7278c0f1mr7777419f8f.49.1791431618284; Wed, 07 Oct 2026 20:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1791431618; cv=none; d=google.com; s=arc-20260327; b=dOg0BV95ppBwoQgTJsrgy2HlntBxXFwxMZ5Y0xAp1kMZyFCDVf6QOGkM2aKcJMgmp0 wLU6chxs7LXJ1gF3hwauFci5WQ3XcyYI+Qqlc5bpO6dhibtgYXSRc3Cfy90lusrQ7S6r i1+PXl9ZDD3fzqGXkg9kjoKiRYdeTkr7qbeKpIZzJhALp8dYpgWT8tixgUHFu12vNq30 ufPbEE0JrK9l1sHcPK+vV8wCkVPdED2L0MgHQgYYD5evSOzhx7Qmd5WE31rluDbAhw9n mPNAQLo+VEIMUYv5S3F/6M0PhIRFE0l7OIuPc+k8i4bV30ILVZ30XhA1f+S5xk3ORLHC akgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=nDBZVGiFIpWApKybEo9XXON4nGCSbe0ELSy08Wio7DA=; fh=WpT6aB7RBAGHZeWZzqAr71yzRFbPTYkPWKsRagLn48Q=; b=MGh4Yzr1oUeXQbII6+QiviQHePo7fmHgGDBxkfHqAaRjCKKwrZL3GcqP4sm/TOij+z vHpG+qwIFWGZ3p9sZjv6qPMSwpbxYPZsOm5aOz4rULbdvwSK/7e/mTco0TA+egS3UWNo /xMeQMb6V/j9pVK6+GTkIOBCv42bnAAsawL3zGnjaV8trS+kolOPgK2jOpkVC1s9XjZ/ 8I6nPQPd3ubweyNRXlbjtVn4ePmL6Z1LW3HO8igicitBMguCcj/wXW4zEtVFPztApVOr plA1NgToGRItZ0XfbJ9OXlFSBwM5mlk5gI02KvkVQndXttAuNNs7opnS0fvfzqWaZbMV +C+A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=U25NaKfq; spf=pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=eva.kurchatova@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id ffacd0b85a97d-48c724b5fb4si6839041f8f.437.2026.10.07.20.53.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2026 20:53:38 -0700 (PDT) Received-SPF: pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=U25NaKfq; spf=pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=eva.kurchatova@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=nDBZVGiFIpWApKybEo9XXON4nGCSbe0ELSy08Wio7DA=; b=U25NaKfq0B3k lWXatGzQ/ckxzmXtPNhvkdsNNpr2+LwAYywS+/aOnfEdKsPeD5/t3xUvCmxHqG9kRpNAqY8PVyzi1 hQGi9HCqpvUcmnsCZkSat6ZLdmDlHIqlWdVq8gAEKX/qTkuOjylwMr9Mh+5h7G6fg5cORqkF2JyZZ OeIuxAIPMnnH9Yf7qTlRI38AbATrzriSqCP4DGrwfKzobCci3dSj5LTAxIjzSq7DEv/kEAIyz+Ssb G6ZdnZpVQkGXR7koRNeL3AIMchuZWiYLNgznIWq4i8TrS/q8XsvEpB3kNIttw1iOayxehualKL+gq HAR55nIbf3djIRWCnUaBvg==; Received: from ch-vpn.virtuozzo.com ([130.117.225.6] helo=LekKit-T14) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1xEf94-003Uck-1X; Thu, 08 Oct 2026 05:53:36 +0200 From: Eva Kurchatova To: khorenko@virtuozzo.com Date: Thu, 8 Oct 2026 06:52:17 +0300 Message-ID: <20261008035335.2823931-1-eva.kurchatova@virtuozzo.com> X-Mailer: git-send-email 2.56.0 MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.1 v8 0/2] selftests: ve: fix ve_perms, introduce vtty_stress X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org Patchset for tasks: https://virtuozzo.atlassian.net/browse/VSTOR-144955 https://virtuozzo.atlassian.net/browse/VSTOR-144771 Should be merged in this order, since without the ve fix, the testsuite will not pass at all. Changes in v8: 2/2: - Take a high random veid instead of asking the kernel if one is in use. - A master that cannot be opened fails the test unless the device is absent or denied. - Scan the kernel log one last time after the cleanup, the last report could land after the scan. - A signal that lands while the master waits for the slave's count no longer leaves the slave running to its own deadline. - Correct feature trailer to follow other ve selftests. Link to v7: http://lore.virtuozzo.com/kernel/20261006221704.2507107-1-eva.kurchatova@virtuozzo.com/T/#t Changes in v7: 2/2: - Read the kernel log every second, match more warning patterns, count a ring overrun or kmsg read error as a complaint. - Try the next cgroup id when a running container holds the veid. - Skip when mknod()/mkdtemp() is refused or /dev/kmsg cannot be opened. instead of skipping on the first one for good. - The slave side exits when its parent is already gone. - Clarify that the veid check is best-effort and subject to TOCTOU. - Correct the referenced vtty fix commit hash. - Minor cleanup / skip fixes. 1/2: - Mention the set_entry() change in the message. Link to v6: http://lore.virtuozzo.com/kernel/20261002044431.1632888-1-eva.kurchatova@virtuozzo.com/T/#t Changes in v6: 2/2: - Ask the kernel whether the veid is taken before writing ve.veid, and skip when it is, instead of assuming the 108..200 range is free. - Skip when the slave node lands on a nodev mount, where mknod() succeeds and every open fails with EACCES. - kmsg_check() still fails on any WARNING, BUG or Oops record, as the v2 review asked: the node runs nothing else during the test. Link to v5: http://lore.virtuozzo.com/kernel/20261001032531.1307025-1-eva.kurchatova@virtuozzo.com/T/#t Changes in v5: 2/2: - Rebased. - Drop the vendored uapi structure definition. - Use newly introduced VE test helpers instead of hand-rolled ones. - Check subtree_control write, skip if needed. - Report child exit status alongside "The VE side never came up". Link to v4: http://lore.virtuozzo.com/kernel/5fc7cab9-c486-4568-8034-693d756b1050@virtuozzo.com/T/#t Changes in v4: 1/2: - Check the snprintf() in set_entry() against sizeof() and give the buffer PATH_MAX, similar to how ve_open_rel() already operates. - Correct comments. - Fix the Feature tag. 2/2: - Move the double release_tty() history out of the file header into the message. The header keeps what the test does, how it reaches both ends, and the usage line. - Match "general protection fault" records as well, they carry no "Oops:" prefix. - Reason about the test reproduction time in the commit message. - Document that the test assumes its veid is not in use by a running container in the commit message. - Default to 30 seconds and drop the settings file, the run now fits the timeout the suite already has. Link to v3: https://lists.openvz.org/pipermail/devel/2026-September/085277.html Changes in v3: 1/2: - Code unchanged from v2. Only the test count and the sentence about the proc variant were dropped from the message; the rest of the v2 review is addressed in v4. 2/2: - Corrections in commit message and comments. - Bail out on the first open errno that is not EBUSY, EIO or ENXIO, on both ends, and report it, instead of spinning erroneously. - Match /dev/kmsg one record at a time. - Keep reading /dev/kmsg after EPIPE instead of stopping on it. - Put the slave node under a private mkdtemp() directory instead of a fixed name in /tmp. - Kill the slave side when the master side gives up, with PR_SET_PDEATHSIG as the backstop, so it does not hold the cgroup open against destroy_ve(). - Call destroy_ve() on the one exit path that skipped it. - Default to 60 seconds, from 600. Link to v2: https://lists.openvz.org/pipermail/devel/2026-September/085125.html Changes in v2: 1/2: - Add the Fixes: tag, the code is unchanged. 2/2: - Add the binary to .gitignore. - Formatting: single spaces, one initialiser per line. Link to v1: https://lists.openvz.org/pipermail/devel/2026-September/085081.html Eva Kurchatova (2): selftests: ve: grant the directories the files sit in selftests: ve: introduce vtty pair teardown stress test tools/testing/selftests/ve/.gitignore | 1 + tools/testing/selftests/ve/Makefile | 3 +- tools/testing/selftests/ve/ve_perms_test.c | 34 +- tools/testing/selftests/ve/ve_vtty_stress.c | 415 ++++++++++++++++++++ 4 files changed, 450 insertions(+), 3 deletions(-) create mode 100644 tools/testing/selftests/ve/ve_vtty_stress.c -- 2.56.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel