Re: Odd looking #PF fault code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2022-04-04 at 02:50 +0300, Jarkko Sakkinen wrote:
> I get this when trying to get EAUG-EACCEPTCOPY to run on Enarx and I get:
> 
> Unexpected PF: address: 0x007f7fff910000, error code 0x15
> 
> I'm using patches from:
> 
> https://github.com/rchatre/linux/tree/sgx/sgx2_submitted_v2_plus_rwx
> 
> Fault code is in other words PROT|WRITE|USER|RSVD.
> 
> According to arch/x86/kernel/fault.c:
> 
>         /*
>          * Reserved bits are never expected to be set on
>          * entries in the user portion of the page tables.
>          */
>         if (unlikely(error_code & X86_PF_RSVD))
>                 pgtable_bad(regs, error_code, address);
> 
> Any clue how this fault code could emit?
> 
> [*] https://github.com/enarx/enarx/pull/1608
> 
> BR, Jarkko

Oops, off-by-one, I bit is set, not RSVD :-)

BR, Jarkko





[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux