lkml.org 
[lkml]   [2021]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC PATCH v5 1/2] selftests/x86: add xsave test during and after signal handling
From
Date
On 12/2/21 11:32 PM, Pengfei Xu wrote:
> +void populate_xstate_regs(void)
> +{
> + set_fpu_reg();
> + set_avx2_ymm();
> + set_avx512_opmask();
> + set_pkru_xstate();
> +}

Pengfei, as I mentioned several times, XMM and YMM registers are not
preserved across function calls. This only works by chance. The
compiler is free to clobber them at basically any time between when they
are populated and the XSAVE happens.

\
 
 \ /
  Last update: 2021-12-09 19:23    [W:0.040 / U:0.816 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site