HardenedBSD/src c7ce6b0contrib/libstdc++ configure, lib/clang/liblldb LLDBWrapLua.cpp

Merge branch 'hardened/current/master' into hardened/current/uninit-autoinit
DeltaFile
+0-111,817contrib/libstdc++/configure
+72,183-0lib/clang/liblldb/LLDBWrapLua.cpp
+71,590-432tools/tools/locale/etc/final-maps/widths.txt
+31,726-39,305share/ctypedef/ja_JP.eucJP.src
+59,521-0sys/contrib/dev/iwm/iwm-9000-34.fw.uu
+59,517-0sys/contrib/dev/iwm/iwm-9260-34.fw.uu
+294,537-151,55460,534 files not shown
+10,288,584-10,879,88160,540 files

HardenedBSD/src f86c9ebcontrib/llvm-project/llvm/lib/Analysis/models/inliner saved_model.pbtxt, contrib/sqlite3 sqlite3.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi

Conflicts:
        Makefile.inc1 (unresolved)
        share/man/man5/src.conf.5 (unresolved)
        share/mk/src.opts.mk (unresolved)
        share/mk/sys.mk (unresolved)
DeltaFile
+95,073-589share/man/man5/src.conf.5
+35,376-0sys/contrib/openzfs/include/sys/u8_textprep_data.h
+32,634-0contrib/llvm-project/llvm/lib/Analysis/models/inliner/saved_model.pbtxt
+27,826-0sys/contrib/openzfs/module/zstd/lib/zstd.c
+9,980-9,250contrib/sqlite3/sqlite3.c
+10,609-0sys/contrib/openzfs/module/zfs/arc.c
+211,498-9,83918,438 files not shown
+1,674,079-664,95318,444 files

HardenedBSD/src 0e3bd8acontrib/llvm-project/llvm/lib/Analysis/models/inliner saved_model.pbtxt, contrib/llvm-project/llvm/lib/Target/Hexagon HexagonDepIICScalar.td

MFH

Sponsored by:   Rubicon Communications, LLC (netgate.com)
DeltaFile
+35,376-0sys/contrib/openzfs/include/sys/u8_textprep_data.h
+32,634-0contrib/llvm-project/llvm/lib/Analysis/models/inliner/saved_model.pbtxt
+27,826-0sys/contrib/openzfs/module/zstd/lib/zstd.c
+9,980-9,250contrib/sqlite3/sqlite3.c
+10,565-0sys/contrib/openzfs/module/zfs/arc.c
+6,876-3,589contrib/llvm-project/llvm/lib/Target/Hexagon/HexagonDepIICScalar.td
+123,257-12,83911,178 files not shown
+1,373,540-560,26311,184 files

HardenedBSD/src e251528 (r364886)contrib/llvm-project/llvm/lib/Analysis/models/inliner saved_model.pbtxt, contrib/llvm-project/llvm/lib/Target/Hexagon HexagonDepIICScalar.td

MFH

Sponsored by:   Rubicon Communications, LLC (netgate.com)
DeltaFile
+35,376-0sys/contrib/openzfs/include/sys/u8_textprep_data.h
+32,634-0contrib/llvm-project/llvm/lib/Analysis/models/inliner/saved_model.pbtxt
+27,826-0sys/contrib/openzfs/module/zstd/lib/zstd.c
+9,980-9,250contrib/sqlite3/sqlite3.c
+10,565-0sys/contrib/openzfs/module/zfs/arc.c
+6,876-3,589contrib/llvm-project/llvm/lib/Target/Hexagon/HexagonDepIICScalar.td
+123,257-12,83911,178 files not shown
+1,373,540-560,26311,184 files

HardenedBSD/src 518eb03 (r364264)sbin/fsck_ffs main.c, sys/arm64/arm64 identcpu.c

Merge ^/head r364251 through r364263.
DeltaFile
+238-238sys/contrib/pcg-c/include/pcg_variants.h
+114-34sys/arm64/arm64/identcpu.c
+68-12sys/kern/subr_witness.c
+56-2sys/arm64/include/armreg.h
+3-4sbin/fsck_ffs/main.c
+5-0sys/riscv/riscv/machdep.c
+484-2901 files not shown
+485-2917 files

HardenedBSD/src 11818c3sbin/fsck_ffs main.c, sys/arm64/arm64 identcpu.c

Merge ^/head r364251 through r364263.
DeltaFile
+238-238sys/contrib/pcg-c/include/pcg_variants.h
+114-34sys/arm64/arm64/identcpu.c
+68-12sys/kern/subr_witness.c
+56-2sys/arm64/include/armreg.h
+3-4sbin/fsck_ffs/main.c
+5-0sys/riscv/riscv/machdep.c
+484-2901 files not shown
+485-2917 files

HardenedBSD/src 57bef03sys/contrib/pcg-c/include pcg_variants.h, sys/kern subr_witness.c

Merge branch 'freebsd/current/master' into hardened/current/master

* freebsd/current/master:
  witness(4): Print stack of prior observed lock order on reversal
  pcg-c: Add 'static' to inline function definitions
  Correct the mask byte order when checking for reserved bits.
  RISC-V: copy kernelname from the environment
DeltaFile
+238-238sys/contrib/pcg-c/include/pcg_variants.h
+68-12sys/kern/subr_witness.c
+5-0sys/riscv/riscv/machdep.c
+1-1sys/net/if_vxlan.c
+312-2514 files

HardenedBSD/src 03a2f47sys/contrib/pcg-c/include pcg_variants.h

pcg-c: Add 'static' to inline function definitions

Make the inlines static to avoid kernel build failure with Clang 11 on i386.
(The issue was not observed with Clang 10, currently in tree; reproduction
depends on compiler inlining choices.)

The compiler may choose not to inline 'bare' C inlines, and in that case
expects a symbol of the same name will be available.  It does not
automatically define that symbol at use, because of traditional C linking
semantics. (In contrast, C++ does define it, and then deduplicates redundant
definitions at link).  As we do not instantiate the C99 inline ('extern
inline ...;'), the linker errors with "undefined symbol."

Reported by:    dim
Tested by:      dim
Fixes:          r364219
DeltaFile
+238-238sys/contrib/pcg-c/include/pcg_variants.h
+238-2381 files

HardenedBSD/src 43eccfe (r364260)sys/contrib/pcg-c/include pcg_variants.h

pcg-c: Add 'static' to inline function definitions

Make the inlines static to avoid kernel build failure with Clang 11 on i386.
(The issue was not observed with Clang 10, currently in tree; reproduction
depends on compiler inlining choices.)

The compiler may choose not to inline 'bare' C inlines, and in that case
expects a symbol of the same name will be available.  It does not
automatically define that symbol at use, because of traditional C linking
semantics. (In contrast, C++ does define it, and then deduplicates redundant
definitions at link).  As we do not instantiate the C99 inline ('extern
inline ...;'), the linker errors with "undefined symbol."

Reported by:    dim
Tested by:      dim
Fixes:          r364219
DeltaFile
+238-238sys/contrib/pcg-c/include/pcg_variants.h
+238-2381 files

HardenedBSD/src de6fc2e (r364251)sys/arm64/rockchip if_dwc_rk.c, sys/dev/usb/misc cp2112.c

Merge ^/head r364082 through r364250.
DeltaFile
+379-301sys/dev/usb/misc/cp2112.c
+554-0tools/tools/locale/etc/final-maps/map.UTF-8
+485-55sys/arm64/rockchip/if_dwc_rk.c
+3-244sys/kern/vfs_subr.c
+189-25sys/vm/vm_pageout.c
+129-64tools/tools/locale/Makefile
+1,739-689169 files not shown
+3,872-1,830175 files

HardenedBSD/src c7c2e1esys/arm64/rockchip if_dwc_rk.c, sys/dev/usb/misc cp2112.c

Merge ^/head r364082 through r364250.
DeltaFile
+379-301sys/dev/usb/misc/cp2112.c
+554-0tools/tools/locale/etc/final-maps/map.UTF-8
+485-55sys/arm64/rockchip/if_dwc_rk.c
+3-244sys/kern/vfs_subr.c
+189-25sys/vm/vm_pageout.c
+129-64tools/tools/locale/Makefile
+1,739-689169 files not shown
+3,872-1,830175 files

HardenedBSD/src 5b61cb3share/man/man9 prng.9, sys/contrib/pcg-c/include pcg_variants.h

Merge branch 'freebsd/current/master' into hardened/current/master

* freebsd/current/master:
  Add prng(9) API
  Fix a typo in the cpp macro defined for PIC.
  Move rtzone handling code to net/route_ctl.c
  TCP Cubic: Have Fast Convergence Heuristic work for ECN, and align concave region
  TCP Cubic: After leaving slowstart fix unintended cwnd jump.
  Improve SACK support code for RFC6675 and PRR
DeltaFile
+131-0sys/kern/subr_prng.c
+99-0share/man/man9/prng.9
+2-94sys/net/route.c
+75-1sys/net/route/route_ctl.c
+34-28sys/netinet/cc/cc_cubic.c
+13-31sys/contrib/pcg-c/include/pcg_variants.h
+354-15411 files not shown
+424-21317 files

HardenedBSD/src aac8954share/man/man9 prng.9 Makefile, sys/contrib/pcg-c/include pcg_variants.h

Add prng(9) API

Add prng(9) as a replacement for random(9) in the kernel.

There are two major differences from random(9) and random(3):

- General prng(9) APIs (prng32(9), etc) do not guarantee an
  implementation or particular sequence; they should not be used for
  repeatable simulations.

- However, specific named API families are also exposed (for now: PCG),
  and those are expected to be repeatable (when so-guaranteed by the named
  algorithm).

Some minor differences from random(3) and earlier random(9):

- PRNG state for the general prng(9) APIs is per-CPU; this eliminates
  contention on PRNG state in SMP workloads.  Each PCPU generator in an
  SMP system produces a unique sequence.

    [14 lines not shown]
DeltaFile
+131-0sys/kern/subr_prng.c
+99-0share/man/man9/prng.9
+13-31sys/contrib/pcg-c/include/pcg_variants.h
+3-32sys/libkern/random.c
+20-0sys/sys/prng.h
+5-0share/man/man9/Makefile
+271-631 files not shown
+272-637 files

HardenedBSD/src 8a0edc9 (r364219)share/man/man9 prng.9 Makefile, sys/contrib/pcg-c/include pcg_variants.h

Add prng(9) API

Add prng(9) as a replacement for random(9) in the kernel.

There are two major differences from random(9) and random(3):

- General prng(9) APIs (prng32(9), etc) do not guarantee an
  implementation or particular sequence; they should not be used for
  repeatable simulations.

- However, specific named API families are also exposed (for now: PCG),
  and those are expected to be repeatable (when so-guaranteed by the named
  algorithm).

Some minor differences from random(3) and earlier random(9):

- PRNG state for the general prng(9) APIs is per-CPU; this eliminates
  contention on PRNG state in SMP workloads.  Each PCPU generator in an
  SMP system produces a unique sequence.

    [14 lines not shown]
DeltaFile
+131-0sys/kern/subr_prng.c
+99-0share/man/man9/prng.9
+13-31sys/contrib/pcg-c/include/pcg_variants.h
+3-32sys/libkern/random.c
+20-0sys/sys/prng.h
+5-0share/man/man9/Makefile
+271-631 files not shown
+272-637 files

HardenedBSD/src c7aa572 (r363741)sys/contrib/pcg-c/include pcg_variants.h, sys/dev/cy cy.c

MFH

Sponsored by:   Rubicon Communications, LLC (netgate.com)
DeltaFile
+2,544-0sys/contrib/pcg-c/include/pcg_variants.h
+0-2,242sys/dev/cy/cy.c
+0-1,314sys/dev/rc/rc.c
+0-1,113sys/dev/rp/rp.c
+1,070-0sys/dev/iommu/busdma_iommu.c
+1,052-3sys/kern/vfs_cache.c
+4,666-4,672553 files not shown
+21,285-16,648559 files

HardenedBSD/src 1ca832asys/contrib/pcg-c/include pcg_variants.h, sys/dev/cy cy.c

MFH

Sponsored by:   Rubicon Communications, LLC (netgate.com)
DeltaFile
+2,544-0sys/contrib/pcg-c/include/pcg_variants.h
+0-2,242sys/dev/cy/cy.c
+0-1,314sys/dev/rc/rc.c
+0-1,113sys/dev/rp/rp.c
+1,070-0sys/dev/iommu/busdma_iommu.c
+1,052-3sys/kern/vfs_cache.c
+4,666-4,672553 files not shown
+21,285-16,648559 files

HardenedBSD/src feb1007sys/arm/ti/am335x am335x_prcm.c, sys/contrib/pcg-c/include pcg_variants.h

Merge ^/head r363583 through r363738.
DeltaFile
+2,544-0sys/contrib/pcg-c/include/pcg_variants.h
+0-2,242sys/dev/cy/cy.c
+0-1,314sys/dev/rc/rc.c
+0-1,113sys/dev/rp/rp.c
+0-1,033sys/dev/rp/rpreg.h
+0-884sys/arm/ti/am335x/am335x_prcm.c
+2,544-6,586224 files not shown
+10,198-11,500230 files

HardenedBSD/src 1799696 (r363739)sys/arm/ti/am335x am335x_prcm.c, sys/contrib/pcg-c/include pcg_variants.h

Merge ^/head r363583 through r363738.
DeltaFile
+2,544-0sys/contrib/pcg-c/include/pcg_variants.h
+0-2,242sys/dev/cy/cy.c
+0-1,314sys/dev/rc/rc.c
+0-1,113sys/dev/rp/rp.c
+0-1,033sys/dev/rp/rpreg.h
+0-884sys/arm/ti/am335x/am335x_prcm.c
+2,544-6,586224 files not shown
+10,198-11,500230 files

HardenedBSD/src 1d39eba. UPDATING, sys/contrib/pcg-c/include pcg_variants.h

Merge branch 'freebsd/current/master' into hardened/current/master

* freebsd/current/master:
  UPDATING: Add a note about running installworld twice
  getblk: Remove a non-sensical LK_NOWAIT | LK_SLEEPFAIL
  getblk: Avoid sleeping on wrong buf in lockless path
  Definition for the 'removable media flag' from word 0 in the Identify page.
  Import PCG-C master, 2019-07-18 (83252d9c23df9c82ecb42210afed61a7b42402d7)
  Fix tinderbox build after r363714
  cache: drop the useless numchecks counter
  Further depessimize priv_check_cred_vfs_generation
  fd: predict in fdrop
DeltaFile
+2,544-0sys/contrib/pcg-c/include/pcg_variants.h
+8-13sys/kern/vfs_bio.c
+10-9sys/sys/file.h
+17-2sys/kern/kern_priv.c
+8-0sys/security/mac/mac_framework.h
+5-0UPDATING
+2,592-242 files not shown
+2,593-288 files

HardenedBSD/src c9e86bdsys/contrib/pcg-c/include pcg_variants.h

Import PCG-C into sys/contrib

The intended (future) use is to provide fast pseudo-random numbers in non-
cryptographic applications.
DeltaFile
+2,544-0sys/contrib/pcg-c/include/pcg_variants.h
+2,544-01 files

HardenedBSD/src 9119baf (r363720)sys/contrib/pcg-c/include pcg_variants.h

Import PCG-C into sys/contrib

The intended (future) use is to provide fast pseudo-random numbers in non-
cryptographic applications.
DeltaFile
+2,544-0sys/contrib/pcg-c/include/pcg_variants.h
+2,544-01 files