summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-06-19syncTheo de Raadt
2020-06-18check public host key matches private; ok markus@ (as part ofDamien Miller
previous diff)
2020-06-18avoid spurious "Unable to load host key" message when sshd can load aDamien Miller
private key but no public counterpart; with & ok markus@
2020-06-18pass the mbuf with the data separately to the one with the pkthdr to mtap.David Gwynne
this lets things calling bpf_mtap_hdr and related functions also populate the extended bpf_hdr with the rcvif and prio and stuff.
2020-06-18add $OpenBSD$ tagsDavid Gwynne
2020-06-18extend the bpf_hdr struct to include some metadata if available.David Gwynne
the metadata is set if the mbuf is passed with an m_pktrhdr, and copies the mbufs rcvif, priority, flowid. it also carries the direction of the packet. it also makes bpf_hdr a multiple of 4 bytes, which simplifies some calculations a bit. it also requires no changes in userland because libpcap just thinks the extra bytes in the header are padding and skips over them to the payload. this helps me verify things like whether the stack and a network card agree about toeplitz hashes, and paves the way for doing more interesting packet captures. being able to see where a packet came from as it is leaving a machine is very useful. ok mpi@
2020-06-18AST handling.Mark Kettenis
2020-06-18Cache kernel SLB entries in per-CPU struct and restore them uponMark Kettenis
kernel entry.
2020-06-18- tweak pcamux.4 textJason McIntyre
- Phillips -> Philips ok kettenis
2020-06-18Fix handling of short EAP-MSCHAP messages.tobhe
ok patrick@
2020-06-18pcamux(4)Mark Kettenis
2020-06-18Add pcamux(4), a driver for the PCA8548 I2C switch.Mark Kettenis
ok patrick@
2020-06-18BCM5719 A1 seen in the wild.Mark Kettenis
dlg@, deraadt@, mpi@
2020-06-18uint8_t is a discrete, not a continuous type,Ingo Schwarze
and some other wording improvements with respect to types; OK ratchov@
2020-06-18Refuse to set 0 or a negative value for net.inet.tcp.synbucketlimit.Martin Pieuchot
Prevent a panic in syn_cache_insert() found by syzbot. Reported-by: syzbot+aee24ad9b7bf5665912d@syzkaller.appspotmail.com ok sashan@, anton@, millert@
2020-06-18Many of these functions have several arguments, and some argumentsIngo Schwarze
are very long (function pointers), such that a number of input lines in the SYNOPSIS do not fit into 80 columns. Consequently, consistently use .Fo/.Fa/.Fc rather than .Fn for better readability of the source code. Mechanical diff, no output change.
2020-06-18basic macro cleanup, and reword two phrases about closed intervalsIngo Schwarze
of integers for clarity and to read better; one of the issues (abuse of .Sm) was originally reported by jmc@; ok jmc@ ratchov@
2020-06-18Combine and replace duplicated code in pipex(4) and pppx(4) by new functionsmvs
listed below. - pipex_init_session() to check request and alloc new session. - pipex_link_session() to link session to pipex(4) layer. - pipex_unlink_session() to unlink session from pipex(4) layer. - pipex_rele_session() to release session and it's internal allocation. ok mpi@
2020-06-18Compare `so' and `sosp' types just after `sosp' obtaining. We can't splicemvs
sockets from different domains so there is no reason to have locking and memory allocation in this error path. Also in this case only `so' will be locked by solock() so we should avoid `sosp' modification. ok mpi@
2020-06-18Introduce stoeplitz_hash_n32() and use it to simplify the hash_ip*Theo Buehler
functions further. ok dlg
2020-06-18avoid -Wpointer-compare warning which broke build with clang 10Jonathan Gray
2020-06-18Add test that splicing inet and unix sockets. This test should be abortedmvs
with EPROTONOSUPPORT. ok mpi@
2020-06-18The same simplification can be done a second time: widen the type,Theo Buehler
xor laddr and faddr and the ports together and only then fold the 32 bits into 16 bits. ok dlg
2020-06-18Apply rules to the number of events returned by the last read(2).Martin Pieuchot
Fix a corner case where old events could be re-evaluated. From Yuichiro NAITO.
2011-04-24Here comes the easter bunnytils 2.17 (the last version released against aMiod Vallat
licence mere mortals can understand the terms of); will be connected to the build on an arch-by-arch basis. Testsuites and generated files have been intentionnaly omitted from this import. Peer pressure and ok from at least drahn@ pirofti@ deraadt@
2020-06-18Fix a bunch of typos in various man pages.Frederic Cambus
2020-06-18Enable bwfm(4) on armv7 RAMDISK for SD/MMC and USB devices.Frederic Cambus
OK patrick@
2020-06-18The redraw callback could be fired with a NULL pane if it updates whileNicholas Marriott
in a mode, problem reported by Martin Vahlensieck.
2020-06-18Add a flag to make a client wait for an empty line before exiting inNicholas Marriott
control mode to avoid stray commands ending up in the shell.
2020-06-18Add entry for wsfont_init.9 in man9 Makefile.Frederic Cambus
OK deraadt@, jmc@, mpi@
2020-06-18Now that the calls to stoeplitz_cache_entry() are out of the way, we canTheo Buehler
ditch half of the calculations by merging the computation of hi and lo, only splitting at the end. This allows us to leverage stoeplitz_hash_n16(). The name lo is now wrong. I kept it in order to avoid noise. I'm going to clean this up in the next step. ok dlg
2020-06-18Check control types and skip unknown ones.Alexandre Ratchov
2020-06-18Allow names to start with digits or underscoresAlexandre Ratchov
2020-06-18Don't try to open device that's already openAlexandre Ratchov
Save the current alternate device index and skip it in dev_reopen(). Handling alternate device indices this way will ease future development as well.
2020-06-18Document sioctl_desc structure maxval attributeAlexandre Ratchov
2020-06-18Fix comments about sioctl_desc's maxval fieldAlexandre Ratchov
2020-06-18The next step is to use that we have cached the result of the matrixTheo Buehler
multiplication H * val in stoeplitz_cache_entry(scache, val), so the identity (H * x) ^ (H * y) == H * (x ^ y) allows us to push the calls to the cache function down to the end of stoeplitz_hash_ip{4,6}{,port}(). The identity in question was also confirmed on amd64, sparc64 and powerpc for all possible values of skey, x and y. ok dlg
2020-06-17Fix broken HID descriptors of Elecom trackballs.Ulf Brosziewski
The report descriptors specify an invalid button count for models with 6 or 8 buttons. Thanks to Sivaram Gowkanapal, who provided the core of this patch. ok mpi@
2020-06-17Print CPU name and cache info in the same way as we do on arm64.Mark Kettenis
2020-06-17Manually tag the section option.Ingo Schwarze
Automatic tagging does not work because the [-s] flag is optional. Patch from Martin Vahlensieck.
2020-06-17Fix length check in ca_getreq().tobhe
ok patrick@
2020-06-17More pmap bits, mostly from powerpc andd arm64.Mark Kettenis
2020-06-17Instead of performing three distinct allocations per created pipe,anton
reduce it to a single one. Not only should this be more performant, it also solves a kqueue related issue found by visa@ who also requested this change: if you attach an EVFILT_WRITE filter to a pipe fd, the knote gets added to the peer's klist. This is a problem for kqueue because if you close the peer's fd, the knote is left in the list whose head is about to be freed. knote_fdclose() is not able to clear the knote because it is not registered with the peer's fd. FreeBSD also takes a similar approach to pipe allocations. ok mpi@ visa@
2020-06-17Explicitly unmap DMA memory using pmap_kremove(9).Mark Kettenis
2020-06-17We are no longer using the "keep" file as a flag.Florian Obser
Pointed out by Martin Vahlensieck, thanks!
2020-06-17needs param.h, not types.hTheo de Raadt
2020-06-17Document that rand() returns non-deterministic random numbers unless aTim van der Molen
seed is explicitly set. OK millert@
2020-06-17Expose SMR list and pointer macros to userspace. This enables the useVisa Hankala
of SMR lists in userspace-visible parts of system headers. In addition, the macros allow libkvm to examine SMR data structures. Initial diff by and OK claudio@
2020-06-17ddb(4); be explicit that the parameter to trace /t uses the radixStuart Henderson
prefix, and show how to use 0t for decimal (slight duplication from the table in EXPRESSIONS but easier for the reader than sending them off to look in a different part of the manual). ok mpi claudio jmc
2020-06-17Remove the bus specific sc_ih (interrup handle) variable and use the commonClaudio Jeker
sc_ih value of struct rl_softc. This fixes a crash in re(4) because intr_barrier(9) is called with the rl_softc sc_ih which was NULL. OK kettenis@