summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-06-30console-client ncursesw: Fix confusion between color pair and video attributeSamuel Thibault
COLOR_PAIR takes a color pair, it does not produce one.
2025-06-30MAKEDEV: Add /dev/ud* nodesDamien Zammit
that pass through to /dev/usbdisk.
2025-06-22libpager: raise RLIMIT_AS if permissions allow usDiego 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. Message-ID: <20250616225815.844-2-dnietoc@gmail.com>
2025-06-22acpi: Ignore irq 9 requests because PIIX3 ACPI is wrongv0.9.git20250622Damien 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. Message-ID: <20250622073557.188295-1-damien@zamaudio.com>
2025-06-11xkb: Make compose table load failure non-fatalSamuel Thibault
2025-06-03term: Use speed_t typeSamuel Thibault
2025-06-03procfs: Also make swap size use long longsSamuel Thibault
2025-06-03procfs: Fix meminfo value size for BuffersSamuel Thibault
This was offsetting all values on the parameters stack
2025-05-10pflocal: Do not inherit PFLOCAL_SOCK_NONBLOCK across connect/accept.Ludovic Courtès
Previously, ‘accept’ would return an O_NONBLOCK socket if the listening socket was O_NONBLOCK at the time the connection was made. With this change, ‘accept’ always returns a socket where O_NONBLOCK is cleared.
2025-05-05Fix IRC network nameSamuel Thibault
2025-05-03libshouldbeinlibc: Use 64bit mapped time values in maptime_read when possibleZhaoming Luo
Use 64bit mapped time values in maptime_read when the kernel and the mapped_time_value structure in header file time_value.h support it. Otherwise step back to use the 32bit time. Message-ID: <20250503132808.15359-1-zhmingluo@163.com>
2025-04-28ext2fs: fix crash on ENOSPCSamuel Thibault
54c0b9b9dbf7 ("ext2fs: Trap trying to access bogus data areas") added checks on the allocated block number, but did not take care of the out-of-space condition, which callers of ext2_new_block and ext2_alloc_block know to handle.
2025-04-19libdiskfs: Fix catching exceptionsv0.9.git20250420Samuel Thibault
This fixes making diskfs_catch_exception recursive, catching the last fault exception, and fixes callers.
2025-04-19MAKEDEV: Do not mount a tmpfs on /dev/shm for nowSamuel Thibault
tmpfs loses files when they are unlinked but still mapped.
2025-04-02Comment fixedZhaoming Luo
Message-ID: <20250402092354.293338-1-zhmingluo@163.com>
2025-03-18ext2fs: Always clean just-allocated inodeSamuel Thibault
So that if we get a lazily-cleaned inode, we do not get disturbed by the values, notably i_file_acl and i_dir_acl were not cleaned, and i_block_group not checked. b0ff48880bb40 ("Formerly ialloc.c.~6~") introduced only setting dn_set_ctime when cleanup was missing, but we always want to set the ctime for a new inode anyway.
2025-03-18ext2fs: extend end check for ext2_free_blocksSamuel Thibault
Since it can free more than one block.
2025-03-18ext2fs: Do not try to frob inline data for regular files and directoriesSamuel Thibault
Inline data in i_data is only used by symlinks (and apparently some device nodes in linux). For regular files and directories we don't store data there. This is actually important since otherwise int fd = open("foo.txt", O_WRONLY|O_CREAT); ftruncate(fd, 1024); ftruncate(fd, 10); leads to trying to frob beyond i_data end.
2025-03-18ext2fs: Trap trying to access bogus data areasSamuel Thibault
i.e. superblock, block group descriptor table or beyond the end.
2025-03-16tmpfs: also try to start the default pagerSamuel Thibault
initscripts apparently tries to mount /run before calling swapon
2025-03-13ext2fs: Trap trying to access bogus data areasSamuel Thibault
i.e. superblock, block group descriptor table or beyond the end.
2025-03-13Revert "ext2fs: Fix failed assertion on ENOSPC"Samuel Thibault
This reverts commit 86ea895b1a208925dfc034fac22db2a512a3fab8. We are really not supposed to have failed to find the block here, it should have been allocated by pager_unlock_page already.
2025-03-08ext2fs: Fix failed assertion on ENOSPCSamuel Thibault
find_block ignores EINVAL errors, we need to reconstruct it
2025-03-05libdiskfs: Fix using unitialized value on renameSamuel Thibault
2025-03-05libpipe: Do not split writes on dgrem and seqpack pipesSamuel Thibault
They really should not be split for the application, and really should not be queued several times because otherwise we would record the source several times and get a reference miscount.
2025-03-05libpipe: Introduce pipe_wait_writable_amountSamuel Thibault
2025-03-05libpipe: Do not optimize reading pipe->write_limitSamuel Thibault
It may have changed while sleeping.
2025-02-28pfinet: Fix spurious EINTR errors from selectv0.9.git20250304Samuel Thibault
While sleeping in pthread_hurd_cond_timedwait_np, current->signal will be overwritten by the management of other RPCs, so we have to give it some value on wake up. Also, if we previously got interrupted, we shouldn't ever try to wait again until exiting from the RPC: an interrupt means we really want to try hard to finish the RPC. Thanks Zhaoming Luo <zhmingluo@163.com> for the deep investigation and draft!
2025-02-28procfs: Fix meminfo computationSamuel Thibault
For >4G size we need to force 64bit computation on 32bit systems.
2025-02-24libdiskfs: Avoid putting ref of NULL pointerSamuel Thibault
E.g in the "Negative lookup cached." error case, diskfs_lookup clears NP, so we would segfault.
2025-02-10Allow compilation with -O0Flavio Cruz
* libshouldbeinlibc/lcm.c: make gcd static since it's not exposed as a symbol. * pfinet/linux-src/net/ipv4/{tcp,udp}_ipv4.c: Drop inline from lookup functions 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 symbol. Message-ID: <nmok54owdbglalqkw2ky76jzvn4vvyybpqtftruzhpixcsx7fo@jbphrribcxq5>
2025-02-09swapon: Auto-start mach-defpagerSamuel Thibault
Which allows not to start it unless swap is configured, so Mach can know when it is not and avoid trying to use a default memory manager.
2025-02-09proc: support mach_cpu_subtypes only on i386Samuel Thibault
It's "supported" only there for now.
2025-02-09Restring default_pager_paging_storage to i386Samuel Thibault
Newer ports won't have it either.
2025-02-09mach-defpager: Move default_pager_exception_port declaration to headerSamuel Thibault
2025-02-08Add names to threadsSamuel Thibault
2025-02-08term: Make term_getctty() accept pty_classZhaoming Luo
The term_getctty() should accept pty_class. The vim testsuite expects the master side to say isatty(). See https://mail.gnu.org/archive/html/bug-hurd/2025-02/msg00061.html * term/users.c: The term_getctty() accepts pty_class Message-ID: <20250208103220.853-1-zhmingluo@163.com>
2025-02-05rumpdisk: Call thread_wire in all our threadsSamuel Thibault
So the kernel gives us vm_privilege so we can work even when memory is getting low.
2025-02-04mach-defpager: comment on improving on lost dataSamuel Thibault
Instead of killing the whole object.
2025-02-04mach-defpager: also warn only once about read errorsSamuel Thibault
2025-02-04mach-defpager: Make it print warnings on out-of-swapSamuel Thibault
To give explanation to processes suddenly crashing with SIGBUS.
2025-02-04libdiskfs: Check for EROFS on io_prenotify and io_write tooSamuel Thibault
This avoids Assertion `!diskfs_readonly' failed. messages at shutdown.
2025-02-04Fix buildSamuel Thibault
2025-02-04libpipe: crash verbosely if mmap was to failSamuel Thibault
2025-02-03rumpdisk: Also link libirqhelp inSamuel Thibault
Next rumpkernel upload will use it.
2025-01-27procfs: Fix coding styleSamuel Thibault
2025-01-27Add partial /proc/cpuinfo implementationDiego Nieto Cid
* procfs/rootdir.c: (rootdir_gc_cpuinfo) new function (rootdir_entries) add entry for cpuinfo file (cpuinfo_x86, cpuinfo_aarch64) implementations for x86 and aarch64 respectively.
2025-01-17libdiskfs: Avoid crashing on system shutdownSamuel Thibault
when processes which were upgraded didn't get restarted, and stop after making the filesystem readonly.
2025-01-12typoSamuel Thibault
2025-01-12rumpusbdisk: Link completely to scsipi libraryDamien Zammit
The usb stack also uses SCSI emulation for usb mass storage. Message-ID: <20250111082129.1566079-1-damien@zamaudio.com>