[lkml]   [2004]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH] get_nodes mask miscalculation
    It appears there is a nodemask miscalculation in the get_nodes()
    function in mm/mempolicy.c. This bug has two effects:

    1. It is impossible to specify a length 1 nodemask.
    2. It is impossible to specify a nodemask containing the last node.

    The following patch against 2.6.8-rc3 has been confirmed to solve
    both problems.

    Signed-off-by: Brent Casavant <>

    --- linux-2.6.8-rc3/mm/mempolicy.c 2004-08-03 16:28:51.000000000 -0500
    +++ linux-work/mm/mempolicy.c 2004-08-09 14:56:44.000000000 -0500
    @@ -132,7 +132,6 @@
    unsigned long nlongs;
    unsigned long endmask;

    - --maxnode;
    bitmap_zero(nodes, MAX_NUMNODES);
    if (maxnode == 0 || !nmask)
    return 0;
    Brent Casavant Forget bright-eyed and
    Operating System Engineer bushy-tailed; I'm red-
    Silicon Graphics, Inc. 44.8562N 93.1355W 860F eyed and bushy-haired.
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:05    [W:0.020 / U:0.872 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site