diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-08-20 01:09:19 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-09-22 13:24:56 +0200 |
| commit | 15809d78acf4b79a8e3d77144a86abbf369f57df (patch) | |
| tree | 39573febaaffbdf491a59cd866d46db369bcd702 /tools/perf/scripts/python/stackcollapse.py | |
| parent | cee9395acd8043be0644b25c34bfa86623f2b935 (diff) | |
coredump: refuse negative skips
The dump_skip_to() helper calculates a relative skip based on the
absolute positon of the coredump:
cprm->to_skip = pos - cprm->pos;
That's easy to mess up for callers and one already did. This risk
endless zero PAGE_SIZE loops or overwriting already written coredump
data thereby corrupting the dump.
I don't think skipping backwards has any meaning. So warn and refuse.
Link: https://patch.msgid.link/20260820-work-coredump-sparse-v2-2-ba32dd718c51@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
