From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5AD9F190051; Tue, 25 Feb 2025 20:41:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740516076; cv=none; b=lvwYgO5HIatfsJvP2nIqsMNnmSb1e10S/Mef73YX4pq1PpK9UYH08SDSzjcuNuey9M3EVaVMdkbeFYIf4trQNVvATstC/4r85gVHdSKXtwvHTutpdWJsBESM+ddTmCN7TSm+8Mq3yhq1b1wJKgQ4D1nIk+pjzfqDQm8YDK19tO4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740516076; c=relaxed/simple; bh=LiVhDem361FjqfGK+J/ahXdQ9J+E267lgyazNH2yhi8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aa5VSYogXQTzGfAcj5M5ARa9N6mW9iTfLXc5kovToga2HQV8758KUfsSILTnBkgLBiRKm1L/yipHGR/DrZrKmY6VY++5V655Or0rCcUd0X7hd7/3AdejDr/qybe2ZlKFPdll+d7kM1ECfK9HXftEUx/mHx51CqrOrtWSwKMpvzg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=F11lASdP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="F11lASdP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFDB4C4CEDD; Tue, 25 Feb 2025 20:41:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1740516075; bh=LiVhDem361FjqfGK+J/ahXdQ9J+E267lgyazNH2yhi8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F11lASdPbzXg7mANBVQlRFzgR/91x+1f1GT6nM7vqP3tiaT1nLvEG+0H/6bay/D3C 2soIDbmbAaMuP3MwJM1iEgNqSl2/9hxJRp3yU7vcobgtmGhUCeVe4BjgU0CCvZvDRX XbyqqGNx3v6BjI+P/X0lbLNbDuCnIwpNFCNqfA9oo5mRHWeidzibV+RIVZdMW1S5P8 IvglkGpvI0stH2tuWkAz2Cxkyy8C2G3OV8lCC4PHk+FgAoop3MkQvWvQF3u8IlKKub DTnucELvNjcipckaCJFqPRe6GvqL9PpICzd1ZIm4Ts/D7BfBc0Fg+QCESEd6U47QJB QEOZySg+TtdWg== Date: Tue, 25 Feb 2025 12:41:12 -0800 From: Kees Cook To: Huacai Chen Cc: "Rafael J. Wysocki" , "Harry (Hyeonggon) Yoo" <42.hyeyoo@gmail.com>, Huacai Chen , Andrew Morton , linux-mm@kvack.org, Pavel Machek , linux-pm@vger.kernel.org, GONG Ruiqi , Xiu Jianfeng , stable@vger.kernel.org, Yuli Wang , Vlastimil Babka , Christoph Lameter , David Rientjes , Roman Gushchin , Pekka Enberg , Joonsoo Kim , GONG Ruiqi Subject: Re: How does swsusp work with randomization features? (was: mm/slab: Initialise random_kmalloc_seed after initcalls) Message-ID: <202502251240.49E8674AD@keescook> References: <20250212141648.599661-1-chenhuacai@loongson.cn> <202502190921.6E26F49@keescook> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Feb 25, 2025 at 07:35:13PM +0800, Huacai Chen wrote: > I have investigated deeper, and then found it is an arch-specific > problem (at least for LoongArch), and the correct solution is here: > https://lore.kernel.org/loongarch/20250225111812.3065545-1-chenhuacai@loongson.cn/T/#u Ah-ha, so it seems like some system start was being incorrectly shared between restoration image and hibernated image? Yeah, that's important to fix. > But I don't know how to fix arm64. Is arm64 broken in this same way? -- Kees Cook