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 154EF802A7 for ; Thu, 1 Oct 2026 03:26:53 +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 6913Pa96030221; Thu, 1 Oct 2026 06:25:37 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6913Pa96030221 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="moCVOvJI" 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 6913PZ6Y030209 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Thu, 1 Oct 2026 06:25:35 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6913PZ6Y030209 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-47f6e8b5996so5386214f8f.2 for ; Wed, 30 Sep 2026 20:25:35 -0700 (PDT) X-Gm-Message-State: AFq9FYJtU1hhZPdNr7SsbhS0C6motl/aV1QevuLI/HqGWrOsCFllv04D TQvYhGUnxryNT/3vwWbHy6HmfU+jIVwHFaSiPyaUdydNXZNPkL9CXhbICObSqcAtsm7zDgmiMmq zUI00p1FgsidkzXzT2YlW3UsawipMhBSs6ZfNRf2i0nxNP4XDo1L2zg== X-Gm-Gg: AYBFou1dhWHpxZIneEs59/9y+o65TsZ9IcjoLwI5OseGxAjtVzC53v6fNKS8cKwoy3N EwhGUBeUrLKsKmFP28BulWI8iRmpoO70E1OqGiGkMjmUBsizn2sO/+TVyQhBjQBHXI1vSaThWXu Aty2dc2Ml4CKOJtLioVKPrVjEd5Y3SJW9ohtOORBrsCkZIjAL6S9rUHc/ZeWwA5cnglOb6J4gmV 6qe26UNGau/2lQKlniKx1qoc6e8APEf1MK0zH9hYUFlPIgxFmMo3Ez1NAQdsULL7uZ41ozZ2NNo +iFcaJZldjj1YSH+Lj3mkstgzpe9M74ejuW3KbUoeZcv0t32/bNcVTynEQZ0eulJ7XpGkHdWYFl wSX319wZbxKgz0BklBm+wTXCNzw== X-Received: by 2002:a05:6000:25c2:b0:48a:fdde:5241 with SMTP id ffacd0b85a97d-48b024ef6b1mr6857179f8f.31.1790825134862; Wed, 30 Sep 2026 20:25:34 -0700 (PDT) X-Received: by 2002:a05:6000:25c2:b0:48a:fdde:5241 with SMTP id ffacd0b85a97d-48b024ef6b1mr6857151f8f.31.1790825134301; Wed, 30 Sep 2026 20:25:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1790825134; cv=none; d=google.com; s=arc-20260327; b=Yoo6SsuSwGlPwcCqiyv5CQ04iL2cOS6vEZfM3m2j3BrMLuSV+shRqZ/qE1ZsQz2s3P Q1IO9cQE1KJt01d5kZQQkE+Xs1ZzxhZrBqzGg4GwaiL2BtLBfGYYhki4CxVksCGp+7kR 9sql7x6BUH7bAPoapV1pmnmu3mW6Zik+hTXLGqeuP29pCENCRmjn9YgGeCThBPvAkQKm 3mxGjbmMJp67MW6QmgXZ4OOgMZZzZM/BpvFbY9CS3Q5mdSu/D26C2PoptM7wMQnEjHKo 0BFQ2pteUmvQqnNodYw0G5cVzbW6eQBK8UnzEFqZTI+UZkxyGdHQPIhUhfG4S9PdKi29 Kh5w== 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=hS6dtF3KIl/ZNmJkC+A4oPzNem6kktc3q+nzhG6QIo0=; fh=WpT6aB7RBAGHZeWZzqAr71yzRFbPTYkPWKsRagLn48Q=; b=mzxI+QAFvDoQhghKeudGmFClslQ3ODZ+2kry5utD9tTXZw8uDRIAzTBJ7J/MMUkuVN u1Haf3ceZvaF3ZK2HGp5ye3yMQb+TO/Tiu5di36a88SaIWA3FG6pUBdPdhM15ktcCJff iMXVLOa3SqPvduFoNGZtglm0FtFfrkmK1DNnZu4JeBnXth3oWCdjSjaEA17nDa2b1nDw zFKRIbinlmhvs/uZ+Q+Aod3uwjJ3WyB3pQkZ595HPoOqWAlgFKUQ4VRUBJ5w+VtE1FJN oVsuYQAIPNtz2xqxLnePvfPNJSJAr/ghsSngzH0qW5y9nxkPnlXXsbPkz9/Iqq7r93TF ydIg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=moCVOvJI; 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-48b0692069asi2868159f8f.106.2026.09.30.20.25.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2026 20:25:34 -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=moCVOvJI; 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=hS6dtF3KIl/ZNmJkC+A4oPzNem6kktc3q+nzhG6QIo0=; b=moCVOvJIS7w8 I2C2oMHzyJvkRBZF3CJmstHO9BDU+nJl1VSrJ/A+EeShao8/yzxHQpeRxKkuI7dvOzTA4GEI/AK3c IzQfxfS+kFY8UhJgs4PaD7dVS7/cZyfUa3eklz2aU9+7babDxiv1fygZ/4o9FS9RTZ7RK1f5Gk4WP b5f1Jxr/k7VDmVu+l2eSX7zBdp5TGHEUZcKT1XtAoreCiJ4LyiEZhim0HF1aQpkl2wELYf7JuhQuL Np2Ogp855GZllMO1DXexAlUYIM1QS8R4uMPhB0hZ/6b9+GrG7hQ8QeqYLyu99AGw8n5AreY/uDOjl zmw7M1sEjH2x3tTeHeW2zw==; 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 1xC7NF-003ax4-1W; Thu, 01 Oct 2026 05:25:32 +0200 From: Eva Kurchatova To: khorenko@virtuozzo.com Date: Thu, 1 Oct 2026 06:24:18 +0300 Message-ID: <20261001032531.1307025-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 v5 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 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 | 317 ++++++++++++++++++++ 4 files changed, 352 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