summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-03-05ext2fs: New default: use xattrs to store translator recordsHEADmasterDamien Zammit
Replaces experimental option --x-xattr-translator-records with --no-xattr-translator-records to allow rolling back to previous behaviour. NB: - Legacy records still work with either setting. - Adding a new record removes a legacy one.
2024-03-04ext2fs: Check that the filesystem supports xattr before reading itDamien Zammit
2024-03-03libps: update ps_emit_nice_size_t to handle arbitrarily large size_tFlavio Cruz
Update argument types for sprint_frac_value to reflect how big they actually are so that GCC doesn't think it needs a larger buffer than necessary. Message-ID: <ZeS1i5u_OziWpApt@jupiter.tail36e24.ts.net>
2024-03-01libbpf: avoid aborting on unknown instructionSamuel Thibault
Userland might load BPF programs with unknown instructions, we currently don't pre-check against that. In such a case, we shouldn't make netdde completely abort, and rather just return 0 like e.g. in the division by zero case.
2024-03-01rumpdisk: do not open device if block size is 0Flavio Cruz
Currently, if we do: $ ls /dev/cd0/ The computer seems to get stuck, caused by the divide by 0 in the rumpdisk server in device_get_status. I noticed that if we have no disk in the cdrom device, we can still open it but block and media size will be 0 and the message "cd0 dos partition I/O error" will be printed to the console. To avoid this problem, we check the block size and throw an error when it is 0. This also works correctly when a disk actually exists. This should help fix the perl and likely the vim test suites that are currently failing in https://buildd.debian.org/. Message-ID: <Zd_8XjcHcbNIp5NM@mars.tail36e24.ts.net>
2024-02-17Add proc_getchildren_rusage RPC and track rusage for children and descendantsFlavio Cruz
Message-ID: <20240216182630.5770-2-flaviocruz@gmail.com>
2024-02-08runsystem.hurd.sh: Refresh from runsystem.hurd.sh.inSamuel Thibault
2024-02-08runsystem: Check that /servers/socket/1 is really set upSamuel Thibault
In case the image was built through a tarball, /servers/socket/1 might exist but not actually have been configured as pflocal translator. So better check that we do have a translator there, and fix it otherwise.
2024-02-08runsystem.hurd.sh: Try to run bash firstSamuel Thibault
Some systems have /bin/sh pointing to dash, which is even more stressful for users when running in an emergency. Better first try bash. Also try dash too in case /bin/sh is hosed.
2024-02-08runsystem.hurd.sh: Print a newline at bootSamuel Thibault
This helps debugging boot issues.
2024-02-08runsystem.hurd.sh: Do not try to set up translators if we do not have settransSamuel Thibault
2024-02-08runsystem.hurd.sh: Make emergency really an emergencySamuel Thibault
emergency means we want to get a shell as quickly as possible, so we do not want any daemon at all.
2024-02-08runsystem: Do not eat first parameterSamuel Thibault
It has not been the kernel file name any more for a long time already.
2024-02-08runsystem: Do not try to set up translators if we do not have settransSamuel Thibault
2024-02-08runsystem: Try to run bash firstSamuel Thibault
Some systems have /bin/sh pointing to dash, which is even more stressful for users when running in an emergency. Better first try bash. Also try dash too in case /bin/sh is hosed.
2024-02-08runsystem: do not require bashSamuel Thibault
So that people can install just dash.
2024-02-04Add missing includeSamuel Thibault
for va_start etc.
2024-01-23Update rpctrace to use the new ABI for inlined port namesFlavio Cruz
Message-ID: <Za3wnF34kVU0r1TS@jupiter.tail36e24.ts.net>
2024-01-23trivial hurd manual changes.jbranso@dismail.de
* doc/hurd.texi (Special Files): added a reference to the zero store. * doc/hurd.texi (Translators): added a sentence about /dev/random. * doc/hurd.texi (Invoking 'mount'): added a short explanation. * doc/hurd.texi (Trivfs Callbacks): added @code{FSTYPE_MISC}. Message-ID: <20230921164822.9227-5-jbranso@dismail.de>
2024-01-23add a FAT FS section to the hurd manual.jbranso@dismail.de
* doc/hurd.texi (FAT FS): new section. Message-ID: <20230921164822.9227-4-jbranso@dismail.de>
2024-01-23describe the ISO-9960 filesystem in the hurd manual.jbranso@dismail.de
* doc/hurd.texi (ISO-9960): I added in a short explanation. Message-ID: <20230921164822.9227-3-jbranso@dismail.de>
2024-01-23add a short ext2fs description to the hurd manual.jbranso@dismail.de
* doc/hurd.texi (Linux Extended 2 FS): added a short description. Message-ID: <20230921164822.9227-2-jbranso@dismail.de>
2024-01-23describe fixing filesystem corruption in the hurd manual.jbranso@dismail.de
* doc/hurd.texi (Repairing Filesystems): described fixing filesystem corruption. * doc/hurd.texi (Shutdown): added the hurd specific halt-hurd command. Message-ID: <20230921164822.9227-1-jbranso@dismail.de>
2023-12-31x86_64: utmp uses int32_t to store time so use a temporary variableFlavio Cruz
Message-ID: <ZZBGYmkYNwpoamBm@jupiter.tail36e24.ts.net>
2023-12-29pfinet: fix type aliasFlavio Cruz
Message-ID: <20231229212105.858759-11-flaviocruz@gmail.com>
2023-12-29libftpconn: add out >= 2 condition to make GCC happyFlavio Cruz
Message-ID: <20231229212105.858759-10-flaviocruz@gmail.com>
2023-12-29Fix overflow issues in tmpfs and vmallocateFlavio Cruz
Message-ID: <20231229212105.858759-9-flaviocruz@gmail.com>
2023-12-29proxy-defpager: add missing return statementFlavio Cruz
Message-ID: <20231229212105.858759-8-flaviocruz@gmail.com>
2023-12-29Fix a few pointer related warnings.Flavio Cruz
Message-ID: <20231229212105.858759-7-flaviocruz@gmail.com>
2023-12-29x86_64: use 21 bytes in libps since %z might require more characters.Flavio Cruz
This makes GCC happy. Message-ID: <20231229212105.858759-6-flaviocruz@gmail.com>
2023-12-29Fix printf format specifiersFlavio Cruz
Message-ID: <20231229212105.858759-4-flaviocruz@gmail.com>
2023-12-29Use mach_msg_type_number_t whenever required to avoid warningsFlavio Cruz
Message-ID: <20231229212105.858759-3-flaviocruz@gmail.com>
2023-12-29Cast bootinfo to struct diskfs_control * to silence warningFlavio Cruz
Message-ID: <20231229212105.858759-2-flaviocruz@gmail.com>
2023-12-29Initialize a few error variables to avoid GCC warningsFlavio Cruz
Message-ID: <20231229212105.858759-1-flaviocruz@gmail.com>
2023-12-29Mark msg_thread as noreturnFlavio Cruz
Message-ID: <20231229161211.312389-3-flaviocruz@gmail.com>
2023-12-29Replace deprecated sigmask with sigset_t callsFlavio Cruz
Message-ID: <20231229161211.312389-2-flaviocruz@gmail.com>
2023-12-29pfinet and pci-arbiter: update server handlers to return kern_return_t to ↵Flavio Cruz
fix -Werror=enum-int-mismatch warnings Message-ID: <20231229161211.312389-1-flaviocruz@gmail.com>
2023-12-17Update server handlers to return kern_return_error to fix ↵Flavio Cruz
-Werror=enum-int-mismatch warnings MiG expects those to return kern_return_t. Message-ID: <ZXqbbXpVqQAwd2qv@jupiter.tail36e24.ts.net>
2023-12-17Update hurd code to handle the new ABI for sending inlined port rights.Flavio Cruz
2023-12-03Revert "Update hurd code to handle the new ABI for sending inlined port rights."Samuel Thibault
This reverts commit 33c30b4ff76ca22bdedce4aa41d05736a546d86b.
2023-12-03Update hurd code to handle the new ABI for sending inlined port rights.Flavio Cruz
Message-ID: <20231124213041.952886-3-flaviocruz@gmail.com>
2023-12-02lwip: Allocate the loopback netif by defaultJoan Lledó
The translator received a null `netif_list` during initialization, this caused a few bugs. When started without parameters, the translator didn't add any new interface to `netif_list`, and that broke any subsequent fsysopts over the translator, as the stack was being initialized again instead of being reconfigured. DHCP was broken because the translator is usually installed without parameters, which are supposed to be added by the DHCP client through fsysopts. The absence of an allocated `netif_list` also prevented configuring a loopback interface. After these changes, starting the translator always allocates one interface and configures it as loopback. Message-ID: <20231202101401.11542-2-jlledom@mailfence.com>
2023-11-26libports: Make sure we don't leak current RPCs listsSamuel Thibault
2023-11-26libports: Force threads to wake up periodicallySamuel Thibault
Quiescence support in port-deref-deferred.c assumes that all threads will sooner or later go through a quiescent state (because it finished processing a message). But that is not true: proc doesn't set a thread timeout, and thus some threads can stay indefinitely stuck in receiving messages. And thus the deferred dereferencing used by ports_destroy_right never gets achieved. This accumulation can be seen by running: while true ; do echo $(echo -n $(echo a)) > /dev/null ; done while running vminfo 4 | wc -l in parallel. Making threads get out of mach_msg at least periodically allows unstucking quiescence generations.
2023-11-26libports: Add more assertionSamuel Thibault
flip_generations needs to make sure it is not throwing away a list of objects to be released.
2023-11-20exec: TODO note about implementing interruptSamuel Thibault
2023-11-19libfshelp: type check messages using the full mach_msg_type_t so that it ↵Flavio Cruz
works on x86_64. Message-ID: <ZVlHm2xuVaS8SItY@jupiter.tail36e24.ts.net>
2023-11-12server_verify_make_auth: mig now uses constSamuel Thibault
2023-11-12pci.defs: Fix making glibc catch EINTRSamuel Thibault
INTR_INTERFACE needs to be always called for glibc to redirect mach_msg into _hurd_intr_rpc_mach_msg.
2023-11-06x86_64: Drop -AT386 part in uname machineSamuel Thibault
We don't really have plans to have anything else than "AT386" there, and other OSes do not include it, so it brings us more harm than good to include it.