[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <49B80E9D.3@sandeen.net>
Date: Wed, 11 Mar 2009 14:18:53 -0500
From: Eric Sandeen <sandeen@...deen.net>
To: Christoph Hellwig <hch@....de>
CC: linux-kernel@...r.kernel.org, davem@...emloft.net,
tony.luck@...el.com, ralf@...ux-mips.org, kyle@...artin.ca,
schwidefsky@...ibm.com
Subject: Re: [PATCH] generic compat_sys_ustat
Christoph Hellwig wrote:
> Due to a different size of ino_t ustat needs a compat handler, but
> currently only x86 and mips provide one. Add a generic compat_sys_ustat
> and switch all architectures over to it. Instead of doing various
> user copy hacks compat_sys_ustat just reimplements sys_ustat as
> it's trivial. This was suggested by Arnd Bergmann.
>
> Found by Eric Sandeen when running xfstests/017 on ppc64, which causes
> stack smashing warnings on RHEL/Fedora due to the too large amount of
> data writen by the syscall.
>
> Signed-off-by: Christoph Hellwig <hch@....de>
Looks like this got lost?
-Eric
>
> Index: linux-2.6/arch/x86/ia32/ia32entry.S
> ===================================================================
> --- linux-2.6.orig/arch/x86/ia32/ia32entry.S 2008-11-28 14:09:01.000000000 +0530
> +++ linux-2.6/arch/x86/ia32/ia32entry.S 2008-11-28 14:09:16.000000000 +0530
> @@ -555,7 +555,7 @@ ia32_sys_call_table:
> .quad sys32_olduname
> .quad sys_umask /* 60 */
> .quad sys_chroot
> - .quad sys32_ustat
> + .quad compat_sys_ustat
> .quad sys_dup2
> .quad sys_getppid
> .quad sys_getpgrp /* 65 */
....
--
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