From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74B1B22F146; Mon, 13 Jan 2025 11:11:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736766707; cv=none; b=K+gxSk4gzh26FkoieoZE4nKc1M7CaO1ULb25sUeCEAuLsuV/uR5QOVbecwF5wDYLgzFVnJoTLz/WsSWv+2GvY6cSEw2YctnySdWl2hbF6QKgy2RG3kRJOA1Sxf3D/4ESkxOAC0qP51Em0ViDYVX1h31t6VwMJh/WritZfZITga0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736766707; c=relaxed/simple; bh=ONKN8fq0iP0VC62UEpQtN5Nmm165/LMTCyM9flI8nJA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JZ3D7BxZTyKXBg8OKKvibPLRgMEIAT2HzPQ36cUEqHVfDT9ArM62VJwWahEuO4jFpQuMI1rdyBH8q9WOugBiuNf3lmXnyUnEjniWhfPqm5bD4yPaHAxRfwUXuhIk5QCCneM51R/ro/w//FL6S2+oKUt2UxhKGYrhcKSzx7FV7bY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=RBeZjvjr; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="RBeZjvjr" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=qj0XqtoExeVFzH/0zurjfq7xU6GfRici48V+bRozJOU=; b=RBeZjvjrDPcsThTXhXoukPjSAI NG77K2p71MbOxH6Hr5qVrPuCWPczlMw+Usz4bokWjI0fBdjtehyDAXTrQGWaT9i4QacSF10hny/fl f6+45RSS8YPaU1che58qLXvB808/OeemMrr+OxMrGlNDnXQB7b2TpPPhfKpDgTIF6FwQkbgsaHHv/ qWH8aMQaiLuDAwhO0wSyT9a/pEjhwF0eMyVTrcyQr7iWrcVB87HGjIDgYEa6Sc/aXZ3Fypjv84r22 BH1K2nUM+QDVXKQYksJjlCJihDeuyCAinjzkix2Z02HSasZ+qUs94+8Oaj8TFlpsejHZLSf1hn/do soSqXYVA==; Received: from 77-249-17-89.cable.dynamic.v4.ziggo.nl ([77.249.17.89] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.98 #2 (Red Hat Linux)) id 1tXILk-00000000a7O-2KHM; Mon, 13 Jan 2025 11:11:16 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 27A6730057A; Mon, 13 Jan 2025 12:11:16 +0100 (CET) Date: Mon, 13 Jan 2025 12:11:16 +0100 From: Peter Zijlstra To: Borislav Petkov Cc: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , Mike Rapoport , Andrew Morton , Luis Chamberlain , Andreas Larsson , Andy Lutomirski , Ard Biesheuvel , Arnd Bergmann , Brian Cain , Catalin Marinas , Christoph Hellwig , Christophe Leroy , Dave Hansen , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , Helge Deller , Huacai Chen , Ingo Molnar , Johannes Berg , John Paul Adrian Glaubitz , Kent Overstreet , "Liam R. Howlett" , Mark Rutland , Masami Hiramatsu , Matt Turner , Max Filippov , Michael Ellerman , Michal Simek , Oleg Nesterov , Palmer Dabbelt , Richard Weinberger , Russell King , Song Liu , Stafford Horne , Steven Rostedt , Suren Baghdasaryan , Thomas Bogendoerfer , Thomas Gleixner , Uladzislau Rezki , Vineet Gupta , Will Deacon , bpf@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.or Subject: Re: [REGRESSION] Re: [PATCH v7 8/8] x86/module: enable ROX caches for module text on 64 bit Message-ID: <20250113111116.GF5388@noisy.programming.kicks-ass.net> References: <20241023162711.2579610-1-rppt@kernel.org> <20241023162711.2579610-9-rppt@kernel.org> <20250112190755.GCZ4QTC01KzoZkxel9@fat_crate.local> Precedence: bulk X-Mailing-List: linux-alpha@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20250112190755.GCZ4QTC01KzoZkxel9@fat_crate.local> On Sun, Jan 12, 2025 at 08:07:55PM +0100, Borislav Petkov wrote: > On Sun, Jan 12, 2025 at 08:42:05PM +0200, Ville Syrjälä wrote: > > On Wed, Oct 23, 2024 at 07:27:11PM +0300, Mike Rapoport wrote: > > > From: "Mike Rapoport (Microsoft)" > > > > > > Enable execmem's cache of PMD_SIZE'ed pages mapped as ROX for module > > > text allocations on 64 bit. > > > > Hi, > > > > This breaks resume from hibernation on my Alderlake laptop. > > > > Fortunately this still reverts cleanly. > > Does that hunk in the mail here fix it? > > https://lore.kernel.org/all/Z4DwPkcYyZ-tDKwY@kernel.org/ There's definiltely breakage with that module_writable_address() nonsense in alternative.c that will not be fixed by that patch. The very simplest thing at this point is to remove: select ARCH_HAS_EXECMEM_ROX if X86_64 and try again next cycle.