Re: 64bit startup

2023-06-09 Thread Samuel Thibault
Sergey Bugaev, le ven. 09 juin 2023 20:49:44 +0300, a ecrit: > with the following hacky patch, I no longer see any crashes, That does help indeed. When I'm using rumpdisk I'm still observing crashes, however, more precisely: Kernel General protection trap, eip 0x81011eee kernel: General

Re: [PATCH v3 2/2] Use O_IGNORE_CTTY where appropriate

2023-06-09 Thread Paul Eggert
On 6/9/23 14:13, Sergey Bugaev wrote: Perhaps... but there's another reason I don't particularly like the idea of doing it on that level. Yes, your points make sense. No big deal either way, Do you perhaps mean that POSIX does not require a newly opened terminal to become your ctty even if y

Re: [PATCH v3 2/2] Use O_IGNORE_CTTY where appropriate

2023-06-09 Thread Sergey Bugaev
Hello -- that is a much more positive response than I was expecting to get! Thank you! On Fri, Jun 9, 2023 at 9:37 PM Paul Eggert wrote: > You could change the documentation so that it now says that flags that > imply O_IGNORE_CTTY are also meaningful. That should be fine. Perhaps... but there's

Re: [PATCH v3 2/2] Use O_IGNORE_CTTY where appropriate

2023-06-09 Thread Paul Eggert
On 2023-06-06 02:21, Sergey Bugaev wrote: _hurd_port2fd and _hurd_intern_fd are both public APIs, documented with "FLAGS are as for `open'; only O_IGNORE_CTTY and O_CLOEXEC are meaningful" You could change the documentation so that it now says that flags that imply O_IGNORE_CTTY are also me

Re: 64bit startup

2023-06-09 Thread Sergey Bugaev
Hello, with the following hacky patch, I no longer see any crashes, debootstrap --second-stage runs all the way and leaves me with an almost full Debian GNU/Hurd x86_64 system \o/ Well, debootstrap does output lots of errors like dpkg: dependency problems prevent configuration of openssh-server:

fsbase getting clobbered (was: Re: 64bit startup)

2023-06-09 Thread Sergey Bugaev
On Wed, Jun 7, 2023 at 12:15 AM Sergey Bugaev wrote: > If my theory is correct, what we actually do wrong is assuming that > the fsbase value located on the (PCB) stack beyond the %rsp will not > spontaneously change; but in absence of a red zone that's just not > true — anything on your current s

Re: [PATCH v3 1/2] include/fcntl.h: Define O_IGNORE_CTTY

2023-06-09 Thread Sergey Bugaev
Hello, On Mon, Jun 5, 2023 at 9:25 PM Adhemerval Zanella Netto wrote: > We currently are trying to avoid the > "#ifdef ...", so a code that does not define, where is should, would fail > at compile time. Yes, this makes perfect sense, and it was something I was also slightly concerned about (wha