Message ID | 20250121095739.986006-11-rppt@kernel.org (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 268DCC02185 for <linux-mm@archiver.kernel.org>; Tue, 21 Jan 2025 09:59:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AE23A28000C; Tue, 21 Jan 2025 04:59:41 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AC3E028000B; Tue, 21 Jan 2025 04:59:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9A7E528000C; Tue, 21 Jan 2025 04:59:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 7DC7E28000B for <linux-mm@kvack.org>; Tue, 21 Jan 2025 04:59:41 -0500 (EST) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 476DAC05C0 for <linux-mm@kvack.org>; Tue, 21 Jan 2025 09:59:41 +0000 (UTC) X-FDA: 83031012162.13.E8BD0C4 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf19.hostedemail.com (Postfix) with ESMTP id BE3991A0004 for <linux-mm@kvack.org>; Tue, 21 Jan 2025 09:59:39 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=RtnsARiR; spf=pass (imf19.hostedemail.com: domain of rppt@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1737453579; 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:in-reply-to:references:references:dkim-signature; bh=aMCcoKmYu2iXUwJbQTVGV2jsmkWbYCGb/CE1d3c5aKw=; b=GOE1sVLUMp5whUD3Qx7Xha1tKDTYSW/ifutHJPpRDyAaB3O1bjzH2n5fVaIshZTf4LFNgZ e++ZvPkdgwTJeZBHalPCOXmdslMZmnnEx7QImejAZhGb/r/L++iQuNuTAxYVlg5SD5+7+5 6Ia822Ime83UXuX5j4YV6sI7GFYDqmQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1737453579; a=rsa-sha256; cv=none; b=ThM6P7SLUCg9BwWc2nOXw68KsMhhOXSNc0pgpP77+Eb2bMYkdFB50FkGdILITVSQOefwaK HSpC79Q8dMia7iwKlBpddfHiq7SIN8fNcBu6Bla9rzESFjh+XDk79k7ZXuP7BnEZm/OvKo iCOSBZc3ITx4o9+Vaa4/IYW0WZz2TDU= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=RtnsARiR; spf=pass (imf19.hostedemail.com: domain of rppt@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 9F32BA41455; Tue, 21 Jan 2025 09:57:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 609A5C4CEDF; Tue, 21 Jan 2025 09:59:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737453578; bh=iCOJADJJ/sFPbuOid5OXzq1M+MQ1WlHyV9KAisT6QLU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RtnsARiRHrenQWHrMnLuEAY7/eJ5WWknmOCHRtfZSkV3oFUmyozJVP5a4Shqstzg3 Z3E6ToP2NZa2ayoQLxkfuTxTAcK84dX/5ut/OsAu0PZlp34UjLqKMLqfLPQxsyzPVD 8QjGowjl6dMGqtqC1HEDEgE8n5NoPlzKoE6fyydZwid7WQ1Msc0Q4WXnelo39417IG eNQw19ghX0WQWwv5N6+onzWlI9S2+i3vTIwNmA5GD6H4FpAJ/uAQeDfVBpunl21d2w +3fQAgRw23aCdCr5+lQ0tXWAWIHQckUfsJaQrhRyjjuDJk+DO6cubGx+Ty6nWv9lQC 1ZFmWGRBIU28g== From: Mike Rapoport <rppt@kernel.org> To: x86@kernel.org Cc: Andrew Morton <akpm@linux-foundation.org>, Andy Lutomirski <luto@kernel.org>, Anton Ivanov <anton.ivanov@cambridgegreys.com>, Borislav Petkov <bp@alien8.de>, Brendan Higgins <brendan.higgins@linux.dev>, Daniel Gomez <da.gomez@samsung.com>, Daniel Thompson <danielt@kernel.org>, Dave Hansen <dave.hansen@linux.intel.com>, David Gow <davidgow@google.com>, Douglas Anderson <dianders@chromium.org>, Ingo Molnar <mingo@redhat.com>, Jason Wessel <jason.wessel@windriver.com>, Jiri Kosina <jikos@kernel.org>, Joe Lawrence <joe.lawrence@redhat.com>, Johannes Berg <johannes@sipsolutions.net>, Josh Poimboeuf <jpoimboe@kernel.org>, "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>, Lorenzo Stoakes <lorenzo.stoakes@oracle.com>, Luis Chamberlain <mcgrof@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Masami Hiramatsu <mhiramat@kernel.org>, Mike Rapoport <rppt@kernel.org>, Miroslav Benes <mbenes@suse.cz>, "H. Peter Anvin" <hpa@zytor.com>, Peter Zijlstra <peterz@infradead.org>, Petr Mladek <pmladek@suse.com>, Petr Pavlu <petr.pavlu@suse.com>, Rae Moar <rmoar@google.com>, Richard Weinberger <richard@nod.at>, Sami Tolvanen <samitolvanen@google.com>, Shuah Khan <shuah@kernel.org>, Song Liu <song@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Thomas Gleixner <tglx@linutronix.de>, kgdb-bugreport@lists.sourceforge.net, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-um@lists.infradead.org, live-patching@vger.kernel.org Subject: [PATCH v2 10/10] x86: re-enable EXECMEM_ROX support Date: Tue, 21 Jan 2025 11:57:39 +0200 Message-ID: <20250121095739.986006-11-rppt@kernel.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250121095739.986006-1-rppt@kernel.org> References: <20250121095739.986006-1-rppt@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: 6gt77dgukognhtbrdbc9ofwf5c598gx6 X-Rspamd-Queue-Id: BE3991A0004 X-Rspam-User: X-Rspamd-Server: rspam06 X-HE-Tag: 1737453579-122060 X-HE-Meta: U2FsdGVkX18LbC9cYEeXIq0qckOojudM59LPLap9qdVn8jqJyzfW0xX04YJ0p9wKql0AM/RYN2OopkBxQpjpYP9/arU5rme7Bz9HSee+rDIB1HLAS4MfI8AOqhz7puHOijALF5N+1owOvvkZXyaUopoeTWhOUoXmXhxnNwJ4Du4Mj04iR6OABQeB/t+EeJZEwn8my7qm5nl4XeEoyOPqSV/eBOZcxZ1EJ/YjhowLK8FtbCR1ap54EY5rWVqCzbMTrFJm4Ic68ft3VilX3Pr9KzqMX8HW9+S8K693tOFEnX0ovBUrDC0B4IArpECKF+8UzvivhzmwoW4P//an0rb9LXFB6bZpVAMH5CB7oWuKJClCYIxC+uhvD6NkwIBUDG3w/LahYTDe4Pg1mRczLQYcFanbdTAU/GEiOabggs2zkakTg3+I1eRzjCIBOLRmY9sDIQp0CBQ4YHya1ODSj03q0psoG1fF9zGR4T7GIOfnkOeZHs4aW1yhBlCkRN911DSWOpFhGJ1ABJjlmRmbfFxkJ/BdtTgzy3Tfq334kvXbG0ok+vwjQYiZK2guvDA8woHNuvxqTMZZV93aVdNosLELZjoO6fUH2Ir4dp4Rhyxzc4uRADnpA+DUsbghW0OtUqnGdsslXnsUe/4R542/OwDqQxalosT7R+fIDUcx7IH618yE9ZVTMwiOld7dXkaooM1hzvnhFLaI3y4NcKN0MN2wCGWBTUZ567czLc5ulMqbXi9MseVI2RbGV4DVczb48lCkXdXQ2SHsq6cHFGNFL3M9w7zQikrCo+gIirF2jVTh2RAu/jO52NuimkIahy+vlHZeWxjkH4cmDWbCJl20KGe4pFIS9OOtP4Wbk44MFUa9K22I82w1pJ6urXuI+F41q5j6PJVJFVDWBL/erl1unckjpV+Q+5W3Kf7EwNrMr1X5AWwzE6GZEZ3Ho9oyMCuYj39DBF9MYwAc/XN+TSiHT/7 K9qzHPtT qoPQwwQAXetMuknS2acGCwO65pT0Re8oIwuA27vrIPKxVOOm9R7Gv6LL2pzkrDmWWe28RA0jwrYg9QPxRNyxOi6yUaHPoyJnPyo71tq8sR7xXy8pqZ40LmHze9L+DOZ+P6AZ5h9iqXyko0IKOiZX/DAjnmBNdJFcskMd99IBzqOE1QEk0Wh0DaTbwu5D0XD5TG1nUZxKwjSVW/ojND0ebgBzRMP5k78dyUHoz2w5ZrwxA1W2ZoIBGlMPy/+V1bAB1F6yajypdHpynCOacFYo2mjkfCw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 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> |
Series |
x86/module: rework ROX cache to avoid writable copy
|
expand
|
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index ef6cfea9df73..9d7bd0ae48c4 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -83,6 +83,7 @@ config X86 select ARCH_HAS_DMA_OPS if GART_IOMMU || XEN select ARCH_HAS_EARLY_DEBUG if KGDB select ARCH_HAS_ELF_RANDOMIZE + select ARCH_HAS_EXECMEM_ROX if X86_64 select ARCH_HAS_FAST_MULTIPLIER select ARCH_HAS_FORTIFY_SOURCE select ARCH_HAS_GCOV_PROFILE_ALL