Re: [PATCH] powerpc: fix memory corruption by pnv_alloc_idle_core_states

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/10/2015 12:30 PM, Michael Ellerman wrote:
> On Fri, 2015-04-10 at 12:11 +0530, Preeti U Murthy wrote:
>> From: Jan Stancek <jstancek@xxxxxxxxxx>
>>
>> commit d52356e7f48e400ca258c6763a232a92fa82ff68 upstream
>>
>> Space allocated for paca is based off nr_cpu_ids,
>> but pnv_alloc_idle_core_states() iterates paca with
>> cpu_nr_cores()*threads_per_core, which is using NR_CPUS.
>>
>> This causes pnv_alloc_idle_core_states() to write over memory,
>> which is outside of paca array and may later lead to various panics.
>>
>> Bugzilla: https://bugzilla.linux.ibm.com/show_bug.cgi?id=123238
> 
> Please don't include links to sites that aren't publically available.

Sorry about that! Greg please let me know if you can drop the tag
conveniently and pick up the patch or if you would like me to send out a
fresh patch.

Thanks

Regards
Preeti U Murthy
> 
> cheers
> 
> 

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]