Conversation

FFS Linux *please* stop hiding features behind CONFIG_CHECKPOINT_RESTORE just because checkpoint/restore migration is *one* possible usage case for them!!!
Quote Tweet
Uhg it's not CONFIG_HAVE_ARCH_SOFT_DIRTY but CONFIG_MEM_SOFT_DIRTY, and the latter is hidden behind CONFIG_CHECKPOINT_RESTORE like lots of other useful stuff for no legitimate reason.
Show this thread
1
Replying to and
FWIW, I'm not sure exactly what "SROP mitigation" would look like but I suspect it would break other valid things like sigreturn-based ucontext API implementation (IIRC this is used by glibc on one or more archs, and is a good choice of implementation).
1
Replying to and
Shadow stacks mitigate it so I'm not particularly concerned since software-based shadow stacks work decently on arm (but not x86 via a simple implementation) and superior hardware-based support should be available in a couple years via CET on x86 and memory tagging on ARM.
1
I didn't notice that they removed the dependency of CHECKPOINT_RESTORE on EXPERT. It was kept behind that for a long time since the way they do a lot of things is just a bad idea. They're apparently also trying to remove the CHECKPOINT_RESTORE configuration option as a whole.
1
Replying to and
While I largely agree about checkpont/restore being a poor design, a lot of the functionality hidden behind the config option is very useful and it's ridiculous that it's hidden behind it. For instance several prctls (used to be more of them).
1
Replying to and
They're using the configuration option to avoid going through the proper design / review process for the features. They add whatever they want and include it behind their own configuration option. They treat it all as something that MUST be done ASAP to avoid having CRIU break.
1
It's easier for them to use the configuration option to land whatever they need and then split out portions of it later. I see it as a way of avoiding the appropriate review and debate. People working on stuff that's already in the kernel have privileges like this others don't.