Debian Patches

Status for hurd/1:0.9.git20241227-4

Patch Description Author Forwarded Bugs Origin Last update
git-rtc3 commit eb9e171886487acc55115d8ea38141edce2eae6a

Header files: Install rtc.h header file

Message-ID: <20250102004552.26250-1-zhmingluo@163.com>

diff --git a/hurd/Makefile b/hurd/Makefile
index 5200baef..3463f783 100644
Zhaoming Luo <zhmingluo@163.com> no 2025-01-02
diskfs_no_inherit_dir_group.patch Follow POSIX rules for gid of new nodes. no
init_try_runsystem.gnu.patch Also try runsystem.sysv, in case /etc/alternatives/runsystem is hosed. no
rc.patch More debianish rc scripts no
startup-usr-support.patch Debian GNU/Hurd has a real /usr no
uptime_w_path_fix.patch Debian has a real /usr and uses w-hurd file name no
stat_round.patch This is not a proper fix, discussed on
http://lists.gnu.org/archive/html/bug-hurd/2009-02/msg00002.html
but not finished, last mail on
http://lists.gnu.org/archive/html/bug-hurd/2009-04/msg00006.html
no
external.patch Include DDE in the build

===================================================================
no
console_ignore_bdf_err.patch reduce-font overestimates the number of characters in the font. This should be
fixed there, not here.


diff --git a/console-client/bdf.c b/console-client/bdf.c
index 30501f4..ee8aa30 100644
no
libexec.patch =================================================================== no
mount.patch * utils/mount.c (do_mount): Ignore `loop' and `exec' options. no
MAKEDEV-apm.patch Workaround invocations from installation of power-management packages.

===================================================================
no
term-for-tcl.patch See discussion in http://bugs.debian.org/755295
and bug report on comp.lang.tcl on July 1st 2015
(“'expect' losing data due to tcl buffering”)
no
crash-logging.patch xxx crash logging works no
using_std.patch =================================================================== no
libports-iterate-refcount.patch http://lists.gnu.org/archive/html/bug-hurd/2016-03/msg00034.html

diff --git a/libports/bucket-iterate.c b/libports/bucket-iterate.c
index b021b99..76dc3f7 100644
no
io-write-crash.patch Yes, the pointer provided by the caller, coming from the RPC buffer, may not
actually be safe to dereference. Try this with /run/shm as tmpfs with the crash
server configured to dump cores:

#include <fcntl.h>
#include <sys/mman.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>

#define name "/run/shm/test.txt"
int main(void) {
int fd = open(name, O_RDWR|O_CREAT, 0777);
if (ftruncate(fd, 4096))
perror("fruncate");
char *c = mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
if (c == MAP_FAILED)
perror("mmap");
if (close(fd))
perror("close");
if (unlink(name))
perror("unlink");
memset(c, 0, 4096);
if (munmap(c, 4096))
perror("munmap");

return 0;
}

It will make *ext2fs* crash, because

- removing a file from tmpfs make its memory object go away, thus making *c
unwritable (it's not the bug at stake, the program here is meant to crash)
- the crash server uses vm_read to read the process memory to write the
core. GNU Mach achieves it by playing with virtual memory.
- the crash server uses vm_write to write this to the FS. GNU Mach passes the
RPC data out of line by playing with virtual memory.
- ext2fs eventually tries to copy from the RPC data, assumed to be safe, to the
memory object, here backed by the pager. But the data is actually not safe.


That probably needs to be fixed at the mig layer, to make sure incoming
out-of-line data is accessible before handing it to the routine?

===================================================================
no
getty-noclear Ignore --noclear passed by sysvinit since version 2.95-5

diff --git a/daemons/getty.c b/daemons/getty.c
index 40ad4d73..cfa5b71d 100644
no
cthreads.patch We can remove it with glibc 2.33

===================================================================
no
rumpdisk-no-hd =================================================================== no
machdev_trivfs_server For the existing netdde translator...

===================================================================
no
runsystem-race no
ext2fs-crash no
git-skbuf_data commit 7de928d83948079e397d91890327b77914069460

skbuff: Do not set NET_SKBUFF_DATA_USES_OFFSET even on 64bit archs

Our glue does not support this.

diff --git a/libdde-linux26/contrib/include/linux/skbuff.h b/libdde-linux26/contrib/include/linux/skbuff.h
index 745f6159c..dff3a20c5 100644
Samuel Thibault <samuel.thibault@ens-lyon.org> no 2024-11-04
git-fifo-close commit cac26b3523e48613745768494a0b83121d00c298

fifo: Do not detach pipe when there are still readers

Typically for a control socket we need to be able to connect several
times to it.

This notably fixes the control socket of sv.

diff --git a/trans/fifo.c b/trans/fifo.c
index e006dc91..80dab1e2 100644
Samuel Thibault <samuel.thibault@ens-lyon.org> no 2024-12-29
git-pci-arbiter-bar commit c930206466747aa69be0d2d1383a3b98c30c7016

pci-arbiter: Fix long standing bug with PCI access

Proxied memory was not rounded up to page size, causing
error with vm_map'ing the underlying memory.

WARNING: Assumes pci memory resources are at least page aligned.
If not, this will expose part of next resource to userspace.

Message-ID: <20241228073545.712061-1-damien@zamaudio.com>

diff --git a/pci-arbiter/netfs_impl.c b/pci-arbiter/netfs_impl.c
index 4bb5c97a..82e618a7 100644
Damien Zammit <damien@zamaudio.com> no 2024-12-28
git-startup commit 8f0a5fda41fd4542c2d8adcf61bde452cc721a22

startup: Do not emit ARGP_ERR_UNKNOWN

This is making startup completely ignore parameters when root= is passed
first on the kernel command line.

diff --git a/startup/startup.c b/startup/startup.c
index 606555d2..53d46982 100644
Samuel Thibault <samuel.thibault@ens-lyon.org> no 2024-12-30
git-rtc commit d8dffe6ec654d6fcbfd07c44be6c112685a3fa02

sutils/MAKEDEV.sh: create /dev/rtc entry

diff --git a/sutils/MAKEDEV.sh b/sutils/MAKEDEV.sh
index c3d7d112..7c35fd7d 100644
Zhaoming Luo <zhmingluo@163.com> no 2024-12-31
git-rtc2 commit d580a97c6c8a1e1419cc7c21f6dd9d1d12b79f92

rtc: Fix crash on reading

diff --git a/rtc/main.c b/rtc/main.c
index 19bf73b9..67b9067c 100644
Samuel Thibault <samuel.thibault@ens-lyon.org> no 2025-01-10
devdir =================================================================== no
hurddir =================================================================== no
git-libdiskfs-crash-ro commit ac590dcfe1f359bacc4e1be9008a02a2a74f0702

libdiskfs: Avoid crashing on system shutdown

when processes which were upgraded didn't get restarted, and stop after
making the filesystem readonly.

diff --git a/libdiskfs/node-drop.c b/libdiskfs/node-drop.c
index 6a8ebd6d..00c84408 100644
Samuel Thibault <samuel.thibault@ens-lyon.org> no 2025-01-17
git-rumpdisk-irqhelp =================================================================== no

All known versions for source package 'hurd'

Links