Protected memory can be used to fix that. Working on a related project that I'm planning to share soon.