lkml.org 
[lkml]   [2012]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH] memory hotplug: fix invalid memory access caused by stale kswapd pointer
    On Wed, Jun 13, 2012 at 11:44 PM, Jiang Liu <jiang.liu@huawei.com> wrote:
    > Function kswapd_stop() will be called to destroy the kswapd work thread
    > when all memory of a NUMA node has been offlined. But kswapd_stop() only
    > terminates the work thread without resetting NODE_DATA(nid)->kswapd to NULL.
    > The stale pointer will prevent kswapd_run() from creating a new work thread
    > when adding memory to the memory-less NUMA node again. Eventually the stale
    > pointer may cause invalid memory access.
    >
    > Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
    > Signed-off-by: Jiang Liu <liuj97@gmail.com>

    Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>


    \
     
     \ /
      Last update: 2012-06-14 08:21    [W:3.551 / U:1.492 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site