summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-06-18Import compiler warnings and bugfixes from Charles.Ori Bernstein
This change imports a few warnings and minor fixes from Charles branch here: https://bitbucket.org/plan9-from-bell-labs/plan9. The changes included here: changeset: 1374:9185dc017be0 summary: declare castucom; move a declaration into order; use cast instead of ULL suffix changeset: 1353:5fe8380b1818 summary: supporting functions: 1. castucom to match unlikely mask operation; 2. be sure to snap both sides of pointer subtraction completely; 3. add extra operators as side-effect free changeset: 1352:90058c092d66 summary: 1. correct result type for mixed-mode assignment operators 2. detect divide by zero (erik); 3. detect masks misformed by sign-extension; 4. diagnose mixed old/new prototypes
2019-06-18mergecinap_lenrek
2019-06-188c, 6c: fix INDEX node #reg calculationcinap_lenrek
2019-06-17Delete dead code.Ori Bernstein
Nothing is using (or even building) bound.[ch]
2019-06-17rc-httpd: set charset=utf-8 for all text/* content typesAlex Musolino
2019-06-17rc-httpd: only emit charset option for text/plain content typeAlex Musolino
2019-06-16Add test for pow.cOri Bernstein
2019-06-16Handle NaN and Inf edge cases as specified by posix, instead of barfing.Ori Bernstein
We're not a posix system, but the posix spec is a good reference for what we should do. Thanks Geoff for the inspiration for this patch.
2019-06-14mergecinap_lenrek
2019-06-14devdtracy: make machlocks and dtktab staticcinap_lenrek
2019-06-14bcm64: implement dtracy supportcinap_lenrek
2019-06-11vmx(1): update BUGSaiju
2019-06-11snoopy(8): add support for dhcp classless static routes optionAlex Musolino
To complement the new cl-routes field, the bootp static routes option has been renamed to cf-routes and the network/gateway pairs are separated with a right arrow.
2019-06-11snoopy(8): avoid extra spaces in dhcp filter outputAlex Musolino
2019-06-11snoopy(8): include dhcp.h instead of replicating bootp/dhcp options enumAlex Musolino
2019-06-08file(1): recognise unified diff outputAlex Musolino
2019-06-05rc-httpd(8): avoid duplicate log output in dir-index handlerAlex Musolino
Delay calling do_log until just before emitting the response. This avoids calling do_log before potentially handing control to the static-index handler, which also calls do_log.
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.