Commit b452722e authored by Tom Rix's avatar Tom Rix Committed by Kees Cook

exec: cleanup comments

Remove the second 'from'.
Replace 'backwords' with 'backwards'.
Replace 'visibile' with 'visible'.
Signed-off-by: default avatarTom Rix <trix@redhat.com>
Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220211160940.2516243-1-trix@redhat.com
parent 2b4bfbe0
...@@ -118,7 +118,7 @@ bool path_noexec(const struct path *path) ...@@ -118,7 +118,7 @@ bool path_noexec(const struct path *path)
* Note that a shared library must be both readable and executable due to * Note that a shared library must be both readable and executable due to
* security reasons. * security reasons.
* *
* Also note that we take the address to load from from the file itself. * Also note that we take the address to load from the file itself.
*/ */
SYSCALL_DEFINE1(uselib, const char __user *, library) SYSCALL_DEFINE1(uselib, const char __user *, library)
{ {
...@@ -542,7 +542,7 @@ static int copy_strings(int argc, struct user_arg_ptr argv, ...@@ -542,7 +542,7 @@ static int copy_strings(int argc, struct user_arg_ptr argv,
if (!valid_arg_len(bprm, len)) if (!valid_arg_len(bprm, len))
goto out; goto out;
/* We're going to work our way backwords. */ /* We're going to work our way backwards. */
pos = bprm->p; pos = bprm->p;
str += len; str += len;
bprm->p -= len; bprm->p -= len;
...@@ -1275,7 +1275,7 @@ int begin_new_exec(struct linux_binprm * bprm) ...@@ -1275,7 +1275,7 @@ int begin_new_exec(struct linux_binprm * bprm)
/* /*
* Must be called _before_ exec_mmap() as bprm->mm is * Must be called _before_ exec_mmap() as bprm->mm is
* not visibile until then. This also enables the update * not visible until then. This also enables the update
* to be lockless. * to be lockless.
*/ */
retval = set_mm_exe_file(bprm->mm, bprm->file); retval = set_mm_exe_file(bprm->mm, bprm->file);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment