From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (mail.openvz.org [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id D7D408045D for ; Tue, 27 Oct 2026 20:52:36 +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 69RKpGuX001007; Tue, 27 Oct 2026 23:51:19 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 69RKpGuX001007 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="thMkOJxq" Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 69RKpFPg001003 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Tue, 27 Oct 2026 23:51:15 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 69RKpFPg001003 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-4a1895ffc83so1622115e9.3 for ; Tue, 27 Oct 2026 13:51:15 -0700 (PDT) X-Gm-Message-State: AFq9FYKa6IRuDK3Jrq1XYOK54pjSo9zduiKp0ZlzsAyfnBug3h9D3LT9 I5prqa1gevpvTYmyJZrL1alJpsP0mtrR7/Bf9IbciyBtr0WJXO1Y7PcxNgjk/D5rZUJzqylaFfL 5xWFJGEtB7vWaMJ5nGmpQXo0idJvn/wCRTnIMn5lMK7wqcwX5iDDCdw== X-Gm-Gg: AYBFou1cUaxpfGBnFIpLwcVsz4KCS/Fwehw1pQnGz3Gc8Z7e1RdbzOA/WRdHn3y1ocD dgXDuoimqOxFrjgqZYUhYxNK3Y5/EF1b5I9oD6RZTmUBWBgg3M8A20Lq4Ea81qySJLAuGDR6o7b Cnot73pn37XdVKtUpPeDEP8PnqehiF2OK0J/rsW0ld/iU4iow91Xz8cPzt9Kc8Jjl5QAy/asK7h YSOUhydvIDfPb6/f5vaVzZBg0bKE1126rtu8vo6mI1SyzJAgOj4IpEnLtGZxij5trI8jswesMuq nFe9LxHcqvuTZ7y/C9spNaeX5ZKCFBzgn577dxotgEptbjVldCovS9Homzt4x/TClIFCDKLnfjX SKDdW5Lg51XfQTAsnTeFMnT0UVA== X-Received: by 2002:a05:600c:4454:b0:4a1:6992:f861 with SMTP id 5b1f17b1804b1-4a9643d5135mr2939845e9.1.1793134275424; Tue, 27 Oct 2026 13:51:15 -0700 (PDT) X-Received: by 2002:a05:600c:4454:b0:4a1:6992:f861 with SMTP id 5b1f17b1804b1-4a9643d5135mr2939415e9.1.1793134274833; Tue, 27 Oct 2026 13:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1793134274; cv=none; d=google.com; s=arc-20260327; b=Mw5YygHrt6glnloh8Q9T+Fm6+s02Ag0RCQORYr80ZJkgqzv8NO5tnf7St0J1HAWYjq PJ9QWq5NTMcBU4TtEi9a2Psrcd0sYm21L6OPubcfSDKNkL7Q1Fa/EMJxdIOJs0N5bgx3 N/j+Qmy4l3k44r6C4CVdgyfFyD4Zqf/y59tWjt/L/fy7q0WiHO27A9uOIoHoY+DUMTmL Aev8v3FQy6/1IwgqKHJY0T952c1QHARfdGgFd+aVDmZ0lPNBcp+dnAaoO6WeeNj6wsyr ZM14XgkyAB/EOfVIit8iTUvJ7EeA1j9aa07gsyhTvMdCyzhS+onkXxXCFwIaHBl7v6ra F2FA== 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=W2y7Zr12lC/I+LsojppMzRF7w5nr2xYeKES/fyh/+KY=; fh=WpT6aB7RBAGHZeWZzqAr71yzRFbPTYkPWKsRagLn48Q=; b=GVifJg/ylYl6dxrlAJgNae4UOgt7tEkKIukg0s1TnZ9D/AUJLkE/jNeKLY0F/K7T25 V3Vcze/OPp/afUpBy7AVJ0QXChcsrnGEL8Bd3z8Gt8h6sN7i3Z/wdQunrkNVeKZBzpMg tSyJjU4L2pT3J8Y7gW7v0yGmwIU8BaVwvHKfFla0sMXq3Sc1ixe/oLC/cSOkDNTmkLB6 IoKLkgm+RJwTa8czABZ9nswAfczrUfvWhIows/DIQ6nofBJVwuHAvos49o27eATMk/aC FJSFXZLj2aCQ1P1Wd9i1fTX50PrNl9iLIgn9vKWdgU/DTZ1/bhCyNCvlgqP/wDb7Jxgb JfcA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=thMkOJxq; 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-4a94f435ec4si6615735e9.17.2026.10.27.13.51.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2026 13:51:14 -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=thMkOJxq; 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=W2y7Zr12lC/I+LsojppMzRF7w5nr2xYeKES/fyh/+KY=; b=thMkOJxq08gh qhYiKjb3NEUJbk7z6VF2GU/Gk5ReT4RpaGpA2zp3c/WL+IOKfryPf+Wic/hHVPH1UApT+ARwnc6k7 8LP+wvOR4Hi1Dnk9yLzkNenp03AmNND6cIPtKvAQS7NPA17k+iKbQcE4cmM8TsNl65f9cxb9hjrBB 0AggjMf6Zl1lgKevThowd9wpFnMZOPYVW7ajIbCTvFruYeC1nDODpProiGBuNngM5yY+k3OrlSmo0 UChH+01gCMfNT0SvePwDhtbFKFv/dD+5CjHbEBT7TeaOLjkpfo8GROM146L8bw3qLLwbclC80lRAA iVZa1Ot1SHxeH3k3Z+/BhA==; 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 1xLo4n-004tFS-0c; Tue, 27 Oct 2026 21:51:04 +0100 From: Eva Kurchatova To: khorenko@virtuozzo.com Date: Tue, 27 Oct 2026 22:51:03 +0200 Message-ID: <20261027205112.1316232-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] ms/um: Set parent death signal for userspace process 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 Enable PR_SET_PDEATHSIG so that the UML userspace process will be killed when the kernel exits unexpectedly. Signed-off-by: Benjamin Berg Link: https://patch.msgid.link/20240919124511.282088-4-benjamin@sipsolutions.net Signed-off-by: Johannes Berg (cherry picked from commit 801e00d3a1b78b7f71675fae79946ff4aa3ee070) Rebase note: this tree lacks upstream 32e8eaf263d9 ("um: use execveat to create userspace MMs"), so the userspace process is still cloned and set up in userspace_tramp() rather than in the stub executable; the parent death signal is set there, through os_set_pdeathsig() as mainline does for the winch thread. Without it, the userspace processes of the mms still alive when the kernel halts lose their tracer, fault in the stub and dump core: every KUnit run of the User Mode Linux kernel leaves "linux killed by SIGSEGV" core dumps, which fail the exit check of the hci-kunit CI test. https://virtuozzo.atlassian.net/browse/VSTOR-143633 Feature: fix ms/um Signed-off-by: Eva Kurchatova --- arch/um/os-Linux/skas/process.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/um/os-Linux/skas/process.c b/arch/um/os-Linux/skas/process.c index b6f656bcffb1..cca016b0b29b 100644 --- a/arch/um/os-Linux/skas/process.c +++ b/arch/um/os-Linux/skas/process.c @@ -214,6 +214,9 @@ static int userspace_tramp(void *stack) (unsigned long) stub_segv_handler - (unsigned long) __syscall_stub_start; + /* Make sure this process dies if the kernel dies */ + os_set_pdeathsig(); + ptrace(PTRACE_TRACEME, 0, 0, 0); signal(SIGTERM, SIG_DFL); -- 2.56.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel