GNU bug report logs -
#43650
[PATCH 0/8] Assorted childhurd improvements
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Sun, 27 Sep 2020 15:30:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #50 received at 43650 <at> debbugs.gnu.org (full text, mbox):
Hi!
I’ve pushed ‘wip-childhurd’ with a few additional commits.
The flaky startup issue appears to be fixed by:
88946005d7 * services: secret-service: Add initial client/server handshake.
Before that, what would happen is that:
1. The host would connect(2) to QEMU as soon as QEMU is running;
connect(2) would succeed immediately and so the host would send its
secrets right away, disconnect, and move on.
However, at that point, the guest is still booting and its secret
service server is not even accept(2)ing yet. Looks like QEMU’s
SLIRP would more or less buffer the packets the host sent, “more or
less” being the important point.
2. The guest would eventually accept(2), which would succeed. Then it
would sometimes receive stuff, sometimes not, depending on what
happened with the SLIRP buffering I suppose.
The fix is to have the server in the guest send a “hello” message. The
client in the host waits for that message before sending its secrets.
Consequently, it can take ~20s for the ‘start’ method of the childhurd
to succeed. Eventually, when shepherd runs on Fibers or similar, it
won’t be a problem, but for now it means that PID 1 remains stuck in
select(2) for this many seconds.
Ludo’.
This bug report was last modified 4 years and 239 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.