Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'smp-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull SMP fixes from Thomas Gleixner:
"Two small changes for the cpu hotplug code:

- Prevent out of bounds access which actually might crash the machine
caused by a missing bounds check in the fail injection code

- Warn about unsupported migitation mode command line arguments to
make people aware that they typoed the paramater. Not necessarily a
fix but quite some people tripped over that"

* 'smp-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
cpu/hotplug: Fix out-of-bounds read when setting fail state
cpu/speculation: Warn on unsupported mitigations= parameter

+6
+6
kernel/cpu.c
··· 1964 1964 if (ret) 1965 1965 return ret; 1966 1966 1967 + if (fail < CPUHP_OFFLINE || fail > CPUHP_ONLINE) 1968 + return -EINVAL; 1969 + 1967 1970 /* 1968 1971 * Cannot fail STARTING/DYING callbacks. 1969 1972 */ ··· 2342 2339 cpu_mitigations = CPU_MITIGATIONS_AUTO; 2343 2340 else if (!strcmp(arg, "auto,nosmt")) 2344 2341 cpu_mitigations = CPU_MITIGATIONS_AUTO_NOSMT; 2342 + else 2343 + pr_crit("Unsupported mitigations=%s, system may still be vulnerable\n", 2344 + arg); 2345 2345 2346 2346 return 0; 2347 2347 }