lkml.org 
[lkml]   [2015]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] __bitmap_parselist: fix bug in empty string handling
On Fri, 17 Apr 2015 14:00:04 -0400 Chris Metcalf <cmetcalf@ezchip.com> wrote:

> bitmap_parselist("", &mask, nmaskbits) will erroneously set bit
> zero in the mask. The same bug is visible in cpumask_parselist()
> since it is layered on top of the bitmask code, e.g. if you boot with
> "isolcpus=", you will actually end up with cpu zero isolated.
>
> The bug was introduced in commit 4b060420a596 ("bitmap, irq: add
> smp_affinity_list interface to /proc/irq") when bitmap_parselist()
> was generalized to support userspace as well as kernelspace.
>
> Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
> Cc: stable@vger.kernel.org

I don't think we need to backport a fix for a 4 year old bug which has
very minor consequences. Am I wrong?


\
 
 \ /
  Last update: 2015-04-20 22:41    [W:0.032 / U:0.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site