Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340275
b: refs/heads/master
c: 5305506
h: refs/heads/master
i:
  340273: d03a75a
  340271: 009437b
v: v3
  • Loading branch information
Al Viro committed Oct 23, 2012
1 parent 814a406 commit 7b3c1d9
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 50 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0f8b983812f5ff588d7e3459b203714e4e58a9b2
refs/heads/master: 530550651fdfd548d25b6bd5ff4607803540508b
1 change: 1 addition & 0 deletions trunk/arch/tile/include/asm/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ extern int arch_setup_additional_pages(struct linux_binprm *bprm,
#define compat_start_thread(regs, ip, usp) do { \
regs->pc = ptr_to_compat_reg((void *)(ip)); \
regs->sp = ptr_to_compat_reg((void *)(usp)); \
single_step_execve(); \
} while (0)

/*
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/tile/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ static inline void start_thread(struct pt_regs *regs,
{
regs->pc = pc;
regs->sp = usp;
single_step_execve();
}

/* Free all resources held by a thread. */
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/tile/include/asm/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ long _sys_sigaltstack(const stack_t __user *, stack_t __user *);
long _sys_rt_sigreturn(void);
long _sys_clone(unsigned long clone_flags, unsigned long newsp,
void __user *parent_tid, void __user *child_tid);
long _sys_execve(const char __user *filename,
long sys_execve(const char __user *filename,
const char __user *const __user *argv,
const char __user *const __user *envp);
#define sys_execve sys_execve

#include <asm-generic/syscalls.h>

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/tile/include/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
#define __ARCH_WANT_SYS_LLSEEK
#endif
#define __ARCH_WANT_SYS_NEWFSTATAT
#define __ARCH_WANT_SYS_EXECVE
#include <uapi/asm/unistd.h>
1 change: 0 additions & 1 deletion trunk/arch/tile/kernel/intvec_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,6 @@ STD_ENTRY_LOCAL(bad_intr)
}; \
STD_ENDPROC(_##x)

PTREGS_SYSCALL(sys_execve, r3)
PTREGS_SYSCALL(sys_sigaltstack, r2)
PTREGS_SYSCALL_SIGRETURN(sys_rt_sigreturn, r0)
PTREGS_SYSCALL(sys_cmpxchg_badaddr, r1)
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/tile/kernel/intvec_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,6 @@ STD_ENTRY_LOCAL(bad_intr)
}; \
STD_ENDPROC(_##x)

PTREGS_SYSCALL(sys_execve, r3)
PTREGS_SYSCALL(sys_sigaltstack, r2)
PTREGS_SYSCALL_SIGRETURN(sys_rt_sigreturn, r0)
#ifdef CONFIG_COMPAT
Expand Down
45 changes: 0 additions & 45 deletions trunk/arch/tile/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,51 +594,6 @@ SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp,
parent_tidptr, child_tidptr);
}

/*
* sys_execve() executes a new program.
*/
SYSCALL_DEFINE4(execve, const char __user *, path,
const char __user *const __user *, argv,
const char __user *const __user *, envp,
struct pt_regs *, regs)
{
long error;
struct filename *filename;

filename = getname(path);
error = PTR_ERR(filename);
if (IS_ERR(filename))
goto out;
error = do_execve(filename->name, argv, envp, regs);
putname(filename);
if (error == 0)
single_step_execve();
out:
return error;
}

#ifdef CONFIG_COMPAT
long compat_sys_execve(const char __user *path,
compat_uptr_t __user *argv,
compat_uptr_t __user *envp)
{
long error;
struct filename *filename;

filename = getname(path);
error = PTR_ERR(filename);
if (IS_ERR(filename))
goto out;
error = compat_do_execve(filename->name, argv, envp,
current_pt_regs());
putname(filename);
if (error == 0)
single_step_execve();
out:
return error;
}
#endif

unsigned long get_wchan(struct task_struct *p)
{
struct KBacktraceIterator kbt;
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/tile/kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len,
#endif

/* Call the trampolines to manage pt_regs where necessary. */
#define sys_execve _sys_execve
#define sys_sigaltstack _sys_sigaltstack
#define sys_rt_sigreturn _sys_rt_sigreturn
#define sys_clone _sys_clone
Expand Down

0 comments on commit 7b3c1d9

Please sign in to comment.