From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 6960B84039 for ; Tue, 2 Jun 2026 08:46:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780390009; cv=none; b=eNJROJUHglyc157zMzNp1LUle5Wt5socJ6RayVLEJb3DKnlnLcAM0S9muJrvhrqY/X5ezqoEqn6fR0wkrerT5gXfK2jK8/o3j/XaJv/dtXUVwyNSVvEkkG01TFk/x1zTFHbywBmJZH2aGfc8Wquy2w2veYcCUwbPGajfNwXP+A8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780390009; c=relaxed/simple; bh=R2aUlUFncexEQx4LTNpm1qke0XTPqwNDBsdBxdAl65k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XAOLLjEkLowGj5sQDOupis6x78pIVFHL8gU5k3qG1ddANPmziURgfpeCa0zb4hRhCVtFUbkwIUp92BQSrK9U9+VMMYyL9GKhI8iLBOnzFgv1t4YDoe2W+YwAmpEHQFlLKXsOEMJVJPfbDRT/9GxrsH6Qaqv8Dqy/w32pLvEHR5s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IquNWICy; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IquNWICy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D96E71F00898; Tue, 2 Jun 2026 08:46:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780390008; bh=LiEEid79s+fgL4A9HaCEIKw/byNtZpi2RLsgMHT4Q/I=; h=From:To:Cc:Subject:Date; b=IquNWICywuPr71nz++tMfPi5ripLIQn1vQHI4EWlER8HP5biO3SLG/rzvuCKMvS2W +nFxkr0O0jq0iNoZFa6bFx1aO73H0XFrzkmKUO2WK57qLRV1TrDVfV1ilWwkpLciMx ZuBSvxOWE0LNuPuK2OxlFqeHInGX2oxqhio2TYlue+Rtpzcnr+ddRdbHKFdcTH1PDo WWUWo6alXsQlCdyWhbdXB7mbEEyC3Azk+gos5csU6WTkFJi1Ptmg0JGroHX35eFh4l 2vZ3lmUsemK5A1UgVSDwAEsarTaGzng6qFmuj54BHDWgEt/omzuixsiGzb3OHZeGjV g9OWRmQS9w3HQ== From: "Christophe Leroy (CS GROUP)" To: Michael Ellerman , Nicholas Piggin , Madhavan Srinivasan Cc: "Christophe Leroy (CS GROUP)" , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 0/8] powerpc/signal: Convert to scoped user access Date: Tue, 2 Jun 2026 10:46:29 +0200 Message-ID: X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1512; i=chleroy@kernel.org; h=from:subject:message-id; bh=R2aUlUFncexEQx4LTNpm1qke0XTPqwNDBsdBxdAl65k=; b=owGbwMvMwCV2d0KB2p7V54MZT6slMWTJzch4s7T3tvzm9uZrX3guHFx++O+v6PUT+VIOnV7MU mC4Pp31WEcpC4MYF4OsmCLL8f/cu2Z0fUnNn7pLH2YOKxPIEAYuTgGYyNpghn9a7hpHjgXPe5yr l5qdtiWdz6dfo4O/8pvsJnmdtpzzf6cx/PdYlrBXS3HjloUpxbVfL+n6W+bdjD9i9CPss+Ykydf rZ/ADAA== X-Developer-Key: i=chleroy@kernel.org; a=openpgp; fpr=10FFE6F8B390DE17ACC2632368A92FEB01B8DD78 Content-Transfer-Encoding: 8bit This series converts powerpc architecture signal handling to scoped user access and enlarges some of the block accesses to minimise the number of times user access has to be opened and closed. As mentioned in individual patches, some bring real performance improvement. This series is built from previous series [1] which predates implementation of scoped user access. [1] https://lore.kernel.org/all/1718f38859d5366f82d5bef531f255cedf537b5d.1631861883.git.christophe.leroy@csgroup.eu/T/#t Changes in v2: - Add a stub setup_tm_sigcontexts() for when CONFIG_PPC_TRANSACTIONAL_MEM is not set in patch 2 Christophe Leroy (CS GROUP) (8): powerpc/signal32: Convert to scoped user access powerpc/signal64: Untangle setup_tm_sigcontexts() and user_access_begin() powerpc/signal64: Convert to scoped user access powerpc/signal64: Access function descriptor with scoped user access powerpc/signal: Include the new stack frame inside the user access block signal: Add unsafe_copy_siginfo_to_user() powerpc/uaccess: Add unsafe_clear_user() powerpc/signal: Use unsafe_copy_siginfo_to_user() arch/powerpc/include/asm/uaccess.h | 20 ++ arch/powerpc/kernel/signal_32.c | 498 ++++++++++++++--------------- arch/powerpc/kernel/signal_64.c | 138 ++++---- include/linux/signal.h | 15 + include/linux/uaccess.h | 1 + kernel/signal.c | 5 - 6 files changed, 334 insertions(+), 343 deletions(-) -- 2.54.0