Displaying 1 50 of 317,955 commits (0.023s)

FreeBSD — head/sys/compat/linuxkpi/common/include/linux compiler.h

linuxkpi compiler.h: avoid gcc -Wunused-value in dummy expressions

It looks like the __acquire and __release macros are for the consumption
of static analysis tools and have no semantic effect.  Transform the
definitions from constant expressions to empty statements in order to
avoid -Wunused-value from gcc.

Likewise avoid future warnings for __chk_{user,io}_ptr, but with a cast
to void, because it looks like some linux kernel code may use those in
expression contexts.

Reviewed by:        hselasky, markj
Approved by:        markj (mentor)
Sponsored by:        Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D11695

FreeBSD — stable/10/sys/kern subr_blist.c, stable/10/sys/sys blist.h

MFC r319905

Reduce the frequency of hint updates on allocation without incurring
additional allocation overhead.  Previously, blst_meta_alloc() updated the
hint after every successful allocation.  However, these "eager" hint
updates are of no actual benefit if, instead, the "lazy" hint update at
the start of blst_meta_alloc() is generalized to handle all cases where
the number of available blocks is less than the requested allocation.
Previously, the lazy hint update at the start of blst_meta_alloc() only
handled the ALL-FULL case.  (I would also note that this change provides
consistency between blist_alloc() and blist_fill() in that their hint
maintenance is now entirely lazy.)

Eliminate unnecessary checks for terminators in blst_meta_alloc() and
blst_meta_fill() when handling ALL-FREE meta nodes.

Eliminate the field "bl_free" from struct blist.  It is redundant.  Unless
the entire radix tree is a single leaf, the count of free blocks is stored
in the root node.  Instead, provide a function blist_avail() for obtaining
the number of free blocks.

In blst_meta_alloc(), perform a sanity check on the allocation once rather
than repeating it in a loop over the meta node's children.

In blst_leaf_fill(), use the optimized bitcount*() function instead of a

    [5 lines not shown]

FreeBSD — stable/11/sys/kern subr_blist.c, stable/11/sys/sys blist.h

MFC r319905

Reduce the frequency of hint updates on allocation without incurring
additional allocation overhead.  Previously, blst_meta_alloc() updated the
hint after every successful allocation.  However, these "eager" hint
updates are of no actual benefit if, instead, the "lazy" hint update at
the start of blst_meta_alloc() is generalized to handle all cases where
the number of available blocks is less than the requested allocation.
Previously, the lazy hint update at the start of blst_meta_alloc() only
handled the ALL-FULL case.  (I would also note that this change provides
consistency between blist_alloc() and blist_fill() in that their hint
maintenance is now entirely lazy.)

Eliminate unnecessary checks for terminators in blst_meta_alloc() and
blst_meta_fill() when handling ALL-FREE meta nodes.

Eliminate the field "bl_free" from struct blist.  It is redundant.  Unless
the entire radix tree is a single leaf, the count of free blocks is stored
in the root node.  Instead, provide a function blist_avail() for obtaining
the number of free blocks.

In blst_meta_alloc(), perform a sanity check on the allocation once rather
than repeating it in a loop over the meta node's children.

In blst_leaf_fill(), use the optimized bitcount*() function instead of a

    [5 lines not shown]

FreeBSD — stable/11/sys/vm swap_pager.c vm_pageout.c

MFC r320319
  Increase the pageout cluster size to 32 pages.

  Decouple the pageout cluster size from the size of the hash table entry
  used by the swap pager for mapping (object, pindex) to a block on the
  swap device(s), and keep the size of a hash table entry at its current
  size.

  Eliminate a pointless macro.

FreeBSD — stable/11/include stddef.h

MFC r320240:

  Use __ISO_C_VISIBLE, as opposed to testing __STDC_VERSION__.

  FreeBSD's C library uses __STDC_VERSION__ to determine whether the
  compiler provides language features specific to a certain version of the
  C standard. __ISO_C_VISIBLE is used to specify which library features
  need to be exposed.

  max_align_t currently uses __STDC_VERSION__, even though it should be
  using __ISO_C_VISIBLE to remain consistent with the rest of the headers
  in include/.
Delta File
+1 -1 stable/11/include/stddef.h
+1 -1 1 file

FreeBSD — head/sys/vm vm_object.c

Do not allocate struct kinfo_vmobject on stack.

Its size is 1184 bytes.

Noted by:        eugen
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week
Delta File
+32 -30 head/sys/vm/vm_object.c
+32 -30 1 file

FreeBSD — head/lib/libsysdecode mkioctls Makefile

Handle WITH/WITHOUT_PF in libsysdecode

Only filter out the PF ioctls if we're building without pf support.
Until now those were always filtered out, so truss did not show symbolic
names for pf ioctls.

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

FreeBSD — head ObsoleteFiles.inc UPDATING, head/contrib/compiler-rt/include/sanitizer tsan_interface.h coverage_interface.h

Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to
5.0.0 (trunk r308421).  Upstream has branched for the 5.0.0 release,
which should be in about a month.  Please report bugs and regressions,
so we can get them into the release.

Please note that from 3.5.0 onwards, clang, llvm and lldb require C++11
support to build; see UPDATING for more information.

MFC after:        2 months

FreeBSD — head/bin/ps ps.1

Use the "tree" word in ps(1) -d option description, to make it easier
to find.

MFC after:        2 weeks
Sponsored by:        DARPA, AFRL
Delta File
+2 -2 head/bin/ps/ps.1
+2 -2 1 file

FreeBSD — stable/11/usr.sbin/ctladm ctladm.8

MFC r321023:

The ctladm man page incorrectly duplicated the text for the
delete subcommand in the modify section. Rewrite the
modify description text in two places to say modify/modified
instead of remove/removed.

PR:                220710
Submitted by:        sseekamp at risei.net
Reviewed by:        mav@
Differential Revision:        https://reviews.freebsd.org/D11608

FreeBSD — head/sys/compat/linux linux_ioctl.h

Style(9) whitespace fix.

MFC after:        1 week

FreeBSD — stable/10/sys/sys blist.h

MFC r319756
  Style and comment fixes
Delta File
+8 -8 stable/10/sys/sys/blist.h
+8 -8 1 file

FreeBSD — stable/11/sys/sys blist.h

MFC r319756
  Style and comment fixes
Delta File
+8 -8 stable/11/sys/sys/blist.h
+8 -8 1 file

FreeBSD — stable/10/sys/amd64/amd64 pmap.c, stable/10/sys/i386/i386 pmap.c

MFC r320546
  When "force" is specified to pmap_invalidate_cache_range(), the given
  start address is not required to be page aligned.  However, the loop
  within pmap_invalidate_cache_range() that performs the actual cache
  line invalidations requires that the starting address be truncated to
  a multiple of the cache line size.  This change corrects an error in
  that truncation.

FreeBSD — stable/11/sys/amd64/amd64 pmap.c, stable/11/sys/i386/i386 pmap.c

MFC r320546
  When "force" is specified to pmap_invalidate_cache_range(), the given
  start address is not required to be page aligned.  However, the loop
  within pmap_invalidate_cache_range() that performs the actual cache
  line invalidations requires that the starting address be truncated to
  a multiple of the cache line size.  This change corrects an error in
  that truncation.

FreeBSD — stable/10/sys/kern uipc_shm.c

MFC r315621
  Use IDX_TO_OFF(), not ptoa(), when converting the difference between two
  vm_pindex_t's into a vm_ooffset_t.

  The length given to shm_dotruncate() must never be negative.  Assert this.

  Tidy up a comment.
Delta File
+4 -3 stable/10/sys/kern/uipc_shm.c
+4 -3 1 file

FreeBSD — stable/11/sys/kern uipc_shm.c

MFC r315621
  Use IDX_TO_OFF(), not ptoa(), when converting the difference between two
  vm_pindex_t's into a vm_ooffset_t.

  The length given to shm_dotruncate() must never be negative.  Assert this.

  Tidy up a comment.
Delta File
+4 -3 stable/11/sys/kern/uipc_shm.c
+4 -3 1 file

FreeBSD — stable/10/sys/kern kern_exec.c, stable/10/sys/vm vm_map.c

MFC r320498
  Clear the MAP_WIREFUTURE flag on the vm map in exec_new_vmspace() when it
  recycles the current vm space.  Otherwise, an mlockall(MCL_FUTURE) could
  still be in effect on the process after an execve(2), which violates the
  specification for mlockall(2).

  It's pointless for vm_map_stack() to check the MEMLOCK limit.  It will
  never be asked to wire the stack.  Moreover, it doesn't even implement
  wiring of the stack.

FreeBSD — stable/11/sys/kern kern_exec.c, stable/11/sys/vm vm_map.c

MFC r320498
  Clear the MAP_WIREFUTURE flag on the vm map in exec_new_vmspace() when it
  recycles the current vm space.  Otherwise, an mlockall(MCL_FUTURE) could
  still be in effect on the process after an execve(2), which violates the
  specification for mlockall(2).

  It's pointless for vm_map_stack() to check the MEMLOCK limit.  It will
  never be asked to wire the stack.  Moreover, it doesn't even implement
  wiring of the stack.

FreeBSD — stable/11/sys/kern vfs_bio.c

MFC r315597
  Style fixes.  In particular, the variable "bogus" is used like a Boolean.
  Define it as such.
Delta File
+8 -8 stable/11/sys/kern/vfs_bio.c
+8 -8 1 file

FreeBSD — head/usr.bin/top machine.c

Fix top(1) output when zfs.ko is loaded but ZFS is not in use.

Reviewed by:        allanjude
MFC after:        3 days
Differential Revision:        https://reviews.freebsd.org/D11693
Delta File
+5 -4 head/usr.bin/top/machine.c
+5 -4 1 file

FreeBSD — projects/pnfs-planb-server-stable11/sys/fs/nfsclient nfs_clrpcops.c

r320062 introduced a bug when doing NFSv4.1 mounts against some non-FreeBSD servers.

r320062 used nm_rsize, nm_wsize to set the maximum request/response sizes for
the NFSv4.1 session. If rsize,wsize are not specified as options, the
value of nm_rsize, nm_wsize is 0 at session creation, resulting in
values for request/response that are too small.
This patch fixes the problem. A workaround is to specify rsize=N,wsize=N
mount options explicitly, so they are set before session creation.
This bug only affects NFSv4.1 mounts against some non-FreeBSD servers.

FreeBSD — releng/11.1@321309 => release 11.1.0

Tag releng/11.1 at r321309 as 11.1-RELEASE.

Approved by:        re (implicit)
Sponsored by:        The FreeBSD Foundation
Delta File
+0 -0 releng/11.1@321309 => release/11.1.0/
+0 -0 1 file

FreeBSD — projects/pnfs-planb-server/sys/amd64/amd64 pmap.c efirt.c, projects/pnfs-planb-server/sys/amd64/conf MMCCAM NOTES

Update the kernel to current/head.

FreeBSD — projects/clang500-import/contrib/netbsd-tests/lib/libc/regex/data subexp.in, projects/clang500-import/lib/libc/tests/sys Makefile

Merge ^/head r321307 through r321350.

FreeBSD — projects/clang500-import ObsoleteFiles.inc UPDATING, projects/clang500-import/sys/sys param.h

Set tentative merge dates, bump __FreeBSD_version.

FreeBSD — head/sys/ufs/ffs ffs_snapshot.c

Improve publication of the newly allocated snapdata.

For freshly allocated snapdata, Lock sn_lock in advance, so
si_snapdata readers see the locked snapdata and not race.

For existing snapdata, if the thread was put to sleep waiting for
sn_lock, re-read si_snapdata.  This either closes the race or makes
the reliance on LK_DRAIN less important.

Reported and tested by:        pho
Sponsored by:        The FreeBSD Foundation
MFC after:        2 weeks
Delta File
+32 -18 head/sys/ufs/ffs/ffs_snapshot.c
+32 -18 1 file

FreeBSD — head/sys/ufs/ffs ffs_snapshot.c

Unlock correct lock in ffs_snapblkfree().

It is possible for ffs_snapblkfree() to race and lock snaplock while
the devvp snapdata is instantiated, but no snapshots exist.  In this
case the loop over snapshots in ffs_snapblkfree() is not executed, and
the local variable vp is left initialized to NULL.

Unlock using &sn->sn_lock and not vp->v_vnlock.  For the inodes on the
snapshot list, the locks are same.

Reported and tested by:        pho
Sponsored by:        The FreeBSD Foundation
MFC after:        2 weeks
Delta File
+1 -1 head/sys/ufs/ffs/ffs_snapshot.c
+1 -1 1 file

FreeBSD — head/sys/ufs/ffs ffs_snapshot.c

Account for lock recursion when transfering snaplock to the vnode lock
in ffs_snapremove().

Apparently ffs_snapremove() may be called with the snap lock recursed,
at least one trace demonstrated this when snapshot vnode was unlinked
while synced.  It was inactivated from the syncer thread.

Reported and tested by:        pho
Sponsored by:        The FreeBSD Foundation
MFC after:        2 weeks
Delta File
+5 -1 head/sys/ufs/ffs/ffs_snapshot.c
+5 -1 1 file

FreeBSD — stable/11/tools/test/ptrace scescx.c

MFC r319876:
Update scescx test to print syscall number and arguments.
Delta File
+21 -0 stable/11/tools/test/ptrace/scescx.c
+21 -0 1 file

FreeBSD — stable/11/lib/libc/sys ptrace.2, stable/11/sys/kern sys_process.c

MFC r319875:
Add ptrace(PT_GET_SC_ARGS) command to return debuggee' current syscall
arguments.

FreeBSD — stable/11/sys/kern kern_sig.c

MFC r319874:
Print unimplemented syscall number to the ctty on SIGSYS, if enabled
by the knob kern.lognosys.
Delta File
+10 -1 stable/11/sys/kern/kern_sig.c
+10 -1 1 file

FreeBSD — stable/11/sys/amd64/amd64 trap.c, stable/11/sys/amd64/cloudabi32 cloudabi32_sysvec.c

MFC r319873:
Move struct syscall_args syscall arguments parameters container into
struct thread.

FreeBSD — head/contrib/llvm/tools/clang/lib/AST ExprConstant.cpp

Pull in r295886 from upstream clang trunk (by Richard Smith):

  PR32034: Evaluate _Atomic(T) in-place when T is a class or array type.

  This is necessary in order for the evaluation of an _Atomic
  initializer for those types to have an associated object, which an
  initializer for class or array type needs.

This fixes an assertion when building recent versions of LinuxCNC.

Reported by:        trasz
PR:                220883
MFC after:        1 week

FreeBSD — stable/10 Makefile

MFC r320273:

  Allow ALWAYS_BOOTSTRAP_MAKE to force bmake bootstrapping.
Delta File
+2 -1 stable/10/Makefile
+2 -1 1 file

FreeBSD — stable/11 Makefile

MFC r320273:

  Allow ALWAYS_BOOTSTRAP_MAKE to force bmake bootstrapping.
Delta File
+2 -1 stable/11/Makefile
+2 -1 1 file

FreeBSD — stable/11 Makefile.inc1

MFC r320292:

  NO_ROOT: Remove excessive // when DESTDIR/DISTDIR are empty.
Delta File
+1 -0 stable/11/Makefile.inc1
+1 -0 1 file

FreeBSD — stable/11/etc Makefile

MFC r320883:

  Fix INSTALL_AS_USER after r319020.
Delta File
+13 -13 stable/11/etc/Makefile
+13 -13 1 file

FreeBSD — stable/11 Makefile.inc1

MFC r320806:

  SYSTEM_COMPILER: Ensure there is not a stale compiler in WORLDTMP.
Delta File
+9 -1 stable/11/Makefile.inc1
+9 -1 1 file

FreeBSD — head/sys/dev/e1000 if_em.c

Do not update stats counter in SWI context.  Defer to the already existing
admin thread.

Submitted by:        Matt Macy <mmacy at mattmacy.io>
Sponsored by:        Limelight Networks
Delta File
+2 -3 head/sys/dev/e1000/if_em.c
+2 -3 1 file

FreeBSD — head/sys/amd64/amd64 pmap.c, head/sys/x86/x86 mp_x86.c

__pcpu: gcc -Wredundant-decls

Pollution from counter.h made __pcpu visible in amd64/pmap.c.  Delete
the existing extern decl of __pcpu in amd64/pmap.c and avoid referring
to that symbol, instead accessing the pcpu region via PCPU_SET macros.
Also delete an unused extern decl of __pcpu from mp_x86.c.

Reviewed by:        kib
Approved by:        markj (mentor)
Sponsored by:        Dell EMC Isilon
Differential Revision:        https://reviews.freebsd.org/D11666

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

Respect INSTALL_AS_USER for FILES.

MFC after:        2 weeks
Sponsored by:        Dell EMC Isilon
Delta File
+8 -0 head/share/mk/bsd.files.mk
+8 -0 1 file

FreeBSD — head/lib/libc/tests/sys Makefile

Properly set userid for truncate_test.

MFC after:        1 week
Sponsored by:        Dell EMC Isilon
Delta File
+1 -1 head/lib/libc/tests/sys/Makefile
+1 -1 1 file

FreeBSD — head/lib/librt aio.c Symbol.map, head/tests/sys/aio lio_test.c

Implement SIGEV_THREAD notifications for lio_listio(2)

Our man pages have always indicated that this was supported, but in fact the
feature was never implemented for lio_listio(2).

Reviewed by:        jhb, kib (earlier version)
MFC after:        20 days
Sponsored by:        Spectra Logic Corp
Differential Revision:        https://reviews.freebsd.org/D11680

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

Add warning flags for GCC 7.1.0 compiler.

Sponsored by:        DARPA, AFRL
Delta File
+17 -0 head/share/mk/bsd.sys.mk
+17 -0 1 file

FreeBSD — head/sys/vm vm_object.h

Fix style: change spaces to tabs.

Sponsored by:        DARPA, AFRL
Delta File
+3 -3 head/sys/vm/vm_object.h
+3 -3 1 file

FreeBSD — head/usr.bin/truss truss.1

Make truss(1) cross-reference dtrace(1) and bump .Dd.

MFC after:        2 weeks
Sponsored by:        DARPA, AFRL
Delta File
+2 -1 head/usr.bin/truss/truss.1
+2 -1 1 file

FreeBSD — head/usr.bin/truss truss.1

Use more usual formatting for the EXAMPLES section of truss(1).

MFC after:        2 weeks
Sponsored by:        DARPA, AFRL
Delta File
+5 -3 head/usr.bin/truss/truss.1
+5 -3 1 file

FreeBSD — head/usr.bin/ktrace ktrace.1

Use more usual formatting for the EXAMPLES section of ktrace(1).

MFC after:        2 weeks
Sponsored by:        DARPA, AFRL
Delta File
+11 -11 head/usr.bin/ktrace/ktrace.1
+11 -11 1 file

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

Remove stack guard option from hardening menu.

Since kib's change the stack guard is now ON by default,
this option in hardening menu of bsdinstall is no longer needed.

Submitted by:        Bartlomiej Rutkowski <robak at FreeBSD.org>
Reviewed by:        bapt
Approved by:        bapt
MFC after:        1 day
Sponsored by:        Pixeware LTD
Differential Revision:        https://reviews.freebsd.org/D11686