Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3344014pxb; Sun, 7 Feb 2021 06:16:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTGVBWnCbDoKFyMXjW5ecfwaOt487x+ZtdAQwpW3HPSP0FEgCQasIC6tMpwhircF0z2HhM X-Received: by 2002:a17:906:35d9:: with SMTP id p25mr12743027ejb.398.1612707371455; Sun, 07 Feb 2021 06:16:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612707371; cv=none; d=google.com; s=arc-20160816; b=WCSSLZH9NqrLRsSKfGr/Vg+18Bz8q0kZmCY7QGE+53f099XjLYrgs5vYAtsz0+k6Gn +OP2psbz8Q5irKYlmg2Onh5wRAEWarAetrXXiwridKLTPjOpPu2UE4Hxq2QMMxvxo1Ko HOwzxaTx7koHjS0zBwA92Mz11jDx+ls+fx0fODam2VWNsiMUV+eFIe1d06O3Ao8rn2tv WVvhxT93fEOFrzPE0dOKrymxY2n7LA4XZTOtHKbKTeypLnnSS2G/rxdU1nV12R3tiHxg ndB1DxGu+Im1Lhi7qGMNmWPw4xvI5ksfh1nREvaSPQfvCzHdWYd4fLbfpE9NkM1lG67Q pIWQ== 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=3WGdnPvISs64NeCdwfew7cl4A+lVQsglEqZAL7qKKck=; b=tzw/Dw3EfGmn+iDrMIhkrudfrvp4Vs8no346mPOnphd9s3MginbOnG8E/SphrZPr/M ZoNb3BpnSy5crTvXJ5ryLkYAxErndlsrkdRaZDmdy6mcSWE7rMTBImVVih+A/vGyjtox IU4GE8CnYAOOWO4Z4wXYaXriVMq/OwdVcQ10LJQm/xoETYJb/lqiwbsYh5LR6aLB3AR8 3TIGc2H8I2EnrMMPHLKXYs2LH8Sgi6p6xfbQa2STGtuh94DAzED6E0Ac6dKWBLlMuPyj Fbe1se6GtK6o9DjsOzy0sRiA1y0l/A7hzWVAie915vY5EeYLfaJmRbBf3wg4aqzTYfvD UZrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b="N/K1mbr7"; 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 y11si10721922ejd.56.2021.02.07.06.15.47; Sun, 07 Feb 2021 06:16:11 -0800 (PST) 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; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b="N/K1mbr7"; 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 S229972AbhBGOKX (ORCPT + 99 others); Sun, 7 Feb 2021 09:10:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229609AbhBGOJ6 (ORCPT ); Sun, 7 Feb 2021 09:09:58 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4F26C06174A for ; Sun, 7 Feb 2021 06:09:09 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id f23so1017565lfk.9 for ; Sun, 07 Feb 2021 06:09:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=3WGdnPvISs64NeCdwfew7cl4A+lVQsglEqZAL7qKKck=; b=N/K1mbr7vtBj7ZjjCa7b5P7eXXnKKs+HjGZDu4xkzSHwBTzUxYIArRUoIfj+qxNdnS w6UmMXkFIKBjjMXa+5VXwOUC/34D20hKZ5bU3LJ/LEjPvNb5u2xHSEDIpn4JMM18xMlj 0BIrrEHC5Z7wABsWF+dA38XofrThWLr1vNnRIt8hkMUBBblLJczgMhill0T9OkJP5O7v d3e1XrIB7QPCTUEQ+P701I818w8qgbH2g4m/7NTOdmUURU62qnYfoDi9UU+LXtyZjR2I e+H38//N/BO2Qnfq6Bh7u/cQFT10O2UtA87NHF2z98qQmainwT9MHa+7pt0RwNIsZJgc Dgaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3WGdnPvISs64NeCdwfew7cl4A+lVQsglEqZAL7qKKck=; b=dd7iTci33BVpzgICJ8JD3fQH6v2gfbEr6P12yrwfpITtjtEiZFyIm5u2sbvxLG4Ui3 9rUMs+orWQpS5A7XmadBSuw3G2sfkNYNAZoFVas1NpZfjKpTISMyftcEpE/mIW/JwwjL S6sUVddMDgN7Syh4VHdxTGeX/fz35m2hiNd7KgDhZALRA6DRREdIDBD6M2Jalhjx/I4N eMJRXPhe2lFrFAwB18NGyWti9qmLLwn0irNDfZphjvKmdHR0qbdCP05GkuyDVnLgnsWE Wx4Su8OYTPcXfHNci5x9IiGpLeqW4mRvJ8EWGcxd0qm7Fx4V28cGCDR8sDMSVC4SOAow MNEw== X-Gm-Message-State: AOAM533Mub5ibliyzC9Nhu6Qzp4dm1Qib0l43GECUIRWVtFI2ddZQVwi Z5aIM7fHfEF6650YPlASCx/dqg== X-Received: by 2002:a19:ac08:: with SMTP id g8mr319535lfc.428.1612706947859; Sun, 07 Feb 2021 06:09:07 -0800 (PST) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id d15sm1705266lfm.183.2021.02.07.06.09.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 06:09:07 -0800 (PST) Received: by box.localdomain (Postfix, from userid 1000) id A6568102656; Sun, 7 Feb 2021 17:09:06 +0300 (+03) Date: Sun, 7 Feb 2021 17:09:06 +0300 From: "Kirill A. Shutemov" To: Dmitry Vyukov Cc: "H.J. Lu" , "Kirill A. Shutemov" , Dave Hansen , Andy Lutomirski , Peter Zijlstra , the arch/x86 maintainers , Andrey Ryabinin , Alexander Potapenko , Catalin Marinas , Will Deacon , Andi Kleen , Linux-MM , LKML , GNU C Library , GCC Development Subject: Re: [RFC 9/9] x86/mm: Implement PR_SET/GET_TAGGED_ADDR_CTRL with LAM Message-ID: <20210207140906.hdfzorevpmiqtryd@box> References: <20210205151631.43511-1-kirill.shutemov@linux.intel.com> <20210205151631.43511-11-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 07, 2021 at 09:07:02AM +0100, Dmitry Vyukov wrote: > On Fri, Feb 5, 2021 at 4:43 PM H.J. Lu wrote: > > > > On Fri, Feb 5, 2021 at 7:16 AM Kirill A. Shutemov > > wrote: > > > > > > Provide prctl() interface to enabled LAM for user addresses. Depending > > > how many tag bits requested it may result in enabling LAM_U57 or > > > LAM_U48. > > > > I prefer the alternate kernel interface based on CET arch_prctl interface which > > is implemented in glibc on users/intel/lam/master branch: > > > > https://gitlab.com/x86-glibc/glibc/-/tree/users/intel/lam/master > > > > and in GCC on users/intel/lam/master branch: > > > > https://gitlab.com/x86-gcc/gcc/-/tree/users/intel/lam/master > > Hi Kirill, H.J., > > I don't have strong preference for PR_SET/GET_TAGGED_ADDR_CTRL vs > ARCH_X86_FEATURE_1_ENABLE itself, but tying LAM to ELF and > GNU_PROPERTY in the second option looks strange. LAM can be used > outside of ELF/GNU, right? Sure. In both cases it's still a syscall. -- Kirill A. Shutemov