From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0119C53210 for ; Sun, 8 Jan 2023 11:33:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232204AbjAHLdR (ORCPT ); Sun, 8 Jan 2023 06:33:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229822AbjAHLdP (ORCPT ); Sun, 8 Jan 2023 06:33:15 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB9A9DEB7 for ; Sun, 8 Jan 2023 03:33:13 -0800 (PST) Received: from zn.tnic (p5de8e9fe.dip0.t-ipconnect.de [93.232.233.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 258591EC0373; Sun, 8 Jan 2023 12:33:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1673177592; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=nyJLQA1m4naJ6eJZ+I4n2/ZyMzrOzYUD3Jgta7XbWzs=; b=UKfntsFBM55yvZEyV7K5eWZW+Cezz8BxbJXqbmPu5JYW/WEiykOXkvKXJRwVjuUSp6geQc c4VHBkinJa7Wx6y5KhIgst3BsW/k5TC7weBVCtWe0Pb+Zy5i9U5SHU9rkCHP9+WvOLTx6d szJd3EUrVyXkxfzC1Ke+LVAmPbRLJXw= Date: Sun, 8 Jan 2023 12:33:07 +0100 From: Borislav Petkov To: Joan Bruguera Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner Subject: Re: Wake-up from suspend to RAM broken under `retbleed=stuff` Message-ID: References: <20230108030748.158120-1-joanbrugueram@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230108030748.158120-1-joanbrugueram@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 08, 2023 at 03:07:48AM +0000, Joan Bruguera wrote: > Wake-up from suspend to RAM seems broken under `retbleed=stuff` > (the recently introduced call depth tracking mitigation, see: > https://lore.kernel.org/lkml/f9fd86acac4f49bc8f90b403978e9df3@AcuMS.aculab.com/t/) > I can replicate it on both real hardware and QEMU (with and without KVM). > > It can replicate it by booting a fairly standard mainline kernel Which version exactly? > on QEMU with `init=/bin/bash` and then suspending to RAM with: > echo "deep" > /sys/power/mem_sleep > echo "mem" > /sys/power/state > Then executing `system_wakeup` on the QEMU monitor causes the crash. You probably need to share .config too because my tailored .config built with latest tip/master works fine here. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette