summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-06-04Remove trailing whitespace.Ori Bernstein
2019-06-04Lost a trailing \nOri Bernstein
2019-06-04Make 'g' grep recursively by default.Ori Bernstein
2019-05-31plumber: loop will go out of bounds when *++s == '\0'; replace with strstrBurnZeZ
2019-05-27ssh: work around github.com's broken cipher negotiation code (thanks Ori_B)cinap_lenrek
key exchange with git@github.com fails as they appear to try to negotiate a mac algorithm even tho we use an AEAD cipher which does not use a mac algorithm. the work around is to supply a dummy mac algorithm that they can negotiate to make them happy.
2019-05-24/sys/src/cmd/mkfile: fix PCONLY exclude (thanks stefan)cinap_lenrek
2019-05-24awk: no need to call getargv() twice to get the value for FILENAMEcinap_lenrek
2019-05-24gs: fix missing type check in ztype (thanks jsmoody)cinap_lenrek
to reproduce: gs <<. null [[][][][][][][][][][][][][][][]] .type .
2019-05-23gs: apply fixes for CVE-2018-16509 (thanks jsmoody)cinap_lenrek
2019-05-22devip: if the server does not support TCP ws option, disable window scaling ↵cinap_lenrek
(thanks joe9) if the server responds without a window scale option in its syn-ack, disable window scaling alltogether as both sides need to understand the option.
2019-05-20upas/fs: remove read timeout via alarm(2) in pop3respAlex Musolino
The alarm note is not handled by upas/fs, so if and when it did fire, the pop3 client process would terminate rendering the entire fs unresponsive.
2019-05-19vmx: handle build arch exclude in /sys/src/cmd/mkfilecinap_lenrek
2019-05-19bcm, bcm64: fix cache operations for dma and emmccinap_lenrek
always clean AND invalidate caches before dma read, never just invalidate as the buffer might not be aligned to cache lines... we have to invalidate caches again *AFTER* the dma read has completed. the processor can bring in data speculatively into the cache while the dma in in flight.
2019-05-18sshnet(4): ... and incoming TCP callscinap_lenrek
2019-05-17mergecinap_lenrek
2019-05-17bcm64: remove unneccesary tlb flush on mmuidmap()cinap_lenrek
2019-05-17bcm64: no need to flush instruction cache when switching TTBR0cinap_lenrek
2019-05-17bcm64: switch to 64k page sizecinap_lenrek
2019-05-177l: don't hardcode 4k pagesize, use INITRNDcinap_lenrek
2019-05-17mergecinap_lenrek
2019-05-17mkone: fix man target (thanks Amavect)cinap_lenrek
Amavect wrote: > mkone and mkmany have backwards targets for installing man pages. > This patch makes 'mk man' actually work for mkfiles that include mkone. > mkmany is not easily fixed without breaking changes. > It may go without saying that external repos should write their own mkfiles.
2019-05-15draw(3): memlorigin23hiro
2019-05-15bcm64: generalize mmu codecinap_lenrek
make user page table list heads arrays so we can index into the right level avoiding the special cases for differen PTLEVELS.
2019-05-15bcm64: fix mmu0clear() mistake from previous commitcinap_lenrek
2019-05-14nusb(2): remove startdevs() reference, document getdev() (thanks BurnZeZ)cinap_lenrek
2019-05-13bcm: add cache invalidate before accessing prop buffercinap_lenrek
2019-05-13bcm64: implement reboot supportcinap_lenrek
2019-05-13bcm, bcm64: preserve memsize across reboots, avoid trashing atags while ↵cinap_lenrek
parsing cmdline we override atag memory on reboot, so preserve the memsize learned from atag as *maxmem plan9 variable. the global memsize variable is not needed anymore. avoid trashing the following atag when zero terminating the cmdline string. zero memory after plan9.ini variables.
2019-05-12devip: do not lock selftab in ipselftabread(), remove unused fields from Ipselfcinap_lenrek
the Ipselftab is designed to not require locking on read operation. locking the selftab in ipselftabread() risks deadlock when accessing the user buffer creates a fault. remove unused fields from the Ipself struct.
2019-05-11memdraw(2): remove references to iprint()BurnZeZ
2019-05-11devip: reset speed and delay on bind, adjust burst on mtu change, ifc->m nil ↵cinap_lenrek
check, consistent error strings initialize the rate limits when the device gets bound, not when it is created. so that the rate limtis get reset to default when the ifc is reused. adjust the burst delay when the mtu is changed. this is to make sure that we allow at least one full sized packet burst. make a local copy of ifc->m before doing nil check as it can change under us when we do not have the ifc locked. specify Ebound[] and Eunbound[] error strings and use them consistently.
2019-05-11devip: make sure ifc is bound in add6 ctl commandcinap_lenrek
2019-05-11devip: remove unused c->car qlock, avoid potential deadlock in ↵cinap_lenrek
ipifcregisterproxy() remove references to the unused Conv.car qlock. ipifcregisterproxy() is called with the proxy ifc wlock'd, which means we cannot acquire the rwlock of the interfaces that will proxy for us because it is allowed to rlock() multiple ifc's in any order. to get arround this, we use canrlock() and skip the interface when we cannot acquire the lock. the ifc should get wlock'd only when we are about to modify the ifc or its lifc chain. that is when adding or removing addresses. wlock is not required when we addresses to the selfcache, which has its own qlock.
2019-05-11devip: avoid media bind/unbind kproc reader startup race, simplify etherbindcinap_lenrek
mark reader process pointers with (void*)-1 to mean not started yet. this avoids the race condition when media unbind happens before the kproc has set its Proc* pointer. then we would not post the note and the reader would continue running after unbind. etherbind can be simplified by reading the #lX/addr file to get the mac address, avoiding the temporary buffer.
2019-05-11timezones: add India (thanks joe9)23hiro
2019-05-10bcm64: use exclusive monitor on nrdy to wake up idlehands()cinap_lenrek
when the exclusive monitor is cleared, a event is generated which we can use to wake up idlehands. that way we do not need to wait for the next timer interrupt until a cpu takes work from the run queue.
2019-05-10ape: fix malloc to deal with more than 4GB of memory on 64 bit systemscinap_lenrek
2019-05-09libc: fix return value for arm64 memset() and memove()cinap_lenrek
2019-05-09libc: use MOVP instruction for arm64 memmove() and memset()cinap_lenrek
2019-05-09bcm64: use MOVP instruction for saving and restoring registerscinap_lenrek
2019-05-09libmach: remove newlinecinap_lenrek
2019-05-09libmach: support for MOVP instruction disassembly for arm64cinap_lenrek
2019-05-097l: implement MOVP instructioncinap_lenrek
2019-05-09libc: provide arm64 assembly versions for memmove() and memset()cinap_lenrek
just a first approximation, uses unaligned 8 byte loads and stores. MOVP not yet implemented by the linker. no ZVA cache magic yet.
2019-05-09bcm64: map framebuffer write-through to allow unaligned accesscinap_lenrek
2019-05-07wadfs: avoid comma operator after PBIT32() macroscinap_lenrek
2019-05-07plan9.ini(8), boot(8): clarify the use of $rootdir and $rootspeccinap_lenrek
2019-05-07nusb/usbd: work around devices that ignore the high byte of wLength in ↵cinap_lenrek
control transfer reads there appear to be devices out there such as Realtek RTL2838UHIDIR SDR that do not process control transfers correctly, ignoring the high byte of the wLength field. to work around this, we specify an odd number of bytes for read sizes >= 256 which keeps the low byte 0xFF.
2019-05-06Sand edges down on GBIT64()/PBIT64() macros.Ori Bernstein
Now, you can safely use them in unbraced if statements, and with char*s.
2019-05-06mergecinap_lenrek