linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] cpuidle: Fixes in cpuidle driver
@ 2017-03-23 15:22 Vaidyanathan Srinivasan
  2017-03-23 15:22 ` [PATCH v2 1/2] powerpc/powernv/cpuidle: Pass correct drv->cpumask for registration Vaidyanathan Srinivasan
  2017-03-23 15:22 ` [PATCH v2 2/2] cpuidle: Validate cpu_dev in cpuidle_add_sysfs Vaidyanathan Srinivasan
  0 siblings, 2 replies; 9+ messages in thread
From: Vaidyanathan Srinivasan @ 2017-03-23 15:22 UTC (permalink / raw)
  To: Michael Neuling, Michael Ellerman, Rafael J . Wysocki,
	Daniel Lezcano
  Cc: linuxppc-dev, linux-kernel, linux-pm

When CONFIG_HOTPLUG_CPU=n and cpu_present is less than cpu_possible,
then cpuidle-powernv not passing an explicit drv->cpu_mask allows
generic cpuidle driver to try create sysfs objects for cpus that does
not have cpu_devices created by calling register_cpu().

This caused kernel to access incorrect address and crash. The
following patch series fixes the cpuidle-powernv driver and also adds
additional checks in cpuidle_add_sysfs()

This patch set is against v4.11-rc3.

Changed from v1: Updated commit message and comments.

Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-03-27 10:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-23 15:22 [PATCH v1 0/2] cpuidle: Fixes in cpuidle driver Vaidyanathan Srinivasan
2017-03-23 15:22 ` [PATCH v2 1/2] powerpc/powernv/cpuidle: Pass correct drv->cpumask for registration Vaidyanathan Srinivasan
2017-03-23 15:28   ` Rafael J. Wysocki
2017-03-23 15:42     ` Vaidyanathan Srinivasan
2017-03-27 10:38     ` Michael Ellerman
2017-03-24  8:29   ` Gautham R Shenoy
2017-03-23 15:22 ` [PATCH v2 2/2] cpuidle: Validate cpu_dev in cpuidle_add_sysfs Vaidyanathan Srinivasan
2017-03-23 15:27   ` Rafael J. Wysocki
2017-03-23 15:40     ` Vaidyanathan Srinivasan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).