* SYS_personality does not work correctly on mips(el)64
@ 2006-10-12 21:40 Aurelien Jarno
2006-10-13 9:52 ` Thiemo Seufer
0 siblings, 1 reply; 6+ messages in thread
From: Aurelien Jarno @ 2006-10-12 21:40 UTC (permalink / raw)
To: linux-mips, linux-kernel
Hi all,
On mips(el), when doing multiple call to the syscall SYS_personality in
order to get the current personality (using 0xffffffff for the first
argument), on a 64-bit kernel, the second and subsequent syscalls are
failing. That works correctly with a 32-bit kernels and on other
architectures.
Here is a small test below:
#include <sys/personality.h>
#include <stdio.h>
void main()
{
printf("%i\n", personality(0xFFFFFFFF));
printf("%i\n", personality(0xFFFFFFFF));
}
Bye,
Aurelien
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: SYS_personality does not work correctly on mips(el)64
2006-10-12 21:40 SYS_personality does not work correctly on mips(el)64 Aurelien Jarno
@ 2006-10-13 9:52 ` Thiemo Seufer
2006-10-13 10:25 ` Aurelien Jarno
2006-10-15 21:11 ` Aurelien Jarno
0 siblings, 2 replies; 6+ messages in thread
From: Thiemo Seufer @ 2006-10-13 9:52 UTC (permalink / raw)
To: Aurelien Jarno; +Cc: linux-mips, linux-kernel
Aurelien Jarno wrote:
> Hi all,
>
> On mips(el), when doing multiple call to the syscall SYS_personality in
> order to get the current personality (using 0xffffffff for the first
> argument), on a 64-bit kernel, the second and subsequent syscalls are
> failing. That works correctly with a 32-bit kernels and on other
> architectures.
That's caused by mis-handling broken sign extensions, see also
http://bugs.debian.org/380531.
Thiemo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: SYS_personality does not work correctly on mips(el)64
2006-10-13 9:52 ` Thiemo Seufer
@ 2006-10-13 10:25 ` Aurelien Jarno
2006-10-15 21:11 ` Aurelien Jarno
1 sibling, 0 replies; 6+ messages in thread
From: Aurelien Jarno @ 2006-10-13 10:25 UTC (permalink / raw)
To: Thiemo Seufer; +Cc: linux-mips, linux-kernel
Thiemo Seufer a écrit :
> Aurelien Jarno wrote:
>> Hi all,
>>
>> On mips(el), when doing multiple call to the syscall SYS_personality in
>> order to get the current personality (using 0xffffffff for the first
>> argument), on a 64-bit kernel, the second and subsequent syscalls are
>> failing. That works correctly with a 32-bit kernels and on other
>> architectures.
>
> That's caused by mis-handling broken sign extensions, see also
> http://bugs.debian.org/380531.
>
Nice to see there is already a patch! Thanks for your work. Do you know
when the patch will be merged upstream or in Debian? I really want to
see this bug fixed, as it breaks dchroot.
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: SYS_personality does not work correctly on mips(el)64
2006-10-13 9:52 ` Thiemo Seufer
2006-10-13 10:25 ` Aurelien Jarno
@ 2006-10-15 21:11 ` Aurelien Jarno
2006-10-15 21:27 ` Thiemo Seufer
1 sibling, 1 reply; 6+ messages in thread
From: Aurelien Jarno @ 2006-10-15 21:11 UTC (permalink / raw)
To: Thiemo Seufer; +Cc: linux-mips, linux-kernel
Thiemo Seufer a écrit :
> Aurelien Jarno wrote:
>> Hi all,
>>
>> On mips(el), when doing multiple call to the syscall SYS_personality in
>> order to get the current personality (using 0xffffffff for the first
>> argument), on a 64-bit kernel, the second and subsequent syscalls are
>> failing. That works correctly with a 32-bit kernels and on other
>> architectures.
>
> That's caused by mis-handling broken sign extensions, see also
> http://bugs.debian.org/380531.
I still got the exact same problem with this patch applied.
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: SYS_personality does not work correctly on mips(el)64
2006-10-15 21:11 ` Aurelien Jarno
@ 2006-10-15 21:27 ` Thiemo Seufer
2006-10-15 21:47 ` Aurelien Jarno
0 siblings, 1 reply; 6+ messages in thread
From: Thiemo Seufer @ 2006-10-15 21:27 UTC (permalink / raw)
To: Aurelien Jarno; +Cc: linux-mips, linux-kernel
Aurelien Jarno wrote:
> Thiemo Seufer a écrit :
> >Aurelien Jarno wrote:
> >>Hi all,
> >>
> >>On mips(el), when doing multiple call to the syscall SYS_personality in
> >>order to get the current personality (using 0xffffffff for the first
> >>argument), on a 64-bit kernel, the second and subsequent syscalls are
> >>failing. That works correctly with a 32-bit kernels and on other
> >>architectures.
> >
> >That's caused by mis-handling broken sign extensions, see also
> >http://bugs.debian.org/380531.
>
> I still got the exact same problem with this patch applied.
I works for me on a bcm91480b in big endian mode.
Thiemo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: SYS_personality does not work correctly on mips(el)64
2006-10-15 21:27 ` Thiemo Seufer
@ 2006-10-15 21:47 ` Aurelien Jarno
0 siblings, 0 replies; 6+ messages in thread
From: Aurelien Jarno @ 2006-10-15 21:47 UTC (permalink / raw)
To: Thiemo Seufer; +Cc: linux-mips, linux-kernel
Thiemo Seufer a écrit :
> Aurelien Jarno wrote:
>> Thiemo Seufer a écrit :
>>> Aurelien Jarno wrote:
>>>> Hi all,
>>>>
>>>> On mips(el), when doing multiple call to the syscall SYS_personality in
>>>> order to get the current personality (using 0xffffffff for the first
>>>> argument), on a 64-bit kernel, the second and subsequent syscalls are
>>>> failing. That works correctly with a 32-bit kernels and on other
>>>> architectures.
>>> That's caused by mis-handling broken sign extensions, see also
>>> http://bugs.debian.org/380531.
>> I still got the exact same problem with this patch applied.
>
> I works for me on a bcm91480b in big endian mode.
Oops, you are right, I booted the wrong kernel. Sorry!
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-10-15 21:47 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-12 21:40 SYS_personality does not work correctly on mips(el)64 Aurelien Jarno
2006-10-13 9:52 ` Thiemo Seufer
2006-10-13 10:25 ` Aurelien Jarno
2006-10-15 21:11 ` Aurelien Jarno
2006-10-15 21:27 ` Thiemo Seufer
2006-10-15 21:47 ` Aurelien Jarno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox