Re: [PATCH] sched: core: fix out of bounds read in sched_init_numa()

2014-11-07 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/07/2014 09:53 AM, Andrey Ryabinin wrote: > Zero 'level' (e.g. on non-NUMA system) causing out of bounds > access in this line: > > sched_max_numa_distance = sched_domains_numa_distance[level - 1]; > > Fix this by exiting from

[PATCH] sched: core: fix out of bounds read in sched_init_numa()

2014-11-07 Thread Andrey Ryabinin
On latest mm + KASan patchset I've got this: == BUG: AddressSanitizer: out of bounds access in sched_init_smp+0x3ba/0x62c at addr 88006d4bee6c

[PATCH] sched: core: fix out of bounds read in sched_init_numa()

2014-11-07 Thread Andrey Ryabinin
On latest mm + KASan patchset I've got this: == BUG: AddressSanitizer: out of bounds access in sched_init_smp+0x3ba/0x62c at addr 88006d4bee6c

Re: [PATCH] sched: core: fix out of bounds read in sched_init_numa()

2014-11-07 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/07/2014 09:53 AM, Andrey Ryabinin wrote: Zero 'level' (e.g. on non-NUMA system) causing out of bounds access in this line: sched_max_numa_distance = sched_domains_numa_distance[level - 1]; Fix this by exiting from sched_init_numa()