]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'proc-cmdline'
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 9 Jun 2018 22:31:35 +0000 (15:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 9 Jun 2018 22:31:35 +0000 (15:31 -0700)
commit34681428dfa0e6007307b4770ac9d52a049c0cc3
treee9b0d20cabfbc0a5a9a9a5b8aa4be447f840463f
parentbc7e55268f79ecc304dd206c813a0cd579d3f694
parent29fda38fd0f661e1ad8be3498272d923e0a934b1
Merge branch 'proc-cmdline'

Merge proc_cmdline simplifications.

This re-writes the get_mm_cmdline() logic to be rather simpler than it
used to be, and makes the semantics for "cmdline goes past the end of
the original area" more natural.

You _can_ use prctl(PR_SET_MM) to just point your command line somewhere
else entirely, but the traditional model is to just edit things in place
and that still needs to continue to work.  At least this way the code
makes some sense.

* proc-cmdline:
  fs/proc: simplify and clarify get_mm_cmdline() function
  fs/proc: re-factor proc_pid_cmdline_read() a bit
fs/proc/base.c