archive mirror
 help / color / mirror / Atom feed
From: David Howells <>
To: Mimi Zohar <>
	Mimi Zohar <>,,,,
Subject: Re: [PATCH] vfs: Move kernel_read_file() to fs/read_write.c
Date: Mon, 04 Mar 2019 16:22:20 +0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Mimi Zohar <> wrote:

> > Move kernel_read_file() to fs/read_write.c and out of fs/exec.c as it's not
> > actually used by anything in the execve subsystem.
> All files being opened by the kernel should be calling one of these
> helper routines.  Has that changed?

prepare_binprm() uses kernel_read() and has done since at least 2014.  The
binfmt drivers also use kernel_read().

Since kernel_read_file() is used by a bunch of things that aren't exec, even
if we switch exec to it, it should probably still go in fs/read_write.c since
it seems generic.


  parent reply	other threads:[~2019-03-04 16:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-04 15:11 David Howells
2019-03-04 16:12 ` Mimi Zohar
2019-03-04 16:22 ` David Howells [this message]
2019-03-04 16:49   ` Mimi Zohar
2019-03-05 23:18 David Howells

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] vfs: Move kernel_read_file() to fs/read_write.c' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).