Re: [PATCH v24 12/24] x86/sgx: Linux Enclave Driver

From: Haitao Huang
Date: Mon Dec 02 2019 - 10:48:47 EST


On Fri, 29 Nov 2019 17:13:14 -0600, Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx> wrote:


+
+ for (c = 0 ; c < addp.length; c += PAGE_SIZE) {
+ if (signal_pending(current)) {
+ ret = -ERESTARTSYS;
+ break;
+ }

This IOC is not idempotent as pages EADDed at this point can not be re-EADDed again. So we can't return ERESTARTSYS

Haitao