Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30972287rwd; Thu, 6 Jul 2023 13:35:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlGO0deTlUR8e2thHPzzczHTuHRJXnP4kizkxbyB7AV0QhMfkzSvs2IE5Yv5WNZ2fMzUkXu8 X-Received: by 2002:a17:90a:c906:b0:262:e6c4:80db with SMTP id v6-20020a17090ac90600b00262e6c480dbmr2246976pjt.16.1688675715257; Thu, 06 Jul 2023 13:35:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688675715; cv=none; d=google.com; s=arc-20160816; b=CooxYWIvbVT4UopMRp6Al1YmdM6aUYZWDK3fW7SQVoKa9l4VDDf/zDiXS2d66puY4k 55ay3I/HaFNAEQb2b95qjEQCX4EFWv3ta/pm46KXgsIFKx8NJbVllOVx1L+bVmCbhEYg mfY9xUe82QshutrdwENbuIC7UdjaehbALlZDr43QBPb5zeJwo7MJy68udEO/5VcTlErJ jBRke8IfBoc/7XmGE2gFFju3U339tPVbVUlx4m78WsLm/dXA0B0sJCXB61BRETHq4q7v 3r/hgLFhMuLJLeUnLUusHM+HvhfmnmHU5pT1TBQUxxkJNlT+4yXnmf5t7nkjOVmkcJ+q Tf1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=EAhv3oEyFtyUREQy66n3QPcklOFNHxlG9fTHXA8x33U=; fh=Z4ugwnVPZxAVI4ngTipXn9tli09cLyDegmpqk4GSy2s=; b=aDz02enVXOt6tCSNc9gQckyS8SYNyctultMjPz+zTa0OaeD2LAN5da4UQmQm8zVIUw yYF2al2ehz+nNAZQnuJCit3xT2WkqcwW1J3z2Wp1BYUhJwGjw/uif2qyHuQ9KRsqp2nB GEucQLOdmabFmH+FQutBB1fkz1Rp/b0SQwqcrPWuutgULx9PGGP2S5ypsy/NpbsgkDCJ 2qV0/omWUEo0zhcsdgBxhOtD9M2rKsnM5+ZsEFR+OVI/i+3e6skhj5ArR/dXn9btZ5Qq Pgsfrecar+sQ3kWidYDOy6dGBGtYq1VfhUWXb6yRNSHyMo04ID8Vnzlrn5+5Fs/DRjAz 6EIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=I5jqpYef; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id md7-20020a17090b23c700b0025669d0176asi385736pjb.134.2023.07.06.13.35.00; Thu, 06 Jul 2023 13:35:15 -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=@intel.com header.s=Intel header.b=I5jqpYef; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230022AbjGFUao (ORCPT + 99 others); Thu, 6 Jul 2023 16:30:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbjGFUal (ORCPT ); Thu, 6 Jul 2023 16:30:41 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66D181FC3 for ; Thu, 6 Jul 2023 13:30:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688675434; x=1720211434; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=9NNDxT5o56mI1rdVTs07QKziZnDMMQN7nrmhhlyZN8I=; b=I5jqpYefddOROebhzcipp5qV1vMQef3upLbql+/5EwZh1GUJrsEvZ3DD EiwbJiD+UrDFeuO/TZUhKLKOdRL2bA6lrBoLTegt+XZIiMKwRU3Vyvscv MlmTlJVOn1ADrEek/u355ugNJVjoKYIuTYOOC6BTmcOgA4i5T+44+wonx hEMLlxgrhUYoB/h/jLrsJ4AOyr3dVZLo4daFBRei75JrxH2hs/XdsXYy2 h2hlxCKyYKu9Cz10sQbEiDIVA/236p2Oe1dBPhprSbYfA+FwyvES2XwAd pKgqAXOzzeACOU+IY3Q4nzzLBxQnxTrF8X0X+ll2CqO8cI4NfSiao7Eyi Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10763"; a="367209263" X-IronPort-AV: E=Sophos;i="6.01,185,1684825200"; d="scan'208";a="367209263" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2023 13:30:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10763"; a="789693348" X-IronPort-AV: E=Sophos;i="6.01,185,1684825200"; d="scan'208";a="789693348" Received: from adityan1-mobl1.amr.corp.intel.com (HELO [10.212.197.9]) ([10.212.197.9]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2023 13:30:32 -0700 Message-ID: <8ec7f329-a0a3-7631-ba05-225944b19771@intel.com> Date: Thu, 6 Jul 2023 13:30:31 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] x86: Remove the arch_calc_vm_prot_bits() macro from the uapi Content-Language: en-US To: Arnd Bergmann , Thomas Huth , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen Cc: x86@kernel.org, "H. Peter Anvin" , Nicolas Schier , Masahiro Yamada , linux-kernel@vger.kernel.org References: <20230706190217.371721-1-thuth@redhat.com> <2d9bb146-e1ec-4fc2-a4bc-e1c67cfda723@app.fastmail.com> From: Dave Hansen In-Reply-To: <2d9bb146-e1ec-4fc2-a4bc-e1c67cfda723@app.fastmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 7/6/23 13:22, Arnd Bergmann wrote: > On Thu, Jul 6, 2023, at 21:02, Thomas Huth wrote: >> The arch_calc_vm_prot_bits() macro uses VM_PKEY_BIT0 etc. which are >> not part of the uapi, so the macro is completely useless for userspace. >> It is also hidden behind the CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS >> config switch which we shouldn't expose to userspace. Thus let's move >> this macro into a new internal header instead. >> >> Signed-off-by: Thomas Huth > Fixes: 8f62c883222c9 ("x86/mm/pkeys: Add arch-specific VMA protection bits") > Reviewed-by: Arnd Bergmann > > It looks like this was introduced right after the uapi split, > and probably is the result of an incorrect rebase. Yeah, I bet I just glossed over the "uapi" in the path. Is this causing any real problems? Or is it OK to just send it along during the next merge window with other random cleanups?