Displaying 1 50 of 317,946 commits (0.042s)

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

FreeBSD — head/sys/kern uipc_socket.c

Fix getsockopt() for listening sockets when using SO_SNDBUF, SO_RCVBUF,
SO_SNDLOWAT, SO_RCVLOWAT. Since r31972 it only worked for non-listening
sockets.

Sponsored by:        Netflix, Inc.
Delta File
+8 -4 head/sys/kern/uipc_socket.c
+8 -4 1 file

FreeBSD — stable/11/sys/amd64/include proc.h, stable/11/sys/arm64/include proc.h

MFC r319871:
Make struct syscall_args visible to userspace compilation environment
from machine/proc.h, consistently on all architectures.

FreeBSD — stable/11/sys/vm vm_map.c

MFC r321173:
Convert assertion that only vmspace owner grows the stack, into a
check blocking grow from other processes accesses.

MFC r321230:
Disable stack growth when accessed by AIO daemons.
Delta File
+9 -1 stable/11/sys/vm/vm_map.c
+9 -1 1 file

FreeBSD — stable/11/sys/compat/freebsd32 freebsd32_util.h, stable/11/sys/kern uipc_mqueue.c capabilities.conf

MFC r320982:
Correct sysent flags for dynamically loaded syscalls.

FreeBSD — head/sys/dev/netmap netmap_freebsd.c netmap_mem2.c

Restore the changes done in r313982: Replace zero with NULL for pointers.

Spotted by:        Harry Schmalzbauer
MFC after:        1 week
Sponsored by:        Rubicon Communications, LLC (Netgate)

FreeBSD — head/sys/conf files.powerpc

Compile the atomic64 emulation for powerpcspe

With this, ZFS builds for and runs (not quite stablely) on powerpcspe.
Delta File
+1 -1 head/sys/conf/files.powerpc
+1 -1 1 file

FreeBSD — head/sys/net netmap_user.h

Update netmap_user.h with the current version of netmap.  This file should
have been committed together with r319881.

MFC after:        1 week
MFC with:        r319881
Pointy hat to:        loos
Delta File
+34 -12 head/sys/net/netmap_user.h
+34 -12 1 file

FreeBSD — head/sys/conf files.powerpc, head/sys/powerpc/cpufreq mpc85xx_jog.c

Add cpufreq support for P1022 and MPC8536

P1022 and MPC8536  include a 'jog' feature for clock control
(jog being a slower form of run mode).  This is done by changing the
PLL multiplier, and cannot be done if any core is in doze or sleep mode.

FreeBSD — head/sys/dev/netmap netmap_generic.c

Do not allow the use of the loopback interface in netmap.

The generic support in netmap send the packets using if_transmit() and the
loopback do not support packets coming from if_transmit()/if_start().

This avoids the use of the loopback interface and the subsequent crash that
happens when the application send packets to the loopback interface.

Details in:        https://github.com/luigirizzo/netmap/issues/322
Reported by:        Vincenzo Maffione <v.maffione at gmail.com>
Sponsored by:        Rubicon Communications, LLC (Netgate)