Re: [PATCH] powerpc/mm/numa: skip NUMA_NO_NODE onlining in parse_numa_properties()

2022-03-02 Thread Michael Ellerman
On Thu, 24 Feb 2022 15:23:12 -0300, Daniel Henrique Barboza wrote: > Executing node_set_online() when nid = NUMA_NO_NODE results in an > undefined behavior. node_set_online() will call node_set_state(), into > __node_set(), into set_bit(), and since NUMA_NO_NODE is -1 we'll end up > doing a

[PATCH] powerpc/mm/numa: skip NUMA_NO_NODE onlining in parse_numa_properties()

2022-02-24 Thread Daniel Henrique Barboza
Executing node_set_online() when nid = NUMA_NO_NODE results in an undefined behavior. node_set_online() will call node_set_state(), into __node_set(), into set_bit(), and since NUMA_NO_NODE is -1 we'll end up doing a negative shift operation inside arch/powerpc/include/asm/bitops.h. This potential