Commit 764b9fb9 authored by Aichun Shi's avatar Aichun Shi
Browse files

Revert "x86/microcode: Taint and warn on late loading"

Intel inclusion
category: feature
feature: Backport Intel In Field Scan(IFS) multi-blob images support
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I6L337


CVE: N/A
Reference: N/A

Intel-SIG: Revert commit 309a506f ("x86/microcode: Taint and warn on
late loading")

-------------------------------------

This reverts commit 309a506f.

This revert is to re-enable microcode late loading.

Signed-off-by: default avatarAichun Shi <aichun.shi@intel.com>
parent 15a90ae0
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -510,9 +510,6 @@ static int microcode_reload_late(void)
{
	int ret;

	pr_err("Attempting late microcode loading - it is dangerous and taints the kernel.\n");
	pr_err("You should switch to early loading, if possible.\n");

	atomic_set(&late_cpus_in,  0);
	atomic_set(&late_cpus_out, 0);

@@ -561,8 +558,6 @@ static ssize_t reload_store(struct device *dev,
	if (ret == 0)
		ret = size;

	add_taint(TAINT_CPU_OUT_OF_SPEC, LOCKDEP_STILL_OK);

	return ret;
}