control

file: /proc/sys/user/control
variable: user.control
Official reference

vm.memory_failure_recovery See sysctl.txt

vm.memory_failure_early_kill Enable early kill mode globally

PR_MCE_KILL Set early/late kill mode/revert to system default

arg1: PR_MCE_KILL_CLEAR:
	Revert to system default
arg1: PR_MCE_KILL_SET:
	arg2 defines thread specific mode

	PR_MCE_KILL_EARLY:
		Early kill
	PR_MCE_KILL_LATE:
		Late kill
	PR_MCE_KILL_DEFAULT
		Use system global default

Note that if you want to have a dedicated thread which handles
the SIGBUS(BUS_MCEERR_AO) on behalf of the process, you should
call prctl(PR_MCE_KILL_EARLY) on the designated thread. Otherwise,
the SIGBUS is sent to the main thread.

PR_MCE_KILL_GET return current mode