aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorGregory Price <[email protected]>2023-10-30 00:42:39 -0400
committerGreg Kroah-Hartman <[email protected]>2023-12-07 11:35:23 +0900
commit48b5928e18dc27e05cab3dc4c78cd8a15baaf1e5 (patch)
treeebbe607758b8c89e04cf84cecf28e5b3f1d846aa /lib/test_fortify/write_overflow-strlcpy-src.c
parent5bb03d0dd76700a830243776a99275575cbb2ee1 (diff)
base/node.c: initialize the accessor list before registering
The current code registers the node as available in the node array before initializing the accessor list. This makes it so that anything which might access the accessor list as a result of allocations will cause an undefined memory access. In one example, an extension to access hmat data during interleave caused this undefined access as a result of a bulk allocation that occurs during node initialization but before the accessor list is initialized. Initialize the accessor list before making the node generally available to the global system. Fixes: 08d9dbe72b1f ("node: Link memory nodes to their compute nodes") Signed-off-by: Gregory Price <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions