Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14009C4361B for ; Tue, 15 Dec 2020 16:29:02 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8C6982078B for ; Tue, 15 Dec 2020 16:29:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8C6982078B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.54476.94668 (Exim 4.92) (envelope-from ) id 1kpDC1-00047e-Ud; Tue, 15 Dec 2020 16:28:53 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 54476.94668; Tue, 15 Dec 2020 16:28:53 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kpDC1-00047V-Qh; Tue, 15 Dec 2020 16:28:53 +0000 Received: by outflank-mailman (input) for mailman id 54476; Tue, 15 Dec 2020 16:28:52 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kpDC0-000475-H1 for xen-devel@lists.xenproject.org; Tue, 15 Dec 2020 16:28:52 +0000 Received: from mail-wm1-f67.google.com (unknown [209.85.128.67]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 37fc0100-5474-4e73-bfe1-b4af6e62d9c9; Tue, 15 Dec 2020 16:28:51 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id n16so236732wmc.0 for ; Tue, 15 Dec 2020 08:28:51 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id s133sm38197648wmf.38.2020.12.15.08.28.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 08:28:50 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 37fc0100-5474-4e73-bfe1-b4af6e62d9c9 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KY5wz41Enh2tKod7R02tcFCNNgU7dvd2/e/Rsy9POQ4=; b=KtwI6fsRxAWc0dS2Rb2bQKtGLY+DiOocvoj/Jbx8/9uiyP4YGFjfjmzYJcD5XddWDE J5Xwl8JgalMa1ixuwObrkjUUj4dqd4rCTkVY5yYAw3KPvNvCohLALSl6W552NPqfY2Vw QKYfpt0cOIxB2zxLhryNSsLJ73QbfQgEfRpNMz7DWnz4QdvOwrjveKLLCJ4luNHK0n3h d2Jur5ykRSrhOXXbw/1jYDCUDPxqFHGLrfH+14z2BXm0XVktYFh2xJWF0qwXkvNItdak Ga2DoXdC9JeaT+wVvF3xaB4/hLGuiNIwBy0yvMN2S5FPQI9lRIYXwYmhKBuYWzB505aZ o05Q== X-Gm-Message-State: AOAM531jMN9JqxiU0CZJewU+fUewVEI9pGKFGsJII9RdqZH/OJXra5X1 7FFL9JeaKtdjQFGzv+MFIZE= X-Google-Smtp-Source: ABdhPJyFcS62rGLLZ0EjAwY0p9t8w/nlk+P69zOcR/Ub+6SBHdiRFu9Da86aHG305c8OK9PsWgEuhw== X-Received: by 2002:a1c:cc14:: with SMTP id h20mr14143517wmb.180.1608049731193; Tue, 15 Dec 2020 08:28:51 -0800 (PST) Date: Tue, 15 Dec 2020 16:28:49 +0000 From: Wei Liu To: Jan Beulich Cc: "xen-devel@lists.xenproject.org" , Andrew Cooper , Wei Liu , Roger Pau =?utf-8?B?TW9ubsOp?= Subject: Re: [PATCH v2 2/4] x86: clobber registers in switch_stack_and_jump() when !LIVEPATCH Message-ID: <20201215162849.khcagkpxe3ccnohj@liuwe-devbox-debian-v2> References: <28db518c-da59-8e56-b8dc-ccc814f91131@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28db518c-da59-8e56-b8dc-ccc814f91131@suse.com> User-Agent: NeoMutt/20180716 On Tue, Dec 15, 2020 at 05:12:12PM +0100, Jan Beulich wrote: > In order to have the same effect on registers as a call to > check_for_livepatch_work() may have, clobber all call-clobbered > registers in debug builds. > > Signed-off-by: Jan Beulich Reviewed-by: Wei Liu