summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-08-05Xr pf 4David Gwynne
2019-08-05document how to make technically non-compliant TPMRsDavid Gwynne
2019-08-05run pf against ip packets coming in and out of the two ports.David Gwynne
the idea and a good chunk of the implementation is copied from bridge(4). note that IP packets inside "service delimited" traffic, ie, vlan, svlan, or bpe encapsulated traffic, are not considered IP and will therefore not be given to pf to look at. if you want to filter that you'll need to configure vlan/svlan/bpe interfaces to get past their headers, and then configure them with their own tpmrs. hopefully the interface input handlers were established in the right order.
2019-08-05pay some lip service to TPMR compliance according to 802.1Q-2018David Gwynne
the spec says we should filter packets destined to a list of ethernet addresses. im currently interpreting "filter" as meaning dropping, which this diff does. however, one of the addresses to filter is the one lacp uses by default and not a lot of lacp implementations (read switches) support the configuration of a different address. i still need lacp to go over tpmr, and because i can't change the address, this diff also has a way to configure tpmr to still allow the packets through.
2019-08-04Simplify _dl_find_symbol(). Currently, it returns three values:Philip Guenther
- the symbol it found, returned via the second argument - the base offset of the the object it was found in, via the return value - optionally: the object it was found in, returned via the last argument Instead, return a struct with the symbol and object pointers and let the caller get the base offset from the object's obj_base member. On at least aarch64, amd64, mips64, powerpc, and sparc64, a two word struct like this is passed in registers. ok mpi@, kettenis@
2019-08-04Fix a typo I noticed reviewing the smbios code cleanup diff.kmos
(stirng -> string) ok kettenis@ who pointed out I should fix the new arm64 smbiosvar.h too
2019-08-04Ensure that a posted write completes when re-enabling interruptsVisa Hankala
or sending an IPI.
2019-08-04Add support for X-Gene/eMAG variant.Mark Kettenis
2019-08-04Add arm64 asm for stackpivot regress test.mortimer
2019-08-04Cleanup the bios(4)/smbios(4) code a bit. Fix some KNF issues, reduceMark Kettenis
differences between the i386 and amd64 versions of the code and switch to using the standard C integer exact width integer types. ok deraadt@
2019-08-04crank version, following fchmod changeTheo de Raadt
2019-08-04Unmap tables once we're done with them.Mark Kettenis
2019-08-04Implement smbios support on arm64.Mark Kettenis
ok deraadt@, jsg@
2019-08-04Test that unmount works after calling unlink(2) with relativeAlexander Bluhm
directories obtained by chdir(2).
2019-08-04Remove unused files.Visa Hankala
2019-08-04Remove the old, unfinished octeon bootloader.Visa Hankala
2019-08-04Revise the way how the octeon bootloader is built. The originalVisa Hankala
approach was not right, and there is still room for improvement. OK deraadt@
2019-08-04Calling unveil(2) with the current directory leaked a vnode. EvenAlexander Bluhm
if the parent and the lookup vnode are equal, namei(9) reference counts both. So release the parent vnode uncoditionally. OK visa@
2019-08-04tweak the iavf text a little, and add an entry to pci.4;Jason McIntyre
ok jmatthew
2019-08-03permit maxusers to grow up to 128Theo de Raadt
2019-08-01Call unveil(2) in combination with unlink(2) and chroot(2).Alexander Bluhm
Use umount(8) to check that the mountpoint leaks no vnode.
2019-08-03There are some pretty big arm64 machines so crank maxusers to 80.Theo de Raadt
2019-08-03good idea to make next-generation keys available well before heading into ↵Theo de Raadt
release.
2019-08-03R.I.P. itimerround(); ok mpi@cheloha
2019-08-03Mention dhclient vs AUTOCONF4.Kenneth R Westerback
2019-08-03The ABI says JUMP_SLOT relocations don't have an addend, so don't add it inPhilip Guenther
ok kettenis@
2019-08-03Suppress DWARF2 warnings on clang archs by building with -gdwarf-4Philip Guenther
ok deraadt@, kettenis@
2019-08-03Add F_WRITE support to the block layer (not yet used)Theo de Raadt
ok kettenis
2019-08-03In the bootblocks, after discovering and opening /bsd.upgrade, fchmod -xTheo de Raadt
so the file cannot be re-executed upon the next boot. This provides a stronger one-shot-upgrade model than the upgrade script's rm /bsd.upgrade. Now various forms of upgrade failure will reboot into /bsd, which is probably more recoverable. Performing fchmod -x depends on (1) use of MI boot.c (not alpha/macppc/sparc64/sgi/octeon) and (2) "can write blocks" functionality in the IO layer. Most architectures have this support now. Two diagnostics "fchmod a-x %s: failed" and "/bsd.upgrade is not u+x" will remain in the tree while refinements happen for some of the laggard architectures. based upon a discussion florian tested in snapshots for more than a week without any complaints
2019-08-03If the CPU frequency is available during TSC init, make it availableJoshua Stein
for lapic timer init to avoid calibrating against the 8254 clock. Some newer machines are shipping with the 8254 clock gated for power saving, so it may not be usable. ok mlarkin discussed with deraadt
2019-08-03Recognize Applied Micro as an Implementor and X-Gene as a PartNum forMark Kettenis
processor identification purposes. Use the name instead of the ID as the sentinel in the various tables since X-Gene has PartNum zero. Note that this means Ampere eMAG gets recognized as Applied Micro X-Gene r3p2. That makes sense as the CPU started its life as X-Gene 3. Apparently future Ampere parts will use the new Ampere Implementer ID. ok jsg@
2019-08-02add the missing .An -nosplitIngo Schwarze
2019-08-02regenMark Kettenis
2019-08-02Add Ampere vendor and eMAG PCIe devices.Mark Kettenis
2019-08-02minor sync of the inline stylesheet with mandoc.css:Ingo Schwarze
delete unimportant .Pp rule and shorten overly specific selectors
2019-08-02pass -Dchecksum around so that checksum is exercised.Marc Espie
Also, inject fault and verify that package does indeed not get fully deleted
2019-08-02document octal escape format in %b arguments;Ingo Schwarze
omission reported by Andras Farkas <deepbluemistake at gmail dot com>; OK deraadt@ jmc@, and Andras Farkas also checked the patch
2019-08-02Add support for additional ITS page sizes and make sure we allocateMark Kettenis
enough memory for the device table to cover the entire DeviceID space. ok patrick@
2019-08-02Move prototypes of unveil(2) functions which are used in separate CAlexander Bluhm
files into the common namei.h header. OK deraadt@
2019-08-02Avoid repeated invocation of curcpu().Visa Hankala
2019-08-02Call refreshcreds() from ast() on mips64. This ensures that credentialsVisa Hankala
get updated when handling an AST after an interrupt. OK deraadt@
2019-08-02missing part of commit by cheloha:Theo de Raadt
per-process itimers: itimerval -> itimerspec Loongson runs at 128hz. 128 doesn't divide evenly into a million, but it does divide evenly into a billion. So if we do the per-process itimer bookkeeping with itimerspec structs we can have error-free virtual itimers on loongson just as we do on most other platforms. This change doesn't fix the virtual itimer error alpha, as 1024 does not divide evenly into a billion. But this doesn't make the situation any worse, either. ok deraadt@
2019-08-02per-process itimers: itimerval -> itimerspeccheloha
Loongson runs at 128hz. 128 doesn't divide evenly into a million, but it does divide evenly into a billion. So if we do the per-process itimer bookkeeping with itimerspec structs we can have error-free virtual itimers on loongson just as we do on most other platforms. This change doesn't fix the virtual itimer error alpha, as 1024 does not divide evenly into a billion. But this doesn't make the situation any worse, either. ok deraadt@
2019-08-02fix some memleaks in test_helper codeDamien Miller
bz#3037 from Jitendra Sharma
2019-08-02typo; from Christian HesseDamien Miller
2019-08-01smtpd can crash on excessively large input, causing a denial of service.Gilles Chehade
the crash is caused by a logic error leading to a fatal() ok deraadt@ bluhm@ benno@
2019-08-01text improvements from evan silberman;Jason McIntyre
tweaked along the way by at least myself and tj; ok tj deraadt
2019-08-01the argument name is "address_family" (with an underscore);Jason McIntyre
2019-08-01Link regress unveil-unmount to build.Alexander Bluhm
2019-08-01Don't leak resolv.conf contents.Kenneth R Westerback