Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use default pager MiG stubs from Hurd instead of gnumach | Flavio Cruz | 2023-04-07 | 6 | -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 Cruz | 2023-04-03 | 1 | -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 Cruz | 2023-04-03 | 81 | -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 computation | Samuel Thibault | 2023-02-27 | 1 | -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 31 | Samuel Thibault | 2023-02-23 | 4 | -6/+6 |
| | |||||
* | pfinet: Align packets | Samuel Thibault | 2023-02-19 | 3 | -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_name | Samuel Thibault | 2023-02-16 | 1 | -0/+2 |
| | | | | To allow e.g. libubsan to detect it should be extra cautious. | ||||
* | mach-defpager: Fix crash on pthread_cond_broadcast | Samuel Thibault | 2023-02-16 | 1 | -3/+3 |
| | | | | | We need to keep ds locked, otherwise it might disappear before we have a chance to broadcast the condition. | ||||
* | nfs: Fix shifting left | Samuel Thibault | 2023-02-15 | 1 | -1/+1 |
| | | | | | Shifting signed 0xffffffff 32 bit left is undefined behavior. Cast to unsigned to make it defined behavior. | ||||
* | Fix accessing bit 31 | Samuel Thibault | 2023-02-15 | 3 | -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 behavior | Samuel Thibault | 2023-02-10 | 1 | -1/+1 |
| | | | | store_offset_t is a signed type, so 1 << (bits-1) overflows. | ||||
* | procfs: Actually add padding to align struct dirent | Samuel Thibault | 2023-02-03 | 1 | -0/+2 |
| | | | | | d21b09b32895 was computing the amount and filling it, but not actually enforcing it. | ||||
* | Avoid variable length array with size zero | Samuel Thibault | 2023-02-02 | 1 | -1/+1 |
| | |||||
* | Avoid unaligned memory accesses | Samuel Thibault | 2023-02-02 | 4 | -27/+19 |
| | |||||
* | Avoid undefined-behavior | Samuel Thibault | 2023-02-02 | 2 | -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 dirent | Samuel Thibault | 2023-02-02 | 1 | -1/+6 |
| | |||||
* | ext2fs: use __alignof (struct dirent) instead of hardcoding 4 | Samuel Thibault | 2023-02-02 | 1 | -1/+1 |
| | |||||
* | Avoid passing NULL to memcpy | Samuel Thibault | 2023-02-02 | 2 | -2/+3 |
| | |||||
* | Add --without-libtirpc | Samuel Thibault | 2023-01-31 | 1 | -1/+8 |
| | | | | To facilitate cross-build without tinkering with pkg-config. | ||||
* | Fix some compiler warnings | Svante Signell | 2023-01-19 | 6 | -7/+7 |
| | |||||
* | Fix compiler warning | Svante Signell | 2023-01-18 | 1 | -0/+1 |
| | |||||
* | libtrivfs: Avoid passing uninitialized seconds field | Samuel Thibault | 2023-01-02 | 1 | -2/+8 |
| | | | | | Even if microseconds being -1 is enough, better not leak uninitialized values. | ||||
* | fsys_get_children: Fix double-free on error | Samuel Thibault | 2023-01-02 | 1 | -1/+1 |
| | |||||
* | boot: Fix erroneous munmap in S_io_read on error | Samuel Thibault | 2023-01-02 | 1 | -1/+2 |
| | |||||
* | fsys_get_children: Fix comparing strings | Samuel Thibault | 2023-01-02 | 2 | -2/+2 |
| | |||||
* | fsys_get_children: Fix memleak on error | Samuel Thibault | 2023-01-02 | 2 | -4/+12 |
| | |||||
* | procfs: Fix checking underrun | Samuel Thibault | 2023-01-01 | 1 | -2/+2 |
| | |||||
* | mach-defpager: Fix computing free space | Samuel Thibault | 2023-01-01 | 1 | -5/+7 |
| | |||||
* | utils: Fix calling multi-line macro | Samuel Thibault | 2023-01-01 | 1 | -1/+3 |
| | |||||
* | console: Fix checking negative cursor coordinates | Samuel Thibault | 2023-01-01 | 1 | -2/+2 |
| | |||||
* | vmstat: Support 64bit memory size | Samuel Thibault | 2023-01-01 | 1 | -2/+2 |
| | |||||
* | settrans: Fix checking len being negative | Samuel Thibault | 2023-01-01 | 1 | -1/+1 |
| | |||||
* | console-client: Fix erroneous allocation check | Samuel Thibault | 2023-01-01 | 1 | -1/+1 |
| | |||||
* | pids: Fix pointer arithmetic | Samuel Thibault | 2023-01-01 | 1 | -1/+1 |
| | |||||
* | Fix accessing cred before checking it is non-NULL | Samuel Thibault | 2023-01-01 | 2 | -2/+4 |
| | |||||
* | libnetfs: Fix dereferencing NULL on memory shortage | Samuel Thibault | 2023-01-01 | 1 | -1/+1 |
| | |||||
* | pflocal: Fix unsafe increment of refs | Samuel Thibault | 2023-01-01 | 1 | -1/+5 |
| | |||||
* | Do not ignore value returned by get_privileged_ports | Samuel Thibault | 2023-01-01 | 3 | -6/+15 |
| | |||||
* | libnetfs: do not ignore errors from netfs_validate_stat | Samuel Thibault | 2023-01-01 | 1 | -1/+3 |
| | |||||
* | libdiskfs: white-list fall-through in switch | Samuel Thibault | 2023-01-01 | 1 | -0/+1 |
| | |||||
* | procfs: Avoid fclosing NULL on memory shortage | Samuel Thibault | 2023-01-01 | 1 | -1/+2 |
| | |||||
* | libfshelp-tests: Fix out-of-bound access | Samuel Thibault | 2023-01-01 | 1 | -2/+2 |
| | |||||
* | pfinet: Fix using uninitialized value | Samuel Thibault | 2023-01-01 | 1 | -1/+1 |
| | |||||
* | nonsugid: Fix memleak | Samuel Thibault | 2023-01-01 | 1 | -0/+5 |
| | |||||
* | trans: Drop spurious deref | Samuel Thibault | 2023-01-01 | 1 | -4/+1 |
| | | | | That was a remnant of manual port lookup. | ||||
* | pflocal: Avoid setting sock fields on error | Samuel Thibault | 2023-01-01 | 1 | -4/+7 |
| | |||||
* | console: Avoid setting pointer on error | Samuel Thibault | 2023-01-01 | 1 | -1/+2 |
| | |||||
* | console-client: Fix erroneous free on error | Samuel Thibault | 2023-01-01 | 1 | -1/+1 |
| | |||||
* | libpager: Fix memleak on error | Samuel Thibault | 2023-01-01 | 1 | -1/+4 |
| | |||||
* | _merge_implied_gids: Fix memleak on error | Samuel Thibault | 2023-01-01 | 1 | -0/+2 |
| |