summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-01-21Replace more occurrences of OBJ_NAME_do_all_sorted() withTheo Buehler
OBJ_NAME_do_all()
2024-01-21update docs on madvise/msync/minherit behaviour in relation to immutable ↵Theo de Raadt
memory; ok kettenis
2024-01-21workaround for the static non-PIE instbin "instbin" program on the installTheo de Raadt
media is no longer needed, due to fix in libc/dlfcn/init.c thanks kettenis and gkoehler
2024-01-21Static non-PIE binaries always have a base address of 0 (even if the ELFMark Kettenis
headers start at a higher address). Using the wrong base address meant that we were protecting the wrong address range for the malloc internals which made the code error out now that mimmutable(2) no longer allows an RW->R transition. Issue found by gkoehler@ who got most of the way towards a proper fix. ok deraadt@
2024-01-21Add Xr mimmutable to manual pages which discuss immutable memory.Theo de Raadt
prodding from kettenis
2024-01-21For minherit(MAP_INHERIT_ZERO) upon readonly memory return EPERM.Theo de Raadt
ok kettenis
2024-01-21madvise(2) and msync(2) have some memory/mapping destructive ops which shouldTheo de Raadt
not be allowed upon immutable memory, instead return EPERM. Some of these ops are not destructive in OpenBSD, but they are destructive on other systems, so we take the "all ops" are illegal approach. Related to this, it should not be allowed to minherit(MAP_INHERIT_ZERO) immutable regions, or vice versa, calling mimmutable() upon MAP_INHERIT_ZERO regions, because such a range will be zero'd post-fork in the child. These now also return EPERM. Adjusting the madvise / msync behaviour upon immutable memory brings us closer to the behaviour of the mimmutable clone "mseal" being proposed by google for inclusion in Linux. ok kettenis
2024-01-21Add support for multiple matches in the component code.Mark Kettenis
ok jsg@
2024-01-21sync with userlandTheo Buehler
2024-01-21Sync with upstream as of Jan 20Theo Buehler
No change of compiled code: the bug fix in check_match() affects ZLIB_DEBUG builds only and the Z_ARG macro is unused.
2024-01-21sync with userlandTheo Buehler
2024-01-21libz: sync with upstream's develop branch as of Jan 18Theo Buehler
2024-01-21Define HAVE_HIDDEN for libzTheo Buehler
This adds the hidden visibility attribute to functions that are needed in multiple source files of the library but not part of the public API. This is technically a major bump, but that decided to be overkill. discussed with deraadt and millert
2024-01-21Print raw battery information if KB3310_DEBUG, not DEBUG. NFCMiod Vallat
2024-01-21Assert that inpcb table has correct address family.Alexander Bluhm
Since inpcb tables for UDP and Raw IP have been split into IPv4 and IPv6, assert that INP_IPV6 flag is correct instead of checking it. While there, give the table variable a nicer name. OK sashan@ mvs@
2024-01-21oops, brain scrambled trying to squeeze the ifdef into bad placeTheo de Raadt
2024-01-21some bizzare glitch related to ramdisk instbin static binaries, theirTheo de Raadt
mutable mapping is not working right, so temporarily bring back the RW -> R *only* for ramdisk kernels
2024-01-20vmm(4)/vmd(8)/vmctl(8): increase max VM mem size.Mike Larkin
MAXDSIZ was cranked to 128GB back in April 2023, but vmd(8) was limiting VM RAM size to the old value (32GB).
2024-01-20Better formatting for pax extended header timesJeremie Courreges-Anglas
As specified, don't include the subsecond part if zero and drop trailing zeros in the subsecond part. ok millert@
2024-01-20Early during mimmutable(2) development, we had a big problem with theTheo de Raadt
chrome v8_flags variable's placement in bss, and as a workaround made it possible to demote a mimmutable mapping's permissions from RW to R. Further mimmutable-related work in libc's malloc created the same problem, which led to a better design: objects could be placed into .openbsd.mutable region, and then at runtime their permission and immutability could be manipulated better. So the RW to R demotion logic is no longer being used, and now this semantic is being deleted. ok kettenis
2024-01-20AEXECVE can be removed, because pinsyscall SYS_execve detection hasTheo de Raadt
been deleted.
2024-01-20link the infcover test statically in preparation of zlib changesTheo Buehler
2024-01-20There are several DART variants; print some more details such that we canMark Kettenis
distinguish between them. Pay attention to the apple,dma-range property that tells us the desired DVA window. Add support for a new BUS_DMA_FIXED that allows use of bus_dmamap_load_raw(9) to map things at a pre-determined DVA. This last change is needed for the upcoming Apple KMS driver. Hopefully that is the only driver that will need this, so don't attempt to turn this into an MI feature. ok patrick@
2024-01-20Merge docs of crc32_combine_{gen,op} from zlib.hTheo Buehler
Also add two 'len2 must be non-negative.' from upstream looks good to jmc
2024-01-20Use imsg_get_fd() to access the fd passed via imsgs.Claudio Jeker
Most of the conversion is simple there is just log_imsg() that can no longer display the fd since imsg_get_fd() can only be called once. OK op@
2024-01-20Fetch touchpad dimensions from firmware here as well.Mark Kettenis
ok mlarkin@, tobhe@
2024-01-19Implement extent_alloc_region_with_descr(9) which is the equivalent ofMark Kettenis
extent_alloc_region(9) that uses a pre-allocated region descriptor. ok patrick@
2024-01-19remove the guts of pinsyscall(2), it just returns 0 now.Theo de Raadt
It has been made redundant by the introduction of pinsyscalls(2) which handles all system calls, rather than just 1.
2024-01-19More files to be blessed by the clean target.Miod Vallat
2024-01-19Make our mktemp(3) callback-driven and split into multiple files.Todd C. Miller
Previously, calling any of the mktemp(3) family would pull in lstat(2), open(2) and mkdir(2). Now, only the necessary system calls will be reachable from the binary. OK deraadt@ guenther@
2024-01-19ugly whitespaceTheo de Raadt
2024-01-19Implement Multiple Message MSI support on amd64. This is experimental codeMark Kettenis
to assist qwx(4) development. We may remove this code again at some point in the future. Multiple Message MSI has some serious design flaws, especially when combined with the APIC interrupt controller architecture. It was superseded by MSI-X. Unfortunately qwx(4) does not implement MSI-X. ok stsp@, deraadt@
2024-01-19Rename WSDISPLAY_TYPE_RKDRM to WSDISPLAY_TYPE_KMS such that we can use itMark Kettenis
for other generic KMS drivers. ok jsg@, matthieu@
2024-01-19_execvesize.c is no longer generated to support pinsyscall(SYS_execveTheo de Raadt
2024-01-19Move mktemp.c to stdlib where it belongs.Todd C. Miller
OK deraadt@
2024-01-19syncTheo de Raadt
2024-01-19M_PINSYSCALL is for pinsyscalls(2), not pinsyscall(2)Theo de Raadt
2024-01-19pinsyscall(SYS_execve) will soon go away, so the sys/acct.h bit AEXECVETheo de Raadt
can also be remove. Delete the code using it from the one program that inspects it.
2024-01-19Stop initializing pinsyscall(SYS_execve in dynamic binaries that containTheo de Raadt
a reference reaching the execve(2) stub. The new pinsyscalls(2) that applies to all system calls has made this redundant.
2024-01-19Stop initializing pinsyscall(SYS_execve in static binaries that containTheo de Raadt
an execve(2) stub. The new pinsyscalls(2) that applies to all system calls has made this redundant.
2024-01-19Enable shutdown regress test.Joel Sing
2024-01-19Add regress test coverage for SSL_shutdown().Joel Sing
This tests and codifies the behaviour of SSL_shutdown() with respect to SSL_quiet_shutdown() and SSL_set_shutdown(). For now, only the legacy stack (TLSv1.2) is tested, as there are currently some subtle differences with the TLSv1.3 stack.
2024-01-19add iwn(4) to arm64 GENERICMike Larkin
ok kettenis
2024-01-19Define the IPv6 related attributes from RFC 2865.YASUOKA Masahiko
2024-01-19consolidate pci and cardbus detach code, and have it detach kstats.David Gwynne
this solves one probably with an re(4) going away.
2024-01-19Add TSO support. Previous commit fixed up a bug that could only beJonathan Matthew
triggered with TCP socket splicing and TSO, and with that fixed, it works reliably. tested by hrvoje, jan@, mbuhl@, bluhm@, feedback from jan@ and bluhm@, ok jan@ mbuhl@ bluhm@
2024-01-19Unify inpcb API for inet and inet6.Alexander Bluhm
Many functions for IPv4 call their IPv6 counterpart if INP_IPV6 is set at the socket's pcb. By using the generic API consistently, the logic is not in the caller it gets more readable. OK mvs@
2024-01-19Backout priterator() for walking allprocess list.Alexander Bluhm
This approach does not work as LIST_NEXT() of a removed element does not return NULL. I causes a crash in syzcaller and triggers kernel diagnostic assertion "vp->v_uvcount == 0" in sys/kern/kern_unveil.c line 845 during reboot. Unfortunately the backout brings back the race in fill_file() and fstat(1) may crash the kernel. Reported-by: syzbot+54fba1c004d7383d5e85@syzkaller.appspotmail.com
2024-01-18the warning about syscall going away is a bit dated now.Theo de Raadt
ok miod tb
2024-01-18ec_point_conversion: zap an empty lineTheo Buehler