SYS_personality does not work correctly on mips(el)64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx         | aurelien@xxxxxxxxxxx
   `-    people.debian.org/~aurel32 | www.aurel32.net


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux