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

- From: Haitao Huang \<hidden\>
- Date: 2019-12-02 15:48:48 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2019/12/5792634
- Thread: https://ratatoskr.run/linux-security-module/2019/11/5791980/t.md

```text
On Fri, 29 Nov 2019 17:13:14 -0600, Jarkko Sakkinen [ref] 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
```
