Months of the Hurd 2009-12

2009-12-28 Thread Arne Babenhauserheide
Hi, I prepared the news about this months. If something is missing (or wrong), please tell me! A month of the Hurd: *official Xen domU support*, *ddekit beginnings*, *FOSDEM 2010* and *SMP discussion*. This month Samuel Thibault got the necessary Xen patches committed into the unstable

Re: Reauthentication implementation flaw due to EINTR

2009-12-28 Thread Da Zheng
Hi, On 09-12-22 上午3:43, Samuel Thibault wrote: Hello, I had been noticing odd issues with sudo when it calls setresuid such, it took me some time to understand that there was a flaw in the reauthentication implementation: sudo calls setresuid(), which calls setauth(), which (for each FD

Re: Reauthentication implementation flaw due to EINTR

2009-12-28 Thread Da Zheng
On 09-12-27 上午1:47, Carl Fredrik Hammar wrote: Is it the code below from S_auth_server_authenticate the problem? /* Store the new port and wait for the user RPC to wake us up. */ s.passthrough = newport; condition_init (s.wakeup); ports_interrupt_self_on_port_death (serverauth,

Re: Reauthentication implementation flaw due to EINTR

2009-12-28 Thread Da Zheng
Hi, On 09-12-28 上午3:56, Carl Fredrik Hammar wrote: OK, I think I have a vague picture of what is going on: ports_interrupt_self_on_port_death ports_interrupt_self_on_notification ports_interrupt_rpc_on_notification, which requests notification (to the same port as

Re: Months of the Hurd 2009-12

2009-12-28 Thread Samuel Thibault
Arne Babenhauserheide, le Mon 28 Dec 2009 10:25:44 +0100, a écrit : So from 4.0 on you'll be able to run the GNU Hurd in a default Xen system. Note that one doesn't stricly need Xen 4.0, the

Re: Reauthentication implementation flaw due to EINTR

2009-12-28 Thread Samuel Thibault
Da Zheng, le Mon 28 Dec 2009 17:58:47 +0800, a écrit : On 09-12-27 上午1:47, Carl Fredrik Hammar wrote: Is it the code below from S_auth_server_authenticate the problem? /* Store the new port and wait for the user RPC to wake us up. */ s.passthrough = newport; condition_init

Re: Reauthentication implementation flaw due to EINTR

2009-12-28 Thread Samuel Thibault
Da Zheng, le Mon 28 Dec 2009 17:59:55 +0800, a écrit : On 09-12-28 上午3:56, Carl Fredrik Hammar wrote: OK, I think I have a vague picture of what is going on: ports_interrupt_self_on_port_death ports_interrupt_self_on_notification ports_interrupt_rpc_on_notification, which requests

Re: Reauthentication implementation flaw due to EINTR

2009-12-28 Thread Samuel Thibault
Da Zheng, le Mon 28 Dec 2009 17:58:26 +0800, a écrit : Samuel, could you send me your fix? Here it is. Samuel diff --git a/auth/auth.c b/auth/auth.c index 2afeaf7..11db0f8 100644 --- a/auth/auth.c +++ b/auth/auth.c @@ -251,11 +251,22 @@ S_auth_makeauth (struct authhandle *auth, /*

Re: Reauthentication implementation flaw due to EINTR

2009-12-28 Thread Samuel Thibault
Samuel Thibault, le Mon 28 Dec 2009 11:14:04 +0100, a écrit : Da Zheng, le Mon 28 Dec 2009 17:59:55 +0800, a écrit : On 09-12-28 上午3:56, Carl Fredrik Hammar wrote: OK, I think I have a vague picture of what is going on: ports_interrupt_self_on_port_death

Re: Reauthentication implementation flaw due to EINTR

2009-12-28 Thread Da Zheng
On 09-12-28 下午6:14, Samuel Thibault wrote: Da Zheng, le Mon 28 Dec 2009 17:59:55 +0800, a écrit : On 09-12-28 上午3:56, Carl Fredrik Hammar wrote: OK, I think I have a vague picture of what is going on: ports_interrupt_self_on_port_death ports_interrupt_self_on_notification

Re: SMP, barriers, etc.

2009-12-28 Thread Da Zheng
On 09-12-28 上午11:00, Samuel Thibault wrote: Da Zheng, le Mon 28 Dec 2009 10:31:26 +0800, a écrit : On 09-12-27 下午6:38, Samuel Thibault wrote: Da Zheng, le Sun 27 Dec 2009 16:39:04 +0800, a écrit : Is the process above correct? I have never actually programmed the architectures where things

Re: Months of the Hurd 2009-12

2009-12-28 Thread Michael Banck
On Mon, Dec 28, 2009 at 10:25:44AM +0100, Arne Babenhauserheide wrote: I prepared the news about this months. If something is missing (or wrong), please tell me! There was lots of porting activity as well, mostly by Pino Toscano and Emilio Pozuelo Monfort. Maybe asking them for some

Re: Reauthentication implementation flaw due to EINTR

2009-12-28 Thread Samuel Thibault
Da Zheng, le Mon 28 Dec 2009 19:03:26 +0800, a écrit : Doesn't it mean the RPC on userauth (namely, auth_user_authenticate) is to be canceled? No, here the auth_user_authenticate() RPC is over (else the initiator wouldn't have destroyed the rendezvous port). The RPC that could get canceled is

Re: SMP, barriers, etc.

2009-12-28 Thread Samuel Thibault
Da Zheng, le Mon 28 Dec 2009 19:15:16 +0800, a écrit : On 09-12-28 上午11:00, Samuel Thibault wrote: Da Zheng, le Mon 28 Dec 2009 10:31:26 +0800, a écrit : On 09-12-27 下午6:38, Samuel Thibault wrote: Da Zheng, le Sun 27 Dec 2009 16:39:04 +0800, a écrit : Is the process above correct? I

Re: Reauthentication implementation flaw due to EINTR

2009-12-28 Thread Da Zheng
On 09-12-28 下午7:21, Samuel Thibault wrote: Da Zheng, le Mon 28 Dec 2009 19:03:26 +0800, a écrit : Doesn't it mean the RPC on userauth (namely, auth_user_authenticate) is to be canceled? No, here the auth_user_authenticate() RPC is over (else the initiator wouldn't have destroyed the

Re: Reauthentication implementation flaw due to EINTR

2009-12-28 Thread Samuel Thibault
Da Zheng, le Mon 28 Dec 2009 19:43:11 +0800, a écrit : On 09-12-28 下午7:21, Samuel Thibault wrote: Da Zheng, le Mon 28 Dec 2009 19:03:26 +0800, a écrit : Doesn't it mean the RPC on userauth (namely, auth_user_authenticate) is to be canceled? No, here the auth_user_authenticate() RPC is

Re: Months of the Hurd 2009-12

2009-12-28 Thread Arne Babenhauserheide
Am Montag, 28. Dezember 2009 11:09:20 schrieb Samuel Thibault: Arne Babenhauserheide, le Mon 28 Dec 2009 10:25:44 +0100, a écrit : So from 4.0 on you'll be able to run the GNU Hurd in a default Xen system. Note that one doesn't stricly need Xen 4.0, the

Re: SMP, barriers, etc.

2009-12-28 Thread Samuel Thibault
Da Zheng, le Mon 28 Dec 2009 20:08:56 +0800, a écrit : On 09-12-28 下午7:28, Samuel Thibault wrote: It's not more expensive than usual operations: it already has to do it to process cache line invalidations for everything that is in the cache. I don't understand. Do you mean processing cache

Re: Months of the Hurd 2009-12

2009-12-28 Thread Samuel Thibault
Arne Babenhauserheide, le Mon 28 Dec 2009 13:22:54 +0100, a écrit : Does it sound better this way? Yes, just a small addition: So from Xen 4.0 on you'll be able to run the GNU Hurd directly using pv-grub without the need to [prepare a multiboot package]

Porting highlights for the Month of the Hurd 2009-12

2009-12-28 Thread Arne Babenhauserheide
Am Montag, 28. Dezember 2009 12:20:37 schrieb Michael Banck: There was lots of porting activity as well, mostly by Pino Toscano and Emilio Pozuelo Monfort. Maybe asking them for some highlights of newly fixed or ported packages would be worthwhile. That's a great idea! I forwarded this reply

Re: Months of the Hurd 2009-12

2009-12-28 Thread Arne Babenhauserheide
Am Montag, 28. Dezember 2009 13:34:06 schrieb Samuel Thibault: Yes, just a small addition: So from Xen 4.0 on you'll be able to run the GNU Hurd directly using pv-grub I added it. Thanks for checking the news! Best wishes, Arne signature.asc Description: This is a digitally signed

cannot boot subhurd

2009-12-28 Thread Da Zheng
Hi, I tried to boot subhurd but no matter how I try it, it just fails to boot. My servers.boot is /hurd/ext2fs.static --bootflags=${boot-args} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} -Tdevice ${root-device} $(task-create) $(task-resume)

translator stderr (was: hurd/trans/hello.c changes)

2009-12-28 Thread olafBuddenhagen
Hi, On Thu, Dec 24, 2009 at 12:32:53PM +0530, Shakthi Kannan wrote: | Printing to a file is nothing fancy: the fprintf functions should | suffice. I would appreciate if I could see a working example. When I use fprintf(stdout, message); or fprintf(stderr, error); in a translator, and use

Re: Builds

2009-12-28 Thread olafBuddenhagen
Hi, On Wed, Dec 23, 2009 at 08:45:30PM +0100, Jakub Daniel wrote: i should have asked whether there is an easy way how to make a new disc image build myself (not to wait for L2, as i dont know how long it would take to release L2). No, there is no *easy* way unfortunately. A couple of months

Re: hurd/trans/hello.c changes

2009-12-28 Thread olafBuddenhagen
Hi, On Wed, Dec 23, 2009 at 10:52:14PM +0530, Shakthi Kannan wrote: 1. version.h is located in /usr/include/hurd/version.h, so hello.c should include? === PATCH === -#include version.h +#include hurd/version.h === END === I guess the hurd/ prefix is not necessary when building

Re: [PATCH] Handle the root node of eth-multiplexer correctly.

2009-12-28 Thread olafBuddenhagen
Hi, From 9408aa4f1896a89d9d354d7a0e0f75cbf0d2fc0f Mon Sep 17 00:00:00 2001 From: Sergiu Ivanov unlimitedscol...@gmail.com Date: Tue, 4 Aug 2009 15:09:21 +0300 Subject: [PATCH] Handle the root node of eth-multiplexer correctly. * eth-multiplexer/device_impl.c (ds_device_open): Check for

Re: Porting highlights for the Month of the Hurd 2009-12

2009-12-28 Thread Emilio Pozuelo Monfort
Hi, Arne Babenhauserheide wrote: Is there a port among the highlights you'd like to showcase? Many GNOME packages have been ported, resulting in the gnome-core metapackage being installable again. I haven't tested them yet though as I can't start X :) Cheers, Emilio