summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-07-13 13:40:13 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2019-07-16 09:57:52 -0700
commit3d712546d8ba9f25cdf080d79f90482aa4231ed4 (patch)
treed391efbe325a7ec74c2766a7cb3e04d555f674c5 /virt
parent0ecfebd2b52404ae0c54a878c872bb93363ada36 (diff)
downloadlinux-3d712546d8ba9f25cdf080d79f90482aa4231ed4.tar.gz
linux-3d712546d8ba9f25cdf080d79f90482aa4231ed4.tar.bz2
linux-3d712546d8ba9f25cdf080d79f90482aa4231ed4.zip
/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>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions