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 DDAC83EDE6C for ; Wed, 1 Jul 2026 08:58:55 +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=1782896336; cv=none; b=FdKIVFB4vuKu+EyxUkLQ+J+X80dNNUaOMRrdP7X/r9i5xIRwxMNaZIjaibUJUR/hdZbC5FA791yv41QaK246dMFSzjX9lu+jJx7Tk0q5OyzZenbz95xfOEjVcojIHYP5IygWh9gBuaO1UjafPCbIExw83+Q3ONB0v61l6nw1Ud8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782896336; c=relaxed/simple; bh=eTb36WyZeDw+8VIHcBpy1B0l9cmLWMMTlgegKKRx+ag=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=OTptuqW4JzTUXtqLljMlPdE2sNNoxI13ugldwyja36dDSQrkqw4C5mR5bKoAiD32BTWl9vuHnRxiwx/IGVJfGLMwxqsffLijBxcvKB26k9f8tOsXCIuAiButY5te3QVdy9OTIo7sRx+UrKBPYDZxdlefNSHnW7t1ZrIjcSJU+tg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LGf/q91m; 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="LGf/q91m" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 595901F000E9; Wed, 1 Jul 2026 08:58:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782896335; bh=HiCG4Cbn6n4Y1L6TtNSorzpqmwjMH1AWeUnLp2pMkQ0=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=LGf/q91mXSMHqxoDmjvMdTtmCDJvU2Byy/ab6cOEztTpoyPetddQC/70fAE5bVS/w LtiXTBvVc3Tm2n6tgdmSD0bW4cA8F7BEqxQFpnZuAGb1UarjQM3XefD6uk4jO0TE4K 2uQM08FH4xs1CjdhetKYbMhFb71tQnokmmvXk0ABfTVyWqFXpfOtC9s8/TFdn4r+Ng 8ZNQmUzFjLT782W5ujVB0HqLUkK2Bka22nsy3xNZ9JHMaDCNajiTIYpTbHm6NKU0Rt 0bvVyoh2L+rbZw9yD+Lf22jqbpnLkyq20zHWkD6WwcCO2z3VbkiPl4ItZxcXioDb+B fsKMhdlpir6Zw== Message-ID: <63bef5b9-01e9-4272-a47e-e7ba4583a1a2@kernel.org> Date: Wed, 1 Jul 2026 10:58:52 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/8] powerpc/signal: Convert to scoped user access To: Michael Ellerman , Nicholas Piggin , Madhavan Srinivasan Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: Content-Language: fr-FR From: "Christophe Leroy (CS GROUP)" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 02/06/2026 à 10:46, Christophe Leroy (CS GROUP) a écrit : > 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 Sashiko made relevant comments, I need to rework this series. > > 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(-) > -- pw-bot: cr