[PATCH v3 hurd] rumpnet: Add device translator for (Intel) NICs

2025-07-22 Thread Damien Zammit
This adds a working rump driver for /dev/wmX cards, which are Intel i8254x Gigabit Ethernet devices. (See man.netbsd.org for "wm(4)") This should be easily extended to support other NICs by contributing some makefile foo to netbsd/rump. TESTED: - On UP+apic it works 100% with hurd-i3

Re: [PATCH v2 hurd] rumpnet: Add device translator for (Intel) NICs

2025-07-20 Thread Samuel Thibault
Damien Zammit, le dim. 20 juil. 2025 11:20:33 +, a ecrit: > Hi, > > Original Message > On 20/7/25 8:54 pm, Samuel Thibault wrote: > > > > Set Receive Timeout is required. > > > > > > The immediate flag makes it begin filling the bpf buffer without any > > delay. But wi

Re: [PATCH v2 hurd] rumpnet: Add device translator for (Intel) NICs

2025-07-20 Thread Damien Zammit
Hi, Original Message On 20/7/25 8:54 pm, Samuel Thibault wrote: > > Set Receive Timeout is required. > > > > The immediate flag makes it begin filling the bpf buffer without any > delay. But without the timeout set, a pending blocking read will never > return until the wh

Re: [PATCH v2 hurd] rumpnet: Add device translator for (Intel) NICs

2025-07-20 Thread Samuel Thibault
Damien Zammit, le dim. 20 juil. 2025 10:34:16 +, a ecrit: > Original Message > > Damien Zammit, le dim. 20 juil. 2025 02:49:16 +, a ecrit: > > > + flag = 0; > > > + err = rump_sys_ioctl (nd->bpf_fd, BIOCIMMEDIATE, &flag); > > > + if (err < 0) > > > +{ > > > +

Re: [PATCH v2 hurd] rumpnet: Add device translator for (Intel) NICs

2025-07-20 Thread Damien Zammit
Hi Samuel, Original Message On 20/7/25 7:43 pm, Samuel Thibault wrote: > Damien Zammit, le dim. 20 juil. 2025 02:49:16 +, a ecrit: > > + flag = 0; > > + err = rump_sys_ioctl (nd->bpf_fd, BIOCIMMEDIATE, &flag); > > + if (err < 0) > > +{ > > + mach_print("ER

Re: [PATCH v2 hurd] rumpnet: Add device translator for (Intel) NICs

2025-07-20 Thread Samuel Thibault
Damien Zammit, le dim. 20 juil. 2025 02:49:16 +, a ecrit: > + flag = 0; > + err = rump_sys_ioctl (nd->bpf_fd, BIOCIMMEDIATE, &flag); > + if (err < 0) > +{ > + mach_print("ERROR: biocimmediate failed\n"); > + errno = rump_errno2host(err); > + return errno; > +} > + > +

[PATCH v2 hurd] rumpnet: Add device translator for (Intel) NICs

2025-07-19 Thread Damien Zammit
This adds a working rump driver for /dev/wmX cards, which are Intel i8254x Gigabit Ethernet devices. (See man.netbsd.org for "wm(4)") This should be easily extended to support other NICs by contributing some makefile foo to netbsd/rump. TESTED: - On UP+apic it works 100% with hurd-i3

Re: [PATCH hurd] rumpnet: Add device translator for (Intel) NICs

2025-07-12 Thread Samuel Thibault
Hello, Just a quick skim over it. Damien Zammit, le lun. 07 juil. 2025 09:26:54 +, a ecrit: > +int > +main (int argc, char **argv) > +{ > + > + /* Make sure we will not swap out, > + * because dma buffers for net drivers don't work otherwise */ > + err = wire_task_self (); > + if (err)

Re: [PATCH hurd] procfs: Make /proc/stat multi-cpu aware

2025-07-07 Thread Samuel Thibault
Damien Zammit, le lun. 07 juil. 2025 09:25:35 +, a ecrit: > This allows top to show Cpu0 to CpuN idle stats when you press 1. > > TESTED: on UP and SMP gnumach with debian hurd-i386. Applied, thanks! > --- > procfs/rootdir.c | 63 ++-

[PATCH hurd] rumpnet: Add device translator for (Intel) NICs

2025-07-07 Thread Damien Zammit
This adds a working rump driver for /dev/wmX cards, which are Intel i8254x Gigabit Ethernet devices. (See man.netbsd.org for "wm(4)") TESTED: - It seems to work 100% on UP with hurd-i386. - On SMP it still works better than netdde but hangs gnumach when a large file is received

[PATCH hurd] procfs: Make /proc/stat multi-cpu aware

2025-07-07 Thread Damien Zammit
This allows top to show Cpu0 to CpuN idle stats when you press 1. TESTED: on UP and SMP gnumach with debian hurd-i386. --- procfs/rootdir.c | 63 ++-- 1 file changed, 50 insertions(+), 13 deletions(-) diff --git a/procfs/rootdir.c b/procfs/rootdir.c

Re: [PATCH hurd] Support dynamic linkage of librump

2025-07-01 Thread Damien Zammit
On 7/2/25 7:54 AM, Samuel Thibault wrote: > Possibly the interrupt and the driver thread are stupidly competing for > the spinlock. > We could try compiling rump with RUMP_LOCKS_UP and keep the setting RUMP_NCPU=1. We also need to figure out why running with RUMP_NCPU=2 fails to open random init.

Re: [PATCH hurd] Support dynamic linkage of librump

2025-07-01 Thread Samuel Thibault
Samuel Thibault, le mar. 01 juil. 2025 23:45:05 +0200, a ecrit: > Samuel Thibault, le mar. 01 juil. 2025 23:26:38 +0200, a ecrit: > > I guess it's working on BSD only by luck because mutex_init() is mostly > > no-op... I'll add a patch for this which seems to work for me > > It's *very* slow, thou

Re: [PATCH hurd] Support dynamic linkage of librump

2025-07-01 Thread Samuel Thibault
Samuel Thibault, le mar. 01 juil. 2025 23:26:38 +0200, a ecrit: > I guess it's working on BSD only by luck because mutex_init() is mostly > no-op... I'll add a patch for this which seems to work for me It's *very* slow, though... # dd < /dev/ud0 > /dev/null bs=64K count=10 10+0 records in 10+0 re

Re: [PATCH hurd] Support dynamic linkage of librump

2025-07-01 Thread Samuel Thibault
Samuel Thibault, le mar. 01 juil. 2025 22:20:52 +0200, a ecrit: > Samuel Thibault, le mar. 01 juil. 2025 22:09:27 +0200, a ecrit: > > Samuel Thibault, le mar. 01 juil. 2025 21:32:23 +0200, a ecrit: > > > Damien Zammit, le mar. 01 juil. 2025 14:16:27 +, a ecrit: > > > > This provides a functiona

Re: [PATCH hurd] Support dynamic linkage of librump

2025-07-01 Thread Samuel Thibault
Samuel Thibault, le mar. 01 juil. 2025 22:09:27 +0200, a ecrit: > Samuel Thibault, le mar. 01 juil. 2025 21:32:23 +0200, a ecrit: > > Damien Zammit, le mar. 01 juil. 2025 14:16:27 +, a ecrit: > > > This provides a functional rumpdisk and rumpusbdisk > > > with or without static linkage of libru

Re: [PATCH hurd] Support dynamic linkage of librump

2025-07-01 Thread Samuel Thibault
Samuel Thibault, le mar. 01 juil. 2025 21:32:23 +0200, a ecrit: > Damien Zammit, le mar. 01 juil. 2025 14:16:27 +, a ecrit: > > This provides a functional rumpdisk and rumpusbdisk > > with or without static linkage of librump. > > Great :) applied, thanks! > > > TESTED: > > - opens usb stic

Re: [PATCH hurd] Support dynamic linkage of librump

2025-07-01 Thread Samuel Thibault
Damien Zammit, le mar. 01 juil. 2025 14:16:27 +, a ecrit: > This provides a functional rumpdisk and rumpusbdisk > with or without static linkage of librump. Great :) applied, thanks! > TESTED: > - opens usb stick with both dynamic and static rumpusbdisk. I'm still getting issues with rumpu

[PATCH hurd] Support dynamic linkage of librump

2025-07-01 Thread Damien Zammit
This provides a functional rumpdisk and rumpusbdisk with or without static linkage of librump. TESTED: - opens usb stick with both dynamic and static rumpusbdisk. - boots off ahci with static rumpdisk --- Makeconf | 4 ++-- rumpdisk/Makefile | 18 +- 2 files changed

Re: [PATCH hurd] hurd-udeb: Install rumpusbdisk

2025-06-30 Thread Damien Zammit
.050] pci0: i/o space, memory space enabled, rd/line, rd/mult, > wr/inv ok > > > [ 1.050] vendor 8086 product 1237 (host bridge, revision 0x02) at > pci0 dev 0 function 0 not configured > > > [ 1.050] vendor 8086 product 7000 (ISA bridge) at pci0 dev 1 > functi

Re: [PATCH hurd] hurd-udeb: Install rumpusbdisk

2025-06-30 Thread Samuel Thibault
pace enabled, rd/line, rd/mult, > > wr/inv ok > > [ 1.050] vendor 8086 product 1237 (host bridge, revision 0x02) at > > pci0 dev 0 function 0 not configured > > [ 1.050] vendor 8086 product 7000 (ISA bridge) at pci0 dev 1 > > function 0 not conf

Re: [PATCH hurd] hurd-udeb: Install rumpusbdisk

2025-06-29 Thread Damien Zammit
evision 0x02) at pci0 > dev 0 function 0 not configured > [ 1.050] vendor 8086 product 7000 (ISA bridge) at pci0 dev 1 function > 0 not configured > [ 1.050] vendor 8086 product 7010 (IDE mass storage, interface 0x80) > at pci0 dev 1 function 1 not configured > [ 1.050]

Re: [PATCH hurd] hurd-udeb: Install rumpusbdisk

2025-06-29 Thread Samuel Thibault
at pci0 dev 1 function 1 not configured [ 1.050] uhci0 at pci0 dev 1 function 2: vendor 8086 product 7020 (rev. 0x01) irq handler [11]: new delivery port de276910 entry ffffde72bc40 /hurd/crash: /hurd/rumpusbdisk(1156) crashed, signal {no:11, code:2, error:2}, exception {1,

[PATCH hurd] hurd-udeb: Install rumpusbdisk

2025-06-26 Thread Damien Zammit
This provides support for the /dev/ud* nodes that pass through to /dev/usbdisk, and enables usb disk support in the installer. UNTESTED --- debian/hurd-udeb.install.in| 1 + debian/hurd-udeb.lintian-overrides | 2 ++ debian/local/setup-translators | 4 debian/rules

Re: [PATCH glibc v1] Hurd limits: implement RLIMIT_AS against Mach RPCs

2025-06-22 Thread Samuel Thibault
Hello, Thanks for this! dnie...@gmail.com, le lun. 16 juin 2025 23:58:07 +0100, a ecrit: > diff --git a/hurd/hurdrlimit.c b/hurd/hurdrlimit.c > index 6cb5045bfe..6b0d8a26a3 100644 > --- a/hurd/hurdrlimit.c > +++ b/hurd/hurdrlimit.c > @@ -39,6 +39,11 @@ init_rlimit (void) >

Re: [PATCH hurd v2] libpager: raise RLIMIT_AS if permissions allow us

2025-06-22 Thread Samuel Thibault
dnie...@gmail.com, le lun. 16 juin 2025 23:58:08 +0100, a ecrit: > From: Diego Nieto Cid > > * libpager/demuxer.c(pager_start_workers): set current and max RLIMIT_AS > to RLIM_INFINITY when the current user has access to the privileged host > port. Applied, thanks! > --- > libpager/d

Re: [PATCH hurd] acpi: Ignore irq 9 requests because PIIX3 ACPI is wrong

2025-06-22 Thread Samuel Thibault
Damien Zammit, le dim. 22 juin 2025 07:36:10 +, a ecrit: > Fall back to bios defaults for requests for irq 9. > Ideally we could check the PIIX3 bridge device exists on > pci, but that would require pci access before pci-arbiter > exists. This is a convenient workaround for now. Applied, than

[PATCH hurd] acpi: Ignore irq 9 requests because PIIX3 ACPI is wrong

2025-06-22 Thread Damien Zammit
Fall back to bios defaults for requests for irq 9. Ideally we could check the PIIX3 bridge device exists on pci, but that would require pci access before pci-arbiter exists. This is a convenient workaround for now. --- acpi/acpi-ops.c | 9 + 1 file changed, 9 insertions(+) diff --git a/

Re: No `hurd-i386` and `hurd-amd64` variants of `crossbuild-essential-*`.

2025-06-19 Thread Samuel Thibault
Hello, Yuqian Yang, le jeu. 19 juin 2025 11:59:04 +, a ecrit: > I found that Debian lacks `hurd-i386` and `hurd-amd64` variants of > `crossbuild-essential-*`[1]. I wonder whether this is intentional, or we can > just add these two. I'm not aware of any fundamental reason again

[PATCH hurd v2] libpager: raise RLIMIT_AS if permissions allow us

2025-06-16 Thread dnietoc
From: Diego Nieto Cid * libpager/demuxer.c(pager_start_workers): set current and max RLIMIT_AS to RLIM_INFINITY when the current user has access to the privileged host port. --- libpager/demuxer.c | 8 1 file changed, 8 insertions(+) diff --git a/libpager/demuxer.c b/libpager

[PATCH glibc v1] Hurd limits: implement RLIMIT_AS against Mach RPCs

2025-06-16 Thread dnietoc
/configure: regenerate file. Use vm_get_size_limit to initialize RLIMIT_AS * hurd/hurdrlimit.c(init_rlimit): use vm_get_size_limit to initialize RLIMIT_AS entry of the _hurd_rlimits array. Notify the kernel of the new VM size limits * sysdeps/mach/hurd/setrlimit.c: use the vm_set_size_limit RPC

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-06-09 Thread Samuel Thibault
am change. > > > git bisect welcome to determine what broke it. > > > > > > > Ok, I finally could do a bisection for this issue and the result is the > > following[1]: > > > > demo@debian:~/dev/hurd/upstream/glibc$ git bisect view &g

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-06-08 Thread Samuel Thibault
; > > Ok, I finally could do a bisection for this issue and the result is the > following[1]: > > demo@debian:~/dev/hurd/upstream/glibc$ git bisect view > commit 25d37948c9f3f483d63302b9967b975d3bd74a4e (HEAD, tag: first-bad) > Author: Wilco Dijks

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-05-29 Thread Diego Nieto Cid
]: demo@debian:~/dev/hurd/upstream/glibc$ git bisect view commit 25d37948c9f3f483d63302b9967b975d3bd74a4e (HEAD, tag: first-bad) Author: Wilco Dijkstra Date: Thu May 1 19:58:38 2025 + malloc: Improve malloc initialization Move malloc initialization to __lib

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-05-27 Thread Samuel Thibault
> > > > Well, it finally failed :( > make[2]: *** No rule to make target > '/home/demo/dev/hurd/upstream/glibc-build/elf//ldconfig', needed by > '/home/demo/dev/hurd/upstream/glibc-build/elf/tst-rtld-run-static.out'. Stop. That's another issu

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-05-26 Thread Diego Nieto Cid
Hello, On Tue, May 27, 2025 at 02:48:47AM +0100, Diego Nieto Cid wrote: > > That seems to be it. I've checked out the branch relase/2.41/master and now > make check is going further with no `Killed` output. > Well, it finally failed :( gcc -o /home/demo/dev/hurd/upstrea

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-05-26 Thread Samuel Thibault
Diego Nieto Cid, le mar. 27 mai 2025 02:48:47 +0100, a ecrit: > Now I'm wondering whether version 2.41 being the currently installed > package in the system makes any difference or not. No, it's not supposed to, testrun.sh is supposed to be able to fully use the build tree. Samuel

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-05-26 Thread Samuel Thibault
Diego Nieto Cid, le mar. 27 mai 2025 01:38:07 +0100, a ecrit: > On Sun, May 25, 2025 at 10:26:33PM +0200, Samuel Thibault wrote: > > > > It could make a difference. Better make sure that a pristine tree works > > fine, for a start. > > > > I downloaded the latest Debian image (20250316)[1] and c

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-05-26 Thread Diego Nieto Cid
Hello, On Tue, May 27, 2025 at 01:38:07AM +0100, Diego Nieto Cid wrote: > > Is master supposed to work or should I check some more stable branch? > That seems to be it. I've checked out the branch relase/2.41/master and now make check is going further with no `Killed` output. Now I'm wondering

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-05-26 Thread Diego Nieto Cid
7;m still getting the Killed message when running programs, even when I do "make check" for running the test suite. :( Is master supposed to work or should I check some more stable branch? [1] http://cdimage.debian.org/cdimage/ports/latest/hurd-amd64/debian-hurd-amd64-20250316.img.tar.

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-05-25 Thread Samuel Thibault
Diego Nieto Cid, le dim. 25 mai 2025 20:40:18 +0100, a ecrit: > > > > Perhaps you are missing the libc.so.0.3 -> libc.so symlink in your build > > directory? or elf/ld-x86-64.so.1 -> ld.so? or mach/libmachuser.so.1 -> > > libmachuser.so or hurd/libhurduser.so.0.

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-05-25 Thread Diego Nieto Cid
On Sun, May 25, 2025 at 08:07:40PM +0200, Samuel Thibault wrote: > > No, it should be fine. > Ok. > > Perhaps you are missing the libc.so.0.3 -> libc.so symlink in your build > directory? or elf/ld-x86-64.so.1 -> ld.so? or mach/libmachuser.so.1 -> > libmachuser

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-05-25 Thread Samuel Thibault
erated by make check, to run programs with your newly-built > > > > libc. > > Unfortunately, I'm still getting the "Killed" output when running commands > under testrun.sh: > > demo@debian:~/dev/hurd/upstream/glibc-build$ ./testrun.sh /usr/bin/ls >

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-05-23 Thread Diego Nieto Cid
On Fri, May 23, 2025 at 02:22:28AM +0200, Samuel Thibault wrote: > > Ah, maybe just autoconf then > Yes, autoconf did it. I've run: demo@debian:~/dev/hurd/upstream/glibc$ autoconf -v \ sysdeps/mach/configure.ac --output=sysdeps/mach/configure to regenerate the perti

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-05-22 Thread Samuel Thibault
HAVE_MACH_VM_GET_SIZE_LIMIT) > > > > > > However, I don't know how to generate the corresponding configure > > > file. > > > > It's the autoreconf command. > > > > I thought I've run it successfully bu

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-05-22 Thread Diego Nieto Cid
know how to generate the corresponding configure file. > > It's the autoreconf command. > I thought I've run it successfully but didn't notice an autoheader error. This is the output: demo@debian:~/dev/hurd/upstream/glibc$ autoreconf -vif autoreconf: export WARN

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-05-21 Thread Samuel Thibault
broken, Oops, running make install from a glibc build will indeed usually break the system, yes, since upstream's files layout most often do not match your distribution's files layout. > make[3]: Leaving directory '/home/demo/dev/hurd/upstream/glibc/elf' >

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-05-21 Thread Diego Nieto Cid
_size_limit, HAVE_MACH_VM_GET_SIZE_LIMIT) However, I don't know how to generate the corresponding configure file. 2. After make install the system was broken, every command show Killed in the command line. Below are the last few lines of make: make[

Re: [PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-05-18 Thread Samuel Thibault
Hello, dnie...@gmail.com, le sam. 17 mai 2025 23:56:15 +0100, a ecrit: > The ext2fs side of the changes seems to be as strightforward > as calling setrlimit when the bootstraap port is null, given > the following lines of diskfs_init_main: I'm thinking that it's not just the bootstrap fs that sho

[PATCH hurd v1] ext2fs: raise RLIMIT_AS if running as the root fs

2025-05-17 Thread dnietoc
From: Diego Nieto Cid Hello, The ext2fs side of the changes seems to be as strightforward as calling setrlimit when the bootstraap port is null, given the following lines of diskfs_init_main: if (diskfs_boot_filesystem ()) /* We are the bootstrap filesystem. */ *bootstrap = MAC

Re: [PATCH hurd] libshouldbeinlibc: Use 64bit mapped time values in maptime_read when possible

2025-05-03 Thread Samuel Thibault
Hello, Zhaoming Luo, le sam. 03 mai 2025 12:49:56 +0800, a ecrit: > Use 64bit mapped time values in maptime_read when possible. The 64bit > time values in mapped time will be zero when the kernel does not support > 64bit mapped time. > + if (mtime->time_value.seconds == 0) Please add AC_CHECK_

[PATCH hurd] libshouldbeinlibc: Use 64bit mapped time values in maptime_read when possible

2025-05-02 Thread Zhaoming Luo
Use 64bit mapped time values in maptime_read when possible. The 64bit time values in mapped time will be zero when the kernel does not support 64bit mapped time. --- libshouldbeinlibc/maptime.h | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/libsho

[PATCH 1/1 hurd] libdiskfs: Get the time with higher resolution from kernel

2025-05-02 Thread Zhaoming Luo
From: zhm Get the time with higher resolution from kernel. --- libdiskfs/node-times.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/libdiskfs/node-times.c b/libdiskfs/node-times.c index 60eabc0f..dab193c6 100644 --- a/libdiskfs/node-times.c +++ b/libdis

Re: [PATCH] hurd: save xstate during signal handling

2025-04-19 Thread Samuel Thibault
Hello, So it works as your additional test shows, but it is fragile. Luca Dariz, le mer. 19 mars 2025 18:11:18 +0100, a ecrit: > diff --git a/sysdeps/mach/hurd/i386/sigreturn.c > b/sysdeps/mach/hurd/i386/sigreturn.c > index ce8df8d02b..618cb74196 100644 > --- a/sysdeps/ma

Re: [PATCH] hurd: save xstate during signal handling

2025-04-17 Thread Samuel Thibault
--git a/sysdeps/mach/hurd/i386/sigreturn.c > > b/sysdeps/mach/hurd/i386/sigreturn.c > > index ce8df8d02b..618cb74196 100644 > > --- a/sysdeps/mach/hurd/i386/sigreturn.c > > +++ b/sysdeps/mach/hurd/i386/sigreturn.c > > @@ -21,6 +21,8 @@ > > #include > >

Re: [RFC PATCH v2 glibc] hurd: Check return value of mach_port_mod_refs() in the dup routine of fcntl()

2025-04-17 Thread Samuel Thibault
> > ``` > > ... > > ../scripts/evaluate-test.sh stdio-common/scanf14 $? false false > > > /home/1speaker/apt-source/glibc-2.41/build-tree/hurd-i386-libc/stdio-common/scanf14.test-result > > ``` > > It seems it is related: without your patch the test passes. &

Re: [RFC PATCH v2 glibc] hurd: Check return value of mach_port_mod_refs() in the dup routine of fcntl()

2025-04-17 Thread Samuel Thibault
se false > > /home/1speaker/apt-source/glibc-2.41/build-tree/hurd-i386-libc/stdio-common/scanf14.test-result > ``` It seems it is related: without your patch the test passes. Samuel > --- > sysdeps/mach/hurd/dup3.c | 62 +-

Re: [PATCH] hurd: save xstate during signal handling

2025-04-10 Thread Samuel Thibault
Hello, Sorry it took me long to manage to fine time to look at this... Luca Dariz, le mer. 19 mars 2025 18:11:18 +0100, a ecrit: > diff --git a/sysdeps/mach/hurd/i386/sigreturn.c > b/sysdeps/mach/hurd/i386/sigreturn.c > index ce8df8d02b..618cb74196 100644 > --- a/sysdeps/ma

Re: [PATCH Hurd] Comment fixed

2025-04-02 Thread Samuel Thibault
Applied, thanks! Zhaoming Luo, le mer. 02 avril 2025 17:23:54 +0800, a ecrit: > --- > hurd/io.defs | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hurd/io.defs b/hurd/io.defs > index 5bc399ed..4c63de36 100644 > --- a/hurd/io.defs > +++ b/hurd/

[PATCH Hurd] Comment fixed

2025-04-02 Thread Zhaoming Luo
--- hurd/io.defs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hurd/io.defs b/hurd/io.defs index 5bc399ed..4c63de36 100644 --- a/hurd/io.defs +++ b/hurd/io.defs @@ -46,7 +46,7 @@ routine io_write ( offset: loff_t; out amount: vm_size_t); -/* Read data from

[PATCH] hurd: save xstate during signal handling

2025-03-19 Thread Luca Dariz
* hurd/Makefile: add new tests * hurd/test-sig-rpc-interrupted.c: check xstate save and restore in the case where a signal is delivered to a thread which is waiting for an rpc. This test implements the rpc interruption protocol used by the hurd servers. It was so far passing on Debian thanks

[RFC PATCH v2 glibc] hurd: Check return value of mach_port_mod_refs() in the dup routine of fcntl()

2025-03-10 Thread Zhaoming Luo
ce/glibc-2.41/build-tree/hurd-i386-libc/stdio-common/scanf14.test-result ``` Not sure what to do next so I sent this patch for the sake of backup. Best, Zhaoming --- sysdeps/mach/hurd/dup3.c | 62 +-- sysdeps/mach/hurd/fcntl.c | 52 ++

Re: [PATCH] hurd: Check return value of mach_port_mod_refs() in the dup routine of fcntl()

2025-03-05 Thread Samuel Thibault
Hello, While at it, we'd better also fix sysdeps/mach/hurd/dup3.c the exact same way (which will also fix dup2). Thanks, Samuel Zhaoming Luo, le jeu. 06 mars 2025 06:39:04 +0800, a ecrit: > Ignoring the return value of mach_port_mod_ref() causes the situation > +

[PATCH] hurd: Check return value of mach_port_mod_refs() in the dup routine of fcntl()

2025-03-05 Thread Zhaoming Luo
. Signed-off-by: Zhaoming Luo --- sysdeps/mach/hurd/fcntl.c | 38 +++--- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/sysdeps/mach/hurd/fcntl.c b/sysdeps/mach/hurd/fcntl.c index a65c190c..d97226cd 100644 --- a/sysdeps/mach/hurd/fcntl.c +++ b

Re: Bug#1029097: PAM HURD patches

2025-02-10 Thread Yuqian Yang
On 2025-02-11 14:37, Yuqian Yang wrote: This patch still uses a PATH_MAX stuck on Hurd. But it at least can unblock your other works. PATH_MAX stub. Thanks. -- Yuqian Yang

Re: Bug#1029097: PAM HURD patches

2025-02-10 Thread Yuqian Yang
Hello, On 2025-02-08 09:05, Sam Hartman wrote: * I work with the porter and review the patches. Thanks. I have put 2 patches in attachment. `hurd-fix.patch` is the real patch for fixing problems on Hurd. You have to put this to `debian/patches` manually and change the `series`. `hurd

Re: [PATCH hurd] Allow compilation with -O0

2025-02-10 Thread Samuel Thibault
Samuel Thibault, le lun. 10 févr. 2025 13:57:46 +0100, a ecrit: > Flavio Cruz, le dim. 09 févr. 2025 22:36:30 -0500, a ecrit: > > * pfinet/linux-src/net/ipv4/{tcp,udp}_ipv4.c: mark lookup functions as > > extern since they are used in another module (icmp.c) and shouldn't be > > removed. > > >

Re: [PATCH hurd] Allow compilation with -O0

2025-02-10 Thread Samuel Thibault
Flavio Cruz, le dim. 09 févr. 2025 22:36:30 -0500, a ecrit: > * pfinet/linux-src/net/ipv4/{tcp,udp}_ipv4.c: mark lookup functions as > extern since they are used in another module (icmp.c) and shouldn't be > removed. > diff --git a/pfinet/linux-src/net/ipv4/tcp_ipv4.c > b/pfinet/linux-src/net

Re: Bug#1029097: PAM HURD patches

2025-02-10 Thread Svante Signell
Hello, I did not see this mail. And I don't know why. It is not easy to communicate when emails are lost. Same problems with other emails too. And btw: The OS is not HURD or hurd, it's either GNU/Hurd or just Hurd. Best regards, Svante Signell To: svante.sign...@gmail.com,

[PATCH hurd] Allow compilation with -O0

2025-02-09 Thread Flavio Cruz
* libshouldbeinlibc/lcm.c: make gcd static since it's not exposed as a symbol. * pfinet/linux-src/net/ipv4/{tcp,udp}_ipv4.c: mark lookup functions as extern since they are used in another module (icmp.c) and shouldn't be removed. * term/munge.c: make poutput static since it's not exposed as a

Re: [PATCH 5/6] GNU/Hurd: disable symbolize.

2025-02-07 Thread Yuqian Yang
On 2025-02-07 23:51, Samuel Thibault wrote: Yuqian Yang, le ven. 07 févr. 2025 23:27:01 +0800, a ecrit: I know this is due to the way of our kernel to handle file and memory. Do we have a good way to fix this, Not a trivial way. It'd need adding names to the kernel map entries, and setting t

Re: [PATCH 5/6] GNU/Hurd: disable symbolize.

2025-02-07 Thread Sergey Bugaev
On Fri, Feb 7, 2025 at 6:51 PM Samuel Thibault wrote: > Yuqian Yang, le ven. 07 févr. 2025 23:27:01 +0800, a ecrit: > > I know this is due to the way of our kernel to handle file and memory. > > Do we have a good way to fix this, > > Not a trivial way. It'd need adding names to the kernel map entr

Re: [PATCH 5/6] GNU/Hurd: disable symbolize.

2025-02-07 Thread Samuel Thibault
Yuqian Yang, le ven. 07 févr. 2025 23:27:01 +0800, a ecrit: > I know this is due to the way of our kernel to handle file and memory. > Do we have a good way to fix this, Not a trivial way. It'd need adding names to the kernel map entries, and setting them from mmap() and such functions that map fi

Re: [PATCH 5/6] GNU/Hurd: disable symbolize.

2025-02-07 Thread Yuqian Yang
When I fixed abseil[1] for Hurd, I disabled its debugging feature of finding the symbol of current functions or any other symbols.[2] It does not work on Hurd and its unit tests failed. It can be safely disabled and does not affect other functions of lib just like platforms that do not support it

Re: [RFC PATCH Vim] Add support for Hurd

2025-02-05 Thread Samuel Thibault
idem, and Win32s system being > used (Windows 3.1) > haikuHaiku version of Vim. > hangul_input Compiled with Hangul input support. |hangul| > hpux HP-UX version of Vim. > +hurd Hurd version of Vim > iconv

[RFC PATCH Vim] Add support for Hurd

2025-02-04 Thread Zhaoming Luo
support. |hangul| hpux HP-UX version of Vim. +hurd Hurd version of Vim iconv Can use iconv() for conversion. insert_expand Compiled with support for CTRL-X expansion commands in Insert mode. (always true) diff

Re: [PATCH 0/1] Exclude GNU/Hurd from has('bsd') feature

2025-02-04 Thread Zhaoming Luo
On Mon, Feb 03, 2025 at 04:41:13PM +0800, Zhaoming Luo wrote: > > Zhaoming Luo (1): > Exclude GNU/Hurd from has('bsd') feature > > src/evalfunc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > As it seems not to be the correct way of submitting pa

[PATCH 1/1] Exclude GNU/Hurd from has('bsd') feature

2025-02-03 Thread Zhaoming Luo
GNU/Hurd, like Mac OS X, is a BSD-based system. It should exclude has('bsd') feature just like what Mac OS X does. The __GNU__ pre-defined macro indicates it's compiling for GNU/Hurd. Signed-off-by: Zhaoming Luo --- src/evalfunc.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH 0/1] Exclude GNU/Hurd from has('bsd') feature

2025-02-03 Thread Zhaoming Luo
Hi, I'm not sure if I should add a feature (like has('hurd')) for GNU/Hurd, and if it should be in this patch or in a seperate patch. Zhaoming Luo (1): Exclude GNU/Hurd from has('bsd') feature src/evalfunc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.47.2

[PATCH v3] Port GDB to Hurd x86_64.

2025-02-02 Thread Flavio Cruz
This port extends the existing i686 port to support x86_64 by reusing existing code whenever it makes sense. * gdb/amd64-gnu-tdep.c: Adds logic for handling signal frames and position of amd64 registers in the different Hurd structs. The signal code is very similar to i686, except the

Re: [PATCH Web] Add more info about running hurd in VirtualBox.

2025-01-29 Thread Samuel Thibault
Applied, thanks! Yuqian Yang, le mer. 29 janv. 2025 23:14:31 +0800, a ecrit: > Many people are familiar with VirtualBox, or using OS other than > GNU/Linux. VirtualBox gives them more opportunity to play with Hurd. > --- > hurd/running/virtualbox.mdwn | 19 +-- &

[PATCH Web] Add more info about running hurd in VirtualBox.

2025-01-29 Thread Yuqian Yang
Many people are familiar with VirtualBox, or using OS other than GNU/Linux. VirtualBox gives them more opportunity to play with Hurd. --- hurd/running/virtualbox.mdwn | 19 +-- index.mdwn | 2 ++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a

Re: [PATCH hurd v2] Add partial /proc/cpuinfo implementation

2025-01-27 Thread Samuel Thibault
Applied, thanks! dnie...@gmail.com, le lun. 27 janv. 2025 01:17:33 +, a ecrit: > From: Diego Nieto Cid > > Hello, > > On Sun, Jan 26, 2025 at 10:18:03PM +0100, Samuel Thibault wrote: > > > > dnie...@gmail.com, le ven. 10 janv. 2025 23:52:28 +, a ecrit: > > > --- a/procfs/rootdir.c > > >

[PATCH hurd v2] Add partial /proc/cpuinfo implementation

2025-01-26 Thread dnietoc
From: Diego Nieto Cid Hello, On Sun, Jan 26, 2025 at 10:18:03PM +0100, Samuel Thibault wrote: > > dnie...@gmail.com, le ven. 10 janv. 2025 23:52:28 +, a ecrit: > > --- a/procfs/rootdir.c > > + > > + m = open_memstream(contents, (size_t *) contents_len); > > Please mind the GNU coding style

Re: [PATCH hurd v1] Add partial /proc/cpuinfo implementation

2025-01-26 Thread Samuel Thibault
Sergey Bugaev, le lun. 27 janv. 2025 00:25:15 +0300, a ecrit: > > > +out: > > > + flcose(m); > > > > You didn't try to compile it ;) > > I suppose that's not easy for Diego to do, given the state of aarch64-gnu :) Sure, but he can comment the very few really-arm64-specific lines and try to build

Re: [PATCH hurd v1] Add partial /proc/cpuinfo implementation

2025-01-26 Thread Sergey Bugaev
On Mon, Jan 27, 2025 at 12:18 AM Samuel Thibault wrote: > > + err = aarch64_get_hwcaps(mach_host_self(), &caps, &mdir, &revdir); > > + if (err) > > +goto out; > > + > > + implementer = (mdir & 0xff00) >> 24; > > + variant = (mdir & 0x00f0) >> 20; > > + architecture = (mdir &

Re: [PATCH hurd v1] Add partial /proc/cpuinfo implementation

2025-01-26 Thread Samuel Thibault
Hello, Thanks for working on it :) Sorry for the delay, dnie...@gmail.com, le ven. 10 janv. 2025 23:52:28 +, a ecrit: > --- a/procfs/rootdir.c > +++ b/procfs/rootdir.c > @@ -38,6 +38,12 @@ > #include "procfs_dir.h" > #include "main.h" > #include > +#if defined (__x86_64__) || defined (_

The hardware supported by GNU/Hurd

2025-01-25 Thread Zhaoming Luo
Hi Paolo, The hardware that's supported by GNU/Hurd is described in the following link: https://darnassus.sceen.net/~hurd-web/faq/drivers/ Please feel free to ask questions. Best wishes, Zhaoming

Gather suggestions about how to set up a more friendly development environment on hurd vm

2025-01-24 Thread Zhaoming Luo
Hi, I would like to try to add a wiki page introducing how to set up a more friendly development environment in hurd vm. That wiki page will introduce some plugins that would be useful while reading source code, like `any-jump.vim`, and Emacs' `dumb-jump` suggested by gnucode (thanks gn

[PATCH 1/1] /hurd/null: support setting device ID

2025-01-18 Thread gfleury
+140,7 @@ mkdev() { # link for compatibility with Linux. cmd ln -f -s random $I;; null) - st $I root 666 c /hurd/null;; + st $I root 666 c /hurd/null --rdev=1,3;; full) st $I root 666 c /hurd/null --full;; zero) diff --git a/trans/null.c b/trans

a few problems with newer Hurd versions

2025-01-13 Thread Bruno Haible via Bug reports for the GNU Hurd
Hi, For quite a while I've been using Hurd from 2022 [1] for testing various GNU packages, and it's been quite stable. This week, Samuel invited me to try newer Hurd versions [2]. So, I tried - Hurd/i386 from June 2023 [3] - Hurd/x86_64 from November 2024 [4]. In all cases, I do th

Re: [RFC PATCH hurd] Add partial /proc/cpuinfo implementation

2025-01-13 Thread Sergey Bugaev
On Sun, Jan 12, 2025 at 10:48 PM Samuel Thibault wrote: > Does the posted patch look fine to you? It does, so: Acked-by: Sergey Bugaev I'll test it some time later when I get around to doing more aarch64-gnu hacking :| Sergey

Re: hurd-amd64 bumping ABI

2025-01-12 Thread Samuel Thibault
exim4 also needs to be upgraded to the rebuilt version 4.98-3+hurd.1 Samuel Thibault, le lun. 13 janv. 2025 03:00:50 +0100, a ecrit: > Hello, > > The CMSG_DATA() fix requires bumping the ABI. Since it's still really > at early stage, I don't plan to make a compatibility lay

hurd-amd64 bumping ABI

2025-01-12 Thread Samuel Thibault
3, the old openssh will break. I have put a Breaks so people don't accidentally end up there. But installing the rebuilt openssh will not currently upgrade libc0.3, so be sure to upgrade both packages on your hurd-amd64 system. So basically, after next "unreleased" mirror pulse (~7:30 U

Re: [RFC PATCH hurd] Add partial /proc/cpuinfo implementation

2025-01-12 Thread Samuel Thibault
Sergey Bugaev, le jeu. 09 janv. 2025 18:36:57 +0300, a ecrit: > On Thu, Jan 9, 2025 at 6:18 PM Jessica Clarke wrote: > > On 9 Jan 2025, at 15:12, Diego Nieto Cid wrote: > > > Looking at the types.h header, I see there are HWCAP2_* definitions for > > > bits above 32. Since hwcaps_t is an uint32_t

Re: [RFC PATCH v3 1/1 Hurd]hurd: Add a libstore library without libparted

2025-01-12 Thread Samuel Thibault
Zhaoming Luo, le dim. 12 janv. 2025 20:17:31 +0800, a ecrit: > > > -libstore.so-LDLIBS += $(PARTED_LIBS) -ldl > > > +ifeq ($(EXCLUDE_PARTED), 1) > > > + libstore-noparted.so-LDLIBS += -ldl > > > +else > > > + libstore.so-LDLIBS += $(PARTED_LIBS) -ldl > > > > Better use > > > > $(libname).so-LD

Re: [RFC PATCH v3 1/1 Hurd]hurd: Add a libstore library without libparted

2025-01-12 Thread Zhaoming Luo
On Sat, Jan 11, 2025 at 11:39:46AM +0100, Samuel Thibault wrote: > Hello, Thanks for the review. > > Zhaoming Luo, le sam. 11 janv. 2025 12:56:33 +0800, a ecrit: > > diff --git a/libstore/Makefile b/libstore/Makefile > > index c7af958b..d0f06450 100644 > > --- a/libstore/Makefile > > +++ b/libst

Re: [PATCH hurd] rumpusbdisk: Link completely to scsipi library

2025-01-11 Thread Samuel Thibault
Applied, thanks! Damien Zammit via Bug reports for the GNU Hurd, le sam. 11 janv. 2025 08:21:50 +, a ecrit: > The usb stack also uses SCSI emulation for usb mass storage. > > --- > rumpdisk/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --gi

Re: [RFC PATCH v3 1/1 Hurd]hurd: Add a libstore library without libparted

2025-01-11 Thread Samuel Thibault
Hello, Zhaoming Luo, le sam. 11 janv. 2025 12:56:33 +0800, a ecrit: > diff --git a/libstore/Makefile b/libstore/Makefile > index c7af958b..d0f06450 100644 > --- a/libstore/Makefile > +++ b/libstore/Makefile > @@ -20,10 +20,17 @@ > # along with this program; if not, write to the Free Software >

[PATCH hurd] rumpusbdisk: Link completely to scsipi library

2025-01-11 Thread Damien Zammit via Bug reports for the GNU Hurd
The usb stack also uses SCSI emulation for usb mass storage. --- rumpdisk/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rumpdisk/Makefile b/rumpdisk/Makefile index e7f53511..cbe93845 100644 --- a/rumpdisk/Makefile +++ b/rumpdisk/Makefile @@ -17,7 +17,7 @@ RUMPLIB

  1   2   3   4   5   6   7   8   9   10   >