Displaying 1 50 of 322,568 commits (0.030s)

FreeBSD — head/cddl/usr.sbin/dtrace/tests/tools exclude.sh

Annotate pragma/err.invalidlibdep.ksh as EXFAIL.

The test creates a D library with a "depends_on library" pragma
referencing a non-existent library, and expects compilation to fail.
However, as far as I can tell, libdtrace is supposed simply abort
compilation of the library in this case, and continue. This behaviour
is desirable when adding libraries which depend on optional KLDs, for

MFC after:        1 week

FreeBSD — head/usr.sbin/bsdinstall/scripts services

bsdinstall: Add ntpdate option

When you install a computer for the first time, the date in the CMOS sometimes
not accurate and you need to ntpdate as ntpd will fail a the time difference
is too big.
Add an option in bsdinstall to enable ntpdate that will do that for us.

Reviewed by:        allanjude
Differential Revision:        https://reviews.freebsd.org/D13149

FreeBSD — head/usr.sbin/bsdinstall/scripts wlanconfig

Fix indentation in bsdinstall-created wpa_supplicant.conf

r309934 cleaned up some cases in bsdinstall to use heredocs but broke
the indentation of the generated output, because <<- heredocs strip
leading tabs.

PR:                221982
Reviewed by:        allanjude, dteske
MFC after:        2 weeks
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D13190

FreeBSD — head/sys/netinet tcp_subr.c

Use the right variable for the IP header parameter to tcp:::send.

This addresses a regression from r311225.

MFC after:        1 week
Delta File
+8 -4 head/sys/netinet/tcp_subr.c
+8 -4 1 file

FreeBSD — head/sys/riscv/riscv pmap.c

o Invalidate the correct page in pmap_protect().
  With this bug fix we don't need to invalidate all the entries.
o Remove a call to pmap_invalidate_all(). This was never called
  as the anyvalid variable is never set.

Obtained from:        arm64/pmap.c (r322797, r322800)
Sponsored by:        DARPA, AFRL
Delta File
+1 -8 head/sys/riscv/riscv/pmap.c
+1 -8 1 file

FreeBSD — stable/11/share/man/man4 ctl.4, stable/11/sys/cam/ctl ctl.c ctl_private.h

MFC r325517, r325554

ctl: Make max_luns and max_ports tunable variables instead of hardcoded

Reviewed by:        trasz (earlier version), bapt (earlier version), bcr (manpages)
Sponsored by:        Gandi.net
Differential Revision:        https://reviews.freebsd.org/D12836

ctl(4): Insert a new line after a sentence-ending full stop.

Reported by:        bjk
Sponsored by:        Gandi.net
X-MFC-With:  r325517

FreeBSD — head/stand/common dev_net.c

net_parse_rootpath() has no parameters

Add void for parameter list.
Delta File
+1 -1 head/stand/common/dev_net.c
+1 -1 1 file

FreeBSD — head/stand/efi/libefi efipart.c

loader.efi: efipart does not recognize partitionless disks

Rework the block device handle check to allow more robust device
classification. This is mostly usability issue - it can be quite confusing
for user when no disks are listed with lsdev.

Add more comments about what and why is done.

Reviewed by:        imp
Differential Revision:        https://reviews.freebsd.org/D13026
Delta File
+100 -11 head/stand/efi/libefi/efipart.c
+100 -11 1 file

FreeBSD — stable/10/share/man/man4 arcmsr.4, stable/10/sys/dev/arcmsr arcmsr.c arcmsr.h

MFC r325532: Update arcmsr(4) to

 - Fix clear doorbell queue buffer for ADAPTER_TYPE_B
 - Fix release memory resource when detach device
 - Add support for ARC-1216, 1226 SAS 12Gb controllers
 - Declare some functions as static
 - Change checking dword read/write for IOP rqbuffer.

Many thanks to Areca for continuing to support FreeBSD.

Submitted by: 黃清隆 <ching2048 areca com tw>

FreeBSD — stable/11/share/man/man4 arcmsr.4, stable/11/sys/dev/arcmsr arcmsr.c arcmsr.h

MFC r325532: Update arcmsr(4) to

 - Fix clear doorbell queue buffer for ADAPTER_TYPE_B
 - Fix release memory resource when detach device
 - Add support for ARC-1216, 1226 SAS 12Gb controllers
 - Declare some functions as static
 - Change checking dword read/write for IOP rqbuffer.

Many thanks to Areca for continuing to support FreeBSD.

Submitted by: 黃清隆 <ching2048 areca com tw>

FreeBSD — head/sys/netpfil/ipfw ip_fw_sockopt.c ip_fw2.c

Add ipfw_add_protected_rule() function that creates rule with 65535
number in the reserved set 31. Use this function to create default rule.

Obtained from:        Yandex LLC
MFC after:        1 week
Sponsored by:        Yandex LLC

FreeBSD — head/lib/libc/sys statfs.2

Add a reference to getfsstat in statfs.

Sponsored by: Netflix
Delta File
+2 -1 head/lib/libc/sys/statfs.2
+2 -1 1 file

FreeBSD — head/usr.bin/patch patch.c

patch(1): don't assume a match if we run out of context to check

Patches with very little context (-U0 and -U1) could get misapplied if
the file to be patched changes and a hunk is no longer applicable. Matching
with fuzz would be attempted and default to a match when we unexpectedly ran
out of context.

This also affected patches with higher levels of context but had limited
actual context due to the hunk being located near the beginning/end of file.

PR:                74127, 223545 (exp-run)
Reviewed by:        emaste, pfg
Approved by:        emaste (mentor)
Differential Revision:        https://reviews.freebsd.org/D12631
Delta File
+3 -0 head/usr.bin/patch/patch.c
+3 -0 1 file

FreeBSD — head/sys/cddl/dev/profile profile.c

PowerPC has 12 artificial frames for the profiler

It may need to be different between AIM and Book-E, this was tested only on
Book-E (64- and 32-bit)

MFC after:        3 weeks

FreeBSD — head/usr.sbin/freebsd-update freebsd-update.sh

freebsd-update: do not duplicate patchlist entries

PR:                221079
Submitted by:        Masachika ISHIZUKA
Submitted by:        ota at j.email.ne.jp
Reviewed by:        cperciva
MFC after:        1 week

FreeBSD — user/jeff/numa/sys/vm vm_page.c vm_kern.c

Update for r325992

Use the domain specific functions in kmem_alloc_*.

FreeBSD — head/sys/dev/bhnd bhnd.h bhnd_bus_if.m, head/sys/dev/bhnd/bhndb bhndb_subr.c bhndb.c

bhnd(4): Add support for querying DMA address translation parameters

BHND Wi-Fi chipsets and SoCs share a common DMA engine, operating within
backplane address space. To support host DMA on Wi-Fi chipsets, the bridge
core maps host address space onto the backplane; any host addresses must
be translated to their corresponding backplane address.

- Defines a new bhnd_get_dma_translation(9) API to support querying DMA
  address translation parameters from the bhnd(4) bus.
- Extends bhndb(4) to provide DMA translation descriptors from a DMA
  address translation table defined in the host bridge-specific
- Defines bhndb(4) DMA address translation tables for all supported host
  bridge cores.
- Extends mips/broadcom's bhnd_nexus driver to return an identity (no-op)
  DMA translation descriptor; no translation is required when addressing
  the SoC backplane.

Approved by:        adrian (mentor)
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D12582

FreeBSD — head/sys/dev/bhnd bhnd_bus_if.m bhnd.h, head/sys/dev/bhnd/bcma bcma_subr.c bcma.c

bhnd(4): implement MIPS and PCI(e) interrupt support

On BHND MIPS SoCs, this replaces the use of hard-coded MIPS IRQ#s in the
common bhnd(4) core drivers; we now register an INTRNG child PIC that
handles routing of backplane interrupt vectors via the MIPS core.

On BHND PCI devices, backplane interrupt vectors are now routed to the
PCI/PCIe host bridge core when bus_setup_intr() is called, where they are
dispatched by the PCI core via a host interrupt (e.g. INTx/MSI).

The bhndb(4) bridge driver tracks registered interrupt handlers for the
bridged bhnd(4) devices and manages backplane interrupt routing, while
delegating actual bus interrupt setup/teardown to the parent bus on behalf
of the bridged cores.

Approved by:        adrian (mentor, implicit)
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D12518

FreeBSD — user/jeff/numa/sys/vm uma_core.c

Fix for r325754

Limit UMA reclaim calls to once per-second.
Delta File
+12 -9 user/jeff/numa/sys/vm/uma_core.c
+12 -9 1 file

FreeBSD — user/jeff/numa/lib/libmemstat memstat_uma.c, user/jeff/numa/sys/amd64/amd64 uma_machdep.c


This is a slightly refactored version from the original projects/numa branch
with better iterators and cleaner integration with the vm_page_alloc and
kmem_*alloc layers.

FreeBSD — user/jeff/numa/sys/vm vm_kern.c

Update for r325992

Just return if the caller specifies a zero size.  This can happen when
kmem_back fails to allocate the first page.
Delta File
+2 -0 user/jeff/numa/sys/vm/vm_kern.c
+2 -0 1 file

FreeBSD — head/sys/contrib/cloudabi cloudabi_vdso_armv6_on_64bit.S cloudabi_vdso_armv6.S

Import the latest CloudABI definitions, v0.18.

In addition to some small style fixes to the ARMv6 vDSO, this release
includes a new vDSO that can be used for the execution of ARMv6/ARMv7
code on 64-bit platforms.

Just like for i686 on x86-64, this new vDSO is responsible for padding
arguments and return values to 64-bit values, so that the kernel can
easily forward system calls to the native system calls.

Obtained from:        https://github.com/NuxiNL/cloudabi

FreeBSD — head/etc/periodic/daily 200.backup-passwd

filter all passwords (not only changed) from periodic passwd backup

The periodic 200.backup-passwd script outputs any differences it finds
in master.passwd, relative to the previous backup.  It intends to elide
the encrypted password field, but previously did so only for changed
lines (i.e., those beginning with - or + in the diff).

Apply the sed expression also to unchanged lines to also elide their

PR:                223461
Reported by:        Andre Albsmeier
MFC after:        2 weeks
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/usr.bin/systat vmstat.c Makefile

systat: use and correctly display 64bit counters.

Following struct vmtotal changes, make systat use and correctly
display 64-bit counters.  Switch to humanize_number(3) to overcome
homegrown arithmetics limits in pretty printing large numbers.  Use
1024 as a divisor for memory fields to make it consistent with other
tools and users expectations.

Submitted by:        Pawel Biernacki <pawel.biernacki at gmail.com>
Sponsored by:        Mysterious Code Ltd.
PR:        2137
Differential revision:        https://reviews.freebsd.org/D13105

FreeBSD — head/stand Makefile.inc

Unbreak riscv build in universe.

riscv doesn't have -msoft-float. For the moment, just don't add
anything. There's no /boot/loader or other bootstrap contained in the
tree for riscv*. However, with real hardware coming next year, there
are plans for one, so keep building at least a minimal libsa and
ficl to prevent bitrot.

Sponsored by: Netflix
Delta File
+3 -1 head/stand/Makefile.inc
+3 -1 1 file

FreeBSD — head Makefile

Use TARGET_ARCH=riscv64 when TARGET=riscv

The supported targets are riscv64 and riscv64sf. Use the former when
building with a bare TARGET=riscv and it is the more common one.

Sponsored by: Netflix
Delta File
+1 -1 head/Makefile
+1 -1 1 file

FreeBSD — head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_vnops.c

zfs_write: fix problem with writes appearing to succeed when over quota

The problem happens when the writes have offsets and sizes aligned with
a filesystem's recordsize (maximum block size).  In this scenario
dmu_tx_assign() would fail because of being over the quota, but the uio
would already be modified in the code path where we copy data from the
uio into a borrowed ARC buffer.  That makes an appearance of a partial
write, so zfs_write() would return success and the uio would be modified
consistently with writing a single block.

That bug can result in a data loss because the writes over the quota
would appear to succeed while the actual data is being discarded.

This commit fixes the bug by ensuring that the uio is not changed until
after all error checks are done.  To achieve that the code now uses
uiocopy() + uioskip() as in the original illumos design.  We can do that
now that uiocopy() has been updated in r326067 to use

Reported by:        mav
Analyzed by:        mav
Reviewed by:        mav
Pointyhat to:        avg (myself)
MFC after:        1 week
X-MFC after:        r326067
X-Erratum:        wanted

FreeBSD — head/stand/i386/gptzfsboot Makefile, head/stand/i386/libi386 Makefile

Fix gptzfsboot for cases with GELI.

HAVE_GPT isn't currently a thing, but HAVE_GELI is. Replace the former
with the latter and remove util.o from the build list (it's picked up
from libsa/libsa32, and that's OK).

Sponsored by: Netflix

FreeBSD — head/release/tools ec2.conf gce.conf

Remove /etc/resolv.conf from virtual machine images, which is
copied from the build host.  It is renamed to /etc/resolv.conf.bak
on boot, so never used anyway.

Noticed by:        peter
MFC after:        3 days
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/cddl/compat/opensolaris/kern opensolaris_uio.c

make illumos uiocopy use vn_io_fault_uiomove

uiocopy() is currently unused, its purpose is copy data from a uio
without modifying the uio.  It was in use before the vn_io_fault support
was added to ZFS, at which point our code diverged from the illumos code
a little bit.  Because ZFS is the only (potential) user of the function
we are free to modify it to better suit ZFS needs.

The intention behind this change is to remove the differences introduced
earlier in zfs_write().

While here, re-implement uioskip() using uiomove() with
uio_segflg == UIO_NOCOPY.
The story of uioskip is the same as with uiocopy.

Reviewed by:        mav
MFC after:        1 week

FreeBSD — head/sys/arm64/conf GENERIC, head/sys/conf files

Add a driver for the EFI RTC. This uses the EFI Runtime Services to query
the system time.

As we seem to only read this time on boot, and this is the only source of
time on many arm64 machines we need to enable this by default there. As
this is not always the case with U-Boot firmware, or when we have been
booted from a non-UEFI environment we only enable the device driver when
the Runtime Services are present and reading the time doesn't result in an

PR:                212185
Reviewed by:        imp, kib
Tested by:        emaste
Relnotes:        yes
Sponsored by:        DARPA, AFRL
Differential Revision:        https://reviews.freebsd.org/D12650

FreeBSD — head/sys/cam cam.c

Fix uninitialized variable from 326034

Reported by:        Coverity
CID:                1382887
MFC after:        20 days
X-MFC-With:        326034
Sponsored by:        Spectra Logic Corp
Delta File
+2 -1 head/sys/cam/cam.c
+2 -1 1 file

FreeBSD — head/lib/libproc proc_sym.c, head/lib/libproc/tests proc_test.c target_prog.c

Refine symtab sorting in libproc.

Add some rules to more closely match what illumos does when an address
resolves to multiple symbols:
- prefer non-local symbols
- prefer symbols with fewer leading underscores and no leading '$'

Add some regression tests to verify these rules.

FreeBSD — head/cddl/usr.sbin/dtrace/tests/tools exclude.sh

Annotate usdt/tst.eliminate.ksh as EXFAIL.

It appears to depend on some behaviour specific to the Sun link editor.

MFC after:        1 week

FreeBSD — stable/11/sys/dev/vnic nicvf_queues.c

MFC r325813 (bz): Unbreak IPv6.

No longer return ENXIO when trying to send an IPv6 packet in
Restructure the code so that the upper layer protocol parts are
agnostic of the L3 protocol (and no longer specific to IPv4).
With this basic IPv6 packets go through.  We are still seeing
weird behaviour which needs further diagnosis.

PR:                223669
Delta File
+68 -59 stable/11/sys/dev/vnic/nicvf_queues.c
+68 -59 1 file

FreeBSD — head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid err.D_PROC_NAME.badname.d

Don't assume that we can resolve "main" in the ksh executable.

MFC after:        1 week

FreeBSD — head/share/man/man9 sx.9 rmlock.9, head/sys/kern kern_rmlock.c kern_rwlock.c

Clean up the SYSINIT_FLAGS definitions for rwlock(9) and rmlock(9).

Avoid duplication in their macro definitions, and document them. No
functional change intended.

MFC after:        1 week

FreeBSD — stable/11/sys/dev/vnic nicvf_main.c

MFC r325811: vnic: report that the driver supports multicast

The driver is currently hardcoded to force promiscuous mode, so all of
the MAC filtering code is presently unused and multicast should "just
work."  Report to the higher layers that multicast is supported.

PR:                223573
Reported by:        bz
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/dev/iser icl_iser.c

Make sure all initialized mutexes are destroyed in the iser module,
else WITNESS will panic. Prefix all mutex names with "iser_" to
prevent future WITNESS issues.

Sponsored by:        Mellanox Technologies
MFC after:        1 week
Delta File
+4 -3 head/sys/dev/iser/icl_iser.c
+4 -3 1 file

FreeBSD — head/usr.sbin/vidcontrol vidcontrol.c

vidcontrol: correct history size error message

`vidcontrol -h 0` is acceptable, so be explicit that it's less than zero
that is not allowed.

Reported by:        Siva Mahadevan
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/arm64/arm64 vfp.c

When fpcurthread is not the current thread it may be non-NULL. In this
case another thread has had the VFP unit enabled and will have its state
in the VFP registers along with it stored in memory. As such we don't need
to store the state, but do need to zero the fpcurthread pointer to stop
the VFP driver from using the enable fast path.

Reported by:        emaste
Sponsored by:        DARPA, AFRL
Delta File
+1 -4 head/sys/arm64/arm64/vfp.c
+1 -4 1 file

FreeBSD — head/sys/vm vm_page.c

Allow for fictitious physical pages in vm_page_scan_contig().

Some drm2 drivers will set PG_FICTITIOUS in physical pages in order to
satisfy the OBJT_MGTDEVICE object interface, so a scan may encounter
fictitous pages. For now, allow for this possibility; such pages will be
skipped later in the scan since they are wired.

Reported by:        avg
Reviewed by:        kib
MFC after:        1 week
Delta File
+4 -2 head/sys/vm/vm_page.c
+4 -2 1 file

FreeBSD — stable/10/sys/ofed/include/linux device.h

MFC r299674 and r299931:
Handle case of class being set, but not parent when calling
device_register() in the LinuxKPI.

Requested by:        Chelsio
Sponsored by:        Mellanox Technologies

FreeBSD — projects/bsd_rdma_4_9/sys/modules/mlx4 Makefile

Compile fix for the mlx4 module.

Sponsored by:        Mellanox Technologies

FreeBSD — head/usr.bin/gzip gzip.c gzip.1

Support SIGINFO.

Obtained from:        NetBSD
MFC after:        2 weeks

FreeBSD — head/usr.sbin/efidp efidp.c

This program is more useful if it skips leading whitespace when
parsing a textual UEFI Device Path, since otherwise it things the
passed in path is a filename. While here, reduce the repetition of

Sponsored by: Netflix
Delta File
+11 -4 head/usr.sbin/efidp/efidp.c
+11 -4 1 file

FreeBSD — head/usr.sbin/efidp efidp.8

Document what the command line arguments actually do. List some of the
size limitations.

Sponsored by: Netflix
Delta File
+23 -4 head/usr.sbin/efidp/efidp.8
+23 -4 1 file

FreeBSD — head/sys/geom/part g_part_mbr.c

While the EFI spec allows numbers to be in many forms, libefivar
produces hex numbers for the dsn. Since that come is from EDK2, change
this for symmetry, by generating the dsn as a hex number.

Noticed by: gpart list | grep efimedia | awk -F: '{print $2;}' | \
        sed -e 's/^ *//g;s/,,/,/' | grep MBR | efidp -p | efidp -f
Sponsored by: Netflix
Delta File
+1 -1 head/sys/geom/part/g_part_mbr.c
+1 -1 1 file

FreeBSD — head/sys/geom/part g_part_ebr.c g_part_gpt.c

Remove trailing whitespace (one I just introduced and a bunch of
others in the same directory).

Sponsored by: Netflix

FreeBSD — head/sys/geom/part g_part_mbr.c

Implement efi media tagging for MBR partitioning types.

Sponsored by: Netflix
Delta File
+9 -1 head/sys/geom/part/g_part_mbr.c
+9 -1 1 file