Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp748987rwn; Thu, 8 Sep 2022 08:16:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR7LwHbz7LSQKvyYyRPIpxvxFNW6nK2lzqyES65UEdHSSv318mCi8M3sYdEbtnwHTOLVr98B X-Received: by 2002:a17:906:4789:b0:742:55b1:c3f0 with SMTP id cw9-20020a170906478900b0074255b1c3f0mr6500523ejc.446.1662650183824; Thu, 08 Sep 2022 08:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662650183; cv=none; d=google.com; s=arc-20160816; b=Sh98VFvBGame4PBwqhZvP1Pv8/6Qs/U4xxHAOXoLtXJ7RUcsRKMNHFkMSqF4HOzWuh Gp86TUEUR7EKvRQVBa06xNT9xW2lu6EkWzNH7v1Ku3dOPNIix1waqCOnMLx/794Qokho GyseSmUTBWz7XmpEnwjociCwocFZMAAt4X56hnBLATvgYhZ61lGMS2LdYdLl3VC03vzF imWpiRAxxpt+GovcskolzEOJ8F92LRKr0dYHXL6AuCOU6+LjBK0WyHay4L0bqQknVsTz FDXb3DtQW3Zv/fs/xTazOcOeipDyaN8eu7Fy1j0JwajPJAlx9xe82ftcEIEU/l8pKcyt u8VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lSCvYP5GkkFE/+kNRE5IPPJh8HdX91H33mYQbcBG7nU=; b=zpSmJEp4AJX5XnwCVzaZT7qbWLXscEcTp/UhwlTzvXposRqA6Pk3s0U0xLJzHiyhN4 2CfsfgHImkWZNLdMdGkPgJl1mt0AH5nwJK4xI7dWjVskp6zHojNmAywU5lPSYRWz/isj oib+sSjRQ4R0b9HH/85cRiLu83LCtsDSey4wmMl5dNTOIf+kliqZcMJoUgE5fBb3ppEu olrFMmgNTcr3UvLs7PnXnR9tyCdMX25YRRrQeGW90RbAMMQjydnSgbpXWXurwBLE1fxZ J72NCJiHq4LbKF+ZsBQQ/S2E418nrF782GAZp7jmM4rUYBOQX+1n4C2R3nmto3w/IeZn DfcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20210112.gappssmtp.com header.s=20210112 header.b=rIfhIX0o; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb9-20020a1709071c8900b0074171cca419si2198834ejc.892.2022.09.08.08.15.57; Thu, 08 Sep 2022 08:16:23 -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=@paul-moore-com.20210112.gappssmtp.com header.s=20210112 header.b=rIfhIX0o; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232108AbiIHOsI (ORCPT + 99 others); Thu, 8 Sep 2022 10:48:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232083AbiIHOsF (ORCPT ); Thu, 8 Sep 2022 10:48:05 -0400 Received: from mail-oa1-x2c.google.com (mail-oa1-x2c.google.com [IPv6:2001:4860:4864:20::2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 985C18B991 for ; Thu, 8 Sep 2022 07:48:04 -0700 (PDT) Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-127dca21a7dso17660016fac.12 for ; Thu, 08 Sep 2022 07:48:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=lSCvYP5GkkFE/+kNRE5IPPJh8HdX91H33mYQbcBG7nU=; b=rIfhIX0oxp8JbmMS4OUarcv8cscy7ucPnQm8yTkAfZJBh3oyZkiP/ojKWEian62UT6 HEk9DUU58mM5qYqh7H2UM043goBFPweEN+9FsGxypThYP3zF0+wGoTArpWOMkJUBxibo EPsZ34a6P4+xPNZOiKId3m5W5DFOBDSlu8PcU9TyVZNa5QyiFiNAWkNX+0HIR3i7Do7G 0ScaL6lYh3aX7p2XuSo7uImOJsGeJ8EO3Kn0juPjJmLN/VNMZIUAQ+4aAqhTNiivGrKy uEVG0iklAS4L/cKeZoLfdZe89/I205eCjSaCdBigSFvSwf/rtEX7BenIEraWUN8c7HAR bTyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=lSCvYP5GkkFE/+kNRE5IPPJh8HdX91H33mYQbcBG7nU=; b=EUL0kZu+NS1t+05vNf6J1aB3GafYA37tlA5ZUzyru0bzzppG2q7BN2V9MyL6j2uKfQ xYmX84RTVBMgfioL/QLpQhWXUnLPAUEmiMo+0Nun7JN/pMUr4AIbBqa7Di/mkdgIlEME tK7q6QUV1iX8TV8jj1P2DlDnqwqqnFxOaL5wq8DcbEUmCtQHflffAmsk16FZtTXXKLtj mVnCWDu/QISw5Px9epkGFMV6oNkhqI0Oe9Li5a8Q9rJ1xzIoGIZNusjejRPy/fS0fhw0 ZjuZvBeAqYgoUWUO4ok3vXQVzxRkkFY20daiqGeYHbse3OIkhLwM5Sh8r0OlGot7Ui8c kjpQ== X-Gm-Message-State: ACgBeo1lWq6IaMWKpEOAIZpcwI9zuH37DodV34XgOlGcBv8lFEbD8455 b9xdmNkfb2XpkJPGKADQ3cXhqrgoBNEEfMdjlTwF X-Received: by 2002:a05:6871:796:b0:11e:b92e:731e with SMTP id o22-20020a056871079600b0011eb92e731emr2158188oap.41.1662648483823; Thu, 08 Sep 2022 07:48:03 -0700 (PDT) MIME-Version: 1.0 References: <20220907121230.21252-1-vincenzo.frascino@arm.com> In-Reply-To: From: Paul Moore Date: Thu, 8 Sep 2022 10:47:53 -0400 Message-ID: Subject: Re: [PATCH] security/keys: Remove inconsistent __user annotation To: Jarkko Sakkinen Cc: Randy Dunlap , Vincenzo Frascino , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, David Howells , James Morris Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, 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 Thu, Sep 8, 2022 at 1:17 AM Jarkko Sakkinen wrote: > 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. Thanks Jarkko. -- paul-moore.com