linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH mm] lib/stackdepot: fix for "annotate racy pool_index accesses"
@ 2023-02-11 15:48 andrey.konovalov
  0 siblings, 0 replies; only message in thread
From: andrey.konovalov @ 2023-02-11 15:48 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Andrey Konovalov, Marco Elver, Alexander Potapenko,
	Vlastimil Babka, kasan-dev, Evgenii Stepanov, linux-mm,
	linux-kernel, Andrey Konovalov

From: Andrey Konovalov <andreyknvl@google.com>

Change the remaning reference to pool_index in stack_depot_fetch to
pool_index_cached.

Signed-off-by: Andrey Konovalov <andreyknvl@google.com>

---

This change can be squashed into "lib/stackdepot: annotate racy pool_index
accesses".
---
 lib/stackdepot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/stackdepot.c b/lib/stackdepot.c
index ec772e78af39..036da8e295d1 100644
--- a/lib/stackdepot.c
+++ b/lib/stackdepot.c
@@ -470,7 +470,7 @@ unsigned int stack_depot_fetch(depot_stack_handle_t handle,
 
 	if (parts.pool_index > pool_index_cached) {
 		WARN(1, "pool index %d out of bounds (%d) for stack id %08x\n",
-			parts.pool_index, pool_index, handle);
+			parts.pool_index, pool_index_cached, handle);
 		return 0;
 	}
 	pool = stack_pools[parts.pool_index];
-- 
2.25.1



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-11 15:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-11 15:48 [PATCH mm] lib/stackdepot: fix for "annotate racy pool_index accesses" andrey.konovalov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox