[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4414b911-80a1-beec-a402-2966f93d9670@intel.com>
Date: Wed, 24 Aug 2022 11:39:20 -0700
From: Dave Hansen <dave.hansen@...el.com>
To: Paul Menzel <pmenzel@...gen.mpg.de>,
Jarkko Sakkinen <jarkko@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
x86@...nel.org, Reinette Chatre <reinette.chatre@...el.com>
Cc: linux-sgx@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>
Subject: Re: WARNING: CPU: 1 PID: 83 at arch/x86/kernel/cpu/sgx/main.c:446
ksgxd+0x1b7/0x1d0
On 8/23/22 15:33, Paul Menzel wrote:
>> Thanks for the extra debug info. Unfortunately, nothing is really
>> sticking out as an obvious problem.
>>
>> The EREMOVE return codes would be interesting to know, as well as an
>> idea what the physical addresses are that fail and the _counts_ of how
>> many pages get sanitized versus fail.
>
> Is there a knob to print out this information? Or way to get this
> information using ftrace? I’d like to avoid rebuilding the Linux kernel.
You can probably do it with a kprobe and ftrace, but it's a little bit
of a pain since the ENCL* instructions are all inlined and don't get
wrapped in actual function calls.
I'd just rebuild the kernel if it were me.
Maybe we just just uninline all of the ENCL* instruction so that we
*can* more easily trace them. It's not like they are performance sensitive.
Powered by blists - more mailing lists