Message ID | cover.1743772053.git.maciej.wieczor-retman@intel.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43445C36010 for <linux-mm@archiver.kernel.org>; Fri, 4 Apr 2025 13:14:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 48589280003; Fri, 4 Apr 2025 09:14:50 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4359E280001; Fri, 4 Apr 2025 09:14:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2AE3F280003; Fri, 4 Apr 2025 09:14:50 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 0E1B6280001 for <linux-mm@kvack.org>; Fri, 4 Apr 2025 09:14:50 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 295BD120173 for <linux-mm@kvack.org>; Fri, 4 Apr 2025 13:14:51 +0000 (UTC) X-FDA: 83296406382.13.69B634F Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by imf15.hostedemail.com (Postfix) with ESMTP id 90C0EA0002 for <linux-mm@kvack.org>; Fri, 4 Apr 2025 13:14:48 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=lPurcNdH; spf=pass (imf15.hostedemail.com: domain of maciej.wieczor-retman@intel.com designates 198.175.65.11 as permitted sender) smtp.mailfrom=maciej.wieczor-retman@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1743772489; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=l4F8b7WMOxIQd3psluu41JltXSgqfaRMAJ4I4X5qMAg=; b=I3IdBLXmfuupdW8K+SxEAxOYthI1xgZ1+fSQUV4nyP9UzSHTSPGnox35EiQSj0gyc4nc8G EK5/8L08qNowNBP5N5eYB6wRSk4g3cEwB4xttKGX5YNn2L2/miEQm9uG7v+Oqt2fmtHvSq tcyP3demltVTWiQhJ3XZ0AW158A/6zE= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=lPurcNdH; spf=pass (imf15.hostedemail.com: domain of maciej.wieczor-retman@intel.com designates 198.175.65.11 as permitted sender) smtp.mailfrom=maciej.wieczor-retman@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1743772489; a=rsa-sha256; cv=none; b=gHnur41PClc/px8VbswhI74pWURjgdWlO5FRzIDUzk0xEzklgprSiBuFK7OGhf8hqe/a9P 48daRMozJRe+cfP8UiZkanga0lEohVHqufqfUa8eHLgu/AZb6qOmmbY/O7cbtVEQS5CG9a giXe3h/O/JoMMN489UAxMdXAm/hcODs= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1743772489; x=1775308489; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=UmYfWsnNAV/qSCDcr4ZpyELoC1X9sU7WVhwu9z7WdMk=; b=lPurcNdHD6jOqF/JvbW+DrL3PwXrOH0VDDGUKhphkZ5uiu9fmy5bN/7m GI+qMC0RVi1O8mzU8WRhn0DAUgnPY5ANb0iHKdjlP3P18Uj2jCHhv7/of 3rqg1qMDS2dMHWkYCc6G7RZNAhbjSDfA1IKgQMW+triCEKxrvc7Goe3zB Udt+fqmTwr3+qG1MYvppBLIydMkeHfBRbpXD1hFMyaCNmKlyRZUMseJ4a ngKfojfs7uwJ3HVgF+lQZECEznLfDrXdk04uHtzUdVyB9osGIqdMjBoBq bMhC2pB5RkVrH9nHeU/kzAEvh3p+itPTudUP6tRX9QzSm2iG2ycHUogHA Q==; X-CSE-ConnectionGUID: dnkmmOnLR7uXrfZ8/0XAvg== X-CSE-MsgGUID: twp5kb75QpKkq9gOariVdQ== X-IronPort-AV: E=McAfee;i="6700,10204,11394"; a="55401494" X-IronPort-AV: E=Sophos;i="6.15,188,1739865600"; d="scan'208";a="55401494" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2025 06:14:47 -0700 X-CSE-ConnectionGUID: FZxz6OJGQf6jyVDmqeoQgQ== X-CSE-MsgGUID: loB3APGTTAqGkdlmWdKwag== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,188,1739865600"; d="scan'208";a="128156901" Received: from opintica-mobl1 (HELO wieczorr-mobl1.intel.com) ([10.245.245.50]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2025 06:14:32 -0700 From: Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com> To: hpa@zytor.com, hch@infradead.org, nick.desaulniers+lkml@gmail.com, kuan-ying.lee@canonical.com, masahiroy@kernel.org, samuel.holland@sifive.com, mingo@redhat.com, corbet@lwn.net, ryabinin.a.a@gmail.com, guoweikang.kernel@gmail.com, jpoimboe@kernel.org, ardb@kernel.org, vincenzo.frascino@arm.com, glider@google.com, kirill.shutemov@linux.intel.com, apopple@nvidia.com, samitolvanen@google.com, maciej.wieczor-retman@intel.com, kaleshsingh@google.com, jgross@suse.com, andreyknvl@gmail.com, scott@os.amperecomputing.com, tony.luck@intel.com, dvyukov@google.com, pasha.tatashin@soleen.com, ziy@nvidia.com, broonie@kernel.org, gatlin.newhouse@gmail.com, jackmanb@google.com, wangkefeng.wang@huawei.com, thiago.bauermann@linaro.org, tglx@linutronix.de, kees@kernel.org, akpm@linux-foundation.org, jason.andryuk@amd.com, snovitoll@gmail.com, xin@zytor.com, jan.kiszka@siemens.com, bp@alien8.de, rppt@kernel.org, peterz@infradead.org, pankaj.gupta@amd.com, thuth@redhat.com, andriy.shevchenko@linux.intel.com, joel.granados@kernel.org, kbingham@kernel.org, nicolas@fjasle.eu, mark.rutland@arm.com, surenb@google.com, catalin.marinas@arm.com, morbo@google.com, justinstitt@google.com, ubizjak@gmail.com, jhubbard@nvidia.com, urezki@gmail.com, dave.hansen@linux.intel.com, bhe@redhat.com, luto@kernel.org, baohua@kernel.org, nathan@kernel.org, will@kernel.org, brgerst@gmail.com Cc: llvm@lists.linux.dev, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, x86@kernel.org Subject: [PATCH v3 00/14] kasan: x86: arm64: KASAN tag-based mode for x86 Date: Fri, 4 Apr 2025 15:14:04 +0200 Message-ID: <cover.1743772053.git.maciej.wieczor-retman@intel.com> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 90C0EA0002 X-Rspamd-Server: rspam05 X-Rspam-User: X-Stat-Signature: 5r8dq9r1u8kztrq6bmk9er1jxobham5g X-HE-Tag: 1743772488-931572 X-HE-Meta: U2FsdGVkX1/EFXwmOMio9SepIhf0FxlZJmdQUVujsZu9KgVL0ZOczn8rK6Yi5fmJXAsJhYdoJScbqq8J7omJdVfQRdSNlyGtTU09PO3sE/NkjQt2IWjrXwdY88YDaVV49gKGl9XSLvuJfN8+Jy4NY7paFebfdUt3H0f8p3OkN0blGoj2zG6P0wdg5Z0T2r3y0oqddqvJhOuV3/CjPDiUc76DGHgsTfzbXE9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 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
--- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2275,7 +2275,7 @@ config RANDOMIZE_MEMORY_PHYSICAL_PADDING config ADDRESS_MASKING bool "Linear Address Masking support" depends on X86_64 - depends on COMPILE_TEST || !CPU_MITIGATIONS # wait for LASS + #depends on COMPILE_TEST || !CPU_MITIGATIONS # wait for LASS help Linear Address Masking (LAM) modifies the checking that is applied to 64-bit linear addresses, allowing software to use of the --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -2401,9 +2401,10 @@ void __init arch_cpu_finalize_init(void) /* * Enable this when LAM is gated on LASS support + */ if (cpu_feature_enabled(X86_FEATURE_LAM)) USER_PTR_MAX = (1ul << 63) - PAGE_SIZE; - */ + runtime_const_init(ptr, USER_PTR_MAX); /*