Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1809664pxb; Mon, 13 Sep 2021 06:07:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzS5K8vXe9BmcVSvctkeqE2dP2IR3oZhLsZgXj8LrfcDroGBkwoGBsCFIyX7es3R7KRJGi X-Received: by 2002:a02:716b:: with SMTP id n43mr3299503jaf.14.1631538420289; Mon, 13 Sep 2021 06:07:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631538420; cv=none; d=google.com; s=arc-20160816; b=VU0elz2xJXKpWkD8HWlfbvvxEu7tkJBFFO0AVOmFrSMgDtl4pPAse+tRllfJaz4ai9 HB4kdr4YTTPIceBKXNtfAlM446+LCjgQuwLd2BR7VlI6SpBBEZz78Nmr35jpL9eObE1Z Q2/pBJBVpuRkkEd13zZ7L+3HksbGo4pay4yK8xgPrttVKUthro+HSC5enHU1jPYqToQG dEEenpRyvO6MNbaefnBG8WkaUO+SS7kxvCbfwRvUSogAevLH6afN0mw7EuvpClfcenZd mxWH46K0DUlcOBiU+nPg2L4lDA2N4QU8ufnd/4dVZA+xhcz+h0uoKx9OZMmqjGM9zInq TjUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=IIgz997f/jcKGhxUfa8HPABN76758h2CKtoCvIXnA94=; b=waAaVxxOZMvSKEFQf9pFqRpG5l0egYPgbCcBglq0B53jmAAdNrzHtKIfyHZhKKYm/a rF6T/q0A8tuPqIWqbUKAyZFUkdzsb4Tsr80k896lYjSM4YhPP/vSD176BmKKr7dXl5rs xChktqZ7cMM6zNQwHMpg8syNg3kijzS7FBglSeUKMGo9HIH6TPE37WXqY8ORaDM3RWrC 2JWU28EUv8ztH0hMjieADf4NbqW0jWe2LTNOlhAb+dXryK0Gfzr4Rl3m82p2r1quszwn 9K4WOc0Ap3C3xJXtwtt2G+XfnReFf7KiUXrpCl+3XQbUm2X2gNjEuFIB+PZ+NSL/5Ukf ZYxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r4si6009911ila.160.2021.09.13.06.06.41; Mon, 13 Sep 2021 06:07:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236246AbhIMNAT (ORCPT + 99 others); Mon, 13 Sep 2021 09:00:19 -0400 Received: from pegase2.c-s.fr ([93.17.235.10]:43561 "EHLO pegase2.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbhIMNAS (ORCPT ); Mon, 13 Sep 2021 09:00:18 -0400 Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4H7RPd63znz9sXR; Mon, 13 Sep 2021 14:59:01 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KLpZEGWF4n4X; Mon, 13 Sep 2021 14:59:01 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4H7RPc3jNcz9sXP; Mon, 13 Sep 2021 14:59:00 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 69FD78B767; Mon, 13 Sep 2021 14:59:00 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id lqhF7-Io2zmO; Mon, 13 Sep 2021 14:59:00 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (unknown [172.25.230.107]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 459F88B763; Mon, 13 Sep 2021 14:59:00 +0200 (CEST) Subject: Re: [PATCH v2 3/5] signal: Add unsafe_copy_siginfo_to_user() To: Christoph Hellwig Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Josh Poimboeuf , Peter Zijlstra , Linus Torvalds References: From: Christophe Leroy Message-ID: Date: Mon, 13 Sep 2021 14:59:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr-FR Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 02/09/2021 à 08:54, Christoph Hellwig a écrit : > On Mon, Aug 23, 2021 at 03:35:53PM +0000, Christophe Leroy wrote: >> In the same spirit as commit fb05121fd6a2 ("signal: Add >> unsafe_get_compat_sigset()"), implement an 'unsafe' version of >> copy_siginfo_to_user() in order to use it within user access blocks. >> >> For that, also add an 'unsafe' version of clear_user(). > > I'm a little worried about all these unsafe helper in powerpc and the > ever increasing scope of the unsafe sections. Can you at least at > powerpc support to objtool to verify them? objtool verifications has > helped to find quite a few bugs in unsafe sections on x86. Ok, I've started looking at it, I have not found any work at all on objtool for powerpc. I'll see if I can draft something from the ARM64 tentatives. Christophe