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 D0C6B802A7 for ; Fri, 2 Oct 2026 04:46:05 +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 6924icoW014384; Fri, 2 Oct 2026 07:44:39 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6924icoW014384 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="aKNLcb/q" Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6924iaVc014373 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Fri, 2 Oct 2026 07:44:36 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6924iaVc014373 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-486f1ecf9bbso2355201f8f.0 for ; Thu, 01 Oct 2026 21:44:36 -0700 (PDT) X-Gm-Message-State: AFq9FYLD2Ymvipd2KruOuwk+l1Cen2Wm6Huodtph5WxIQ0rbzDS41FGG JF9tIaiaeVIMsPIrLdd7JFquqhNuRtev8vn1ZMPSj5vdggKa3aktE8TGM/XVI1wPlTNslSabGXu FZuztipV2S117dNjTD+ZSLZ/p5UsQ8t3o2RSdtBa7XqZ3+y0kemN6Ug== X-Gm-Gg: AYBFou3g7qOpGnrAELULVYNdsObDAU5XHQX8D+T6OBcJpPE0iklXph/Xny7fBkQD4Wr WH7RdMnJ+vBdCurWHcLgry7qL3wxMFzSGxaqmfig7wdK/UR1DCYFc5Z4wY3xcdZeyKuyMbqrpxT DlQfBrfUaBzMltr7o4ZQXnrPShZ6o/xc9Nlv6K50WWQlVj/VH0MPaA6fNTcT3MevJuGpk/5xBw8 tC+F3zCFSNHJizaWGSeQfVH4gHc8KbaZ38ZJkz8c8dzSoCETUvZ3mBakIvbpz5CRwZFcerXUmfp 1ZH1OLIx83xCu7vznaV+Q3thytxbmQnjdeV2KcB5ILFnVUwNvNsPUult3M9AtiVe+Elp4sr+rvO 9z2rLNhMyFM6JDUtNFFsNmM/Cjg== X-Received: by 2002:a05:6000:98d:b0:48b:7e:eebe with SMTP id ffacd0b85a97d-48b12716e1amr2783397f8f.24.1790916276521; Thu, 01 Oct 2026 21:44:36 -0700 (PDT) X-Received: by 2002:a05:6000:98d:b0:48b:7e:eebe with SMTP id ffacd0b85a97d-48b12716e1amr2783379f8f.24.1790916276026; Thu, 01 Oct 2026 21:44:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1790916276; cv=none; d=google.com; s=arc-20260327; b=lTJxRM4sZKX+N1cvw1zjXF2+hi1ydCfV/KajzqmnGPVdNaYd8YO8YY9Esmn1v8wW0D 1HEr73yiUikWg9sRAXbzcOyDD5BqM1Ob4gN0OUz8H5/vLdX3ttYkyiLMyzLDcpzjJJ6o sDvDphEK01OszxcnrnjksBVn+gKszjsK2mGZUlprUMfN3b1dYqHvI4+78vJcEj2XxKH1 JuKgVSgjYLYrwqtSNAgPgCcxoLAp3/AtN02z7oXnAzdqFU5s0vnmG5hJi5yzNt0uyEwX kjZLdltP4GZrZmByEULX912o553/gR70nu+PHNlwkLZccGAJO3J3xtHYUxZdfFKSapGf lZYQ== 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=7QzVI45pnVTsVlzjPU+xR/QFyjAPgHP0Kj1oDchWymE=; fh=WpT6aB7RBAGHZeWZzqAr71yzRFbPTYkPWKsRagLn48Q=; b=JuBDHuO3IonYOSbvd8ClTwrVw2wMXPCXfyPip0a7jLm4etDKxCDXWjU3JNY3W9EB5H EIDe3kkvthQtPhJFQQKwYIizukboYdLoRjiVbdWldCSg8QLn9kTwvN/1t0yPnp6WEFVS zQ1IPfmFh5ST0Nv98luRKJUiWGdZPiPz9TLH2imPTi0umv86Le1HUf/p6WqJ3qlRlWR1 4pgRy3ducvqGmYfeKsCnrWVAmAV9OwBYSqRLEtvbfn2qrNCkw+54zd25z9zKrl1QdJyP C3FPILyJfqvOEGhod+ir81+ug3LdSE1X3F4U6JuvGuw8P+o6HbGahFmcyTCI+kZnmvdX 6oQg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b="aKNLcb/q"; 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-48b5b4441f9si2244826f8f.441.2026.10.01.21.44.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Oct 2026 21:44:35 -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="aKNLcb/q"; 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=7QzVI45pnVTsVlzjPU+xR/QFyjAPgHP0Kj1oDchWymE=; b=aKNLcb/qVSmp 0rE50qjhxtjytDU2/XhnnCS17Cjg0+FB9n9LSOT/wAO4OnTuXim7n/nXGsK7V1PDJW5CLKfSX/tr8 4zxpt7hEGKHGZnl7eLkNCuRO6J//IvqhvoIOVQw97vuSy7HFvWlPJHwHObiDRGw94hZFHybQ0TQ4I W5tHjc2xLjYR68AKeF/8bRDIq1MyYn1TcRVC9peZcAZMOlDV84uV9l2LOGIxAsYb41SpGQbCIATcp tTnbDKVfxRjxC9BT3xxY5sETJ+mN2Bu3U9miP11qT0iNwwTHFxDXq/VTyOdwI6IVDrKj9vEzqzN+w gbkORh0/1POorkTaVvfpng==; 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 1xCV5F-00F2fs-0w; Fri, 02 Oct 2026 06:44:32 +0200 From: Eva Kurchatova To: khorenko@virtuozzo.com Date: Fri, 2 Oct 2026 07:43:12 +0300 Message-ID: <20261002044431.1632888-1-eva.kurchatova@virtuozzo.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.1 v6 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 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 | 343 ++++++++++++++++++++ 4 files changed, 378 insertions(+), 3 deletions(-) create mode 100644 tools/testing/selftests/ve/ve_vtty_stress.c -- 2.55.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel