On Fri, Jan 14, 2022 at 04:16:41PM -0800, Dave Hansen wrote: > On 1/14/22 3:57 PM, Jarkko Sakkinen wrote: > > Would it be a too big tretch to add these and make the whole scheme > > fully legit? Does not sound like an extremely huge stretch and there is now > > a full cycle amount of time make it happen before 5.18 merge window. > > No, it's not a big stretch. If anyone wants it for 5.18 (or whatever) > just send the patch. Fixing this to work with the current mainline is first and foremost needed: https://lore.kernel.org/linux-sgx/YeHqW8AaQ3HZZoQx@xxxxxx/T/#t With a fixeed version of that, wouldn't it be then just matter of calling shmem_getpage() with SGX_NOALLOC to check the state of the file in both calls? /Jarkko