Re: [PATCH v3] mm/memory_hotplug: Fix try_offline_node()

From: David Hildenbrand
Date: Tue Nov 05 2019 - 05:07:47 EST


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:

Tested-by: Masayoshi Mizuma <m.mizuma@xxxxxxxxxxxxxx>

Without this patch, memory hotplug fails as panic:

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

- Masa

Thanks a lot for testing!

--

Thanks,

David / dhildenb