aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Use default pager MiG stubs from Hurd instead of gnumachFlavio Cruz2023-04-076-6/+7
| | | | | | | | | | | | Hurd code relies on gnumach default_pager.defs headers when making calls using the default pager RPC. Those stubs were checked in back in the 90s and are essentially unused because gnumach does not implement or use that interface. Instead use the Hurd interface directly. This is safe since the Hurd stubs are a super set of the gnumach stubs. Later, we won't need to install the gnumach stubs anymore through glibc. Message-Id: <ZC5WqPKfCCiE8D29@jupiter.tail36e24.ts.net>
* Use the new host_get_kernel_version introduced recently.Flavio Cruz2023-04-031-1/+6
| | | | | | https://git.savannah.gnu.org/cgit/hurd/gnumach.git/commit/?id=5447f965f1e109f7ac9aeb91c0e3906969a4adb8 provides more context. Message-Id: <ZBFkAXCYcj27UXRo@mars.tail36e24.ts.net>
* Modernize code by removing use of old style definitions.Flavio Cruz2023-04-0381-401/+325
| | | | | Also add -Werror=old-style-definition to enforce new code. Message-Id: <ZBZ+8xf7GHy2RT/h@jupiter.tail36e24.ts.net>
* libstore: Fix zero store size computationSamuel Thibault2023-02-271-2/+3
| | | | | | 56d065041793 ("libstore: Fix undefined behavior") missed letting the sign bit be 0, thus leading to a negative store size, and thus /dev/zero would reject any read/write.
* pfinet: Fix shifting left into bit 31Samuel Thibault2023-02-234-6/+6
|
* pfinet: Align packetsSamuel Thibault2023-02-193-2/+28
| | | | | | The Ethernet header is 14 bytes long, and thus leads to IP header misalignment. This uses skb_reserve to introduce 2 bytes of padding to realign IP headers.
* mach-defpager: Add defpager_server_nameSamuel Thibault2023-02-161-0/+2
| | | | To allow e.g. libubsan to detect it should be extra cautious.
* mach-defpager: Fix crash on pthread_cond_broadcastSamuel Thibault2023-02-161-3/+3
| | | | | We need to keep ds locked, otherwise it might disappear before we have a chance to broadcast the condition.
* nfs: Fix shifting leftSamuel Thibault2023-02-151-1/+1
| | | | | Shifting signed 0xffffffff 32 bit left is undefined behavior. Cast to unsigned to make it defined behavior.
* Fix accessing bit 31Samuel Thibault2023-02-153-11/+11
| | | | | Shifting (signed) 1 to left 31 positions is undefined behavior. So make this an unsigned so it becomes defined behavior.
* libstore: Fix undefined behaviorSamuel Thibault2023-02-101-1/+1
| | | | store_offset_t is a signed type, so 1 << (bits-1) overflows.
* procfs: Actually add padding to align struct direntSamuel Thibault2023-02-031-0/+2
| | | | | d21b09b32895 was computing the amount and filling it, but not actually enforcing it.
* Avoid variable length array with size zeroSamuel Thibault2023-02-021-1/+1
|
* Avoid unaligned memory accessesSamuel Thibault2023-02-024-27/+19
|
* Avoid undefined-behaviorSamuel Thibault2023-02-022-8/+8
| | | | | 1 << 31 is undefined behavior, 1 needs to be made unsigned for << 31 to be defined behavior.
* procfs: Add padding to align struct direntSamuel Thibault2023-02-021-1/+6
|
* ext2fs: use __alignof (struct dirent) instead of hardcoding 4Samuel Thibault2023-02-021-1/+1
|
* Avoid passing NULL to memcpySamuel Thibault2023-02-022-2/+3
|
* Add --without-libtirpcSamuel Thibault2023-01-311-1/+8
| | | | To facilitate cross-build without tinkering with pkg-config.
* Fix some compiler warningsSvante Signell2023-01-196-7/+7
|
* Fix compiler warningSvante Signell2023-01-181-0/+1
|
* libtrivfs: Avoid passing uninitialized seconds fieldSamuel Thibault2023-01-021-2/+8
| | | | | Even if microseconds being -1 is enough, better not leak uninitialized values.
* fsys_get_children: Fix double-free on errorSamuel Thibault2023-01-021-1/+1
|
* boot: Fix erroneous munmap in S_io_read on errorSamuel Thibault2023-01-021-1/+2
|
* fsys_get_children: Fix comparing stringsSamuel Thibault2023-01-022-2/+2
|
* fsys_get_children: Fix memleak on errorSamuel Thibault2023-01-022-4/+12
|
* procfs: Fix checking underrunSamuel Thibault2023-01-011-2/+2
|
* mach-defpager: Fix computing free spaceSamuel Thibault2023-01-011-5/+7
|
* utils: Fix calling multi-line macroSamuel Thibault2023-01-011-1/+3
|
* console: Fix checking negative cursor coordinatesSamuel Thibault2023-01-011-2/+2
|
* vmstat: Support 64bit memory sizeSamuel Thibault2023-01-011-2/+2
|
* settrans: Fix checking len being negativeSamuel Thibault2023-01-011-1/+1
|
* console-client: Fix erroneous allocation checkSamuel Thibault2023-01-011-1/+1
|
* pids: Fix pointer arithmeticSamuel Thibault2023-01-011-1/+1
|
* Fix accessing cred before checking it is non-NULLSamuel Thibault2023-01-012-2/+4
|
* libnetfs: Fix dereferencing NULL on memory shortageSamuel Thibault2023-01-011-1/+1
|
* pflocal: Fix unsafe increment of refsSamuel Thibault2023-01-011-1/+5
|
* Do not ignore value returned by get_privileged_portsSamuel Thibault2023-01-013-6/+15
|
* libnetfs: do not ignore errors from netfs_validate_statSamuel Thibault2023-01-011-1/+3
|
* libdiskfs: white-list fall-through in switchSamuel Thibault2023-01-011-0/+1
|
* procfs: Avoid fclosing NULL on memory shortageSamuel Thibault2023-01-011-1/+2
|
* libfshelp-tests: Fix out-of-bound accessSamuel Thibault2023-01-011-2/+2
|
* pfinet: Fix using uninitialized valueSamuel Thibault2023-01-011-1/+1
|
* nonsugid: Fix memleakSamuel Thibault2023-01-011-0/+5
|
* trans: Drop spurious derefSamuel Thibault2023-01-011-4/+1
| | | | That was a remnant of manual port lookup.
* pflocal: Avoid setting sock fields on errorSamuel Thibault2023-01-011-4/+7
|
* console: Avoid setting pointer on errorSamuel Thibault2023-01-011-1/+2
|
* console-client: Fix erroneous free on errorSamuel Thibault2023-01-011-1/+1
|
* libpager: Fix memleak on errorSamuel Thibault2023-01-011-1/+4
|
* _merge_implied_gids: Fix memleak on errorSamuel Thibault2023-01-011-0/+2
|