Hacker News new | ask | show | jobs
by lmilcin 1725 days ago
> Presumably you had some kind of instrumentation to let you know if a stray syscall had slipped in?

Don't know if you can call it instrumentation... I wrote an extremely hacky patch for the kernel to detect when any piece of kernel is running on anything than core 0 after certain flag was set.

Remember, it is not just syscalls. Even something as simple as accessing memory can cause switch to kernel to resolve TLB entry if you don't set up your memory correctly to prevent this from happening.

Yeah... I know. Now a bunch of people will come and explain how this could be done the right way. I just didn't care at the time to invest more time than necessary to get this right.

1 comments

Got it. That's rather lovely.