Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2333296pxb; Fri, 5 Feb 2021 15:26:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhQ8ySFVt5o1teqZM9dbm0ucrH17oSHlqkRjUI5GlYPZqlZ80cttz2dVGEmOk/1pH2xLEj X-Received: by 2002:a17:906:3999:: with SMTP id h25mr6387417eje.146.1612567581617; Fri, 05 Feb 2021 15:26:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612567581; cv=none; d=google.com; s=arc-20160816; b=dr8ufBtc6i0YBLJoYxPa46HVHs5Utrp9GqAK/rLaV6nBsfYNZrWyhbqsMfFXYSkvpl sX/cIbmwRrAm34mmuM8p+2orOF1rjrKr3j+/wJqZ8e6D8wyM9SH5cc64rPIZQ8/DvE4P 7veBxTfrtFBgZDsHxB5dv1kRepok5xHCg5mRjOG2dkOe2v1GhnyxfCi3LXxKZ5V0Ck6k 0FmP2U9FqDWxHBjuN0Nk20nQFnGGLc9QXaJfL1bJxFDRzQ/o0eiKYjoUGD8JlzJCaSWm TePcBTkVuHNGbZTjBUVrAVTU5CYqHQLm+UNHFNQjEz+H/5NFFUU3Dl2N3YkXZRMKZl2G L4zQ== 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=DXaDfNcUv+WdAxJMcKk3vOMMC2UEVA2HeEFd3d5xH68=; b=yKFi0gneW6++6zmYqQ9akWPThLEsVxD9GJuTfVx01d+JekWD2IV5OvmcXX1Wdx769N I/HPiXu5g1EOuRshVLK/kso4y0mvQevSxTgnyzmDaOgEkSrlrGzTuSGwsrRWrM1J+78F BS0zLNiVS4fpJlLNgAbugs53rcIjtN9Jsu+Viytt4Nz1arN5ctigxbAFHsbwe8DF9rGw vLXc8ZjCW4KQ3yO482EU8kcHvV6eqlN5ZgytrS+YrK5DR+T9Y16rZqKVntrLSzhQuMoJ TG8dTBGPBGov3VzilZAhLTE3AdS6vKnj5BonMKb0Eyt1V9vN/EDVsf5fpCHmr1LcSuS5 DYpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QEpRBNE5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si6130281ejj.506.2021.02.05.15.25.57; Fri, 05 Feb 2021 15:26:21 -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=@gmail.com header.s=20161025 header.b=QEpRBNE5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232344AbhBEXWK (ORCPT + 99 others); Fri, 5 Feb 2021 18:22:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232569AbhBEOZQ (ORCPT ); Fri, 5 Feb 2021 09:25:16 -0500 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5451AC061A2B for ; Fri, 5 Feb 2021 07:50:52 -0800 (PST) Received: by mail-oi1-x230.google.com with SMTP id h192so7920698oib.1 for ; Fri, 05 Feb 2021 07:50:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DXaDfNcUv+WdAxJMcKk3vOMMC2UEVA2HeEFd3d5xH68=; b=QEpRBNE5E1CgI4//GqSAN6QmRzxv+u84cAcrQo3xpHZxWICl2LU1+Gw7kvZq24L1wQ RvqnsxhSe/427ydgOfUZ1gjIe/5qEelN5CIj1lw2L/8nRTntKn/twGMp4JPUbF3Ubtkg F7AXKcpR/kZb85nSfkNCOdcT5SOYLIQiaoLyHz+GVsOGDJyyyQBB/RqcXkEppLd9OfZ8 ITbnMJKOEB4fE7R4OFjpdItHofu6U+cyfcUPHvN0Xfx/E1+r7MIyENUHg3bH1lcZ1g4q fi6+PsMjCZ2ct/+d+H3r5m1cLpUe1SPwhj2Ih+udCQXYYPZbam3u33bdxYE03QecCt9Z iTJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DXaDfNcUv+WdAxJMcKk3vOMMC2UEVA2HeEFd3d5xH68=; b=CBXy0iPO+fjSee6c3HURPjYW7+vqjkzhjlZ62eIYUY/IKw6fIZPjr2KI1wbiNLk9yE Fb/Og2g1F31/WuGh4ryhHoo8eIW3awlVMXSvLHmEMqo1qwr86kQ7OCJ0bzSBrvJxa93X EQpYRTJ6yN0gmyFfUKHcGgCE2QS1eS5Jt8B+7OVoNLWiJE8NjmO9qMP/io5PzuclMYQF GHmrIYsq+0qwBLvGep0DZhUHxUUeRbsEwV+UN7d8xgVsvofR8XTR4AM5YI/0cejoQcEK Bo1nMFrkUR3aDt4WmTfFKStFf9aeqNQ3pfXvUYS9UKvbn28Lglf3uIK8wlYxPH2yzjEr 8b2g== X-Gm-Message-State: AOAM532GpYVtAKbOegE09HCMrMSpZi6ZPCwgQ4sAueyxfEHuw+ExGVLT xcQtwnbzUeLGX10+paGeB/DuPNSNNI69naq+P9YjsAzjwaU= X-Received: by 2002:aca:c693:: with SMTP id w141mr3370936oif.58.1612539792227; Fri, 05 Feb 2021 07:43:12 -0800 (PST) MIME-Version: 1.0 References: <20210205151631.43511-1-kirill.shutemov@linux.intel.com> <20210205151631.43511-11-kirill.shutemov@linux.intel.com> In-Reply-To: <20210205151631.43511-11-kirill.shutemov@linux.intel.com> From: "H.J. Lu" Date: Fri, 5 Feb 2021 07:42:36 -0800 Message-ID: Subject: Re: [RFC 9/9] x86/mm: Implement PR_SET/GET_TAGGED_ADDR_CTRL with LAM To: "Kirill A. Shutemov" Cc: Dave Hansen , Andy Lutomirski , Peter Zijlstra , "the arch/x86 maintainers" , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Catalin Marinas , Will Deacon , Andi Kleen , Linux-MM , LKML , GNU C Library , GCC Development Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- H.J.