search for: local_cpu_hotplug_request

Displaying 1 result from an estimated 1 matches for "local_cpu_hotplug_request".

2013 Jan 15
0
[PATCH] linux-2.6.18: properly bound buffer access when parsing cpu/*/availability
At the same time reduce the local buffers to 16 bytes each. Signed-off-by: Jan Beulich <jbeulich@suse.com> --- a/drivers/xen/core/cpu_hotplug.c +++ b/drivers/xen/core/cpu_hotplug.c @@ -28,13 +28,13 @@ static int local_cpu_hotplug_request(voi static void vcpu_hotplug(unsigned int cpu, struct sys_device *dev) { int err; - char dir[32], state[32]; + char dir[16], state[16]; if ((cpu >= NR_CPUS) || !cpu_possible(cpu)) return; sprintf(dir, "cpu/%u", cpu); - err = xenbus_scanf(XBT_NIL, dir, "availability&...