Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp777664pxb; Tue, 12 Apr 2022 13:11:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYET0LaIRuZDFFDWeuCWEFrSjCrHsnmpqnclnZx6pakdJchWeP5n6k5uJTq8D2zrjXPIAl X-Received: by 2002:a17:903:18e:b0:158:6be6:fbb2 with SMTP id z14-20020a170903018e00b001586be6fbb2mr10603222plg.161.1649794291786; Tue, 12 Apr 2022 13:11:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649794291; cv=none; d=google.com; s=arc-20160816; b=M1fzRPuOfYBVNyOMhNapQFSAZlbHeLpKziq4GvDTBP6g1q2WyTDhMQcrK+u+ejHfzZ ebbkfkM2ZqTK3OnzQCEKgE0kRJT4vrERBhSPZbW1XbT98co30Uxj1gYFUScBtdXZpO1V +9lzL7V98AF7xN56OBGfga864PvOICHFPlZwpJUaBd7IGXiiTHLASoFd64OyWhPqZ4ey zfIVUE01F3PgjLTmQIMdlf52bB4otm3bQTC9sI140+QRJd9OsYvfi/WHyg6g4aULoAz5 9uBDJ5RxNTJ8ZzzwTB/uuQ2EgYklMBEKnQIfESMdZT7pPgmMdcbuA0jiYLu2iIraf97n +pKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=gF2cl5RInkAztfUncbBifVXypH97fQxX/qYG05vFGDQ=; b=MrHopu354i0OXYNup3O4izzLrgiTGffZIaFvZZuolxbItaVxnkDW+AUdbZurbDhvdy RWqqYBh4365ygOjZASPHp6m7FHKZUJYUwGW/VJLI7ZNQsXLIywiYoTJPkbtyXrBRsL8w +B8OG0ye1rBjwgJ4B+jAsH93EKsU7Fws3uVzoZZ88STwJdbNeqw1flEV1P3D2AFDnb1Z XdnLBqSdMHiPnvNJLfPCLfYpx6Lob2buK7Ycz5peOH94W8BEKbpOGTDL76TzuGvmJQKm z2KY/WJXHrY7FnjnhHBUiEY3YccpsWukzDhMS7CbSCjEOULopykh+Zmo7zxxve35E7IM MFRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Lsevu59f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id ce21-20020a17090aff1500b001cb85d10726si7929639pjb.77.2022.04.12.13.11.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 13:11:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Lsevu59f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 83E59888E2; Tue, 12 Apr 2022 12:58:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355629AbiDLNQx (ORCPT + 99 others); Tue, 12 Apr 2022 09:16:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356731AbiDLNOH (ORCPT ); Tue, 12 Apr 2022 09:14:07 -0400 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D5FC5599 for ; Tue, 12 Apr 2022 06:00:24 -0700 (PDT) Received: by mail-yb1-xb32.google.com with SMTP id i20so11767239ybj.7 for ; Tue, 12 Apr 2022 06:00:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gF2cl5RInkAztfUncbBifVXypH97fQxX/qYG05vFGDQ=; b=Lsevu59fPR/V8RV00Pfzmbc2h9Jb1UrgFOdLFtvzhVRR4kBNRYCxzqCVF8AHfAM2zN pcKiQM6I/GuChhwnJuhCCwcumqZYtCOFSD7Zqgv8Yfo7CZtXDcQaWhUhCxCXLJWH+wdf 2qRHOSArHtaHUxMl2SFfzcZXQPQhbZxZkNtBYlTSjvXtFY0niqlINMhb7LKAZ/JDwD3P swl4IDu6rw+/moJXoyXwlxLbYuHtlT5jM5PbFEzjvlRjyxGaxFBmyQ3IOs63s13E+owm 4gqS++HmHStAftBZZTsu5sFZP+l72BH2lYKgI3OvuldEWFY13n9hsfE7Yc6cRez359es QS5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gF2cl5RInkAztfUncbBifVXypH97fQxX/qYG05vFGDQ=; b=PHuyJHFa7XFI/Jd8Hy1pguWTJNYQRORHqoCLKHbC5IDyij8NhSY2LrtoEZQd9BjD5j 1X3qVw+9307x+rDnqwU0aDd5UFWy/jIcDWvKNUvklQPyR+py+cSpBY8ZTa4339+5rJia Nrd7E0MEvWl6CEPt/qVBN9mBQVGX9F8e4RNuetrIURSfe40UtLYWkSDYS1l2FYCrdV06 JSesp1q8FDoZQeHXTc/uypeSZGTK/g2/jwNKiP+qX69kt3WWGXak1jP7LOYwgmV3wLU+ 6IVYDw0bjBu6UjwVHtZ3Xa3Jr8sJW/HuDDhmvXNqGYdYvc7JGtIbE5jsT5TuLTIIpAfp hQ9g== X-Gm-Message-State: AOAM5320L+woTj4jDWO9FYNh+Ja9fgUeN9nD2SIp63CQWueg8IIyZpNP hf/O/zRBAMy9N9APsrJgifRA1dxl2+KpvMjdf24= X-Received: by 2002:a25:d207:0:b0:641:5458:207e with SMTP id j7-20020a25d207000000b006415458207emr7565977ybg.552.1649768423731; Tue, 12 Apr 2022 06:00:23 -0700 (PDT) MIME-Version: 1.0 References: <20211213042215.3096-1-jiangshanlai@gmail.com> <20211213042215.3096-4-jiangshanlai@gmail.com> In-Reply-To: From: Lai Jiangshan Date: Tue, 12 Apr 2022 21:00:12 +0800 Message-ID: Subject: Re: [PATCH 3/3] x86/sev: The code for returning to user space is also in syscall gap To: Borislav Petkov Cc: LKML , X86 ML , Lai Jiangshan , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Dave Hansen , "H. Peter Anvin" , Oleg Nesterov , "Chang S. Bae" , Jan Kiszka , Joerg Roedel , Tom Lendacky Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 15, 2021 at 5:51 AM Borislav Petkov wrote: > > + Tom and leaving the whole mail un-trimmed for him. > > On Mon, Dec 13, 2021 at 12:22:15PM +0800, Lai Jiangshan wrote: > > From: Lai Jiangshan > > > > When returning to user space, the %rsp is user controlled value. > > And? > > I'd expect to see here some text analyzing the couple of instructions > between those new labels you've added and whether a #VC can happen > there. Hello, Borislav I resent the patch with an updated changelog mainly copied from Joerg's reply. https://lore.kernel.org/lkml/20220412124909.10467-1-jiangshanlai@gmail.com/ The other two patches in this patchset are omitted since they make less sense which only harms only when the system owner is deliberately doing stupid things. thanks Lai