diff options
| author | Ting-Han Hou <ue081723@gmail.com> | 2026-10-11 10:30:44 +0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-10-24 00:46:53 -0700 |
| commit | b6232ca8d194c60ee603586e42b5ea584d4b7be9 (patch) | |
| tree | d439c3ae8548e744cda4af9cf3df4be522ff62f8 /scripts/checkpatch.pl | |
| parent | 66d190b072b4e261aff35debb53872ace9b80628 (diff) | |
| download | linux-b6232ca8d194c60ee603586e42b5ea584d4b7be9.tar.gz linux-b6232ca8d194c60ee603586e42b5ea584d4b7be9.zip | |
scripts/gdb: fix stack depot out-of-bounds diagnostic
The pool_index field was renamed to pool_index_plus_1, but the
out-of-bounds diagnostic in stack_depot_fetch() still accesses the old
field. Looking up a handle whose pool index is outside stack_pools
therefore raises "There is no member named pool_index" instead of printing
the diagnostic and returning an empty result.
Use the already decoded pool_index variable in the diagnostic.
Link: https://lore.kernel.org/20261011023044.1722-3-ue081723@gmail.com
Fixes: 9d938f40b228 ("scripts/gdb: rename pool_index to pool_index_plus_1")
Signed-off-by: Ting-Han Hou <ue081723@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Assisted-by: LLM
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Kieran Bingham <kbingham@kernel.org>
Cc: Kuan-Ying Lee <kuan-ying.lee@canonical.com>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
