Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1630689lqm; Fri, 3 May 2024 01:12:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCQs7YzxeurspNotSo1TcA9jKjJAwJrmp3XUOK/6+QkI9hXpr2gvPd5MCV0XH7L+meNMmPRKTj1MImc8dPlXI6Omu06GmLhfJFOl3qGA== X-Google-Smtp-Source: AGHT+IHzHrYsotA+9T5xmMBF+A9bESWTE852EWU6L+HzvUMRgJ43pvPvWFxZlQ7lbqpn5eqRmvD5 X-Received: by 2002:a05:620a:2985:b0:790:c7f6:5979 with SMTP id r5-20020a05620a298500b00790c7f65979mr2196244qkp.12.1714723973270; Fri, 03 May 2024 01:12:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714723973; cv=pass; d=google.com; s=arc-20160816; b=qPnNhvjpca3oQheP2VfOtL5GcSKZ6ISC++nNKCvU0fbqCxCSx6SlnceZktmPYjHYpG IA3y9aMuoTiFCvHcohH0+bUr9xjG2AgudAKaqY/j8CoRfSIENhG9ruRl07T0Dcd3JFEh /ACYeravQ6JDj6Xxog5WZWnDLzncW4624JnguBPyC/nE1oiZ01C3Gwgt4K8L2QARb2eP MjW7Cz0pylicfly2NBmsBODHaTzj3VumKrqWakd2GhjbofCDB2BL5W94hbUk9v1ylOfN JtBpUmKxpjCT2ggMkYV38Zbg80xwosxb3KOgkaMICmJFHEtU7nq2QcnU/bJwXIK9yC0V MTbw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=I54j2TRi/70bTsubtT6cWf8wATQWUMTtbA+1feiZ7DU=; fh=KsdebulFSTDgUgDP2OamvZF2uEg8nzoUdEjFl7UPhdc=; b=Ta04cvWKdBLzXcP4MraOIBEtRJgA52zZV+yPaa0IGD2rg3EbSccUed8KaL0ezArpfa Vp6zCg+cHDqLIXd1z3ZAvChtOA5DcBqbNWJk5pCdvZIxFZQqMaw2J92B+RR3E8BbQ6KC RKcYs5HzAiojqJPx2Irtt6WW+ACISxUCi/bsYBxF0WTtlzq4HaU/Gy4KUaOT4xUrIWFm 11fH7jkGH4BbnTr9TWxe6z6kV7yDqo8y5tFnMn21XyEAtT5QdKZrfVN8FP4bdugt4K7k h4iY0mOxrD/LXCN7LlaDNo1BZU2fuTBycYXy/mYLL8YZULrViQpgfSk3XzyvzkGAE/ec pQiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t6NVTqlq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167355-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167355-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bk13-20020a05620a1a0d00b007919c01a191si2954668qkb.494.2024.05.03.01.12.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 01:12:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167355-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t6NVTqlq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167355-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167355-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 032301C21C6A for ; Fri, 3 May 2024 08:12:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CC5714A0A4; Fri, 3 May 2024 08:12:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="t6NVTqlq" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95B5D14A601; Fri, 3 May 2024 08:12:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714723934; cv=none; b=Yyqv9dKJiGMTLo597ojc5SuljuCv2QZvbJKCMJ21lf6tg4TQIWKme9Iac3dE95wWC39P39k6VhHBDLtpSoS8P+Srwb4Wc7QAuVVLYjibekleAr7MespIMreSwoZP+HvWAYLV/Pj9WI3eVlZskrNSYrSZaFPViUUCvhvmRyhhWVs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714723934; c=relaxed/simple; bh=mTSk7YYhmMKdfzF2clXT16BxSh0x0FLjxox0p1i+UIg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZAFkvoVw4HluYXXFPkp5gZ8ehOh8NR9y1s3axmgCT30gfojVM+TiTt8/Mbx3wC75aNNoe/oNgMyVzBFFioBLVLtGnugV+YAeapoePTOcx93+S2u6DIhzFC7z/TuknTvd3xgFQ03Fl3ssROokTE7YGvLY66/zQ8umW9/i5m3Do4U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=t6NVTqlq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31537C4AF1B; Fri, 3 May 2024 08:12:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714723934; bh=mTSk7YYhmMKdfzF2clXT16BxSh0x0FLjxox0p1i+UIg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t6NVTqlqh+4NQTPVmVPdmu1TzJYgo7+5n7Of2gH8W3yll1AHQzL8c+Rx8E214ROSr uqHtR8ztWWLIyOJR+xqWRXooEyVY9asKfRoYGa/7uk9hVvFl03XS64Pzy4UaqJOW9V y42db/Rxo/KaMKnxebaw71kKUQyWau5mFJZ5POhw8JcATm66QKGUbW7E0/Jfil3YU7 aw29hy+xadXDjWGN9uEgESozlPSBdXPoS1h5FTvUtA4g2tTsZFS/uqSynbwWH4MA9A yYJHuenUSCE1fmKc5dB5floIjuBGYCltrFuxC+MOae61oi9bKwbaoc50LxHuIggb+5 YNxW/bC+MoRiA== From: Arnd Bergmann To: linux-alpha@vger.kernel.org Cc: Arnd Bergmann , Richard Henderson , Ivan Kokshaysky , Matt Turner , Alexander Viro , Marc Zyngier , Linus Torvalds , "Paul E. McKenney" , linux-kernel@vger.kernel.org Subject: [PATCH 03/14] alpha: add clone3() support Date: Fri, 3 May 2024 10:11:14 +0200 Message-Id: <20240503081125.67990-4-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240503081125.67990-1-arnd@kernel.org> References: <20240503081125.67990-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Al Viro Since clone3() needs the full register state saved for copying into the child, it needs the same kind of wrapper as fork(), vfork() and clone(). Exact same wrapper works, actually... Signed-off-by: Al Viro Signed-off-by: Arnd Bergmann --- arch/alpha/kernel/entry.S | 1 + arch/alpha/kernel/syscalls/syscall.tbl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/alpha/kernel/entry.S b/arch/alpha/kernel/entry.S index eb51f93a70c8..dd26062d75b3 100644 --- a/arch/alpha/kernel/entry.S +++ b/arch/alpha/kernel/entry.S @@ -811,6 +811,7 @@ alpha_\name: fork_like fork fork_like vfork fork_like clone +fork_like clone3 .macro sigreturn_like name .align 4 diff --git a/arch/alpha/kernel/syscalls/syscall.tbl b/arch/alpha/kernel/syscalls/syscall.tbl index 8ff110826ce2..26cce7e7f70b 100644 --- a/arch/alpha/kernel/syscalls/syscall.tbl +++ b/arch/alpha/kernel/syscalls/syscall.tbl @@ -474,7 +474,7 @@ 542 common fsmount sys_fsmount 543 common fspick sys_fspick 544 common pidfd_open sys_pidfd_open -# 545 reserved for clone3 +545 common clone3 alpha_clone3 546 common close_range sys_close_range 547 common openat2 sys_openat2 548 common pidfd_getfd sys_pidfd_getfd -- 2.39.2