1. 23 Mar, 2021 4 commits
    • Hans Petter Selasky's avatar
      MFC 6eb60f5b: · dd426d67
      Hans Petter Selasky authored
      Use the word "LinuxKPI" instead of "Linux compatibility", to not confuse with
      user-space Linux compatibility support. No functional change.
      Sponsored by:	Mellanox Technologies // NVIDIA Networking
      (cherry picked from commit 6eb60f5b)
    • Hans Petter Selasky's avatar
      MFC ebe5cf35: · 77381150
      Hans Petter Selasky authored
      Implement basic support for allocating memory from a specific numa node
      in the LinuxKPI.
      Differential Revision:	https://reviews.freebsd.org/D29077
      Reviewed by:	markj@ and kib@
      Sponsored by:	Mellanox Technologies // NVIDIA Networking
      (cherry picked from commit ebe5cf35)
    • Hans Petter Selasky's avatar
      MFC c743a6bd: · 7d7ed022
      Hans Petter Selasky authored
      Implement mallocarray_domainset(9) variant of mallocarray(9).
      Reviewed by:	kib @
      Sponsored by:	Mellanox Technologies // NVIDIA Networking
      (cherry picked from commit c743a6bd)
    • Mark Johnston's avatar
      stand: Load INIT_ARRAY and FINI_ARRAY sections · 7cde0b06
      Mark Johnston authored
      This is required for preloading modules into a KASAN-configured kernel.
      Sponsored by:	The FreeBSD Foundation
      (cherry picked from commit 7b1b5aad)
  2. 22 Mar, 2021 8 commits
    • John Baldwin's avatar
      nlmrsa: Mark deprecated for 14. · 30e25f93
      John Baldwin authored
      This is the only in-tree driver for the asymmetric crypto support in
      OCF that is already marked deprecated for 14.
      Sponsored by:	Chelsio Communications
      (cherry picked from commit 096a8472)
    • John Baldwin's avatar
      iscsi: Mark iSCSI CAM sims as non-pollable. · 6a1dbc8b
      John Baldwin authored
      Previously, iscsi_poll() just panicked.  This meant if you got a panic
      on a box when using the iSCSI initiator, the attempt to shutdown would
      trigger a nested panic and never write out a core.  Now, CCB's sent to
      iSCSI devices (such as the sychronize-cache request in dashutdown())
      just fail with a timeout during a panic shutdown.
      Sponsored by:	Chelsio
      (cherry picked from commit 47769bc5)
    • John Baldwin's avatar
      cam: Don't permit crashdumps on non-pollable devices. · 9df8f5a9
      John Baldwin authored
      If a disk's SIM doesn't support polling, then it can't be used to
      store crashdumps.  Leave d_dump NULL in that case so that dumpon(8)
      fails gracefully rather than having dumps fail at crash time.
      Sponsored by:	Chelsio
      (cherry picked from commit e07ac3f2)
    • John Baldwin's avatar
      cam: Permit non-pollable sims. · 444aff36
      John Baldwin authored
      Some CAM sim drivers do not support polling (notably iscsi(4)).
      Rather than using a no-op poll routine that always times out requests,
      permit a SIM to set a NULL poll callback.  cam_periph_runccb() will
      fail polled requests non-pollable sims immediately as if they had
      timed out.
      Sponsored by:	Chelsio
      (cherry picked from commit 447b3557)
      (cherry picked from commit e6405c8c)
    • Mitchell Horne's avatar
      armv8crypto: note derivation in armv8_crypto_wrap.c · b3598ed4
      Mitchell Horne authored
      This file inherits some boilerplate and structure from the analogous
      file in aesni(4), aesni_wrap.c. Note the derivation and the copyright
      holders of that file.
      For example, the AES-XTS bits added in 4979620e were ported from
      Requested by:	jmg
      Reviewed by:	imp, gnn
      (cherry picked from commit da45b462)
    • Mark Johnston's avatar
      iflib: Make if_shared_ctx_t a pointer to const · 46f44865
      Mark Johnston authored
      This structure is shared among multiple instances of a driver, so we
      should ensure that it doesn't somehow get treated as if there's a
      separate instance per interface.  This is especially important for
      software-only drivers like wg.
      DEVICE_REGISTER() still returns a void * and so the per-driver sctx
      structures are not yet defined with the const qualifier.
      Reviewed by:	gallatin, erj
      Sponsored by:	The FreeBSD Foundation
      Differential Revision:	https://reviews.freebsd.org/D29102
      (cherry picked from commit ffe3def9)
    • Leandro Lupori's avatar
      ofwfb: fix boot on LE · 3aa6cc00
      Leandro Lupori authored
      Some framebuffer properties obtained from the device tree were not being
      properly converted to host endian.
      Replace OF_getprop calls by OF_getencprop where needed to fix this.
      This fixes boot on PowerPC64 LE, when using ofwfb as the system console.
      Reviewed by:    bdragon
      Sponsored by:   Eldorado Research Institute (eldorado.org.br)
      MFC after:      1 week
      Differential Revision:  https://reviews.freebsd.org/D27475
      (cherry picked from commit 043577b7)
    • Alexander Motin's avatar
      Include ccompile.h after opt_global.h. · 0cb06bcc
      Alexander Motin authored
      This restores INVARIANTS enabling ZFS_DEBUG when built as module.
      Discussed with:	freqlabs
      MFC after:	1 week
      (cherry picked from commit 8ea35c45)
  3. 21 Mar, 2021 6 commits
    • Mike Karels's avatar
      genet: Fix problem with forwarding some TCP/IPv6 packets · 35e7b6bf
      Mike Karels authored
      TCP/IPv6 packets to be forwarded can be laid out with only the Ethernet
      header in the first mbuf, and these packets are lost.  There was a
      previous hack to pullup ICMPv6 packets with such a layout for the
      same reason.  Generalize, and pullup any IPv6 packets with only the
      Ethernet header in the first mbuf.  Possibly this should also include
      IPv4, but that situation has not been observed to fail.
      PR:		254060
      Reported by:	denis at h3q.com
      MFC after:	3 days
      (cherry picked from commit 2bdcf623)
    • Stefan Eßer's avatar
      Vendor import of bc 3.3.4 · cd0355bd
      Stefan Eßer authored
      This update performs an implicit flush of the output when a script
      calls read() in case a prompt is to be displayed in line-buffered
      output mode.
      (cherry picked from commit 893ecb52)
    • Dmitry Chagin's avatar
      Merge tcsh 6.22.03-ceccc7f · ea1f0ecc
      Dmitry Chagin authored
      PR:		252663
      (cherry picked from commit 5224c2a3)
    • Alan Somers's avatar
      Speed up geom_stats_resync in the presence of many devices · 2d1c1645
      Alan Somers authored
      The old code had a O(n) loop, where n is the size of /dev/devstat.
      Multiply that by another O(n) loop in devstat_mmap for a total of
      This change adds DIOCGMEDIASIZE support to /dev/devstat so userland can
      quickly determine the right amount of memory to map, eliminating the
      O(n) loop in userland.
      This change decreases the time to run "gstat -bI0.001" with 16,384 md
      devices from 29.7s to 4.2s.
      Also, fix a memory leak first reported as PR 203097.
      Sponsored by:	Axcient
      Reviewed by:	mav, imp
      Differential Revision:	https://reviews.freebsd.org/D28968
      (cherry picked from commit ab63da35)
    • Alan Somers's avatar
      fortune: add a tip about gstat · aa9ff8f7
      Alan Somers authored
      (cherry picked from commit 60a632f0)
    • Alan Somers's avatar
      fusefs: set d_off during VOP_READDIR · dc559c84
      Alan Somers authored
      This allows d_off to be used with lseek to position the file so that
      getdirentries(2) will return the next entry.  It is not used by
      PR:		253411
      Reported by:	John Millikin <jmillikin@gmail.com>
      Reviewed by:	cem
      Differential Revision:	https://reviews.freebsd.org/D28605
      (cherry picked from commit 71befc35)
  4. 20 Mar, 2021 8 commits
  5. 19 Mar, 2021 11 commits
  6. 18 Mar, 2021 3 commits
    • Mariusz Zaborski's avatar
      zfs: bring back possibility to rewind the checkpoint from · 6bbca5ca
      Mariusz Zaborski authored
      Add parsing of the rewind options.
      When I was upstreaming the change [1], I omitted the part where we
      detect that the pool should be rewind. When the FreeBSD repo has
      synced with the OpenZFS, this part of the code was removed.
      [1] FreeBSD repo: 277f38ab
      [2] OpenZFS repo: f2c027bd
      Originally reviewed by:		tsoome, allanjude
      Originally reviewed by:		kevans (ok from high-level overview)
      Signed-off-by: default avatarMariusz Zaborski <oshogbo@vexillium.org>
      PR:		254152
      Reported by:	Zhenlei Huang <zlei.huang at gmail.com>
      Obtained from:	https://github.com/openzfs/zfs/pull/11730
      (cherry picked from commit 653ed678)
    • Michael Tuexen's avatar
      vtnet: fix TSO for TCP/IPv6 · 6064ea81
      Michael Tuexen authored
      The decision whether a TCP packet is sent over IPv4 or IPv6 was
      based on ethertype, which works correctly. In D27926 the criteria
      was changed to checking if the CSUM_IP_TSO flag is set in the
      csum-flags and then considering it to be TCP/IPv4.
      However, the TCP stack sets the flag to CSUM_TSO for IPv4 and IPv6,
      where CSUM_TSO is defined as CSUM_IP_TSO|CSUM_IP6_TSO.
      Therefore TCP/IPv6 packets gets mis-classified as TCP/IPv4,
      which breaks TSO for TCP/IPv6.
      This patch bases the check again on the ethertype.
      This fix is instantly MFCed.
      Approved by:		re(gjb)
      PR:			254366
      Sponsored by:		Netflix, Inc.
      Differential Revision:	https://reviews.freebsd.org/D29331
      (cherry picked from commit d4697a6b)
    • Chuck Silvers's avatar
      tail: fix "tail -F" file rotation detection · 8c59e863
      Chuck Silvers authored
      When checking if the newly opened file is the same as the old one,
      we need to fstat() the new file descriptor, not the old one again.
      Reviewed by:	glebius
      Sponsored by:	Netflix
      (cherry picked from commit 7787e7ee)