Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp575560ybx; Tue, 5 Nov 2019 02:09:01 -0800 (PST) X-Google-Smtp-Source: APXvYqzuFF/1CTiexmOQhCNSZiD1cwPMIQU1bxOgzHH+3AUKp0sYNSz84ikjvZDE/ldKGCMQfHw9 X-Received: by 2002:a17:906:9248:: with SMTP id c8mr12071446ejx.47.1572948541822; Tue, 05 Nov 2019 02:09:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572948541; cv=none; d=google.com; s=arc-20160816; b=RqwnP5MURMBHfGsGzRgjSMxJ/MUenxliWDCVdgJgx0TsTmviv5nGfMyFGQ1w0MD2XY 7ABlOctdM6VRHrAb2D7aAf/UDQfE3pI8gxinXaX3BRmVy2LW8tAbDngqPYNtcOBQVyDn 1v8+eYxLZYhFJGkgdcMQbqQtJRmLl1LwIVlar1h8UKuDvq6XTHioISeaMpr2Of8eAb0I 7RtFvhWUcWBEz1cD9ixqce3eNNMw8gYGBpIBApfgI3kwqtPY1W02hhOANaaTeO4wNvct XCQiL2NA+DFAdrY+bBCFQsLAV96vO4nJvgXz1cyd9ytdzsmxfudnKDYC5X+Y5vC2tSWx w9Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=+p6MzjaCDgcAgk98VJBsyJP1N813kTt9VSOvi9TO8ZM=; b=KCM74BPCtW17JJooW8yxiV2ZtphNY2vNg6+elvEH2iCqJu6W1e4qMeDxFFck7YkmGG M5OJDythQd1yZz7TMPx950bdytQKjroDnut6QcrKKuak062mYvLAINna2PfL3m11Gf4b 98HscNansCaQ3yTFPL3d+zFX+3zhVXH584sJ4gw30a+uSH88VHia18sOAmc4M6y2R4jy UD1bbcZhUJ5/xb4snMscztJ/MKZ7bLlNLnkYHoW+1uJS1kqVjSnoV4i0pQbv3Ndyl9uY bTCG2vANwCZJXtOtvCvw2mT9Vy8VniW3HtWx0c3Wa1l96Z2DHCLZ9gg0Vn5AlVsw9Yxf W9dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AtEtacNh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si9744868edq.208.2019.11.05.02.08.38; Tue, 05 Nov 2019 02:09:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AtEtacNh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388256AbfKEKHq (ORCPT + 99 others); Tue, 5 Nov 2019 05:07:46 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:27653 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388228AbfKEKHp (ORCPT ); Tue, 5 Nov 2019 05:07:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572948465; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+p6MzjaCDgcAgk98VJBsyJP1N813kTt9VSOvi9TO8ZM=; b=AtEtacNhCGs/V+NferlO1/shjJfbhz2PbMW6OdFt8ZF9drWYGHwBGtr9zaYdudIravRdGn i8tpp6F/5e6KgedG7vOwU/acScGDolB0nPn1SBy0RoJPR5EThKoreLJWr6MZiza4EaA18h EK6AidkZu3RIUft47VL+97ULBvDiEKw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-26-M3qGGrxpM7GVcLI_o98zVQ-1; Tue, 05 Nov 2019 05:07:41 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2F4EE800C73; Tue, 5 Nov 2019 10:07:39 +0000 (UTC) Received: from [10.36.117.253] (ovpn-117-253.ams2.redhat.com [10.36.117.253]) by smtp.corp.redhat.com (Postfix) with ESMTP id A429561069; Tue, 5 Nov 2019 10:07:35 +0000 (UTC) Subject: Re: [PATCH v3] mm/memory_hotplug: Fix try_offline_node() To: Masayoshi Mizuma Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Tang Chen , Greg Kroah-Hartman , "Rafael J. Wysocki" , Andrew Morton , Keith Busch , Jiri Olsa , "Peter Zijlstra (Intel)" , Jani Nikula , Nayna Jain , Michal Hocko , Oscar Salvador , Stephen Rothwell , Dan Williams , Pavel Tatashin References: <20191102120221.7553-1-david@redhat.com> <20191105012049.x2k4v2xizd2tim5b@gabell> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: <495a43af-befb-91f9-0097-9f0b449ff632@redhat.com> Date: Tue, 5 Nov 2019 11:07:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <20191105012049.x2k4v2xizd2tim5b@gabell> Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: M3qGGrxpM7GVcLI_o98zVQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05.11.19 02:20, Masayoshi Mizuma wrote: > 5.4-rc5 with this patch works for memory-hotadd and remove, thanks! > Please feel free to add: >=20 > Tested-by: Masayoshi Mizuma >=20 > Without this patch, memory hotplug fails as panic: >=20 > BUG: kernel NULL pointer dereference, address: 0000000000000000 > ... > Call Trace: > remove_memory_block_devices+0x81/0xc0 > try_remove_memory+0xb4/0x130 > ? walk_memory_blocks+0x75/0xa0 > __remove_memory+0xa/0x20 > acpi_memory_device_remove+0x84/0x100 > acpi_bus_trim+0x57/0x90 > acpi_bus_trim+0x2e/0x90 > acpi_device_hotplug+0x2b2/0x4d0 > acpi_hotplug_work_fn+0x1a/0x30 > process_one_work+0x171/0x380 > worker_thread+0x49/0x3f0 > kthread+0xf8/0x130 > ? max_active_store+0x80/0x80 > ? kthread_bind+0x10/0x10 > ret_from_fork+0x35/0x40 >=20 > - Masa Thanks a lot for testing! --=20 Thanks, David / dhildenb