1. 27 Oct, 2021 8 commits
  2. 26 Oct, 2021 15 commits
  3. 25 Oct, 2021 14 commits
    • Rick Macklem's avatar
      nfsd: Disable the NFSv4.2 Allocate operation by default · b575f97c
      Rick Macklem authored
      Some exported file systems, such as ZFS ones, cannot do VOP_ALLOCATE().
      Since an NFSv4.2 server must either support the Allocate operation for
      all file systems or not support it at all, define a sysctl called
      vfs.nfsd.enable_v42allocate to enable the Allocate operation.
      This sysctl is false by default and can only be set true if all
      exported file systems (or all DSs for a pNFS server) can perform
      VOP_ALLOCATE().
      
      Unfortunately, there is no way to know if a ZFS file system will
      be exported once the nfsd is operational, even if there are none
      exported when the nfsd is started up, so enabling Allocate must
      be done manually for a server configuration.
      
      This problem was detected during a recent NFSv4 interoperability
      testing event held by the IETF working group.
      
      (cherry picked from commit dfe887b7)
      b575f97c
    • Rick Macklem's avatar
      nfscl: Fix NFS VOP_ALLOCATE for mounts without Allocate support · 37a1501e
      Rick Macklem authored
      Without this patch, nfs_allocate() fell back on using vop_stdallocate()
      for NFS mounts without Allocate operation support.  This was incorrect,
      since some file systems, such as ZFS, cannot do allocate via
      vop_stdallocate(), which uses writes to try and allocate blocks.
      
      Also, fix nfs_allocate() to return EINVAL when mounts cannot do Allocate,
      since that is the correct error for posix_fallocate(2).
      Note that Allocate is only supported by some NFSv4.2 servers.
      
      (cherry picked from commit 235891a1)
      37a1501e
    • Felix Johnson's avatar
      camcontrol(8): Clean up references to removed symbols · dcb72294
      Felix Johnson authored
      Patch the manpage to remove references to devq_openings and devq_queued.
      Document the allocated tag that has been added in the same commit. The
      relevant code change was committed as r271588
      (959ec258) by mav@.
      
      PR:		223651
      Reported by:	Bertrand Petit <bsdpr@phoe.frmug.org>
      
      (cherry picked from commit d4cf7dc0)
      dcb72294
    • Andrew Turner's avatar
      Teach the readelf about arm64 gnu properties · 3a98aae1
      Andrew Turner authored
      On arm64 binaries can be tagged as using BTI or PAC. Add support to
      decode these to the elftoolchain readelf.
      
      To simplify the code use a table based method to find the flag
      description table.
      
      Reviewed by:	emaste
      Sponsored by:	The FreeBSD Foundation
      Differential Revision: https://reviews.freebsd.org/D32315
      
      (cherry picked from commit aacbf3fb)
      3a98aae1
    • Andrew Turner's avatar
      Only demote when needed in the arm64 pmap_change_props_locked · 39dbb494
      Andrew Turner authored
      When changing page table properties there is no need to demote a
      level 1 or level 2 block if we are changing the entire memory range the
      block is mapping. In this case just change the block directly.
      
      Reported by:	alc, kib, markj
      Sponsored by:	The FreeBSD Foundation
      Differential Revision: https://reviews.freebsd.org/D32339
      
      (cherry picked from commit 806a88e7)
      39dbb494
    • Andrew Turner's avatar
      Add pmap_change_prot on arm64 · f803dd1e
      Andrew Turner authored
      Support changing the protection of preloaded kernel modules by
      implementing pmap_change_prot on arm64 and calling it from
      preload_protect.
      
      Reviewed by:	alc (previous version)
      Sponsored by:	The FreeBSD Foundation
      Differential Revision: https://reviews.freebsd.org/D32026
      
      (cherry picked from commit a85ce4ad)
      f803dd1e
    • Andrew Turner's avatar
      Also print symbols when printing arm64 registers · dafad94b
      Andrew Turner authored
      When printing arm64 registers because of an exception in the kernel
      also print the symbol and offset. This can be used to track down why
      the exception occured without needing external tools.
      
      Sponsored by:	The FreeBSD Foundation
      Differential Revision: https://reviews.freebsd.org/D32077
      
      (cherry picked from commit 7ec86b66)
      dafad94b
    • Andrew Turner's avatar
      Add the arm64 table attributes and use them · 2b2cef98
      Andrew Turner authored
      Add the table page table attributes on arm64 and use them to add
      restrictions to the block and page entries below them. This ensures
      we are unable to increase the permissions in these last level entries
      without also changing them in the upper levels.
      
      Use the attributes to ensure the kernel can't execute from userspace
      memory and vice versa, userspace has no access to read or write kernel
      memory, and that the DMAP region is non-executable.
      
      Reviewed by:	alc, kib
      Sponsored by:	The FreeBSD Foundation
      Differential Revision: https://reviews.freebsd.org/D32081
      
      (cherry picked from commit f6de51d3)
      2b2cef98
    • Cy Schubert's avatar
      wpa: Reconnect ndis_events build · 2d81ecfc
      Cy Schubert authored
      ndis_events build was disconnected by the MFC of
      25ecdc7d.
      Reconnect it.
      
      This is a direct commit to stable/13.
      
      Reported by:	Scott Allendorf <scott-allendorf@uiowa.edu>
      Fixes:		13f32ff7
      2d81ecfc
    • Mark Johnston's avatar
      safexcel: Set the context record unconditionally · d84e0dd2
      Mark Johnston authored
      The condition added in commit 5bdb8b27 excludes plain SHA
      transforms, so for such sessions crypto operations would return
      incorrect results.
      
      Fixes:	5bdb8b27 ("safexcel: Maintain per-session context records")
      Sponsored by:	The FreeBSD Foundation
      
      (cherry picked from commit 36e4dcf4)
      d84e0dd2
    • Mark Johnston's avatar
      amd64: Zero the PML5 PTI page when initializing a pmap · 66e63d0c
      Mark Johnston authored
      The root page is not zeroed at allocation time since with 4-level tables
      each entry is copied from a template.  However, with 5-level tables only
      a single entry is filled, so the rest need to be cleared.
      
      Reported by:	alc
      Reviewed by:	alc, kib
      Sponsored by:	The FreeBSD Foundation
      
      (cherry picked from commit b0423d0f)
      66e63d0c
    • Mark Johnston's avatar
      x86: Remove some leftover APM support · 6341e6af
      Mark Johnston authored
      This is obsolete since commit 8c576a27 ("Remove APM BIOS support").
      
      Reviewed by:	imp, kib
      Sponsored by:	The FreeBSD Foundation
      
      (cherry picked from commit 06ebadc5)
      6341e6af
    • Philip Paeps's avatar
      contrib/tzdata: correct DST in Palestine · ed325e2e
      Philip Paeps authored
      Direct commit to stable/13.
      
      Merge the corrected DST transition date from tzdata 2021e.  This
      corrects future timestamps in Palestine.
      ed325e2e
    • Ed Maste's avatar
      lorder: process read-only data symbols · 7a789031
      Ed Maste authored
      Previously they were skipped.  lorder(1) serves no functional purpose
      today but we might as well address this longstanding bug while it is
      still in the tree.
      
      PR:		133860
      MFC after:	1 week
      Submitted by:	John Hein
      
      (cherry picked from commit e1d6d6f9)
      7a789031
  4. 24 Oct, 2021 3 commits