Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp181006rwn; Wed, 7 Sep 2022 23:02:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR6YiN4eaEavhE93BmJKLDO1RcGcHtbllCqstIuKr9Dxkxepuw3SfVe1vo1TtXpGJlwN4vAZ X-Received: by 2002:a65:6b8a:0:b0:42b:1eca:eef1 with SMTP id d10-20020a656b8a000000b0042b1ecaeef1mr6468751pgw.205.1662616925678; Wed, 07 Sep 2022 23:02:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662616925; cv=none; d=google.com; s=arc-20160816; b=fPQblSy/hwieBPBOU4sKZ/S352im8fORSUUGW0Hm1TIX/kYFWevzwCRQgjGot+CHPs AjIta35YcjiV1mEcicPj35K+5Z6YMvORg/uamoR46EhvGIdGP6lgE1cKozop1cnE9Byo K+s4/0u92m/NwrncihEKYDH8Jyoleaf7fJ7MJSkxSJBq/pbySrYu9xOUCPml5iGZtAQV 2uTMXdYPjAdARQUXtzWOCft1gQuMCK7Fso6d/KUEJC43H2R2T3MTnHXAlM8DGBt9FnDm KIf16M+x8dpbPpdrm6lW1B62+0TR8Yc7bPvLQ9+uWMLYEDoI6QAvLnz56CNhR31LGRL5 F3pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=A3HWUbcWa65n6CYcApESpv71LSos2SJvkbgvH/RHRZk=; b=TLy5w944X2IZps8XdCUZGNWStm11/e9DnnNO91lWZDc/hyVbDrTkYrg5s5SO3aqrEy KXOq5uqbEz2rkQhysTDZRhXZPhvYUQil1HX5ROw3B1cdiYJ1Insw2AeNzIeSK8fqnrl5 ymh5wSE02vl+lwQK1krg6uDWUaYuenVEpNdvOkNgfhBQbsNkGs6jBm32hwKiQcHZh/FO M8ajGpcdFo3FB7x7xCEb2tKiv632Q30zIOno59xFqw1W+Bm2Xrzik6xTOSaAjW6yWSGe DkccoRU0Jb3EQnAUGsGahaefXy20to6LTj3KIuC+wsE56X1jbh/KoJQyoQKWCtuQcGTE gwcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="n5pKL/ol"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020a63b90e000000b0041bd0985ea9si18738248pge.671.2022.09.07.23.01.29; Wed, 07 Sep 2022 23:02:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="n5pKL/ol"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229983AbiIHFRY (ORCPT + 99 others); Thu, 8 Sep 2022 01:17:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbiIHFRV (ORCPT ); Thu, 8 Sep 2022 01:17:21 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 024D6BD1F2; Wed, 7 Sep 2022 22:17:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A4C27B81F05; Thu, 8 Sep 2022 05:17:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17C45C433C1; Thu, 8 Sep 2022 05:17:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662614237; bh=aY+4jyT4b1htONdVNHh0+w7cNyo+79xZD5hrCdXk8dk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n5pKL/olty8aLxKn+CXfeqTREfa79fOg2uq7sV1L01DqLgActG1aXxl+0oG9lyseS 5WK1SAWX+97YNtmfxmBq+AQ7j7972P96CPf0TPdNp/v+GQXO8HTCNy9oAd3U3W4cDM flqxEZu9kOUVAyuAGMq73634K+1JtJ1bcGLWh6k89KKEFwgeFoYuLxGzVIi6OEAz4A 06+mWlK0PZAd9ZKVSjnF3XW/riivc118E/77O8VhnfTbPFPVR7dQhteO/AGPTZWNAK lrEPRsPzKoPkGfR2fO3isX//2gJDeweerOOsscHrt2JR9oO/XRlLdya23ApJ8ENcRt vMfvELMKuyo9w== Date: Thu, 8 Sep 2022 08:17:11 +0300 From: Jarkko Sakkinen To: Paul Moore Cc: Randy Dunlap , Vincenzo Frascino , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, David Howells , James Morris Subject: Re: [PATCH] security/keys: Remove inconsistent __user annotation Message-ID: References: <20220907121230.21252-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 07, 2022 at 11:43:17AM -0400, Paul Moore wrote: > On Wed, Sep 7, 2022 at 10:06 AM Randy Dunlap wrote: > > On 9/7/22 05:12, Vincenzo Frascino wrote: > > > The declaration of keyring_read does not match the definition > > > (security/keys/keyring.c). In this case the definition is correct > > > because it matches what defined in "struct key_type::read" > > > (linux/key-type.h). > > > > > > Fix the declaration removing the inconsistent __user annotation. > > > > > > Cc: David Howells > > > Cc: Jarkko Sakkinen > > > Cc: Paul Moore > > > Cc: James Morris > > > Signed-off-by: Vincenzo Frascino > > > --- > > > Note: This issue was discovered during the porting of the linux kernel > > > on Morello [1]. > > > > > > [1] https://git.morello-project.org/morello/kernel/linux > > > > FTR, I have sent this same patch 3 times. > > Good luck. > > David or Jarkko, this patch is both trivial and obviously correct, > please merge this into the keys tree for the next merge window else > I'll take it via the LSM tree. > > Reviewed-by: Paul Moore I picked it to my tree. BR, Jarkko