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 6FA68802A5 for ; Tue, 6 Oct 2026 22:18:26 +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 696MHDTD028422; Wed, 7 Oct 2026 01:17:14 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 696MHDTD028422 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="W6LkVib6" Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 696MH9S4028405 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Wed, 7 Oct 2026 01:17:10 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 696MH9S4028405 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-48b0679906dso2095256f8f.3 for ; Tue, 06 Oct 2026 15:17:10 -0700 (PDT) X-Gm-Message-State: AFuF++k6DshR6NT8vhx62ycPtLoyg/oM7THDrh2qpaBbhpZm7pNqrtRq vZTAbYmznJp7BpCsDLqQNBLJmXNU6bEJnyiWltimneYR67phsaIQSjT7w+e5f7L7gGAWcTDj5YZ cJdnxXKtHqnGIj6gMazfoeq5kJsp8tZKV75b/BT6bWSczfxkHcXVwXw== X-Gm-Gg: AYBFou2fiJKf/ifgXEgX1ed7A8XmpqQK3Mj5EpHzOMSshRjUsUojDTS+x2AHJ3ULcoh w1Fam1aAulGZs5/oZLdZEhzDkxseHA2zb0HK89eJpCjv8qNaGkZVUSLwJjLQxFheU6uSGLmm6sJ JXbKzcU4zMeXK1+c4CobpFEyE57Vu2Byla69P9AVsew95YjleQWiOQLcshdijqxtVcN3wmLJSDG ebMugSp62N/hloHqUNwgJ0+YE6BiSptez9pNA3v5tqgzDy5Uor2Rn7fZOKwbjvVSBKqdxXgm40n Mirw0xoNqUd+iOVZmzyTMQz3Yd0Dpn3R2mK3B9vTwBYZzUl6Hl1Mmdyu6kHJGvXRQ84KnWrxw/z UVJavMVbPVbbLkZENov2mUQ8D X-Received: by 2002:a05:600c:810c:b0:49f:e427:e88f with SMTP id 5b1f17b1804b1-4a18041f900mr2754795e9.21.1791325029642; Tue, 06 Oct 2026 15:17:09 -0700 (PDT) X-Received: by 2002:a05:600c:810c:b0:49f:e427:e88f with SMTP id 5b1f17b1804b1-4a18041f900mr2754475e9.21.1791325029038; Tue, 06 Oct 2026 15:17:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1791325029; cv=none; d=google.com; s=arc-20260327; b=Iq27rJZoOdHU9nSfAGSCFaoYb0HFgsPw4rK3qk3s3F4LjOhT4EBozKJdNHpY1lwSod qbbP3LRsXp3oYmLObmlgEp1WS+AUhzxtCeouOhv+uyunnmjD/NY9dv+KnzMCUwzwfs2K 7IYG655l09D1fwRUQH2FML8oFtL1G7Za3eJDaaNlQVEmBysJadg7PXJGRf4DDHICdWFd UUI9AzEzPgzwPNSNxHelGsceF/T9nePiKbbXf62OcG1Mxw0WDSjGHYiRf2CJFkw9N9bh YXHfpF3m7HdNrTmYIfLDlkdcEzU4Ov0ZfGq399ESAysSnQ9TgmnfuDH1zErZzRmjVDDH 1d6w== 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=xEkFZS1d8dYqFQhO2TwdUzx45IbH0jsOpI8CAF1fjVk=; fh=WpT6aB7RBAGHZeWZzqAr71yzRFbPTYkPWKsRagLn48Q=; b=GNY6AhxP+oZQsN6GkynLmgvK+izBFwWQ6+PmofvNZM/ohHWSoXbZv6mfFZHD3UbQg1 xCdCUKcSYDOKJXABBgiblUgn+HDV+NoL11ppFHjBYg1va8/M/ksqZTtS0L+fSVQJ7OvP 6MZ8frb+WS2NJmM8D3AmNk6TFosm9+jov12BpHI1rt+YX13of1MbKn1uelfZXF6LLcuC VtlyTpteSCa4e5cPmKd17YISPMT4Nvz26hH1OpT4/huTenZy9BnCV1y8jv4h9kJf4wDH /xUrA2xJErrW+iTa6DYym+J0Nx1NicnUFUSJC3zJ+ILKNnRlbFYJHNybjDq3yzd5BXbX zyFg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=W6LkVib6; 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 5b1f17b1804b1-4a178cb22ebsi91049395e9.13.2026.10.06.15.17.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2026 15:17:09 -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=W6LkVib6; 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=xEkFZS1d8dYqFQhO2TwdUzx45IbH0jsOpI8CAF1fjVk=; b=W6LkVib6Zyws 4m7STxSTASHkpRvwRp+ndJ5UA2XHaj2SmnUJ3KaS+0nytpOIRyO2tNXGAbkM0NqoI2PUVtGWL8mNB YSi6Ft2tvi/5Ol6UGD1aY2Vx6obQ8lWQG6CjHOed/BuvY8lK6NVDAXebBWMg6vK3444nQmPORcogx ZE/SkTqzIsV3ML1M2+S8DzuU9WQxJU1r+Z18lRv8If3jdCHjml9XDBhF4ry48NByA9avDY6K5h0Rg D1twTPSr/VWcl76xC5yv+0Lc2zHL0sEzx/1Dk1KXuKR5edA6R/5OtsqHkpmiC2Uj72w7zSMyhW7B8 omsZS+fVU7i23n9AhczSVQ==; 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 1xEDPv-004f1D-1D; Wed, 07 Oct 2026 00:16:58 +0200 From: Eva Kurchatova To: khorenko@virtuozzo.com Date: Wed, 7 Oct 2026 01:15:49 +0300 Message-ID: <20261006221704.2507107-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 v7 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 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 | 416 ++++++++++++++++++++ 4 files changed, 451 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