Re: [PATCH for_v22 04/11] x86/sgx: x86/sgx: Require EADD destination to be page aligned

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

 



On Wed, Aug 07, 2019 at 05:12:47PM -0700, Sean Christopherson wrote:
> Check that the destination enclave address is page aligned, i.e. bits
> 11:0 are zero.  The userspace controlled address is used to initialize
> page->desc, e.g. userspace can set kernel-internal flags by passing in
> an unaligned address.
> 
> Reported-by: Shay Katz-zamir <shay.katz-zamir@xxxxxxxxx>
> Signed-off-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>

Acked-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx>

/Jarkko



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

  Powered by Linux