summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-08-27Sync example with current databases/postgresql flagsAdam Wolk
OK sthen@, pea@
2019-08-27Fix HSET4 and HCLR4 macros; I shouldn't make last-minute changes withoutMark Kettenis
actually testing them.
2019-08-27syncJoshua Stein
2019-08-27add ethernet found on Lenovo USB-C DockJoshua Stein
2019-08-27syncTheo de Raadt
2019-08-27syncStuart Henderson
2019-08-27disable base-gcc on i386, from daniel@, ok deraadtStuart Henderson
2019-08-27Keep ieee80211_node structures cached across scans, rather thanStefan Sperling
wiping the entire cache every time a scan is triggered. This has benefits for userland programs trying to look at scan results, and for drivers which don't get a full view from hardware on every scan. Nodes will still be evicted from the cache in one of several ways: Add a new way of timing out inactive nodes which don't send a beacon within 10 scan iterations, for client mode only. This should get rid of stale APs if we're scanning for some time in a changing environment. If we fail to associate a few times, the corresponding node is removed. If net80211 transitions back to INIT state (e.g. because of a user-initiated configuration change) all nodes are removed. When a background scan starts all nodes will be removed. This could be revisited later but has been intentionally left as-is for now. Tested by myself, jmc@, benno@, procter@ on iwm(4), athn(4) and ral(4).
2019-08-27Refactor probing logic to mirror detach logic. i.e. put smarts inKenneth R Westerback
scsi_probe() and make scsi_probe_bus(), scsi_probe_target() and scsi_probe_lun() simple wrappers around scsi_probe(). Abstract the determination of which luns to probe into a separate function. Thus eliminating the need to remove/add lun 0 link while probing devices modern enough to support REPORTLUNS. Which means the lun 0 link is no longer in different positions in the scsi_link list for such devices compared to older devices which are blindly probed until an invalid LUN is encountered.
2019-08-27g77 is not a valid MODFORTRAN_COMPILER any moreJeremie Courreges-Anglas
2019-08-27Add imxtmu(4), a driver to support the temperature sensors onPatrick Wildt
the i.MX8M SoCs. ok kettenis@
2019-08-27have a go at printing more monitoring information.David Gwynne
this is a bit rough, but a good start. apart from the media types and length, qsfp support should be on par with sfp modules now.
2019-08-27Error paths in radeondrm(4) call unregister_acpi_notifier() unconditionallyMark Kettenis
so check whether a notifier is on the list before trying to remove it. Fixes a crash found by semarie@. ok semarie@
2019-08-27document OCSP_parse_url(3)Ingo Schwarze
2019-08-27document OCSP_cert_status_str(3)Ingo Schwarze
2019-08-27document OCSP_response_status_str(3)Ingo Schwarze
2019-08-27amlclock(4)Mark Kettenis
2019-08-27amlclock(4)Mark Kettenis
2019-08-27amclock(4), a driver for the Amlogic SoC clocks. For now this implementsMark Kettenis
a tiny number of clocks for the G12A/B families only. ok jsg@
2019-08-27Better error reporting on malformed packets.Martijn van Duren
2019-08-27don't check the page number was set correctly.David Gwynne
there are some extremely terrible modules out there that violate specs badly. some SFP+ DACs i have don't support page switching, and always report page 0xff. let userland look at them anyway.
2019-08-27use m_getptr to get to the right mbuf and offset for the ttl in mpls_gettl.David Gwynne
problem found by and this fix was tested by groos at xiplink dot com on bugs@
2019-08-27make SIOCGIFSFFPAGE support QSFP modules better.David Gwynne
basically the "read phy register" admin op uses the "address" field on SFP modules for the i2c address, but uses that same field for the "sff page number" for QSFP. this wraps the calls to the admin op with sfp and qsfp specific code, and chooses between them depending on what type of phy the fw reports. tested by me and jmatthew@ pretty hard
2019-08-27make a start at reporting qsfp monitor values.David Gwynne
i have some qsfp DACs and a couple of optics, and they're all terrible, so this is about as far as i can go for now. at least the code will be robust in the face of terrible modules though. the DACs are pretty dumb and basically report that they're DACs with some strings. this code just prints that they're DACs with strings now. modules are supposed to be able to report overall temperature and voltage, and optics can report tx and rx values for the 4 different signal lanes they're supposed to provide. interestingly the current values are always reported in the lower page, but thresholds are reported in page 3, but not all modules support page switching. devices are supposed to say whether they can switch pages, but i have one that does say it can switch but then doesn't. anyway, the take away is that it is therefore possible for a module to report values without also reporting thresholds. this sets the code up to report the values on their own if we can't query page 3 for any reason. if the temp sensor value looks bogus (ie, 0x0000 or 0xffff), assume the monitor values are bogus and bail early. hopefully i can find a module soon that supports multiple signal lanes and actually reports their values and thresholds for them.
2019-08-26replace a mmap() with pread(). The mmap() is not needed, the file isSebastian Benoit
read sequentially anyway, (hash-sized) block by block. This avoids counting potentially large files against the memory limits of the process. Problem reported by Jan Stary, thanks. ok deraadt@
2019-08-26syncTheo de Raadt
2019-08-26When a thread tries to exclusively lock a vnode, the same thread mustanton
ensure that any other thread currently trying to acquire the underlying vnode lock has observed that the same vnode is about to be exclusively locked. Such threads must then sleep until the exclusive lock has been released and then try to acquire the lock again. Otherwise, exclusive access to the vnode cannot be guaranteed. Thanks to naddy@ and visa@ for testing; ok visa@ Reported-by: syzbot+374d0e7e2400004957f7@syzkaller.appspotmail.com
2019-08-26Fix file descriptor leak due to popfile() never closing the main config file.tobhe
The fix is the same as for other parse.y files in the tree (see bgpd(8) or unwind(8)) ok bluhm@
2019-08-26free(3) style functions should accept NULL and do nothingpamela
OK florian
2019-08-26Do not use the flow of the first fragment to store ECN information.Alexander Bluhm
Handle the ECN in the fragment queue. Reported-by: syzbot+0aa80b25e9041001cac8@syzkaller.appspotmail.com fix from FreeBSD; OK claudio@
2019-08-26Fix file descriptor leak in config parser. Inspired by bgpd parse.y.tobhe
ok patrick@
2019-08-26Fix swap-window -d to work as intended, GitHub issue 1879 from Sam Stuewe.Nicholas Marriott
2019-08-26Adjust umb DNS printing code since the type of those addresses changed.Claudio Jeker
OK gerhard@
2019-08-26Replace umb_ntop() with sockaddr_ntop() which does almost the same thing.Claudio Jeker
Also change the storage type for the DNS addresses to struct in_addr since that is more convinient for userland. This includes some minor other cleanup. OK gerhard@
2019-08-26document i2a_ASN1_INTEGER(3)Ingo Schwarze
2019-08-26Remove rdtsc macro.Paul Irofti
This is legacy code and was probably used instead of the desried inline'd function in cpufunc.h. OK deraadt@, kettenis@.
2019-08-26document ASN1_put_object(3) and ASN1_put_eoc(3)Ingo Schwarze
2019-08-26Remove unnecessary retrieval of the GPC regmap. We don't need it sincePatrick Wildt
the imxgpc(4)'s power domain framework will take care of the registers and thus dwpcie(4) hasn't touched the registers itself anyway. ok kettenis@
2019-08-26remove some debug cruft that i should have removed after the addr64 stuffDavid Gwynne
2019-08-26remove redundant assignment to ic_curmodeStefan Sperling
This assignment to ic_curmode is redundant because it already occurs inside ieee80211_setmode(), and channel information in selbs and ni is equivalent after node_copy(). ok mpi@ kevlo@
2019-08-26amlreset(4)Mark Kettenis
2019-08-26Add amlreset(4), a driver to support reset signal controller blocks onMark Kettenis
Amlogic SoCs. ok patrick@
2019-08-26Implement GPIO hogging.Mark Kettenis
ok patrick@
2019-08-26pf.conf "set timeout interval 1" causes kernel crashAlexandr Nedvedicky
(bug reported and fix tested by Kor) ok kn@
2019-08-26amluart(4)Mark Kettenis
2019-08-26Add amluart(4), a driver for the UARTs found on various Amlogic SoCs.Mark Kettenis
ok jsg@
2019-08-26document ASN1_OCTET_STRING_cmp(3), ASN1_OCTET_STRING_dup(3), andIngo Schwarze
ASN1_OCTET_STRING_set(3)
2019-08-26also pass the signature styleMarc Espie
2019-08-25syncTheo de Raadt
2019-08-25Change generating and checking of primes so that the error rate ofIngo Schwarze
not being prime depends on the intended use based on the size of the input. For larger primes this will result in more rounds of Miller-Rabin. The maximal error rate for primes with more than 1080 bits is lowered to 2^-128. Patch from Kurt Roeckx <kurt@roeckx.be> and Annie Yousar via OpenSSL commit feac7a1c Jul 25 18:55:16 2018 +0200, still under a free license. OK tb@.