diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-07-13 13:40:13 -0700 |
|---|---|---|
| committer | vantoman <mustafa.vantom@gmail.com> | 2021-04-18 14:36:01 +0200 |
| commit | 11c62b004314a5d7a198be0c860ce0dcb9a1907d (patch) | |
| tree | 1fa06f951aacc7279c2aa18ea2174bb5fee3e6db /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | e5dae9ef841a437d21d62d43630010392dc6e74b (diff) | |
/proc/<pid>/cmdline: remove all the special cases
Start off with a clean slate that only reads exactly from arg_start to
arg_end, without any oddities. This simplifies the code and in the
process removes the case that caused us to potentially leak an
uninitialized byte from the temporary kernel buffer.
Note that in order to start from scratch with an understandable base,
this simplifies things _too_ much, and removes all the legacy logic to
handle setproctitle() having changed the argument strings.
We'll add back those special cases very differently in the next commit.
Link: https://lore.kernel.org/lkml/20190712160913.17727-1-izbyshev@ispras.ru/
Fixes: f5b65348fd77 ("proc: fix missing final NUL in get_mm_cmdline() rewrite")
Cc: Alexey Izbyshev <izbyshev@ispras.ru>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Bug: 147443331
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I76ff42e0b0ebcbf7b2bbe606838348cb2d9b1ad5
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
