On 26/11/2012 20.45, Rich Felker wrote:
> On Mon, Nov 26, 2012 at 04:45:18PM +0100, Filippo ARCIDIACONO wrote:
>> Folks,
>> we have seen some issues recently in uClibc related to the way the
>> aux vect is managed inside __uClibc_main.
>>
>> Running a set-[user,group]-ID ELF binaries with some 'uns
On Mon, 2012-11-26 at 20:21 +, Markos Chandras wrote:
> Hi Mark,
>
> That's weird. It makes me wonder how come C6X is supported in uClibc
> without the deprecated syscalls. I will have a look
The upstream kernel requires a patched uClibc. The original c6x support
which went into uClibc was ba
On Mon, Nov 26, 2012 at 08:26:11PM +, Markos Chandras wrote:
> On 26 November 2012 19:49, Rich Felker wrote:
> > On Mon, Nov 26, 2012 at 02:31:06PM -0500, Mark Salter wrote:
> >> On Mon, 2012-11-26 at 14:24 +, Markos Chandras wrote:
> >> > +int __libc_statfs(const char *path, struct statfs
On 26 November 2012 19:49, Rich Felker wrote:
> On Mon, Nov 26, 2012 at 02:31:06PM -0500, Mark Salter wrote:
>> On Mon, 2012-11-26 at 14:24 +, Markos Chandras wrote:
>> > +int __libc_statfs(const char *path, struct statfs *buf)
>> > +{
>> > + struct statfs64 b;
>> > + int err;
>> >
On 26 November 2012 19:37, Mark Salter wrote:
> On Mon, 2012-11-26 at 14:24 +, Markos Chandras wrote:
>> diff --git a/extra/Configs/Config.c6x b/extra/Configs/Config.c6x
>> index 96adfb3..cc8d647 100644
>> --- a/extra/Configs/Config.c6x
>> +++ b/extra/Configs/Config.c6x
>> @@ -11,6 +11,7 @@ co
On Mon, Nov 26, 2012 at 02:31:06PM -0500, Mark Salter wrote:
> On Mon, 2012-11-26 at 14:24 +, Markos Chandras wrote:
> > +int __libc_statfs(const char *path, struct statfs *buf)
> > +{
> > + struct statfs64 b;
> > + int err;
> > +
> > + /*
> > +* See if pointer has a s
On Mon, Nov 26, 2012 at 04:45:18PM +0100, Filippo ARCIDIACONO wrote:
> Folks,
> we have seen some issues recently in uClibc related to the way the
> aux vect is managed inside __uClibc_main.
>
> Running a set-[user,group]-ID ELF binaries with some 'unsecure'
> environment variable set (i.e LD_LIBR
On Mon, 2012-11-26 at 14:24 +, Markos Chandras wrote:
> diff --git a/extra/Configs/Config.c6x b/extra/Configs/Config.c6x
> index 96adfb3..cc8d647 100644
> --- a/extra/Configs/Config.c6x
> +++ b/extra/Configs/Config.c6x
> @@ -11,6 +11,7 @@ config FORCE_OPTIONS_FOR_ARCH
> default y
>
On Mon, 2012-11-26 at 14:24 +, Markos Chandras wrote:
> +int __libc_statfs(const char *path, struct statfs *buf)
> +{
> + struct statfs64 b;
> + int err;
> +
> + /*
> +* See if pointer has a sane value.
> +* This does not prevent the user from
> +* pass
On 01/11/2012 16.26, Natanael Copa wrote:
> On Fri, Oct 5, 2012 at 1:46 PM, Natanael Copa wrote:
>> building vlc will end up with a segfaulting ./vlc-cache-gen on x86_64.
> ...
>> Core was generated by
>> `/home/ncopa/aports/main/vlc/src/vlc-2.0.3/bin/.libs/lt-vlc-cache-gen
>> ../modules'.
>> Prog
Folks,
we have seen some issues recently in uClibc related to the way the aux
vect is managed inside __uClibc_main.
Running a set-[user,group]-ID ELF binaries with some 'unsecure'
environment variable set (i.e LD_LIBRARY_PATH or LD_PRELOAD), auxvt is
wrongly set in __uClibc_main.
The proble
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/fstatat64.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libc/sysdeps/linux/common/fstatat64.c
b/libc/sysdeps/linux/common/fstatat64.c
index 95627af..203ec4c 100644
--- a/libc/sysdeps/linu
From: Markos Chandras
New architectures don't define ARCH_WANT_IPC_PARSE_VERSION in their kernel.
This means that every cmd passed to semctl,msgctl and shmctl is IPC_64 by
default. For these architectures we need to define __IPC_64 as 0. Existing
architectures are not affected by this change.
Si
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/fstat.c | 20 +++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/libc/sysdeps/linux/common/fstat.c
b/libc/sysdeps/linux/common/fstat.c
index 4726a68..cf69580 100644
--- a/libc/sys
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/open64.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/libc/sysdeps/linux/common/open64.c
b/libc/sysdeps/linux/common/open64.c
index c1f5400..cb43af6 100644
--- a/libc/sysdeps/linux
From: Markos Chandras
Signed-off-by: Markos Chandras
---
include/sys/stat.h| 1 +
libc/sysdeps/linux/common/fstatat64.c | 1 +
libc/sysdeps/linux/common/stat64.c| 16 ++--
3 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/include/sys/stat.h b/
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/vfork.c | 16 +++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/libc/sysdeps/linux/common/vfork.c
b/libc/sysdeps/linux/common/vfork.c
index e7c9208..377418c 100644
--- a/libc/sysdeps
From: Markos Chandras
Linuxthreads(old and new) need deprecated syscalls to build. Existing
architectures support these system calls but new architectures don't.
This symbol has no functional change apart from hidding the Linuxthreads
symbols from arches that don't support them.
Signed-off-by: M
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/lstat.c | 17 +++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/libc/sysdeps/linux/common/lstat.c
b/libc/sysdeps/linux/common/lstat.c
index db72d1f..9f086f4 100644
--- a/libc/sysde
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/fork.c | 17 -
libc/sysdeps/linux/common/stubs.c | 2 +-
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/libc/sysdeps/linux/common/fork.c b/libc/sysdeps/linux/common/fork.c
index
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/epoll.c | 10 ++
libc/sysdeps/linux/common/stubs.c | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/libc/sysdeps/linux/common/epoll.c
b/libc/sysdeps/linux/common/epoll.c
index f07a
From: Markos Chandras
Signed-off-by: Markos Chandras
---
ldso/include/dl-syscall.h | 88 +++
ldso/include/ldso.h | 4 +++
2 files changed, 92 insertions(+)
diff --git a/ldso/include/dl-syscall.h b/ldso/include/dl-syscall.h
index 547dad1..3c7d7
From: Markos Chandras
New architectures don't have fstatfs anymore, so we use a wrapper for
__libc_fstatfs which will use fstatfs64 internally. The interface however
needs to remain the same (i.e accepting a struct statfs as a second
argument) for backwards compatibility
Signed-off-by: Markos Ch
From: Markos Chandras
Internal libc operations, gcc and other packages require for libc to
define an open() symbol. In case the arch does not have NR_open, we define
this symbol to be a wrapper to the openat syscall.
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/Makefile.in
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/Makefile.in | 2 +-
.../sysdeps/unix/sysv/linux/Makefile.commonarch| 4 +++-
libpthread/nptl/sysdeps/unix/sysv/linux/openat.S | 22 ++
3 files changed, 26 insertions(+), 2
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/not-cancel.h | 7 +++
libpthread/linuxthreads.old/sysdeps/pthread/not-cancel.h | 9 +
libpthread/linuxthreads/sysdeps/pthread/not-cancel.h | 9 +
libpthread/nptl/sysdeps/
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/__syscall_fcntl.c | 57 +--
libc/sysdeps/linux/common/__syscall_fcntl64.c | 5 +++
2 files changed, 59 insertions(+), 3 deletions(-)
diff --git a/libc/sysdeps/linux/common/__syscall_fc
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/stat.c | 17 ++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/libc/sysdeps/linux/common/stat.c b/libc/sysdeps/linux/common/stat.c
index 829f35a..038e0c0 100644
--- a/libc/sysdeps/l
From: Markos Chandras
Signed-off-by: Markos Chandras
---
include/sys/statfs.h | 1 +
libc/sysdeps/linux/common/statfs.c | 53 +-
2 files changed, 53 insertions(+), 1 deletion(-)
diff --git a/include/sys/statfs.h b/include/sys/statfs.h
index c7
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/fstatat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libc/sysdeps/linux/common/fstatat.c
b/libc/sysdeps/linux/common/fstatat.c
index 33daa7c..a0bc3cd 100644
--- a/libc/sysdeps/linux/comm
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/ftruncate.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/libc/sysdeps/linux/common/ftruncate.c
b/libc/sysdeps/linux/common/ftruncate.c
index 3bdef3f..72f86f9 100644
--- a/libc/sysdeps/linux/commo
From: Markos Chandras
Using __libc_fstatfs for fstatfs64 adds a small delay as it needs to
use a 32-bit data structure to get the file info and them pass them to
the 64-bit data structure which was given as a fstatfs64 argument. Using
the system call directly should make the entire process much f
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/stubs.c | 4
libc/sysdeps/linux/common/ustat.c | 2 ++
2 files changed, 6 insertions(+)
diff --git a/libc/sysdeps/linux/common/stubs.c
b/libc/sysdeps/linux/common/stubs.c
index 1837195..160d27f 100644
---
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/utime.c | 22 +-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/libc/sysdeps/linux/common/utime.c
b/libc/sysdeps/linux/common/utime.c
index c9fd1bf..75d4d2c 100644
--- a/libc/s
From: Markos Chandras
Signed-off-by: Markos Chandras
---
include/sys/sendfile.h | 1 +
libc/sysdeps/linux/common/sendfile.c | 44 +++---
libc/sysdeps/linux/common/sendfile64.c | 1 +
libc/sysdeps/linux/common/stubs.c | 3 ++-
4 files changed
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/lstat64.c | 14 +-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/libc/sysdeps/linux/common/lstat64.c
b/libc/sysdeps/linux/common/lstat64.c
index 235b76d..89c8707 100644
--- a/libc/sys
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/getdents.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libc/sysdeps/linux/common/getdents.c
b/libc/sysdeps/linux/common/getdents.c
index 46f7b8e..9823e5d 100644
--- a/libc/sysdeps/linu
From: Markos Chandras
Signed-off-by: Markos Chandras
---
include/unistd.h | 1 +
libc/sysdeps/linux/common/truncate.c | 9 +
libc/sysdeps/linux/common/truncate64.c | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/include/unistd.h b/include/u
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/inotify.c | 14 ++
libc/sysdeps/linux/common/stubs.c | 3 ++-
2 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/libc/sysdeps/linux/common/inotify.c
b/libc/sysdeps/linux/common/inotif
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/epoll.c | 20 ++--
libc/sysdeps/linux/common/stubs.c | 2 +-
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/libc/sysdeps/linux/common/epoll.c
b/libc/sysdeps/linux/common/epoll.c
From: Markos Chandras
Signed-off-by: Markos Chandras
---
include/unistd.h | 1 +
libc/sysdeps/linux/common/readlink.c | 8
libc/sysdeps/linux/common/readlinkat.c | 1 +
3 files changed, 10 insertions(+)
diff --git a/include/unistd.h b/include/unistd.h
index 296
From: Markos Chandras
Signed-off-by: Markos Chandras
---
include/unistd.h | 1 +
libc/sysdeps/linux/common/symlink.c | 13 +
libc/sysdeps/linux/common/symlinkat.c | 1 +
3 files changed, 15 insertions(+)
diff --git a/include/unistd.h b/include/unistd.h
inde
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/rmdir.c | 8
1 file changed, 8 insertions(+)
diff --git a/libc/sysdeps/linux/common/rmdir.c
b/libc/sysdeps/linux/common/rmdir.c
index bad6654..4d12a22 100644
--- a/libc/sysdeps/linux/common/rmdir.c
+++
From: Markos Chandras
Signed-off-by: Markos Chandras
---
include/sys/stat.h | 1 +
libc/sysdeps/linux/common/mkdir.c | 8
libc/sysdeps/linux/common/mkdirat.c | 1 +
3 files changed, 10 insertions(+)
diff --git a/include/sys/stat.h b/include/sys/stat.h
index 88b7044.
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/pipe.c | 8
1 file changed, 8 insertions(+)
diff --git a/libc/sysdeps/linux/common/pipe.c b/libc/sysdeps/linux/common/pipe.c
index 8eae27c..614cc24 100644
--- a/libc/sysdeps/linux/common/pipe.c
+++ b/li
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/lchown.c | 11 +++
1 file changed, 11 insertions(+)
diff --git a/libc/sysdeps/linux/common/lchown.c
b/libc/sysdeps/linux/common/lchown.c
index c0f8ce7..25acfa2 100644
--- a/libc/sysdeps/linux/common/lch
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/mknod.c | 8
1 file changed, 8 insertions(+)
diff --git a/libc/sysdeps/linux/common/mknod.c
b/libc/sysdeps/linux/common/mknod.c
index b52c8c5..9e31ef3 100644
--- a/libc/sysdeps/linux/common/mknod.c
+++
From: Markos Chandras
Signed-off-by: Markos Chandras
---
include/stdio.h | 1 +
libc/sysdeps/linux/common/rename.c | 9 -
libc/sysdeps/linux/common/renameat.c | 1 +
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/include/stdio.h b/include/stdio.h
i
From: Markos Chandras
Signed-off-by: Markos Chandras
---
include/unistd.h | 1 +
libc/sysdeps/linux/common/access.c| 10 ++
libc/sysdeps/linux/common/faccessat.c | 1 +
3 files changed, 12 insertions(+)
diff --git a/include/unistd.h b/include/unistd.h
index 7
From: Markos Chandras
Signed-off-by: Markos Chandras
---
include/unistd.h | 1 +
libc/sysdeps/linux/common/link.c | 9 +
libc/sysdeps/linux/common/linkat.c | 1 +
3 files changed, 11 insertions(+)
diff --git a/include/unistd.h b/include/unistd.h
index 1540aa9..ee08e
From: Mike Frysinger
Some projects (like udev) are starting to use this.
Signed-off-by: Mike Frysinger
---
include/unistd.h | 6 ++
libc/sysdeps/linux/common/Makefile.in | 1 +
libc/sysdeps/linux/common/dup3.c | 13 +
3 files changed, 20 insertions(+
From: Markos Chandras
Hi,
This is the v2 of the patchset I sent on the 13th of November 2012[1].
Changes since v1:
- drop dup3 patch and cherry-pick the dup3 patches from master branch[2]
- Fix dup2 to check if file descriptors are the same before calling
dup3[3]
- Make vfork act as fork() ins
From: Markos Chandras
Signed-off-by: Markos Chandras
---
include/unistd.h | 1 +
libc/sysdeps/linux/common/unlink.c | 8
libc/sysdeps/linux/common/unlinkat.c | 1 +
3 files changed, 10 insertions(+)
diff --git a/include/unistd.h b/include/unistd.h
index ee08e19..
From: Markos Chandras
Signed-off-by: Markos Chandras
---
include/sys/stat.h | 1 +
libc/sysdeps/linux/common/chmod.c| 9 +
libc/sysdeps/linux/common/fchmodat.c | 1 +
3 files changed, 11 insertions(+)
diff --git a/include/sys/stat.h b/include/sys/stat.h
index 170a
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/utimes.c | 23 +--
1 file changed, 21 insertions(+), 2 deletions(-)
diff --git a/libc/sysdeps/linux/common/utimes.c
b/libc/sysdeps/linux/common/utimes.c
index 99d9202..3074e4e 100644
--- a/l
From: Mike Frysinger
Signed-off-by: Mike Frysinger
---
libc/sysdeps/linux/common/dup3.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libc/sysdeps/linux/common/dup3.c b/libc/sysdeps/linux/common/dup3.c
index 539c071..8a57785 100644
--- a/libc/sysdeps/linux/common/dup3.c
+++ b/libc/sysde
From: Markos Chandras
Signed-off-by: Markos Chandras
---
include/unistd.h | 1 +
libc/sysdeps/linux/common/chown.c| 9 +
libc/sysdeps/linux/common/fchownat.c | 1 +
3 files changed, 11 insertions(+)
diff --git a/include/unistd.h b/include/unistd.h
index e58945d.
From: Markos Chandras
Signed-off-by: Markos Chandras
---
libc/sysdeps/linux/common/dup2.c | 17 +
1 file changed, 17 insertions(+)
diff --git a/libc/sysdeps/linux/common/dup2.c b/libc/sysdeps/linux/common/dup2.c
index 006f06b..88856ab 100644
--- a/libc/sysdeps/linux/common/dup2
On 19 November 2012 09:51, Markos Chandras wrote:
> On Sat, Nov 17, 2012 at 8:37 PM, Mike Frysinger wrote:
>> On Tuesday 13 November 2012 06:31:47 Markos Chandras wrote:
>>> -#if defined __NR__llseek && defined __UCLIBC_HAS_LFS__
>>> +#if (defined __NR__llseek ||defined __NR_llseek) && defined
>>
59 matches
Mail list logo