From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756375AbbCCDan (ORCPT ); Mon, 2 Mar 2015 22:30:43 -0500 Received: from szxga01-in.huawei.com ([119.145.14.64]:2217 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756349AbbCCDak (ORCPT ); Mon, 2 Mar 2015 22:30:40 -0500 Message-ID: <54F52ACF.4030103@huawei.com> Date: Tue, 3 Mar 2015 11:30:23 +0800 From: Xishi Qiu User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Yasuaki Ishimatsu , Andrew Morton , Tang Chen , Yinghai Lu CC: Linux MM , LKML , "Toshi Kani" , Mel Gorman , Tejun Heo Subject: node-hotplug: is memset 0 safe in try_offline_node()? Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.25.179] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When hot-remove a numa node, we will clear pgdat, but is memset 0 safe in try_offline_node()? process A: offline node XX: for_each_populated_zone() find online node XX cond_resched() offline cpu and memory, then try_offline_node() node_set_offline(nid), and memset(pgdat, 0, sizeof(*pgdat)) access node XX's pgdat NULL pointer access error Thanks, Xishi Qiu