summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-22sensorsd(8) reported an unveil failure due to chdir / . CallAlexander Bluhm
chdir(2) before unveil(2). Use absolute config path after chdir, also necessary for SIGHUP. /etc/sensorsd.conf.db must be unveiled, cgetent(3) tries to open it. OK beck@
2020-07-22build bsd.mp (issues remain, but doing the build effort is valuable already)Theo de Raadt
2020-07-22syncTheo de Raadt
2020-07-22create /dev nodes for sparc64 and powerpc console, so that dev_mkdbTheo de Raadt
will find them, and devname() in various programs won't return "??" ok kettenis
2020-07-22Add a few missing elocations.Mark Kettenis
ok jasper@
2020-07-22console marker should be after :Theo de Raadt
2020-07-22Add missing CVS tags.tobhe
ok patrick@
2020-07-22Avoid running out of memory with query-replace-regex ^Theo Buehler
Choosing ! (replace rest) never advances beyond the current line and keeps inserting the replacement test, and mg eventually runs out of memory. Patch from Mark Willson with minor stylistic tweaks. Looks good to Hiltjo Posthuma who would have preferred making forward replacing on empty lines work. Mark argued that this makes it behave consistently with the current behaviour when searching for ^ and the point at the beginning of a non-empty line in which case the cursor does not move either. Also tested by krw
2020-07-22Prevent mg segfault with query-replace-regex replacing ^Theo Buehler
Patch from Mark Willson with a minor tweak
2020-07-22Nuke unused struct scsi_link members of adapter softc's where theKenneth R Westerback
driver successfully compiles on one or more of amd64, i386, hppa.
2020-07-22Remove debugging printf in critical section. This doesn't play well withMark Kettenis
the hash lock on MULTIPROCESSOR kernels.
2020-07-22regenJonathan Gray
2020-07-22add Intel AX200 BluetoothJonathan Gray
2020-07-22Add missing mplock.h file.Mark Kettenis
2020-07-22regenJonathan Gray
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-07-22add devices found in Inspiron 5505 dmesg from jmc@Jonathan Gray
2020-07-22gc some ifmedia stuff that this driver doesnt use.David Gwynne
no functional change.
2020-07-22Use CPU_IS_PRIMARY macro in identifycpu() on i386.Frederic Cambus
2020-07-22Use CPU_IS_PRIMARY macro in cpuattach() on mips64.Frederic Cambus
OK visa@
2020-07-22Correct checks for window borders.Nicholas Marriott
2020-07-22force long-names on msdos filenames, so that folk can see pretty namesTheo de Raadt
later. ok kettenis gkoehler
2020-07-22filter vlan and svlan packets by default.David Gwynne
2020-07-22Change tpmr(4) from ifconfig [-]trunkport to add|del synopsiskn
Unlike aggr(4) and trunk(4) for link aggregation, tpmr(4) bridges links similar to bridge(4) and switch(4), yet its ioctl(2) interface is that of an an aggregating interface. Change SIOCSTRUNKPORT and SIOCSTRUNKDELPORT to SIOCBRDGADD and SIOCBRDGDEL respectively and speak about members rather than ports in the manual to make ifconfig(8) accept "add" and "del" commands as expected. Status ioctls will follow such that "ifconfig tpmr" gets fixed accordingly. Discussed with dlg after mentioning the lack of aggr(4) and tpmr(4) documentation in ifconfig(8) which will follow as well after code cleanup. Feedback OK dlg
2020-07-22deprecate interface input handler lists, just use one input function.David Gwynne
the interface input handler lists were originally set up to help us during the intial mpsafe network stack work. at the time not all the virtual ethernet interfaces (vlan, svlan, bridge, trunk, etc) were mpsafe, so we wanted a way to avoid them by default, and only take the kernel lock hit when they were specifically enabled on the interface. since then, they have been fixed up to be mpsafe. i could leave the list in place, but it has some semantic problems. because virtual interfaces filter packets based on the order they were attached to the parent interface, you can get packets taken away in surprising ways, especially when you reboot and netstart does something different to what you did by hand. by hardcoding the order that things like vlan and bridge get to look at packets, we can document the behaviour and get consistency. it also means we can get rid of a use of SRPs which were difficult to replace with SMRs. the interface input handler list is an SRPL, which we would like to deprecate. it turns out that you can sleep during stack processing, which you're not supposed to do with SRPs or SMRs, but SRPs are a lot more forgiving and it worked. lastly, it turns out that this code is faster than the input list handling, so lots of winning all around. special thanks to hrvoje popovski and aaron bieber for testing. this has been in snaps as part of a larger diff for over a week.
2020-07-22move carp_input into ether_input, instead of via an input handler.David Gwynne
carp_input is only tried after vlan and bridge handling is done, and after the ethernet packet doesnt match the parent interfaces mac address. this has been in snaps as part of a larger diff for over a week.
2020-07-22move vlan_input into ether_input, instead of via an input handler.David Gwynne
this means there's a consistent order of processing of service delimited (vlan and svlan) packets and bridging of packets. vlan and svlan get to look at a packet first. it's only if they decline a packet that a bridge can handle it. this allows operators to slice vlans out for processing separate to the "native" vlan handling if they want. while here, this fixes up a bug in vlan_input if m_pullup needed to prepend an mbuf. this has been in snaps as part of a larger diff for over a week.
2020-07-22register as a bridge port, not an input handler, on member ifaces.David Gwynne
this is a step toward making all types of bridges coordinate their use of port interfaces, and is a step toward deprecating the interface input handler lists. bridge(4), switch(4), and tpmr(4) now coordinate their access so only one of them can own a port at a time. this has been in snaps as part of a larger diff for over a week.
2020-07-22register as a bridge port, not an input handler, on member ifaces.David Gwynne
this is a step toward making all types of bridges coordinate their use of port interfaces, and is a step toward deprecating the interface input handler lists. this has been in snaps as part of a larger diff for over a week.
2020-07-22register tpmr as a bridge port, not an input handler, on member ifaces.David Gwynne
this is a step toward making all types of bridges coordinate their use of port interfaces, and is a step toward deprecating the interface input handler lists. it also moves tpmr away from the trunk ioctls it's currently (ab)using. this has been in snaps as part of a larger diff for over a week.
2020-07-22Add support for newer RTL8125 chipset (RTL8125B).Kevin Lo
Tested for on a TP-LINK TL-NG421. ok jmatthew@
2020-07-22if an iface is a bridge port, pass the packet to the bridge in ether_input.David Gwynne
if the bridge declines the packet, it just returns it to ether_input to allow local deliver to proceed. this has been in snaps as part of a larger diff for over a week.
2020-07-22add code to coordinate how bridges attach to ethernet interfaces.David Gwynne
this is the first step in refactoring how ethernet frames are demuxed by virtual interfaces, and also in deprecating interface input list handling. we now have drivers for three types of virtual bridges, bridge(4), switch(4), and tpmr(4), and it doesn't make sense for any of them to be enabled on the same "port" interfaces at the same time. currently you can add a port interface to multiple types of bridge, but which one gets to steal the packets depends on the order in which they were attached. this creates an ether_brport structure that holds an input function for the bridge, and optionally some per port state that the bridge can use. arpcom has a single pointer to one of these structs that will be used during normal ether_input processing to see if a packet should be passed to a bridge, and will be used instead of an if input handler. because it is a single pointer, it will make sure only one bridge of any type is attached to a port at any one time. this has been in snaps as part of a larger diff for over a week.
2020-07-21The "unsupported compiler" checks were added back in December whenDaniel Dickman
MD versions of these headers were unhooked. As nothing has hit those checks we can drop them at this point. ok visa@ and "makes sense" to millert@
2020-07-21DLT_LOOP does have a link header, so tell pcap-filter so it can use it.David Gwynne
matthieu@ reported that asking tcpdump to look at ip or ip6 traffic on a wg(4) interface caused all packets to be captured. this is because pcap assumes that if your link type doesn't have a link header then it is always ip or ip6 (which is weird anyway) and captures everything. there was already code to generate a filter for the DLT_LOOP link header, it was just bypassed cos earlier code said that there wasn't one. debugged with and ok kn@
2020-07-21GENERIC.MPMark Kettenis
2020-07-21Add code to spin up the secondary CPUs.Mark Kettenis
2020-07-21Implement copyin32().Mark Kettenis
2020-07-21Add OPAL_START_CPU.Mark Kettenis
2020-07-21For now, grab the kernel lock to do SLB management for userland processes.Mark Kettenis
2020-07-21Make pmap ready for GENERIC.MP.Mark Kettenis
2020-07-21Attach secondary CPUs early like we now do on arm64.Mark Kettenis
2020-07-21Add missing KERNEL_LOCK() and KERNEL_UNLOCK() calls.Mark Kettenis
2020-07-21trivial adjustment of the desired test resultsIngo Schwarze
after getting rid of the "copyless" crutch
2020-07-21adjust test framework to not require a ttyIngo Schwarze
2020-07-21undocumented options -O outfilename and -O tagfilenameIngo Schwarze
to support regression testing without a tty; no user visible change intended
2020-07-21when calculating the ruleset's checksum, skip automatic table names.Henning Brauer
the checksum is exclusively used for pfsync to verify rulesets are identical on all nodes. the automatic table names are random and have a near zero chance to match. found at a customer in zurich ok sashan kn
2020-07-21rename PF_OPT_TABLE_PREFIX to PF_OPTIMIZER_TABLE_PFX and move it to pfvar.hHenning Brauer
OPT is misleading and usually refers to command line arguments to pfctl ok sashan kn
2020-07-21unify with base eeprom MakefileTheo de Raadt
2020-07-21unify and cleanup -DSEEALSO chunks in both disklabel MakefilesTheo de Raadt