FreeBSD/src 09b8745sys/kern vfs_acl.c

kern___acl_aclcheck_path: vrele the vnode after namei()

(cherry picked from commit 7fad17a3e63481ef71b731b0059cb918aec14f17)
DeltaFile
+1-0sys/kern/vfs_acl.c
+1-01 files

FreeBSD/src 7fad17asys/kern vfs_acl.c

kern___acl_aclcheck_path: vrele the vnode after namei()

Reported and tested by: pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+1-0sys/kern/vfs_acl.c
+1-01 files

FreeBSD/src 1b30c5dsys/kern vfs_acl.c

acl_copyin: avoid returning uninitialized memory

acl_copyin did not validate the return value of acl_copy_oldacl_into_acl
which could lead to uninitialized acl structure memory reads.

Reported by:    Synacktiv
Reviewed by:    markj, emaste
Sponsored by:   The Alpha-Omega Project
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46125

(cherry picked from commit 6ee6c7b146643170602091e8c330314e4ef47b42)
(cherry picked from commit 6bf5c32ad8aa1f1602b3cefb0b5e5918db287335)
(cherry picked from commit 8f16d9f7dc8c119f8ba9ff27d4ce9c48d0b56d11)

Approved by:    re (cperciva)
DeltaFile
+1-1sys/kern/vfs_acl.c
+1-11 files

FreeBSD/src 8f16d9fsys/kern vfs_acl.c

acl_copyin: avoid returning uninitialized memory

acl_copyin did not validate the return value of acl_copy_oldacl_into_acl
which could lead to uninitialized acl structure memory reads.

Reported by:    Synacktiv
Reviewed by:    markj, emaste
Sponsored by:   The Alpha-Omega Project
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46125

(cherry picked from commit 6ee6c7b146643170602091e8c330314e4ef47b42)
(cherry picked from commit 6bf5c32ad8aa1f1602b3cefb0b5e5918db287335)
DeltaFile
+1-1sys/kern/vfs_acl.c
+1-11 files

FreeBSD/src 6bf5c32sys/kern vfs_acl.c

acl_copyin: avoid returning uninitialized memory

acl_copyin did not validate the return value of acl_copy_oldacl_into_acl
which could lead to uninitialized acl structure memory reads.

Reported by:    Synacktiv
Reviewed by:    markj, emaste
Sponsored by:   The Alpha-Omega Project
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46125

(cherry picked from commit 6ee6c7b146643170602091e8c330314e4ef47b42)
DeltaFile
+1-1sys/kern/vfs_acl.c
+1-11 files

FreeBSD/src 6ee6c7bsys/kern vfs_acl.c

acl_copyin: avoid returning uninitialized memory

acl_copyin did not validate the return value of acl_copy_oldacl_into_acl
which could lead to uninitialized acl structure memory reads.

Reported by:    Synacktiv
Reviewed by:    markj, emaste
Sponsored by:   The Alpha-Omega Project
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46125
DeltaFile
+1-1sys/kern/vfs_acl.c
+1-11 files

FreeBSD/src fdafd31sys/cddl/dev/dtrace/x86 instr_size.c, sys/dev/malo if_malo.c

sys: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by:           Netflix
DeltaFile
+0-4sys/cddl/dev/dtrace/x86/instr_size.c
+0-4sys/dev/malo/if_malo.c
+0-4sys/net80211/ieee80211_wds.c
+0-4sys/net80211/ieee80211_vht.c
+0-4sys/net80211/ieee80211_tdma.c
+0-4sys/net80211/ieee80211_sta.c
+0-241,811 files not shown
+84-1,8811,817 files

FreeBSD/src 3bc8099sys/dev/ioat ioat_test.h ioat_internal.h, sys/dev/pwm pwm_backlight.c

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

Similar commit in current:
(cherry picked from commit 685dc743dc3b)
DeltaFile
+0-3sys/riscv/riscv/swtch.S
+0-3sys/riscv/riscv/bus_space_asm.S
+0-3sys/kern/subr_syscall.c
+0-3sys/dev/pwm/pwm_backlight.c
+0-3sys/dev/ioat/ioat_test.h
+0-3sys/dev/ioat/ioat_internal.h
+0-184,033 files not shown
+0-7,9144,039 files

FreeBSD/src 685dc74sys/dev/ioat ioat_test.h, sys/dev/mana mana_sysctl.c

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
DeltaFile
+0-3sys/riscv/riscv/swtch.S
+0-3sys/riscv/riscv/bus_space_asm.S
+0-3sys/kern/subr_syscall.c
+0-3sys/dev/pwm/pwm_backlight.c
+0-3sys/dev/mana/mana_sysctl.c
+0-3sys/dev/ioat/ioat_test.h
+0-183,795 files not shown
+0-7,4523,801 files

FreeBSD/src caa41f6include bitstring.h complex.h, sys/dev/qlxge qls_isr.c

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:         pfg
MFC After:              3 days
Sponsored by:           Netflix

(cherry picked from commit 4d846d260e2b9a3d4d0a701462568268cbfe7a5b)
DeltaFile
+2-2sys/dev/qlxge/qls_isr.c
+2-2sys/xen/xenbus/xenbusb.h
+1-1include/bitstring.h
+1-1include/complex.h
+1-1include/cpio.h
+1-1include/elf-hints.h
+8-85,432 files not shown
+5,440-5,4405,438 files

FreeBSD/src 1e26f44lib/libc/sys open.2, sys/kern vfs_acl.c

__acl_get_fd(2), __acl_aclcheck_fd(2): enable for O_PATH filedescriptors

PR:     271704

(cherry picked from commit 7a292504bad8467915f072f0576b2a07c76de1f5)
DeltaFile
+2-2sys/kern/vfs_acl.c
+2-1lib/libc/sys/open.2
+4-32 files

FreeBSD/src 7a29250lib/libc/sys open.2, sys/kern vfs_acl.c

__acl_get_fd(2), __acl_aclcheck_fd(2): enable for O_PATH filedescriptors

PR:     271704
Reported by:    Peter Eriksson  <pen at lysator.liu.se>
Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D40318
DeltaFile
+2-2sys/kern/vfs_acl.c
+2-1lib/libc/sys/open.2
+4-32 files

FreeBSD/src 4d846d2lib/libc/gen utxdb.c utxdb.h, sys/dev/qlxge qls_isr.c

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:         pfg
MFC After:              3 days
Sponsored by:           Netflix
DeltaFile
+2-2sys/dev/qlxge/qls_isr.c
+2-2sys/xen/xenbus/xenbusb.h
+1-1lib/libc/gen/utxdb.c
+1-1lib/libc/gen/utxdb.h
+1-1lib/libc/gen/waitid.c
+1-1lib/libc/gen/wordexp.c
+8-85,571 files not shown
+5,579-5,5795,577 files

FreeBSD/src 85dac03sys/kern vfs_acl.c vfs_extattr.c, sys/security/mac mac_syscalls.c

vfs: stop using NDFREE

It provides nothing but a branchfest and next to no consumers want it
anyway.

Tested by:      pho
DeltaFile
+7-4sys/kern/vfs_acl.c
+5-3sys/kern/vfs_extattr.c
+4-3sys/security/mac/mac_syscalls.c
+3-1sys/kern/vfs_cache.c
+2-1sys/kern/vfs_subr.c
+21-125 files

FreeBSD/src a75d1ddsys/fs/nfsserver nfs_nfsdstate.c, sys/fs/unionfs union_subr.c

vfs: introduce V_PCATCH to stop abusing PCATCH
DeltaFile
+15-15sys/kern/vfs_syscalls.c
+14-8sys/kern/vfs_vnops.c
+3-3sys/fs/unionfs/union_subr.c
+3-3sys/kern/vfs_extattr.c
+2-2sys/security/mac/mac_syscalls.c
+2-2sys/fs/nfsserver/nfs_nfsdstate.c
+39-336 files not shown
+47-3912 files

FreeBSD/src 7aeec4esys/fs/procfs procfs_regs.c procfs_dbregs.c, sys/kern vfs_aio.c uipc_syscalls.c

sysent: Get rid of bogus sys/sysent.h include.

Where appropriate hide sysent.h under proper condition.

MFC after:      2 weeks

(cherry picked from commit 31d1b816fe139f46083f8609c34b7d129a6e2ee0)
DeltaFile
+1-1sys/kern/vfs_aio.c
+1-1sys/fs/procfs/procfs_regs.c
+2-0sys/kern/uipc_syscalls.c
+2-0sys/kern/kern_prot.c
+1-1sys/fs/procfs/procfs_dbregs.c
+1-1sys/fs/procfs/procfs_fpregs.c
+8-422 files not shown
+8-2628 files

FreeBSD/src 31d1b81sys/fs/procfs procfs_regs.c procfs_dbregs.c, sys/kern vfs_aio.c uipc_syscalls.c

sysent: Get rid of bogus sys/sysent.h include.

Where appropriate hide sysent.h under proper condition.

MFC after:      2 weeks
DeltaFile
+1-1sys/kern/vfs_aio.c
+1-1sys/fs/procfs/procfs_regs.c
+2-0sys/kern/uipc_syscalls.c
+1-1sys/fs/procfs/procfs_dbregs.c
+1-1sys/fs/procfs/procfs_fpregs.c
+2-0sys/kern/kern_prot.c
+8-422 files not shown
+8-2628 files

FreeBSD/src 7e1d3eesys/contrib/openzfs/module/os/freebsd/zfs zfs_vnops_os.c, sys/fs/nfsserver nfs_nfsdstate.c

vfs: remove the unused thread argument from NDINIT*

See b4a58fbf640409a1 ("vfs: remove cn_thread")

Bump __FreeBSD_version to 1400043.
DeltaFile
+30-33sys/kern/vfs_syscalls.c
+9-9sys/sys/namei.h
+8-8sys/kern/vfs_extattr.c
+6-6sys/fs/nfsserver/nfs_nfsdstate.c
+5-6sys/kern/vfs_mountroot.c
+4-5sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c
+62-6743 files not shown
+123-14149 files

FreeBSD/src 422f38d (r363071)sys/kern vfs_bio.c vfs_vnops.c

vfs: fix trivial whitespace issues which don't interefere with blame

.. even without the -w switch
DeltaFile
+8-8sys/kern/vfs_bio.c
+3-3sys/kern/vfs_vnops.c
+2-2sys/kern/vfs_lookup.c
+1-1sys/kern/vfs_mountroot.c
+1-1sys/kern/vfs_export.c
+1-1sys/kern/vfs_acl.c
+16-164 files not shown
+19-2010 files

FreeBSD/src dca7f66 (r357966)sys/contrib/dev/acpica changes.txt, sys/contrib/dev/acpica/compiler aslload.c aslmethod.c

Merge ^/head r357931 through r357965.
DeltaFile
+87-145sys/kern/kern_tc.c
+174-54sys/contrib/dev/acpica/compiler/aslload.c
+170-35sys/contrib/dev/acpica/compiler/aslmethod.c
+100-2sys/contrib/dev/acpica/changes.txt
+43-43sys/kern/subr_capability.c
+79-5sys/contrib/dev/acpica/compiler/asltransform.c
+653-28455 files not shown
+1,109-51061 files

FreeBSD/src e126c5a (r357951)sys/kern vfs_syscalls.c vfs_acl.c

vfs: use new capsicum helpers
DeltaFile
+11-11sys/kern/vfs_syscalls.c
+4-4sys/kern/vfs_acl.c
+4-4sys/kern/vfs_extattr.c
+3-3sys/kern/vfs_lookup.c
+22-224 files

FreeBSD/src 59abbff (r357350)contrib/apr/random/unix apr_random.c, sys/dev/mlx5/mlx5_core mlx5_cq.c

Merge ^/head r357270 through r357349.
DeltaFile
+332-108sys/vm/uma_core.c
+386-0sys/kern/subr_smr.c
+19-257contrib/apr/random/unix/apr_random.c
+227-0tools/uma/smrstress/smrstress.c
+179-0sys/sys/smr.h
+80-94sys/dev/mlx5/mlx5_core/mlx5_cq.c
+1,223-459214 files not shown
+2,311-1,925220 files

FreeBSD/src 3ff65f7 (r357312)sys/kern subr_filter.c kern_jail.c

Remove duplicated empty lines from kern/*.c

No functional changes.
DeltaFile
+0-6sys/kern/subr_filter.c
+0-6sys/kern/kern_jail.c
+0-4sys/kern/uipc_usrreq.c
+0-4sys/kern/subr_unit.c
+0-4sys/kern/vfs_vnops.c
+0-4sys/kern/subr_intr.c
+0-2856 files not shown
+0-11162 files

FreeBSD/src b249ce4 (r356337)sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_vnops.c, sys/fs/unionfs union_vnops.c

vfs: drop the mostly unused flags argument from VOP_UNLOCK

Filesystems which want to use it in limited capacity can employ the
VOP_UNLOCK_FLAGS macro.

Reviewed by:    kib (previous version)
Differential Revision:  https://reviews.freebsd.org/D21427
DeltaFile
+30-30sys/fs/unionfs/union_vnops.c
+25-25sys/kern/vfs_vnops.c
+24-24sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
+22-22sys/kern/vfs_syscalls.c
+21-21sys/ufs/ufs/ufs_vnops.c
+17-22sys/kern/vfs_subr.c
+139-144109 files not shown
+572-589115 files

FreeBSD/src aff4f2d (r329342)sys/kern vfs_acl.c

Reduce duplication in __acl_*_(file|link).

Add const to new kern_ functions and push down as required.

Reviewed by:    rwatson
Obtained from:  CheriBSD
Sponsored by:   DARPA, AFRL
Differential Revision:  https://reviews.freebsd.org/D14174
DeltaFile
+64-54sys/kern/vfs_acl.c
+64-541 files

FreeBSD/src 8a36da9 (r326271)sys/kern subr_pctrie.c sys_process.c, sys/libkern/arm aeabi_unwind.c

sys/kern: adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
DeltaFile
+3-1sys/kern/subr_pctrie.c
+3-1sys/libkern/arm/aeabi_unwind.c
+2-0sys/kern/sys_process.c
+2-0sys/kern/sysv_ipc.c
+2-0sys/kern/sysv_msg.c
+2-0sys/kern/sysv_sem.c
+14-2123 files not shown
+260-2129 files

FreeBSD/src f907080 (r316307)sys/kern vfs_acl.c

Add system-call argument auditing for ACL-related system calls.

Obtained from:  TrustedBSD Project
MFC after:      3 weeks
Sponsored by:   DARPA, AFRL
DeltaFile
+27-5sys/kern/vfs_acl.c
+27-51 files

FreeBSD/src 416ba5c (r284687)contrib/ntp CommitLog configure, contrib/ntp/sntp configure

Catch up with HEAD (r280229-r284686).
DeltaFile
+177,242-8,203contrib/ntp/CommitLog
+29,219-17,107contrib/ntp/configure
+27,253-11,174contrib/ntp/sntp/configure
+10,723-13,061sys/dev/hptnr/amd64-elf.hptnr_lib.o.uu
+17,937-0contrib/ntp/sntp/libevent/configure
+7,405-9,147sys/dev/hptnr/i386-elf.hptnr_lib.o.uu
+269,779-58,69210,019 files not shown
+1,440,418-650,38610,025 files

FreeBSD/src 76aeda8 (r284648)lib/ncurses/ncursesw Makefile.depend, usr.bin/make job.c var.c

Merge ^/head r284188 through r284643.
DeltaFile
+0-3,391usr.bin/make/job.c
+0-2,623usr.bin/make/var.c
+0-2,545usr.bin/make/parse.c
+2,530-0lib/ncurses/ncursesw/Makefile.depend
+0-2,205usr.bin/make/suff.c
+0-1,843usr.bin/make/make.1
+2,530-12,6072,797 files not shown
+72,851-31,5342,803 files

FreeBSD/src baec3da (r284461)lib/msun/src s_csinh.c s_ccosh.c, sys/dev/drm2/ttm ttm_page_alloc.c

Merge from head at 274131
DeltaFile
+64-45sys/dev/drm2/ttm/ttm_page_alloc.c
+29-30lib/msun/src/s_csinh.c
+40-3sys/dev/mii/mii.h
+21-20lib/msun/src/s_ccosh.c
+18-17lib/msun/src/s_ctanh.c
+14-17lib/msun/src/s_csinhf.c
+186-13240 files not shown
+424-25746 files