Displaying 1 50 of 282,361 commits (0.067s)

FreeBSD — head/tools/bus_space busdma.c busdma.h, head/tools/bus_space/C lang.c libbus.h

Add busdma_md_create, busdma_md_destroy and busdma_md_load.

FreeBSD — head/share/man/man9 crypto.9

more word smithing wrt the crd_inject field...

We've already defined IV earlier, so no need to expand it a second
time here...
Delta File
+7 -5 head/share/man/man9/crypto.9
+7 -5 1 file

FreeBSD — head/sys/dev/proto proto_busdma.c proto_dev.h

Add create, destroy and load of memory descriptors.

FreeBSD — head/sys/conf kmod.mk, head/sys/modules/agp Makefile

Kill MFILES and find things automatically. It turned out to be only
lightly used. Find the proper .m file when we depend on *_if.[ch] in
the srcs line, with seat-belts for false positive matches.  This uses
make's path mechanism. A further refinement would be to calculate this
once, and then pass the resulting _MPATH to modules submakes.

Differential Revision: https://reviews.freebsd.org/D2327

FreeBSD — head/usr.sbin/mfiutil mfi_foreign.c

mfiutil: increase buffer size to accommodate sprintf string

PR:                201289
MFC after:        1 week

FreeBSD — head/sys/fs/nfsclient nfs_clrpcops.c

Alex Burlyga reported a POLA violation for the new NFS client as
compared to the old NFS client via email to the freebsd-fs@ mailing list.
For the new client, when multiple clients attempted to create a symbolic
link concurrently, more that one client would report success instead of
EEXIST. This was caused by code in the new client that mapped EEXIST to
OK assuming it was caused by a retried RPC request.
Since the old client did not do this, the patch defaults to the old
behaviour and permits the new behaviour to be enabled via a sysctl.

Reported by:        alex.burlyga.ietf at gmail.com
Tested by:        alex.burlyga.ietf at gmail.com
MFC after:        2 weeks
Delta File
+20 -3 head/sys/fs/nfsclient/nfs_clrpcops.c
+20 -3 1 file

FreeBSD — head/share/man/man9 crypto.9

update the documentation of the _IV_ flags...  _IV_PRESENT doesn't
mean what you think it should...  This will be fixed in the future
with a flag rename, but document what the flag really does and make
the _IV_ flags clear what their presents (or lack there of) means...

Reviewed by:        gnn, eri (both earlier version)
Delta File
+10 -11 head/share/man/man9/crypto.9
+10 -11 1 file

FreeBSD — head .arcconfig

Add repository.callsign, to help arcanist figure out what repo it's
doing things on when not using Subversion.

With hat:        phabric-admin@
Sponsored by:        Absolight
Delta File
+1 -0 head/.arcconfig
+1 -0 1 file

FreeBSD — head ObsoleteFiles.inc, head/contrib/tcpdump tcpdump.c

Let the nv.h and dnv.h includes be only in sys directory.

Change consumers to include those files from sys.
Add duplicated files to ObsoleteFiles.

Approved by:        pjd (mentor)

FreeBSD — head/sys/sys dnv.h

Add stddef.h for size_t typedef.

Approved by:        pjd (mentor)
Delta File
+1 -0 head/sys/sys/dnv.h
+1 -0 1 file

FreeBSD — stable/10/release/doc/share/xml errata.xml, stable/8/release/doc/share/xml errata.xml

Document EN-15:08 (revised), EN-15:09, EN-15:10.

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/lib/libutil pw_util.3

Bump .Dd due to changes made in r285050 and r285053

Spotted by:        loos
Approved by:        loos
Delta File
+1 -1 head/lib/libutil/pw_util.3
+1 -1 1 file

FreeBSD — head/sys/dev/proto proto_bus_isa.c proto_core.c, head/sys/modules/proto Makefile

Add an ISA/ACPI bus attachment to proto(4).

FreeBSD — head/sys/kern sysv_shm.c

sysvshm: fix up some whitespace issues and spurious initialisation
Delta File
+21 -25 head/sys/kern/sysv_shm.c
+21 -25 1 file

FreeBSD — head/sys/kern sysv_shm.c

sysvshm: don't lock proc when calculating attach_va

vm_daddr is constant and RLIMIT_DATA can be obtained from thread's copy of
Delta File
+1 -3 head/sys/kern/sysv_shm.c
+1 -3 1 file

FreeBSD — head/sys/kern sysv_shm.c

sysvshm: fix shmrealloc

The code was supposed to initialize new segs in newsegs array, but used the old
Delta File
+3 -3 head/sys/kern/sysv_shm.c
+3 -3 1 file

FreeBSD — head/sys/vm vm_mmap.c

vm: don't lock proc around accesses to vm_{t,d}addr and RLIMIT_DATA in sys_mmap

vm_{t,d}addr are constant and we can use thread's copy of resource limits
Delta File
+2 -4 head/sys/vm/vm_mmap.c
+2 -4 1 file

FreeBSD — head/lib/libutil pw_util.3

Improve pw_lock.3 text changed in r285050

Suggested by:        wblock
Approved by:        gnn
Delta File
+2 -2 head/lib/libutil/pw_util.3
+2 -2 1 file

FreeBSD — stable/10/sys/mips/include elf.h

MFC r269137 by marcel:

  Add missing definition of ELF_MACHINE_OK, now used by gcore(1).

PR:        201204
Delta File
+2 -0 stable/10/sys/mips/include/elf.h
+2 -0 1 file

FreeBSD — head/sys/netinet ip_input.c

Avoid doing multiple route lookups for the same destination IP during forwarding

ip_forward() does a route lookup for testing this packet can be sent to a known 
it also can do another route lookup if it detects that an ICMP redirect is needed,
it forgets all of this and handovers to ip_output() to do the same lookup yet again.

This optimisation just does one route lookup during the forwarding path and handovers that 
to be considered by ip_output().

Differential Revision:        https://reviews.freebsd.org/D2964
Approved by:        ae, gnn(mentor)
MFC after:        1 week
Delta File
+18 -17 head/sys/netinet/ip_input.c
+18 -17 1 file

FreeBSD — head/lib/libutil gr_util.c pw_util.3, head/usr.sbin/pwd_mkdb pwd_mkdb.c

When passwd or group information is changed (by pw, vipw, chpass, ...)
temporary file is created and then a rename() call move it to official file.
This operation didn't have any check to make sure data was written to disk
and if a power cycle happens system could end up with a 0 length passwd
or group database.

There is a pfSense bug with more infor about it:


The following changes were made to protect passwd and group operations:

* lib/libutil/gr_util.c:
 - Replace mkstemp() by mkostemp() with O_SYNC flag to create temp file
 - After rename(), fsync() call on directory for faster result

* lib/libutil/pw_util.c
 - Replace mkstemp() by mkostemp() with O_SYNC flag to create temp file

* usr.sbin/pwd_mkdb/pwd_mkdb.c
 - Added O_SYNC flag on dbopen() calls
 - After rename(), fsync() call on directory for faster result

* lib/libutil/pw_util.3
 - pw_lock() returns a file descriptor to master password file on success

    [4 lines not shown]

FreeBSD — stable/10/release Makefile.vagrant Makefile.gce, stable/10/release/scripts atlas-upload.sh

MFC r284893, r284895-r284897, r284942, r284968, r284996, r285005:

 r284893 (brd):
  Add initial support for building Vagrant images for VMWare.
  Next steps will be adding Virtualbox support and uploading
  to Hashicorp Atlas for others to consume.

  Add default VAGRANT_IMG variable.

  Remove _ACCOUNT and add _USERNAME, _NAME, _VERSION for the
  VAGRANT_${VAR} variables extracted from VAGRANT_UPLOAD_CONF.

  is set.  There is intent to intentionally have separate
  variants of configuration entries, but the defaults do not
  yet have any reason to be different.

  Instead of hard-coding the PROVIDERS for upload, add the
  VAGRANT_PROVIDERS variable.  Right now, it defaults to only
  vmware_desktop, virtualbox support is to follow at some point.

  While here, fix the hashicorp URL: s/vagrant/atlas/, which

    [23 lines not shown]

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

Remove an unneeded define and old comment referencing amd64.
Delta File
+0 -10 head/sys/arm64/arm64/pmap.c
+0 -10 1 file

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

Remove an old comment, the cache is enabled.

Obtained from:        ABT Systems Ltd
Sponsored by:        The FreeBSD Foundation
Delta File
+0 -4 head/sys/arm64/arm64/pmap.c
+0 -4 1 file

FreeBSD — head/sys/vm vm_map.c

Account for the main process stack being one page below the highest
user address when ABI uses shared page.

Note that the change is no-op for correctness, since shared page does
not fault.  The mapping for the shared page is installed at the
address space creation, the page is unmanaged and its pte/pv entry
cannot be reclaimed.

Submitted by:        Oliver Pinter
Review:        https://reviews.freebsd.org/D2954
MFC after:        1 week
Delta File
+2 -1 head/sys/vm/vm_map.c
+2 -1 1 file

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

Use pmap_load to load table entries. This simplifies finding places where
we access the tables.

Obtained from:        ABT Systems Ltd
Sponsored by:        The fReeBSD Foundation
Delta File
+20 -19 head/sys/arm64/arm64/pmap.c
+20 -19 1 file

FreeBSD — head/lib/csu/aarch64 crt1.c

Force the dynamic linker to resolve _end early so we pick up the correct

Sponsored by:        ABT Systems Ltd
Delta File
+12 -1 head/lib/csu/aarch64/crt1.c
+12 -1 1 file

FreeBSD — head/lib/libc/aarch64 Symbol.map, head/lib/libc/aarch64/sys brk.S sbrk.S

Cleanup brk and sbrk to use the same code to find curbrk and minbrk when
both compiling for PIC and non-PIC.

Sponsored by:        ABT Systems Ltd

FreeBSD — head/contrib/bmake/mk meta2deps.sh

Update meta2deps example after i386-elf to i386 rename

FreeBSD — head/gnu/usr.bin/gdb/kgdb trgt.c, head/sys/amd64/include pmc_mdep.h param.h

Use single instance of the identical INKERNEL() and PMC_IN_KERNEL()
macros on amd64 and i386.  Move the definition to machine/param.h.
kgdb defines INKERNEL() too, the conflict is resolved by renaming kgdb
version to PINKERNEL().

On i386, correct the lowest kernel address.  After the shared page was
introduced, USRSTACK no longer points to the last user address + 1 [*]

Submitted by:        Oliver Pinter [*]
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week

FreeBSD — head/sys/arm64/conf GENERIC

Enable kernel debugging on arm64, other than GDB as it fails to build.

Sponsored by:        ABT Systems Ltd
Delta File
+13 -0 head/sys/arm64/conf/GENERIC
+13 -0 1 file

FreeBSD — head/sys/kern vfs_mount.c

Vnode is not referenced by the vfs_domount() at the point where
asserts are made.  Remove them, since we might dereference freed
memory.  Leaked locks are asserted by the syscall return code anyway.

Reported and tested by:        pho
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week
Delta File
+0 -3 head/sys/kern/vfs_mount.c
+0 -3 1 file

FreeBSD — head/libexec/rtld-elf/aarch64 rtld_start.S

Save & restore the floating-pont argument registers before calling
_rtld_bind. The compiler may generate code using these registers and not
save them. Unfortunately, as we make use of libc, we are unable to disallow
rtld from using floating-point register without also doing the same for the
parts of libc we use, or by limiting what _rtld_bind is able to call.

Obtained from:        ABT Systems Ltd
Sponsored by:        The FReeBSD Foundation

FreeBSD — head/sbin/camcontrol camcontrol.c

Add -b to the devlist usage info, forgotten in r260059.

PR:                195094
Submitted by:        robin.hahling at gw-computing.net
MFC after:        1 week
Delta File
+1 -1 head/sbin/camcontrol/camcontrol.c
+1 -1 1 file

FreeBSD — head/share/mk bsd.cpu.mk

Set MACHINE_CPU to arm64 when building for arm64. This is needed by the
ports tree as they check this value in a number of ports.

PR:                201259
Sponsored by:        ABT Systems Ltd
Delta File
+3 -1 head/share/mk/bsd.cpu.mk
+3 -1 1 file

FreeBSD — vendor-crypto/openssh 6.9p1

Tag OpenSSH 6.9p1.
Delta File
+0 -0 vendor-crypto/openssh/6.9p1/
+0 -0 1 file

FreeBSD — vendor-crypto/openssh/dist ChangeLog auth2-pubkey.c, vendor-crypto/openssh/dist/contrib/redhat openssh.spec

Vendor import of OpenSSH 6.9p1.

FreeBSD — vendor-crypto/openssh 6.8p1

Tag OpenSSH 6.8p1.
Delta File
+0 -0 vendor-crypto/openssh/6.8p1/
+0 -0 1 file

FreeBSD — vendor-crypto/openssh/dist configure ChangeLog, vendor-crypto/openssh/dist/contrib Makefile caldera

Vendor import of OpenSSH 6.8p1.

FreeBSD — head/sys/cam/ctl ctl_backend_block.c

Fix couple panics on forced unmount of backing file.

MFC after:        1 week
Sponsored by:        iXsystems, Inc.
Delta File
+16 -11 head/sys/cam/ctl/ctl_backend_block.c
+16 -11 1 file

FreeBSD — head/sbin/newfs_nandfs newfs_nandfs.c

Fix an obviously wrong boolean operator.

PR:                200983
Submitted by:        David Bindeman
MFC after:        1 week

FreeBSD — head/usr.bin/calendar/calendars calendar.computer

Add the year to the VAX-11/780 announcement entry.

PR:                200961
Submitted by:        John Marshall
MFC after:        1 week

FreeBSD — stable/10/bin/freebsd-version Makefile

MFH (r277531): don't include newvers in freebsd-version

FreeBSD — head/games/fortune/datfiles fortunes

Fix a typo.

PR:                199453
Submitted by:        John Nielsen

FreeBSD — vendor-sys/illumos/dist/uts/common/fs/zfs arc.c

6033 arc_adjust() should search MFU lists for oldest buffer when adjusting MFU size

illumos/illumos-gate at 31c46cf23cd1cf4d66390a983dc5072d7d299ba2

  When we're looking for the list containing oldest buffer we never actually look
  at the MFU lists even when we try to evict from MFU.
  looks like a copy paste error, the fix is here:

Reviewed by: Saso Kiselkov <saso.kiselkov at nexenta.com>
Reviewed by: Xin Li <delphij at delphij.net>
Reviewed by: Prakash Surya <me at prakashsurya.com>
Approved by: Matthew Ahrens <mahrens at delphix.com>
Author: Alek Pinchuk <alek at nexenta.com>
Obtained from:        illumos

FreeBSD — head/sys/geom/eli g_eli.c

Properly propagate errors in metadata reading.

PR:                198860
Submitted by:        Matthew D. Fuller
Delta File
+4 -1 head/sys/geom/eli/g_eli.c
+4 -1 1 file

FreeBSD — head/sbin/geom/class/eli geli.8, head/sys/geom/eli g_eli.c

Allow to omit keyfile number for the first keyfile.

FreeBSD — stable/10/usr.bin/netstat mroute.c

MFC r265096:

Fix "netstat -gW" behavior broken in r259638.
netstat has two options for printing multicast tables:
sysctl (the default one for live systems) and kvm-based one (for cores).
It looks like kvm-based one hasn't been working since it's been introduced
in r190012 due to absence of mfctablesize kernel symbol.
Check for all ipv4-multicast symbols being correctly resolved was introduced
in r259638 regardless of 'live' value leading to "No IPv4 MROUTING" error

Reported by:        Olivier Cochard-Labbé
Approved by:        melifaro@
Sponsored by:        Netgate
Delta File
+13 -11 stable/10/usr.bin/netstat/mroute.c
+13 -11 1 file

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

zfs_mount(MS_REMOUNT): protect zfs_(un)register_callbacks calls

We now take z_teardown_lock as a writer to ensure that there is no I/O
while the filesystem state is in a flux.  Also, zfs_suspend_fs() ->
zfsvfs_teardown() call zfs_unregister_callbacks() and zfs_resume_fs() ->
zfsvfs_setup() call zfs_unregister_callbacks().  Previously there was no
synchronization between those calls and the calls in the re-mounting
case.  That could lead to concurrent execution and a crash.

PR:                180060
Differential Revision:        https://reviews.freebsd.org/D2865
Suggested by:        mahrens
Reviewed by:        delphij, pho, mahrens, will
MFC after:        13 days
Sponsored by:        ClusterHQ

FreeBSD — head/sys/dev/ahci ahci_pci.c

Disable port multiplier support on Marvell 88SE61xx chips.

According to report, some recent unrelated changes in the driver triggered
timeouts when testing for absent port multiplier.  Cause of this behavior
channge is unclear, but since these chips are old, rare and buggy, it is
easier to just disable port multiplier support, same as done in Linux.

Reported by:        bar
MFC after:        3 days
Delta File
+8 -8 head/sys/dev/ahci/ahci_pci.c
+8 -8 1 file