]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/sparsemem: fix race in accessing memory_section->usage
authorCharan Teja Kalla <quic_charante@quicinc.com>
Fri, 27 Oct 2023 10:49:38 +0000 (16:19 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 20 Nov 2023 21:16:02 +0000 (13:16 -0800)
commit780ba1c902b53855ce8c51306c1500c4a67d622e
tree4ce4ccb7db421225711d7243116b03123450eec9
parentcd350cfc3c74e0a65a09c82e7276cbee8935dbbc
mm/sparsemem: fix race in accessing memory_section->usage

use kfree_rcu() in place of synchronize_rcu(), per David

Link: https://lkml.kernel.org/r/1698403778-20938-1-git-send-email-quic_charante@quicinc.com
Fixes: f46edbd1b151 ("mm/sparsemem: add helpers track active portions of a section at boot")
Signed-off-by: Charan Teja Kalla <quic_charante@quicinc.com>
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mmzone.h
mm/sparse.c