Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1134723e authored by Heiko Carstens's avatar Heiko Carstens
Browse files

[CVE-2009-0029] Remove __attribute__((weak)) from sys_pipe/sys_pipe2



Remove __attribute__((weak)) from common code sys_pipe implemantation.
IA64, ALPHA, SUPERH (32bit) and SPARC (32bit) have own implemantations
with the same name. Just rename them.
For sys_pipe2 there is no architecture specific implementation.

Cc: Richard Henderson <rth@twiddle.net>
Cc: David S. Miller <davem@davemloft.net>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
parent e55380ed
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -896,9 +896,9 @@ sys_getxpid:
.end sys_getxpid

	.align	4
	.globl	sys_pipe
	.ent	sys_pipe
sys_pipe:
	.globl	sys_alpha_pipe
	.ent	sys_alpha_pipe
sys_alpha_pipe:
	lda	$sp, -16($sp)
	stq	$26, 0($sp)
	.prologue 0
@@ -916,7 +916,7 @@ sys_pipe:
	stq	$1, 80+16($sp)
1:	lda	$sp, 16($sp)
	ret
.end sys_pipe
.end sys_alpha_pipe

	.align	4
	.globl	sys_execve
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ sys_call_table:
	.quad sys_setpgid
	.quad alpha_ni_syscall			/* 40 */
	.quad sys_dup
	.quad sys_pipe
	.quad sys_alpha_pipe
	.quad osf_set_program_attributes
	.quad alpha_ni_syscall
	.quad sys_open				/* 45 */
+1 −1
Original line number Diff line number Diff line
@@ -220,7 +220,7 @@ ia32_syscall_table:
	data8 sys_mkdir
	data8 sys_rmdir		  /* 40 */
	data8 sys_dup
	data8 sys_pipe
	data8 sys_ia64_pipe
	data8 compat_sys_times
	data8 sys_ni_syscall	  /* old prof syscall holder */
	data8 sys32_brk		  /* 45 */
+1 −1
Original line number Diff line number Diff line
@@ -364,7 +364,7 @@ struct pt_regs;
struct sigaction;
long sys_execve(char __user *filename, char __user * __user *argv,
			   char __user * __user *envp, struct pt_regs *regs);
asmlinkage long sys_pipe(void);
asmlinkage long sys_ia64_pipe(void);
asmlinkage long sys_rt_sigaction(int sig,
				 const struct sigaction __user *act,
				 struct sigaction __user *oact,
+1 −1
Original line number Diff line number Diff line
@@ -1442,7 +1442,7 @@ sys_call_table:
	data8 sys_mkdir				// 1055
	data8 sys_rmdir
	data8 sys_dup
	data8 sys_pipe
	data8 sys_ia64_pipe
	data8 sys_times
	data8 ia64_brk				// 1060
	data8 sys_setgid
Loading