aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade Unbound to 1.7.2. More to follow.Dag-Erling Smørgrav2018-09-1051-190/+635
|\ | | | | | | | | | | | | Approved by: re (kib@) Notes: svn path=/head/; revision=338568
| * Vendor import of Unbound 1.7.2.vendor/unbound/1.7.2Dag-Erling Smørgrav2018-09-10265-3691/+4472
| | | | | | | | | | Notes: svn path=/vendor/unbound/dist/; revision=338562 svn path=/vendor/unbound/1.7.2/; revision=338563; tag=vendor/unbound/1.7.2
* | Upgrade to OpenSSH 7.8p1.Dag-Erling Smørgrav2018-09-10193-7149/+8049
|\ \ | | | | | | | | | | | | | | | | | | Approved by: re (kib@) Notes: svn path=/head/; revision=338561
| * | Vendor import of OpenSSH 7.8p1.vendor/openssh/7.8p1Dag-Erling Smørgrav2018-08-28202-7299/+8272
| | | | | | | | | | | | | | | Notes: svn path=/vendor-crypto/openssh/dist/; revision=338344 svn path=/vendor-crypto/openssh/7.8p1/; revision=338345; tag=vendor/openssh/7.8p1
* | | Add myself to committers-ports.dotEmmanuel Vadot2018-09-101-0/+2
| | | | | | | | | | | | | | | | | | | | | Approved by: re (gjb), bapt (mentor) Notes: svn path=/head/; revision=338560
* | | Correct directions for building pxeboot. One needs to cd to src/stand,Warner Losh2018-09-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not src/stand/i386 as the directions say. PR: 231284 Approved by: re@ (gjb) Notes: svn path=/head/; revision=338559
* | | geli init with multiple providers - fix init and fix -B "none"Ben Woods2018-09-101-20/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apply some fixes post rS336659, which allowed multiple provders to be initialized in a single command. - Fix issue where second and subsequent providers would fail init. This was due to the metadata struct being zeroed after the first provider init was completed, despite containing common data required for subsequent providers. - Fix issue where -B "none" would still result in the metadata being backed-up if multiple providers had been specified. This was due to the backupfile of "none" being incorrectly made unique for each provider by appending "-<prov>". Approved by: asomers Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D17096 Notes: svn path=/head/; revision=338558
* | | Allow dhclient and ping to build WITHOUT_DYNAMICROOTEd Maste2018-09-092-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dhclient and ping normally use libcasper services. These are not available in statically-linked binaries, so when WITHOUT_DYNAMICROOT is set disable libcasper use, as with rescue builds. Also emit a warning as it's undesirable to build this way. Reported by: Michael Dexter Reviewed by: rgrimes Tested by: Michael Dexter Approved by: re (kib) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D17074 Notes: svn path=/head/; revision=338543
* | | random(4): Squash non-error timeout codes from tsleep(9).Xin LI2018-09-091-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In both scenarios a timeout (EWOULDBLOCK) is considered as a normal condition and the error should not pop up to upper layers. PR: 231181 Submitted by: cem Reported by: lev Reviewed by: vangyzen, markm, delphij Approved by: re (kib) Approved by: secteam (delphij) Differential Revision: https://reviews.freebsd.org/D17049 Notes: svn path=/head/; revision=338542
* | | Introduce and use sgid_index in CM requests in ibcore.Hans Petter Selasky2018-09-095-10/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For RoCE, when CM requests are received for RC and UD connections, netdevice of the incoming request is unavailable. Because of that CM requests are always forwarded to init_net namespace. Now that we have the GID index available, introduce SGID index in incoming CM requests and refer to the netdevice of it. While at it fix some incorrect uses of init_net and make sure the rdma_create_id() function stores the VNET it is passed. Based on linux commit: cee104334c98dd04e9dd4d9a4fa4784f7f6aada9 MFC after: 3 days Approved by: re (gjb) Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=338541
* | | libsa: validate tftp_makereq() after we did reset the readToomas Soome2018-09-091-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The name check referred in the comment is not the only possible error source, we need to validate the result. Reviewed by: allanjude Approved by: re (kib) Differential Revision: https://reviews.freebsd.org/D17081 Notes: svn path=/head/; revision=338540
* | | Fix the 32-bit arm build.Mark Johnston2018-09-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | X-MFC with: r338537 Approved by: re (rgrimes) Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=338539
* | | Exclude the EFI framebuffer from phys_avail[] on arm64.Mark Johnston2018-09-081-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On the ThunderX the region occupied by the framebuffer is included in the EFI map, so explicitly add it to the set of regions that aren't managed by the physical memory allocator. PR: 231064 Reviewed by: andrew Approved by: re (gjb) MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D17073 Notes: svn path=/head/; revision=338538
* | | Bump MAX_HWCNT and MAX_EXCNT.Mark Johnston2018-09-081-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These limits are hit on the ThunderX. Also make arm_physmem_exclude_region() panic rather than fail silently if the limit on excluded regions is reached. PR: 231064 Reviewed by: andrew Approved by: re (kib) MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D17073 Notes: svn path=/head/; revision=338537
* | | Relax an assertion in vm_pqbatch_process_page().Mark Johnston2018-09-081-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While executing vm_pqbatch_process_page(m), m->queue may change to PQ_NONE if the page daemon is concurrently freeing the page. In this case m's queue state flags must be clear, so vm_pqbatch_process_page() will be a no-op, but the race could cause spurious assertion failures. Correct the assertion which assumed that m->queue's value does not change while the page queue lock is held. Reviewed by: alc, kib Reported and tested by: pho Approved by: re (gjb) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D17027 Notes: svn path=/head/; revision=338536
* | | libsa: memory leak in tftp_open()Toomas Soome2018-09-081-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tftpfile is allocated just above and needs to be freed. Reviewed by: imp Approved by: re (kib) Differential Revision: https://reviews.freebsd.org/D17058 Notes: svn path=/head/; revision=338535
* | | intelspi: don't leak spibus children on detach.Konstantin Belousov2018-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: Yuri Pankov MFC after: 1 week Approved by: re (gjb) Differential revision: https://reviews.freebsd.org/D17076 Notes: svn path=/head/; revision=338534
* | | Improve handling of the EFI map types[] array.Konstantin Belousov2018-09-081-18/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use nitems(), do not assume EFI_MD_TYPE_ contiguous allocation, in particular, switch to use designated array initializers. Reviewed by: jhb (previous version) Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: re (gjb) Notes: svn path=/head/; revision=338533
* | | Remove strings from OptionalObsoleteFiles.incEd Maste2018-09-071-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since r326030 strings is installed unconditionally so should not be removed when WITHOUT_TOOLCHAIN is set. Reported by: Dan McGregor Approved by: re (kib) Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=338529
* | | Specify the correct resource type in teardown paths.Mark Johnston2018-09-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: Yuri Pankov <yuripv@yuripv.net> Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=338528
* | | Use ratecheck(9) in in_pcbinslbgrouphash().Mark Johnston2018-09-071-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: bz, Johannes Lundberg <johalun0@gmail.com> Approved by: re (kib) Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D17065 Notes: svn path=/head/; revision=338527
* | | Implement get network interface by params function in ipoib.Hans Petter Selasky2018-09-073-39/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix the validate_ipv4_net_dev() and validate_ipv6_net_dev() functions which had source and destination addresses swapped, and didn't set the scope ID for IPv6 link-local addresses. This allows applications like krping to work using IPoIB devices. MFC after: 3 days Approved by: re (gjb) Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=338526
* | | Increase size of working imgfile from 250MB to 4GBRodney W. Grimes2018-09-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: dexter Approved by: re(gjb), phk (mentor) MFC after: 3 days Notes: svn path=/head/; revision=338525
* | | Remove rsync to phk's serverRodney W. Grimes2018-09-071-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: dexter Approved by: re(gjb), phk (mentor) MFC after: 3 days Notes: svn path=/head/; revision=338524
* | | Teach sysctl(8) about the Persistent memory type.Konstantin Belousov2018-09-071-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add PersistentMemory to the list of sysctl's known memory types when decoding an EFI memory map. Submitted by: D Scott Phillips <d.scott.phillips@intel.com> MFC after: 1 week Approved by: re (rgrimes) Notes: svn path=/head/; revision=338523
* | | Trim whitespace.Konstantin Belousov2018-09-071-2/+2
| | | | | | | | | | | | | | | | | | | | | Approved by: re (gjb) Notes: svn path=/head/; revision=338522
* | | Update head from ALPHA4 to ALPHA5 as part of the 12.0-RELEASEGlen Barber2018-09-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cycle. Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=338518
* | | The Call For Testing had no reports of operational problems andKirk McKusick2018-09-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | found that performance was no worse and usually better when running with TRIM consolidation. Performance improvement was most noticable when multiple large files are released in a short period of time. Thus, TRIM consolidation is being enabled by default. Should operational problems be found, it can be disabled using the command `sysctl vfs.ffs.dotrimcons=0'. This variable can also be set as a tunable if early disabling is necessary. Approved by: re (gjb) Sponsored by: Netflix Notes: svn path=/head/; revision=338517
* | | Avoid uninitialized read of ext_csd.Marius Strobl2018-09-061-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: Coverity CID: 1395275 Approved by: re (gjb, kib) Notes: svn path=/head/; revision=338513
* | | - Explicitly compare a pointer to NULL. The __builtin_expect() of clangMarius Strobl2018-09-061-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3.4.1 otherwise isn't able to cope with the expression. - Fix a nearby whitespace bug. Approved by: re (gjb, kib) Notes: svn path=/head/; revision=338512
* | | bhyve: Use MAP_GUARD when mapping guest memory ranges.John Baldwin2018-09-061-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of relying on PROT_NONE mappings with MAP_ANON, use MAP_GUARD to reserve address space around guest memory ranges including the guard ranges of address space around mappings. Submitted by: Shawn Webb Reviewed by: araujo Approved by: re (rgrimes) MFC after: 1 month Sponsored by: HardendBSD and G2, Inc Differential Revision: https://reviews.freebsd.org/D16822 Notes: svn path=/head/; revision=338511
* | | Use the correct terminology.Mark Johnston2018-09-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: kib Approved by: re (gjb) Differential revision: https://reviews.freebsd.org/D16191 Notes: svn path=/head/; revision=338510
* | | The inp_lle field to struct inpcb, along with two "valid" flagsBjoern A. Zeeb2018-09-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for the rt and lle cache were added in r191129 (2009). To my best knowledge they have never been used and route caching has converted the inp_rt field from that commit to inp_route rendering this field and these flags obsolete. Convert the pointer into a spare pointer to not change the size of the structure anymore (and to have a spare pointer) and mark the two fields as unused. Reviewed by: markj, karels Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D17062 Notes: svn path=/head/; revision=338509
* | | amd64: depessimize copyinstr_smapMateusz Guzik2018-09-061-15/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The stac/clac combo around each byte copy is causing a measurable slowdown in benchmarks. Do it only before and after all data is copied. While here reorder the code to avoid a forward branch in the common case. Note the copying loop (originating from copyinstr) is avoidably slow and will be fixed later. Reviewed by: kib Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D17063 Notes: svn path=/head/; revision=338508
* | | Avoid resource deadlocks when one domain has exhausted its memory. AttemptMark Johnston2018-09-067-20/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | other allowed domains if the requested domain is below the minimum paging threshold. Block in fork only if all domains available to the forking thread are below the severe threshold rather than any. Submitted by: jeff Reported by: mjg Reviewed by: alc, kib, markj Approved by: re (rgrimes) Differential Revision: https://reviews.freebsd.org/D16191 Notes: svn path=/head/; revision=338507
* | | Re-enable kernel modules for the MALTA64EL kernel configuration.John Baldwin2018-09-062-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the BOOTSTRAPPING check for libelf to require the fix for mips64el object files committed in r338478 and re-enable kernel modules in the MALTA64EL config file. Reviewed by: emaste Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D17054 Notes: svn path=/head/; revision=338506
* | | Clean up iflib sysctlsStephen Hurd2018-09-061-54/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove sysctls: txq_drain_encapfail - now a duplicate of encap_txd_encap_fail intr_link - was never incremented intr_msix - was never incremented rx_zero_len - was never incremented The following were not incremented in all code-paths that apply: m_pullups, mbuf_defrag, rxd_flush, tx_encap, rx_intr_enables, tx_frees, encap_txd_encap_fail. Fixes: Replace the broken collapse_pkthdr() implementation with an MPASS(). fl_refills and fl_refills_large were not incremented when using netmap. Reviewed by: gallatin Approved by: re (marius) Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D16733 Notes: svn path=/head/; revision=338505
* | | Add device_attach and device_detach events to man page.Ben Widawsky2018-09-061-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Approved by: bcr, emaste (mentor), imp, jhb Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D17052 Notes: svn path=/head/; revision=338504
* | | Add MPLS LSP-echo (RFC8029, March 2017) port.David E. O'Brien2018-09-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: stevek Approved by: re(gjb) Obtained from: Juniper Networks Notes: svn path=/head/; revision=338503
* | | Fix the GIC ACPI cross reference value.Andrew Turner2018-09-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To support INTRNG with ACPI we need to set a non-zero cross reference value for the interrupt controller. The GICv3 driver already had this value set, however it was missed in the GICv2 driver. Fix this by setting xref to the correct value. Approved by: re (gjb) Notes: svn path=/head/; revision=338502
* | | Remove the check that the Arm generic interrupt controller variant isAndrew Turner2018-09-061-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | non-zero. This is the case on qemu, so remove it to allow us to boot there. This change is needed to boot on qemu with ACPI. Approved by: re (gjb) Notes: svn path=/head/; revision=338501
* | | powerpc64: Add initial support for HTM (kABI)Breno Leitao2018-09-062-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the very initial support for HTM that might come at FreeBSD version 12.1. This basic support defines a new kABI, so, we do not need to change it later during 12.1 time frame, when the full implementation will come. Reviewed by: jhibbits Approved by: re(marius), jhibbits (mentor) Differential Revision: https://reviews.freebsd.org/D16889 Notes: svn path=/head/; revision=338500
* | | Remove vm_page_remque().Mark Johnston2018-09-063-26/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Testing m->queue != PQ_NONE is not sufficient; see the commit log message for r338276. As of r332974 vm_page_dequeue() handles already-dequeued pages, so just replace vm_page_remque() calls with vm_page_dequeue() calls. Reviewed by: kib Tested by: pho Approved by: re (marius) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D17025 Notes: svn path=/head/; revision=338499
* | | Make tcp_hpts.c compile a LINT kernel with options RSS and PCBGROUPS added byBjoern A. Zeeb2018-09-061-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding the missing include files and changing a the type of cpuid which would otherwise cause a false comparison with NETISR_CPUID_NONE. Reviewed by: rrs Approved by: re (marius) Differential Revision: https://reviews.freebsd.org/D16891 Notes: svn path=/head/; revision=338498
* | | Move etc/crontab to usr.sbin/cron/cron/Brad Davis2018-09-063-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Approved by: re (gjb), will (mentor) Differential Revision: https://reviews.freebsd.org/D16786 Notes: svn path=/head/; revision=338497
* | | Define sctp probes only when SCTP is configured.Mark Johnston2018-09-061-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise the "depends_on provider" guard in sctp.d does not work as intended. Reported by: mjg Reviewed by: tuexen Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D17057 Notes: svn path=/head/; revision=338496
* | | Add proper support for VIMAGE to krping.Hans Petter Selasky2018-09-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure we pass the correct VNET when allocating the RDMA ID. MFC after: 3 days Approved by: re (gjb) Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=338495
* | | Add missing copyin() to access LUN and port ioctl arguments.Alexander Motin2018-09-061-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Somehow this was working even after PTI in, at least on amd64, and got broken by something only very recently. Reviewed by: araujo Approved by: re (gjb) Notes: svn path=/head/; revision=338494
* | | Make the MSIX module parameter limit per device, in mlx5en(4).Hans Petter Selasky2018-09-062-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 3 days Approved by: re (marius) Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=338493
* | | Add support for receive side scaling stride, RSSS, in mlx5en(4).Hans Petter Selasky2018-09-063-4/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The receive side scaling stride parameter is a value which define the interval between active receive side queues. The traffic for the inactive queues is redirected to the nearest active queue by use of modulus. The default value of this parameter is one, which means all receive side queues are used. The point of this feature is to redirect more traffic to fewer receive side queues in order to take more advantage of sorted large receive offload, sorted LRO. The sorted LRO works better when more packets are accumulated per service interval. MFC after: 3 days Approved by: re (marius) Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=338492