read_code(): go through vfs_read() instead of calling the method directly
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 5 Feb 2014 00:08:21 +0000 (19:08 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 2 Apr 2014 03:19:24 +0000 (23:19 -0400)
commitec69557982563c97b3a7d68dd271be5105b83869
treea28bb77318d9bf8b930a5fae0114629bda70bf7f
parent0165e8100be3b2b81f747ebc25418656404c61b8
read_code(): go through vfs_read() instead of calling the method directly

... and don't skip on sanity checks.  It's *not* a hot path, TYVM
(a couple of calls per a.out execve(), for pity sake) and headers of
random a.out binary are not to be trusted.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/exec.c