提交 abe8be3a 编写于 作者: A Andi Kleen 提交者: Linus Torvalds

Allow executables larger than 2GB

This allows us to use executables >2GB.

Based on a patch by Dave Anderson
Signed-off-by: NAndi Kleen <ak@suse.de>
Cc: Dave Anderson <anderson@redhat.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 531d7d42
......@@ -119,7 +119,7 @@ asmlinkage long sys_uselib(const char __user * library)
if (error)
goto exit;
file = nameidata_to_filp(&nd, O_RDONLY);
file = nameidata_to_filp(&nd, O_RDONLY|O_LARGEFILE);
error = PTR_ERR(file);
if (IS_ERR(file))
goto out;
......@@ -658,7 +658,8 @@ struct file *open_exec(const char *name)
int err = vfs_permission(&nd, MAY_EXEC);
file = ERR_PTR(err);
if (!err) {
file = nameidata_to_filp(&nd, O_RDONLY);
file = nameidata_to_filp(&nd,
O_RDONLY|O_LARGEFILE);
if (!IS_ERR(file)) {
err = deny_write_access(file);
if (err) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册