Loading fs/exec.c +4 −6 Original line number Diff line number Diff line Loading @@ -1575,10 +1575,9 @@ int do_execve(const char *filename, } #ifdef CONFIG_COMPAT int compat_do_execve(const char *filename, static int compat_do_execve(const char *filename, const compat_uptr_t __user *__argv, const compat_uptr_t __user *__envp, struct pt_regs *regs) const compat_uptr_t __user *__envp) { struct user_arg_ptr argv = { .is_compat = true, Loading @@ -1588,7 +1587,7 @@ int compat_do_execve(const char *filename, .is_compat = true, .ptr.compat = __envp, }; return do_execve_common(filename, argv, envp, regs); return do_execve_common(filename, argv, envp, current_pt_regs()); } #endif Loading Loading @@ -1682,8 +1681,7 @@ asmlinkage long compat_sys_execve(const char __user * filename, struct filename *path = getname(filename); int error = PTR_ERR(path); if (!IS_ERR(path)) { error = compat_do_execve(path->name, argv, envp, current_pt_regs()); error = compat_do_execve(path->name, argv, envp); putname(path); } return error; Loading include/linux/compat.h +0 −2 Original line number Diff line number Diff line Loading @@ -284,8 +284,6 @@ asmlinkage ssize_t compat_sys_pwritev(unsigned long fd, const struct compat_iovec __user *vec, unsigned long vlen, u32 pos_low, u32 pos_high); int compat_do_execve(const char *filename, const compat_uptr_t __user *argv, const compat_uptr_t __user *envp, struct pt_regs *regs); asmlinkage long compat_sys_execve(const char __user *filename, const compat_uptr_t __user *argv, const compat_uptr_t __user *envp); Loading Loading
fs/exec.c +4 −6 Original line number Diff line number Diff line Loading @@ -1575,10 +1575,9 @@ int do_execve(const char *filename, } #ifdef CONFIG_COMPAT int compat_do_execve(const char *filename, static int compat_do_execve(const char *filename, const compat_uptr_t __user *__argv, const compat_uptr_t __user *__envp, struct pt_regs *regs) const compat_uptr_t __user *__envp) { struct user_arg_ptr argv = { .is_compat = true, Loading @@ -1588,7 +1587,7 @@ int compat_do_execve(const char *filename, .is_compat = true, .ptr.compat = __envp, }; return do_execve_common(filename, argv, envp, regs); return do_execve_common(filename, argv, envp, current_pt_regs()); } #endif Loading Loading @@ -1682,8 +1681,7 @@ asmlinkage long compat_sys_execve(const char __user * filename, struct filename *path = getname(filename); int error = PTR_ERR(path); if (!IS_ERR(path)) { error = compat_do_execve(path->name, argv, envp, current_pt_regs()); error = compat_do_execve(path->name, argv, envp); putname(path); } return error; Loading
include/linux/compat.h +0 −2 Original line number Diff line number Diff line Loading @@ -284,8 +284,6 @@ asmlinkage ssize_t compat_sys_pwritev(unsigned long fd, const struct compat_iovec __user *vec, unsigned long vlen, u32 pos_low, u32 pos_high); int compat_do_execve(const char *filename, const compat_uptr_t __user *argv, const compat_uptr_t __user *envp, struct pt_regs *regs); asmlinkage long compat_sys_execve(const char __user *filename, const compat_uptr_t __user *argv, const compat_uptr_t __user *envp); Loading