lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080720131727.GA22822@linux-mips.org>
Date:	Sun, 20 Jul 2008 14:17:27 +0100
From:	Ralf Baechle <ralf@...ux-mips.org>
To:	Jaswinder Singh <jaswinder@...radead.org>
Cc:	LKML <linux-kernel@...r.kernel.org>, Ingo Molnar <mingo@...e.hu>,
	David Woodhouse <dwmw2@...radead.org>, rth@...ddle.net,
	rmk@....linux.org.uk, hskinnemoen@...el.com, cooloney@...nel.org,
	starvik@...s.com, dhowells@...hat.com, ysato@...rs.sourceforge.jp,
	tony.luck@...el.com, takata@...ux-m32r.org, geert@...ux-m68k.org,
	matthew@....cx, schwidefsky@...ibm.com, lethal@...ux-sh.org,
	chris@...kel.net
Subject: Re: [PATCH] Introducing asm/syscalls.h

On Sun, Jul 20, 2008 at 05:47:43PM +0530, Jaswinder Singh wrote:

> index 7cd25b8..af24926 100644
> --- a/include/asm-generic/Kbuild.asm
> +++ b/include/asm-generic/Kbuild.asm
> @@ -27,6 +27,7 @@ unifdef-y += socket.h
>  unifdef-y += sockios.h
>  unifdef-y += stat.h
>  unifdef-y += statfs.h
> +unifdef-y += syscalls.h
>  unifdef-y += termbits.h
>  unifdef-y += termios.h
>  unifdef-y += types.h
> 
> Thank you,

No.  Why would userspace want to know about these entry points?

I'd also like to point you at two other commits I just made:

  http://www.linux-mips.org/g/linux/a599080f
  http://www.linux-mips.org/g/linux/3c339dba

The first deletes the unused sys_truncate64 and sys_ftruncate64 entry-points
and the second resolves conflicting prototypes for sys_pipe() - MIPS uses
it's own sys_pipe() which conflicts with the one declared in
<linux/syscalls.h>.  The patch below takes care of that and also includes
the ptrace.h which is needed to make <asm/syscalls.h> work without
relying on other headers having been included previously.  Could you fold
that into your patch?  Thanks,

  Ralf

Signed-off-by: Ralf Baechle <ralf@...ux-mips.org>

 include/asm-mips/syscalls.h |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

Index: linux-mips/include/asm-mips/syscalls.h
===================================================================
--- linux-mips.orig/include/asm-mips/syscalls.h
+++ linux-mips/include/asm-mips/syscalls.h
@@ -12,6 +12,7 @@
 #ifndef _ASM_MIPS_SYSCALLS_H
 #define _ASM_MIPS_SYSCALLS_H
 
+#include <linux/ptrace.h>
 #include <asm/sim.h>
 
 /* kernel/signal.c */
@@ -26,14 +27,8 @@ asmlinkage int sys_rt_sigsuspend(nabi_no
 asmlinkage int sys_sigaltstack(nabi_no_regargs struct pt_regs);
 asmlinkage void sys_rt_sigreturn(nabi_no_regargs struct pt_regs);
 
-/* kernel/linux32.c */
-asmlinkage int sys_truncate64(const char __user *, unsigned int,
-			      unsigned int);
-asmlinkage int sys_ftruncate64(unsigned int, unsigned int,
-			      unsigned int);
-
 /* kernel/syscalls.c */
-asmlinkage int sys_pipe(nabi_no_regargs volatile struct pt_regs);
+asmlinkage int sysm_pipe(nabi_no_regargs volatile struct pt_regs);
 asmlinkage unsigned long old_mmap(unsigned long, unsigned long,
 				  int, int, int, off_t);
 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ