[Qemu-devel] [PATCH 0/2] linux-user: Support prctl PR_GET/SET_NAME
These patches add support for the prctl options PR_GET_NAME and PR_SET_NAME. In particular, perl 5.14 will use PR_SET_NAME if you change the value of $0, which means that adduser will fail if run under qemu with a sufficiently modern perl. Patch one is just indentation cleanup, the meat is patch 2. The only other prctl options which take pointer arguments are all architecture specific, so there didn't seem much point in adding them (they all work like PR_GET_PDEATHSIG in that they pass an int* to be filled in); we'd have to actually emulate them if we cared about them. Peter Maydell (2): linux-user/syscall.c: Fix indentation in prctl handling linux-user: Add support for prctl PR_GET_NAME and PR_SET_NAME linux-user/syscall.c | 53 - 1 files changed, 39 insertions(+), 14 deletions(-)
Re: [Qemu-devel] [PATCH 0/2] linux-user: Support prctl PR_GET/SET_NAME
Ping? On 3 February 2012 13:53, Peter Maydell wrote: > These patches add support for the prctl options PR_GET_NAME > and PR_SET_NAME. In particular, perl 5.14 will use PR_SET_NAME > if you change the value of $0, which means that adduser will > fail if run under qemu with a sufficiently modern perl. > > Patch one is just indentation cleanup, the meat is patch 2. > > The only other prctl options which take pointer arguments are > all architecture specific, so there didn't seem much point in > adding them (they all work like PR_GET_PDEATHSIG in that they > pass an int* to be filled in); we'd have to actually emulate them > if we cared about them. > > Peter Maydell (2): > linux-user/syscall.c: Fix indentation in prctl handling > linux-user: Add support for prctl PR_GET_NAME and PR_SET_NAME > > linux-user/syscall.c | 53 - > 1 files changed, 39 insertions(+), 14 deletions(-) > >
Re: [Qemu-devel] [PATCH 0/2] linux-user: Support prctl PR_GET/SET_NAME
Hello, 2012/2/22 Peter Maydell : > Ping? In case it helps, I have successfully tested this patch running adduser on Debian armhf target emulated via qemu-arm-static. Tested-by: Hector Oron > On 3 February 2012 13:53, Peter Maydell wrote: >> These patches add support for the prctl options PR_GET_NAME >> and PR_SET_NAME. In particular, perl 5.14 will use PR_SET_NAME >> if you change the value of $0, which means that adduser will >> fail if run under qemu with a sufficiently modern perl. >> >> Patch one is just indentation cleanup, the meat is patch 2. >> >> The only other prctl options which take pointer arguments are >> all architecture specific, so there didn't seem much point in >> adding them (they all work like PR_GET_PDEATHSIG in that they >> pass an int* to be filled in); we'd have to actually emulate them >> if we cared about them. >> >> Peter Maydell (2): >> linux-user/syscall.c: Fix indentation in prctl handling >> linux-user: Add support for prctl PR_GET_NAME and PR_SET_NAME >> >> linux-user/syscall.c | 53 >> - >> 1 files changed, 39 insertions(+), 14 deletions(-) >> >> > -- Héctor Orón -.. . -... .. .- -. -.. . ...- . .-.. --- .--. . .-.
Re: [Qemu-devel] [PATCH 0/2] linux-user: Support prctl PR_GET/SET_NAME
Ping^2 ? -- PMM On 22 February 2012 22:55, Peter Maydell wrote: > Ping? > > On 3 February 2012 13:53, Peter Maydell wrote: >> These patches add support for the prctl options PR_GET_NAME >> and PR_SET_NAME. In particular, perl 5.14 will use PR_SET_NAME >> if you change the value of $0, which means that adduser will >> fail if run under qemu with a sufficiently modern perl. >> >> Patch one is just indentation cleanup, the meat is patch 2. >> >> The only other prctl options which take pointer arguments are >> all architecture specific, so there didn't seem much point in >> adding them (they all work like PR_GET_PDEATHSIG in that they >> pass an int* to be filled in); we'd have to actually emulate them >> if we cared about them. >> >> Peter Maydell (2): >> linux-user/syscall.c: Fix indentation in prctl handling >> linux-user: Add support for prctl PR_GET_NAME and PR_SET_NAME >> >> linux-user/syscall.c | 53 >> - >> 1 files changed, 39 insertions(+), 14 deletions(-) >> >> -- 12345678901234567890123456789012345678901234567890123456789012345678901234567890 1 2 3 4 5 6 7 8
Re: [Qemu-devel] [PATCH 0/2] linux-user: Support prctl PR_GET/SET_NAME
Ping^3 (past the six-week mark now...) -- PMM On 8 March 2012 14:20, Peter Maydell wrote: > Ping^2 ? > > -- PMM > > On 22 February 2012 22:55, Peter Maydell wrote: >> Ping? >> >> On 3 February 2012 13:53, Peter Maydell wrote: >>> These patches add support for the prctl options PR_GET_NAME >>> and PR_SET_NAME. In particular, perl 5.14 will use PR_SET_NAME >>> if you change the value of $0, which means that adduser will >>> fail if run under qemu with a sufficiently modern perl. >>> >>> Patch one is just indentation cleanup, the meat is patch 2. >>> >>> The only other prctl options which take pointer arguments are >>> all architecture specific, so there didn't seem much point in >>> adding them (they all work like PR_GET_PDEATHSIG in that they >>> pass an int* to be filled in); we'd have to actually emulate them >>> if we cared about them. >>> >>> Peter Maydell (2): >>> linux-user/syscall.c: Fix indentation in prctl handling >>> linux-user: Add support for prctl PR_GET_NAME and PR_SET_NAME >>> >>> linux-user/syscall.c | 53 >>> - >>> 1 files changed, 39 insertions(+), 14 deletions(-) >>> >>> >
Re: [Qemu-devel] [PATCH 0/2] linux-user: Support prctl PR_GET/SET_NAME
Hi, looks like I'll be busy for the rest of the of the month :/ Riku On Tue, Mar 20, 2012 at 11:47:01AM +, Peter Maydell wrote: > Ping^3 (past the six-week mark now...) > > -- PMM > > On 8 March 2012 14:20, Peter Maydell wrote: > > Ping^2 ? > > > > -- PMM > > > > On 22 February 2012 22:55, Peter Maydell wrote: > >> Ping? > >> > >> On 3 February 2012 13:53, Peter Maydell wrote: > >>> These patches add support for the prctl options PR_GET_NAME > >>> and PR_SET_NAME. In particular, perl 5.14 will use PR_SET_NAME > >>> if you change the value of $0, which means that adduser will > >>> fail if run under qemu with a sufficiently modern perl. > >>> > >>> Patch one is just indentation cleanup, the meat is patch 2. > >>> > >>> The only other prctl options which take pointer arguments are > >>> all architecture specific, so there didn't seem much point in > >>> adding them (they all work like PR_GET_PDEATHSIG in that they > >>> pass an int* to be filled in); we'd have to actually emulate them > >>> if we cared about them. > >>> > >>> Peter Maydell (2): > >>> linux-user/syscall.c: Fix indentation in prctl handling > >>> linux-user: Add support for prctl PR_GET_NAME and PR_SET_NAME > >>> > >>> linux-user/syscall.c | 53 > >>> - > >>> 1 files changed, 39 insertions(+), 14 deletions(-) > >>> > >>> > >