Displaying 1 50 of 480,366 commits (0.030s)

PC-BSD — sys/kern kern_sendfile.c

Merge remote-tracking branch 'freebsd/stable/11' into freenas/11-stable
∈ alc - 4ac7ffb0 - 2017-06-15 18:49:46
MFC r319540
  The data type returned by vmoff() is too narrow in its range.  This could
  break the transmission of files longer than 4 GB on 32-bit architectures.

Approved by:        re (gjb)
Delta File
+2 -2 sys/kern/kern_sendfile.c
+2 -2 1 file

PC-BSD — usr.sbin/bsdinstall/scripts zfsboot auto

MFC: r319863
        bsdinstall: Make ZFS min_auto_ashift adjustment persistent

MFC: r319864
        bsdinstall: support Auto ZFS mode for ARM64

Approved by:        re (gjb)

PC-BSD — usr.bin/top machine.c top.local.1

MFC: r319866, r319867
        top: Change the way the ZFS ARC compression ratio is calculated
        remove overhead statistics, already included in other counters

Approved by:        re (gjb)

PC-BSD — sys/kern subr_blist.c, sys/sys blist.h

MFC r318995
  In r118390, the swap pager's approach to striping swap allocation over
  multiple devices was changed.  However, swapoff_one() was not fully and
  correctly converted.  In particular, with r118390's introduction of a per-
  device blist, the maximum swap block size, "dmmax", became irrelevant to
  swapoff_one()'s operation.  Moreover, swapoff_one() was performing out-of-
  range operations on the per-device blist that were silently ignored by
  blist_fill().

  This change corrects both of these problems with swapoff_one(), which will
  allow us to potentially increase MAX_PAGEOUT_CLUSTER.  Previously,
  swapoff_one() would panic inside of blist_fill() if you increased
  MAX_PAGEOUT_CLUSTER.

MFC r319001
  After r118390, the variable "dmmax" was neither the correct strip size
  nor the correct maximum block size.  Moreover, after r318995, it serves
  no purpose except to provide information to user space through a read-
  sysctl.

  This change eliminates the variable "dmmax" but retains the sysctl.  It
  also corrects the value returned by the sysctl.

MFC r319604
  Halve the memory being internally allocated by the blist allocator.  In

    [33 lines not shown]
Delta File
+11 -18 sys/kern/subr_blist.c
+7 -20 sys/vm/swap_pager.c
+2 -2 sys/sys/blist.h
+20 -40 3 files

PC-BSD — contrib/smbfs/lib/smb subr.c

MFC 319670

Fix SMBFS when saved passwords are greater than 18 character

PR:        132302
Submitted by:        dhorn2000 at gmail.com guru at unixarea.de
Approved by:        re (gjb)
Delta File
+4 -0 contrib/smbfs/lib/smb/subr.c
+4 -0 1 file

PC-BSD — usr.sbin/freebsd-update freebsd-update.8

MFC r319954:
 Modernize FreeBSD version numbers in freebsd-update(8).
 While here, expand a contraction to make textproc/igor happy.

Approved by:        re (kib)
Sponsored by:        The FreeBSD Foundation

PC-BSD — usr.sbin/rpc.lockd lockd.c

MFC r319852:

Fix buffer lengths.

After r319369, the RPC code validates caller supplied buffer length in
taddr2uaddr.  When no -h is specified, the sizeof(ai_addr) is used,
which is always smaller than the required size and therefore uaddr
would be NULL, causing the kernel to copyin() from userland NULL
and fail with EFAULT.

Approved by:        re (kib)
Delta File
+3 -4 usr.sbin/rpc.lockd/lockd.c
+3 -4 1 file

PC-BSD — tools/test/ptrace scescx.c

MFC r319869:
Decode recently added flags.

Approved by:        re (marius)
Delta File
+5 -0 tools/test/ptrace/scescx.c
+5 -0 1 file

PC-BSD — sys/vm vm_page.c

Null pointer must be checked before use.  This fixes a regression introduced
in r318716.

Note it is a direct commit to stable/11 because head removed support for
idle page zeroing in r305362.

PR:                219994
Reviewed by:        markj
Approved by:        re (gjb)
Delta File
+5 -5 sys/vm/vm_page.c
+5 -5 1 file

PC-BSD — sys/dev/hyperv/pcib vmbus_pcib.c

MFC: 319690

Approved by:        re (marius)

r319690
        hyperv/pcib: use the device serial number as PCI domain

        Currently the PCI domain is initialized with the instance GUID in
        vmbus_pcib_attach(). It turns out the GUID can change across VM reboot,
        while some users want a persistent value for PCI domain. The solution is
        that we can change to use the device serial number, which starts with 1
        and is unique within a VM.

        Obtained from:        Haiyang Zhang
        Sponsored by:        Microsoft
Delta File
+2 -0 sys/dev/hyperv/pcib/vmbus_pcib.c
+2 -0 1 file

PC-BSD — sys/x86/acpica acpi_wakeup.c

MFC r319825:
More accurately handle early EFER restoration on resume.

Approved by:        re (delphij)
Delta File
+2 -1 sys/x86/acpica/acpi_wakeup.c
+2 -1 1 file

PC-BSD — usr.sbin/bhyve bhyve.8

MFC r307517, r314342, r316357, r317545, r317777:

r307517:
Typo fixed: arbitraty -> arbitrary.
PR:                213559

r314342:
bhyve: document virtio-console in the manpage

r316357:
Minor style improvements in bhyve.8
Replace "as of now" with "at present". As the change is a really minor one,
don't bump .Dd.

r317545:
Document raw framebuffer device and XHCI device configurations.

r317777:
Improve documentation of fbuf device.

Approved by:        grehan (mentor)
Approved by:        re (gjb)
Delta File
+128 -5 usr.sbin/bhyve/bhyve.8
+128 -5 1 file

PC-BSD — sys/arm/arm gic.c

MFC r317428 (cognet): fix arm64 MSI

In arm_gicv2m_alloc_msi(), if we found a suitable irq range, leave the loop
before we increase irq again, or we'd end up choosing an irq, and then
really using the next one, even if it's not available.
Also in the inner loop, correct the end check so that we check every irq,
even the last one.
This makes the msk(4) adapter able to use MSI on Softiron Overdrive 1000.

PR:                219956
Approved by:        re (gjb)
Delta File
+4 -2 sys/arm/arm/gic.c
+4 -2 1 file

PC-BSD — usr.sbin/sesutil sesutil.c

MFC r319610:
  usr.sbin/sesutil: correct 'locate all off' to deactivate empty slot LEDs

PR:                217409
Approved by:        re (marius)
Delta File
+4 -5 usr.sbin/sesutil/sesutil.c
+4 -5 1 file

PC-BSD — release/doc/en_US.ISO8859-1/relnotes article.xml

Document r319884, make(1) version 20170510.

Approved by:        re (implicit)
Sponsored by:        The FreeBSD Foundation

PC-BSD — contrib/bmake main.c meta.c, contrib/bmake/PSD.doc tutorial.ms

Update bmake to 20170510

Approved by: re@
Delta File
+183 -0 contrib/bmake/mk/ChangeLog
+136 -45 contrib/bmake/main.c
+131 -47 contrib/bmake/mk/dirdeps.mk
+124 -46 contrib/bmake/meta.c
+166 -0 contrib/bmake/ChangeLog
+96 -64 contrib/bmake/mk/meta2deps.py
+1,213 -434 59 files not shown
+2,049 -636 65 files

PC-BSD — contrib/byacc/test/yacc expr.oxout.tab.c

MFC r313398:

Approved by:        re (gjb)

Apply r274475's to expr.oxout.tab.c to fix the test on FreeBSD

YYINT on FreeBSD is int, not short

I'll work with the upstream maintainer or come up with a build
method of modifying their definitions on install instead of
having to modify tests to match our forked YYINT definition.

PR:                216891

PC-BSD — sys/compat/linux linux_misc.c

MFC r319571:

On success, getrandom() Linux system call returns the number of bytes that
were copied to the buffer supplied by the user.

PR:                219464
Submitted by:        Maciej Pasternacki
Reported by:        Maciej Pasternacki
Approved by:        re (kib)
Delta File
+5 -1 sys/compat/linux/linux_misc.c
+5 -1 1 file

PC-BSD — lib/libc/sys cpuset_getaffinity.2, share/man/man4 capsicum.4

MFC r318765:
        Allow cpuset_{get,set}affinity in capabilities mode

Approved by:        re (marius)

PC-BSD — sys/kern kern_proc.c, sys/ufs/ffs ffs_vfsops.c

MFC r319518:
Ensure that cached struct thread does not keep spurious td_su
reference on an UFS mount point.

MFC r319519:
Clean possible td_su reference on the struct mount being unmounted as
the last step of ffs_unmount().

Approved by:        re (gjb)

PC-BSD — sys/conf newvers.sh

Rename stable/11 from PRERELEASE to BETA1 as part of the 11.1-RELEASE
cycle.

Approved by:        re (implicit)
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 sys/conf/newvers.sh
+1 -1 1 file

PC-BSD — sys/dev/nand nandsim.c

MFC r317806:
  The nandsim(4) simulator driver doesn't have any protection against
  races at least in its ioctl handler, and at the same time it creates
  device entry with 0666 permissions.

  To plug possible issues in it:
  - Mark it as needing Giant.
  - Switch device mode to 0600.

Submitted by:        C Turt
Reviewed by:        imp
Security:        Possible double free in ioctl handler
Approved by:        re (marius)
Delta File
+2 -1 sys/dev/nand/nandsim.c
+2 -1 1 file

PC-BSD — sys/compat/ndis kern_ndis.c subr_ndis.c, sys/dev/if_ndis if_ndis.c if_ndisvar.h

MFC r318677:
  Fix regression in ndis(4) after r286410. This adds a bunch of checks for
  whether this is a Ethernet or 802.11 device and does proper dereferencing.

  PR:                213237
  Submitted by:        <ota j.email.ne.jp>
  Approved by:        re (marius)

PC-BSD — release Makefile.vm

MFC r319621:

 Ensure ${_CW} is uppercase when passing '-c' to mk-vmimage.sh,
 otherwise with 'CLOUDWARE=vagrant-virtualbox', the path to the
 configuration file may be incorrect.

Approved by:        re (marius)
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 release/Makefile.vm
+1 -1 1 file

PC-BSD — lib/clang llvm.build.mk

MFC r319473:

For arm targets, place ABI at the end of the target triple

For some reason, we have been inserting the ABI specification into the
middle of the target triple, when building LLVM, like so:

    armv6-gnueabi-freebsd12.0

This is the wrong way around.  LLVM even auto-canonicalizes it to:

    armv6--freebsd12.0-gnueabi

Let's do this the right way in llvm.build.mk instead.  While here,
define a proper VENDOR macro which can be overridden easily.

Approved by:        re (gjb)
Reviewed by:        emaste
Differential Revision: https://reviews.freebsd.org/D10846
Delta File
+6 -5 lib/clang/llvm.build.mk
+6 -5 1 file

PC-BSD — release/arm BEAGLEBONE.conf

Currently stable/11 is using custom DTS for beaglebone(-black) while CURRENT
is using the upstream ones from Linux.
U-Boot ports have been changed to use the upstream names so 11.1-PRERELEASE
doesn't boot.
Since we cannot MFC the DTS easily (a lot of drivers would have to be modified)
add links on the dts with upstream names.

This is a direct commit to stable/11

Approved by:        re (marius)
Delta File
+4 -0 release/arm/BEAGLEBONE.conf
+4 -0 1 file

PC-BSD — release/arm CUBIEBOARD2.conf

MFC r319603, r319608, r319609:

 Create a hard link for sun7i-a20-cubieboard2.dtb to allow the
 cubieboard2 to find the correct dtb file.

Note: r319608 and r319609 are included, but are no-op changes to
the original change, and only included to prevent these commits
from showing up on the MFC tracking page.

Approved by:        re (marius)
Sponsored by:        The FreeBSD Foundation
Delta File
+2 -0 release/arm/CUBIEBOARD2.conf
+2 -0 1 file

PC-BSD — sys/net if_lagg.c

MFC r318970: Call VLAN_CAPABILITIES() when LAGG capabilities change.

This makes VLAN on top of LAGG to expose proper capabilities if they are
changed after creation.

Approved by:        re (marius)
Delta File
+5 -0 sys/net/if_lagg.c
+5 -0 1 file

PC-BSD — sys/net if_lagg.c

MFC r318966: Improve applying unified capabilities to the lagg ports.

Some NICs have some capabilities dependent, so that disabling one
require disabling some other (TXCSUM/RXCSUM on em).  This code tries to
reach the consensus more insistently.

Approved by:        re (marius)
Delta File
+24 -11 sys/net/if_lagg.c
+24 -11 1 file

PC-BSD — sys/net if_lagg.c if_lagg.h

MFC r318907: Remove some code, dead from the day one.

Approved by:        re (marius)
Delta File
+0 -21 sys/net/if_lagg.c
+0 -4 sys/net/if_lagg.h
+0 -25 2 files

PC-BSD — sys/netinet tcp_subr.c tcp_syncache.c

MFC r319556:
Fix the ICMP6 handling for TCP.

The ICMP6 packets might not be contained in a single mbuf. So don't
assume this. Keep the IPv4 and IPv6 code in sync and make explicit
that the syncache code only need the TCP sequence number, not the
complete TCP header.

Approved by:        re (marius)

PC-BSD — include termios.h, sys/sys _termios.h

MFC r318780:
Use __BSD_VISIBLE test instead checking for absense of _POSIX_SOURCE.

Approved by:        re (marius)
Delta File
+22 -22 sys/sys/_termios.h
+4 -4 include/termios.h
+26 -26 2 files

PC-BSD — share/man/man9 bitset.9, sys/sys bitset.h

MFC r318781:
Add BIT_OR2(), BIT_AND2(), BIT_NAND2(), BIT_XOR() and BIT_XOR2().

Approved by:        re (marius)
Delta File
+112 -1 share/man/man9/bitset.9
+30 -0 sys/sys/bitset.h
+142 -1 2 files

PC-BSD — sys/contrib/ipfilter/netinet ip_sync.c

MFC r318998:

Fix return value of ip_sync_nat. Previously, regardless of error it
always returned a return code of 0.

Obtained from:        NetBSD ip_sync.c r1.5
Approved by:        re (delphij)

PC-BSD — share/man/man4 rctl.4 Makefile, usr.bin/rctl rctl.8

MFC r319076:

Declutter rctl(8) by moving kernel build instructions into newly
created rctl(4).

Approved by:        re (gjb)

PC-BSD — usr.bin/rctl rctl.8

MFC r319075:

Random tweaks to rctl(8).

This is just wording and formatting fixes.

MFC r319432:

Use proper capitalization with .Dd.

Approved by:        re (gjb)
Delta File
+3 -6 usr.bin/rctl/rctl.8
+3 -6 1 file

PC-BSD — share/man/man4 iscsi.4, usr.sbin/iscsid iscsid.8

MFC r319074:

Minor tweaks to iscsi(4) and iscsid(8).

This is mostly wording and clarification of the userspace/kernel split.

Approved by:        re (gjb)

PC-BSD — sys/cddl/contrib/opensolaris/uts/common/fs/zfs vdev.c

MFC r318943 (avg):

 MFV r318942: 8166 zpool scrub thinks it repaired offline device

 https://www.illumos.org/issues/8166
  If we do a scrub while a leaf device is offline (via "zpool offline"),
  we will inadvertently clear the DTL (dirty time log) of the offline
  device, even though it is still damaged. When the device comes back
  online, we will incompletely resilver it, thinking that the scrub
  repaired blocks written before the scrub was started. The incomplete
  resilver can lead to data loss if there is a subsequent failure of a
  different leaf device.
  The fix is to never clear the DTL of offline devices. Note that if a
  device is onlined while a scrub is in progress, the scrub will be
  restarted.
  The problem can be worked around by running "zpool scrub" after
  "zpool online".
  See also https://github.com/zfsonlinux/zfs/issues/5806

PR:                219537
Approved by:        re (kib)
Sponsored by:        The FreeBSD Foundation

PC-BSD — share/man/man4 cfiscsi.4

MFC r319073:

Random tweaks to cfiscsi(4) man page.

This improves wording and adds a few Xrs.

Approved by:        re (gjb)
Delta File
+12 -4 share/man/man4/cfiscsi.4
+12 -4 1 file

PC-BSD — release/doc/en_US.ISO8859-1/relnotes article.xml

Revert r319607, which documents items that existed in 11.0-RELEASE.

Submitted by:        jhb
Approved by:        re (implicit)
Sponsored by:        The FreeBSD Foundation

PC-BSD — usr.sbin/ctld ctld.8

MFC r319072:

Make ctld(8) mention cfiscsi(4).

Approved by:        re (marius)
Delta File
+5 -2 usr.sbin/ctld/ctld.8
+5 -2 1 file

PC-BSD — lib/lib80211 lib80211.3, lib/libc/net sctp_bindx.3 sctp_getassocid.3

MFC r318816:

Don't end up manpage titles with a full stop.

Approved by:        re (marius)

PC-BSD — etc/mtree BSD.root.dist

MFC r318861:

Create /net by default, for autofs.

Approved by:        re (kib)
Delta File
+2 -0 etc/mtree/BSD.root.dist
+2 -0 1 file

PC-BSD — sys/amd64/include vmparam.h

MFC r318398:

Bump default MAXTSIZ (kern.maxtsiz) from 128MB to 32GB. The old limit
prevents one from running eg clang built with debug; the new one is
arbitrary (equal to MAXDSIZ) and... well, should be quite future-proof.

Same fix might be applicable to other 64 bit architectures; I'll ask
their respective maintainers to make sure it won't break anything.

Approved by:        re (kib)
Delta File
+1 -1 sys/amd64/include/vmparam.h
+1 -1 1 file

PC-BSD — lib/libc/rpc rpcb_prot.c rpcb_st_xdr.c, lib/libc/xdr xdr.c

MFC r319369:

 * limit size of buffers to RPC_MAXDATASIZE
 * don't leak memory
 * be more picky about bad parameters

From:

https://raw.githubusercontent.com/guidovranken/rpcbomb/master/libtirpc_patch.txt
https://github.com/guidovranken/rpcbomb/blob/master/rpcbind_patch.txt

via NetBSD.

Approved by:        re (kib)
Delta File
+25 -5 sys/xdr/xdr.c
+25 -5 lib/libc/xdr/xdr.c
+9 -8 lib/libc/rpc/rpcb_prot.c
+8 -7 sys/rpc/rpcb_prot.c
+5 -4 lib/libc/rpc/rpcb_st_xdr.c
+8 -0 lib/libc/rpc/rpc_generic.c
+16 -1 3 files not shown
+96 -30 9 files

PC-BSD — release/doc/en_US.ISO8859-1/relnotes article.xml

Document r295930, truss(1) '-H' flag.
Document r308154, cxgbe(4) additional virtual interface support.

Submitted by:        jhb
Approved by:        re (implicit)
Sponsored by:        The FreeBSD Foundation

PC-BSD — sys/netipsec ipsec_output.c ipsec_input.c

MFC r319118:
  Disable IPsec debugging code by default when IPSEC_DEBUG kernel option
  is not specified.

  Due to the long call chain IPsec code can produce the kernel stack
  exhaustion on the i386 architecture. The debugging code usually is not
  used, but it requires a lot of stack space to keep buffers for strings
  formatting. This patch conditionally defines macros to disable building
  of IPsec debugging code.

  IPsec currently has two sysctl variables to configure debug output:
   * net.key.debug variable is used to enable debug output for PF_KEY
     protocol. Such debug messages are produced by KEYDBG() macro and
     usually they can be interesting for developers.
   * net.inet.ipsec.debug variable is used to enable debug output for
     DPRINTF() macro and ipseclog() function. DPRINTF() macro usually
     is used for development debugging. ipseclog() function is used for
     debugging by administrator.

  The patch disables KEYDBG() and DPRINTF() macros, and formatting buffers
  declarations when IPSEC_DEBUG is not present in kernel config. This
  reduces stack requirement for up to several hundreds of bytes.
  The net.inet.ipsec.debug variable still can be used to enable ipseclog()
  messages by administrator.


    [7 lines not shown]

PC-BSD — sys/modules/linux Makefile, sys/modules/linux64 Makefile

MFC r319052:

Strip _binary_linux_locore_o_size from ${VDSO}.so as it is a low absolute
symbol, and this breaks symbol lookup in ddb.

Approved by:        re (kib)

PC-BSD — sys/compat/linux linux_file.c

MFC r317601:

Fix symlinkat() which use the newdfd argument to look up the old path,
while it should use it for the new path instead.

Approved by:        re (kib)
Delta File
+1 -1 sys/compat/linux/linux_file.c
+1 -1 1 file

PC-BSD — share/mk sys.mk

MFC r318194,r319481:

  r318194:
    Tell bmake (meta mode) to ignore changes to /usr/local/etc/libmap.d/*
  r319481:
    META_MODE: Move ignoring of /usr/local/etc/libmap.d to proper place.

Approved by:        re (gjb)
Delta File
+5 -1 share/mk/sys.mk
+5 -1 1 file