Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> which would be trivial to detect by an application by checking if guard values were set to zero.

    if(data->guard != 0) {
        // Hibernation happens here.
        process(&data);
    }


You would have to check the guard after process and throw away the result if guard changed.

Edit: I think something similar is used to avoid time related system calls, the values are just mapped into the application address space and the kernel updates time and guard values concurrent to the application.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: