summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-05-19libip: open temporary file-descriptors with OCEXEC flagcinap_lenrek
2023-05-19devip: don't leak temporary buffers on errorcinap_lenrek
when reading the status files from a conversation, ipread() allocates a temporary buffer and calls the protocols generator to fill the buffer and the calls readstr() to handle the read request. if the generator or readstr() erors, we must free the temporary buffer. also, allocate a more reasonable size for the "local" and "remote" strings. allocating and zeroing 32K big buffers for them is excessive.
2023-05-19devip: rlock ifc before accessing interface parameters in ipifcstate()cinap_lenrek
2023-05-187l, 7c: Remove STLP(W), finish LDAXR(W)/STLXR(W).Aidan K. Wiggins
2023-05-18git(1): fix quoting in .IRSigrid Solveig Haflínudóttir
2023-05-18last change did not include the header updateSigrid Solveig Haflínudóttir
2023-05-18libmach: fix reading .7 objects containing instructions with an extra ↵Sigrid Solveig Haflínudóttir
register (from3)
2023-05-18libaml: tow eisaid inside the environmentmia soweli
2023-05-17audio/flacdec: throw out decoded audio until finished seekingSigrid Solveig Haflínudóttir
2023-05-16vnc: fix farsi key symbolsmkf
2023-05-16devip: address some ipv6 issues on pkt interfacecinap_lenrek
relax the maclen check as v6 neighbour disicovery might give bigger buffers as the medium uses for the mac address size, as the packet does not contain exact byte count but rounds all the options to multiples of 8. drop neighbour discovery packets coming from interfaces with zero-length maclen. when dialing icmpv6 protocol with link-local address for the local ip address, filter any packets to it that come from a different interface. otherwise ipconfig would see router advertisements from other interfaces. fix the locking for ipifc ctl messages: properly acquire the wlock and check that the interface is still bound for every ctl messages touching the interface. make add6 ipifc ctl message work for media with zero-length maclen by using the interface identier from pre-existing link-local address when available.
2023-05-167l: use floating point immediates where possibleSigrid Solveig Haflínudóttir
2023-05-16libmach: fixup for fmovT Fd,u(SP)Sigrid Solveig Haflínudóttir
2023-05-16libmach: add more floating point instructions decoding for arm64Sigrid Solveig Haflínudóttir
2023-05-157c: clean up the garbage in -S output, fix printing instructions using FCONSTSigrid Solveig Haflínudóttir
2023-05-15dhcp: fix out of bounds access in "ANDROID_METERED" fixcinap_lenrek
the previous change introduces a out of bounds access as it does not change n. it is also conceptually wrong because this routine is supposed to just verify the structure. as later getopts() is *NOT* going to deal with malfored TLV's. this actually replaces the android magic garbage with OBpad bytes, which getopts() later will handle correctly and makes sure the garbage is fully contained within the buffer boundaries. thanks sigrid for testing.
2023-05-15devip: maintain packet counters for pktmediumcinap_lenrek
2023-05-14dhcp: skip android junk optionsOri Bernstein
2023-05-147l: register offset loads/storesSigrid Solveig Haflínudóttir
2023-05-14ip/ppp: ipv6 support, cleanup routes, remove source filter, and morecinap_lenrek
establish ipv6 link-local addresses if supported. to get a full prefix, one would need to do dhcpv6 or using slaac configuration. this will come later. remove ipv4 default route on exit. maintain the entries in /net/ndb on ip change and also remove them on exit. dont filter source address, this should be done differently. fix various bugs in the option iteration loops. honour primary flag (it used to just ignore that and set it unasked in the code... what the hell...)
2023-05-147l: allow paired SIMD load/store, correct a few commentsSigrid Solveig Haflínudóttir
2023-05-135c, kc, qc: fix implicit return type of samaddrJacob Moody
The samaddr definitions in the other compilers have the return type marked correctly.
2023-05-13libauthsrv: readnvram: prompt for use of p9sk1 in nvram, with a default of noJacob Moody
By default by writing the p9sk1 key out in to nvram, factotum would read it and offer p9sk1 authentication for hostowner. This authentication will happen regardless of the authsrv configuration. This change makes readnvram ask if the user would like to use p9sk1 with a default of no.
2023-05-13libsec: add parentesis to squelch gcc warning in drawtermcinap_lenrek
not a bug, just make it easier to keep drawtem code and libsec in sync...
2023-05-13bcm64: move fpon()/fpoff() into l.scinap_lenrek
avoid dynamic code generating syswr() in the hot path...
2023-05-13imx8: move fpon()/fpoff() into l.scinap_lenrek
avoid the dynamic code generating syswr() in the hot path...
2023-05-12ftpfs: clarify usage and manpageVess Rebane
2023-05-12riow: add mod4+shift+q (delete current window)Sigrid Solveig Haflínudóttir
2023-05-11zynq: fix plcopy() source pointer incrementcinap_lenrek
2023-05-107l: rewrite Rl→REGTMP in the comment (thanks cinap)Sigrid Solveig Haflínudóttir
2023-05-10libmach/acid: add basic FP support for arm64Sigrid Solveig Haflínudóttir
2023-05-10ip/pppoe: aaand the code ;)cinap_lenrek
2023-05-10ip/pppoe: Handle termination request, add retry-forever (-r) optioncinap_lenrek
This implements a retry strategy (similar to ip/ipconfig -r), continuing to attempt to connect forever. Also handle termination request from the server.
2023-05-10ip/ppp: Implement echo request timeout, terminatecinap_lenrek
Send lcp echo request every 5 seconds and terminate if we do not get any reply after 12 seconds. On protocol termination, exit all the processes using a note and log a reason. Cleanup.
2023-05-107c, 7l: revert CASE change, fix linker clobbering offset if given the same ↵Sigrid Solveig Haflínudóttir
register twice
2023-05-09libmach: remove obsolete fishy case in mips header parsingJacob Moody
This code seems to be for the specific case of when mips 3000 binaries were being run on a mips 4000 kernel. As far as I know, our only current mips magic refers to the 5000 (at least), and the 4000 specific magic formats are mostly a relic. There is currently no bootable system in which this code path is correct. In any case, hardcoding /proc/1 is not the solution.
2023-05-09libc/arm64: sqrt() in assemblySigrid Solveig Haflínudóttir
2023-05-097c: peephole: ACASE needs two distinctive registers - nothing to optimizeSigrid Solveig Haflínudóttir
2023-05-097l: throw an error if CASE uses the same register for base and offset (CASE ↵Sigrid Solveig Haflínudóttir
R1, R1)
2023-05-095c, 7c: fix !x compilation when x is a negative floatSigrid Solveig Haflínudóttir
test case: void main(int, char **) { union { float f; u32int u; }x; x.u = 1U<<31; print("%d %d\n", !x.f, x.f == 0.0f); exits(nil); }
2023-05-067c: node offsets aren't necessarily 0 - fixup packed structsSigrid Solveig Haflínudóttir
2023-05-047c: copy the remainder of packed structsSigrid Solveig Haflínudóttir
2023-05-03mouse(2): not quite a typo (thanks Alex Musolino)Jacob Moody
commit a04fd342727c329584a9f443092caf21e3884bdf incorrectly changed the reference to eenter in event(2). The function in event(2) is in fact eenter, it does stutter.
2023-05-03disk/qcowfs: correct GET2 off by oneJacob Moody
2023-05-03diff: fix suicide if binary files don't diffJacob Moody
2023-05-03/lib/theo: The future doesn't get better if you demand backwards ↵sl
compatibility forever.
2023-05-03/sys/doc/nssec.ms: small grammar fixes (ok'd by moody)sl
2023-05-02fstype: add support for gefsMichael Forney
2023-05-01usbxhci: add some robustness checkscinap_lenrek
Add some checks in the interrupt handler to ensure that the slot and ring referred to by the event have been initialized. Also add a check in ctlrcmd() just in case we mess up the recovery and someone issues a ctlrcmd() after a failed xhciinit().
2023-05-01dossrv: better error handling and sanity checking in dosfs()cinap_lenrek
check error for devread() and do some sanity checking on the constants and dont leak the Dosbpb when error.