lkml.org 
[lkml]   [2022]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH V2] x86/sev: Mark the code returning to user space as syscall gap
    On Tue, Apr 12, 2022 at 8:48 PM Lai Jiangshan <jiangshanlai@gmail.com> wrote:
    >
    > From: Lai Jiangshan <jiangshan.ljs@antgroup.com>
    >
    > When returning to user space, the %rsp is user controlled value.
    >
    > If it is SNP-guest and the hypervisor decides to mess with the code-page
    > for this path while a CPU is executing it. This will cause a #VC on
    > that CPU and that could hit in the syscall return path and mislead
    > the #VC handler.
    >
    > So make ip_within_syscall_gap() return true in this case.
    >
    > Cc: Joerg Roedel <jroedel@suse.de>
    > Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com>



    Hello

    Ping.

    Thanks
    Lai

    \
     
     \ /
      Last update: 2022-04-27 10:29    [W:4.508 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site