Displaying 1 50 of 275,277 commits (0.086s)

FreeBSD — stable/10/usr.sbin/mountd mountd.c, stable/10/usr.sbin/rpc.lockd lockd.c

MFC r277352:

  When mountd is creating sockets, it iterates over all addresses specified
  in the "hosts" array and eventually looks up the network address with
  getaddrinfo(). At one point it checks for a numeric address and if it
  sees one, it sets a hint parameter to force getaddrinfo to interpret the
  host as a numeric address. However that hint is not cleared for subsequent
  iterations of the loop and if any hosts seen after this point are host names,
  getaddrinfo will fail on the name.  The result of this bug is that you cannot
  pass a host name to the -h flag.

  Unfortunately, the first iteration will either process ::1 or 127.0.0.1,
  so the flag is set on the first iteration and all host names will fail
  to be processed.

  The same bug applies to rpc.lockd and rpc.statd, so fix them too.

  Differential Revision:        https://reviews.freebsd.org/D1507
  Reported by:  Dylan Martin
  MFC after:    1 week
  Sponsored by: Sandvine Inc.

FreeBSD — head/usr.sbin/ppp command.c ipcp.c

Fix multiple instances of the following clang 3.6.0 warning in ppp:

usr.sbin/ppp/command.c:2054:74: error: address of array 'arg->bundle->radius.cfg.file'
will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
      if (arg->bundle->radius.alive.interval && !arg->bundle->radius.cfg.file) {
                                                ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~

In all cases, the file field of struct radius is a char array, but the
intent was to check whether the string is empty, so add an indirection
to achieve that.  Use a similar approach for the sockname field of
struct server.

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

Fix the following clang 3.6.0 warnings in pciconf:

usr.sbin/pciconf/pciconf.c:237:12: error: address of array 'p->pd_name' will
always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                            (p->pd_name && *p->pd_name) ? p->pd_name :
                             ~~~^~~~~~~ ~~
usr.sbin/pciconf/pciconf.c:239:12: error: address of array 'p->pd_name' will
always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                            (p->pd_name && *p->pd_name) ? (int)p->pd_unit :
                             ~~~^~~~~~~ ~~

The pd_name field of struct pci_conf is an array, so it can never be null.
Remove the unnecessary check.
Delta File
+2 -2 head/usr.sbin/pciconf/pciconf.c
+2 -2 1 file

FreeBSD — head/sys/fs/fdescfs fdesc_vfsops.c, head/sys/kern kern_jail.c

Add allow.mount.fdescfs jail flag.

PR:                192951
Submitted by:        ruben at verweg.com
MFC after:        3 days

FreeBSD — head/etc/rc.d ipfilter

ipfilter 5.1.2 (vs 4.1.28 in previous releases of FreeBSD) stores IPv4
and IPv6 rules in a single table. ipf -6 -Fa will flush the whole table,
including IPv4 rules. This patch removes the redundant ipf -I -6 -Fa
statement.

PR:                188318
MFC after:        2 weeks
Delta File
+0 -1 head/etc/rc.d/ipfilter
+0 -1 1 file

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

Check for invalid length or more than max length for the interpreter, instead
of the validity of the string pointer holding the interpreter.

Submitted by:        sson
Reviewed by:        dim
MFC after:        3 days

FreeBSD — stable/10/sys/dev/usb usbdevs, stable/10/sys/dev/usb/serial u3g.c

MFC r277246:
Add more USB device IDs.

PR:                196362

FreeBSD — stable/9/sys/dev/usb usbdevs, stable/9/sys/dev/usb/serial u3g.c

MFC r277246:
Add more USB device IDs.

PR:                196362

FreeBSD — stable/8/sys/dev/usb usbdevs, stable/8/sys/dev/usb/serial u3g.c

MFC r277246:
Add more USB device IDs.

PR:                196362

FreeBSD — stable/8/lib/libusb libusb20_desc.h libusb.h

MFC r277245:
Add more USB request definitions. The values are described in section
9.4.11 and 9.4.12 of the "Universal Serial Bus 3.0 Specification"

FreeBSD — stable/9/lib/libusb libusb20_desc.h libusb.h

MFC r277245:
Add more USB request definitions. The values are described in section
9.4.11 and 9.4.12 of the "Universal Serial Bus 3.0 Specification"

FreeBSD — stable/10/lib/libusb libusb20_desc.h libusb.h

MFC r277245:
Add more USB request definitions. The values are described in section
9.4.11 and 9.4.12 of the "Universal Serial Bus 3.0 Specification"

FreeBSD — stable/9/sys/dev/usb usb_generic.c

MFC r277417:
Fix returned data for the USB_GET_DEV_PORT_PATH IOCTL in particular
the value returned in the "udp_port_level" field.

FreeBSD — stable/10/sys/dev/usb usb_generic.c

MFC r277417:
Fix returned data for the USB_GET_DEV_PORT_PATH IOCTL in particular
the value returned in the "udp_port_level" field.

FreeBSD — projects/clang360-import/contrib/amd/amd amfs_generic.c, projects/clang360-import/contrib/amd/hlfsd homedir.c

Merge ^/head r277804 through r277843.

FreeBSD — head/contrib/elftoolchain/elfcopy main.c

Preserve hard & symbolic links when modifying source file

Strip is often used to modify existing files, rather than creating new
files. If the existing file has hard links or is a symbolic link, act as
if editing the file in place and preserve the links.

Reported by:        luigi
Reviewed by:        imp, rpaulo
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D1682

FreeBSD — projects/clang360-import/share/mk bsd.sys.mk, projects/clang360-import/sys/boot/efi/libefi Makefile

Since clang 3.6.0 now implements the archetype 'freebsd_kprintf' for
__attribute__((format(...))), and the -fformat-extensions flag was
removed, introduce a new macro in bsd.sys.mk to choose the right variant
of compile flag for the used compiler, and use it.

Also add something similar to kern.mk, since including bsd.sys.mk from
that file will anger Warner. :-)

Note that bsd.sys.mk does not support the MK_FORMAT_EXTENSIONS knob used
in kern.mk, since that knob is only available in kern.opts.mk, not in
src.opts.mk.  We might want to add it later, to more easily support
external compilers for building world (in particular, sys/boot).

FreeBSD — head/contrib/amd/hlfsd homedir.c

Fix the following clang 3.6.0 warning in contrib/amd/hlfsd/homedir.c:

contrib/amd/hlfsd/homedir.c:497:8: error: address of array 'buf' will
always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
  if (!buf || buf[0] == '\0')
      ~^~~

In the affected function, 'buf' is declared as an array of char, so it
can never be null.  Remove the unecessary check.
Delta File
+1 -1 head/contrib/amd/hlfsd/homedir.c
+1 -1 1 file

FreeBSD — projects/clang360-import/contrib/openpam configure.ac CREDITS, projects/clang360-import/contrib/openpam/lib/libpam openpam_dispatch.c

Apply changeset 854 from upstream openpam (by Dag-Erling Smørgrav):

  Silence all remaining qual-cast warnings except in the test suite.

FreeBSD — head/share/man/man7 release.7

Update release(7) to reflect renaming the 'system' target
to 'disc1'.

MFC after:        3 weeks
X-MFC-with:        r277458, r277536, r277606, r277609, r277836
Sponsored by:        The FreeBSD Foundation
Delta File
+2 -2 head/share/man/man7/release.7
+2 -2 1 file

FreeBSD — head/release/scripts make-manifest.sh

Fix a typo in a comment.

MFC after:        1 week
X-MFC-with:        r277837
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/release/scripts make-manifest.sh

Provide a description for the 'tests.txz' distribution
in the MANIFEST file.

Turn off the test suite installation by default.

Tested with:        head at r277834
MFC after:        1 week
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/release Makefile

Rename the 'system' target to 'disc1', which is specific
to the disc1.iso installer image.

Replace 'system' with 'release' in CLEANFILES, and add
'disc1' to CLEANDIRS.

Ensure the 'dvd' target depends on 'packagesystem'.

Fix 'mini-memstick.img' prerequisite, which should be the
'bootonly' target, not 'disc1' (previously 'system').

Use .TARGET as the target installation directory for the
disc1.iso and bootonly.iso images, which now expand to
'disc1' and 'bootonly' respectively, mimicking the behavior
of the 'dvd' target.

Remove '@true' from the 'release' target, and instead use
'touch ${.TARGET}' to prevent multiple iterations of
'make release' from clobbering previously-built installer
medium.

Tested with:        head at r277834
MFC after:        3 weeks
X-MFC-with:     r277458, r277536, r277606, r277609
Sponsored by:        The FreeBSD Foundation
Delta File
+32 -32 head/release/Makefile
+32 -32 1 file

FreeBSD — head/lib/libpmc libpmc.c, head/sys/arm/arm intr.c

Add ARMv7 performance monitoring counters.

Differential Revision:        https://reviews.freebsd.org/D1687
Reviewed by:        rpaulo
Sponsored by:        DARPA, AFRL

FreeBSD — head/usr.sbin/autofs autounmountd.c

When there are no automounted filesystems, autounmountd(8) should wait
for filesystem event, instead of looping on a timeout.

MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Delta File
+21 -11 head/usr.sbin/autofs/autounmountd.c
+21 -11 1 file

FreeBSD — stable/9/sys/fs/ext2fs ext2_alloc.c ext2_bmap.c

MFC        r277340, r277349:

Remove dead code.
After the ext2 variant of the "orlov allocator" was implemented,
the case for a negative or zero dirsize disappeared.

Drop the dead code and unsign dirsize given that it can't be
negative anyways.

ext2fs: fix for uninitialized pointer read.
path.ep_bp was being used uninitialized in ext4_ext_find_extent().

CID:                1062344
CID:                1008669

FreeBSD — stable/10/sys/fs/ext2fs ext2_alloc.c ext2_bmap.c

MFC        r277340, r277349:

Remove dead code.
After the ext2 variant of the "orlov allocator" was implemented,
the case for a negative or zero dirsize disappeared.

Drop the dead code and unsign dirsize given that it can't be
negative anyways.

ext2fs: fix for uninitialized pointer read.
path.ep_bp was being used uninitialized in ext4_ext_find_extent().

CID:                1062344
CID:                1008669

FreeBSD — projects/zfsd/head/tests/sys net, projects/zfsd/head/tests/sys/net if_clone_test.sh if_lagg_test.sh

Add sys/net tests for if_lagg and if_clone.

FreeBSD — projects/zfsd/head/tests/sys Makefile

Remove tests that were not checked in; they're not ready yet either.

FreeBSD — head/contrib/netbsd-tests/bin/expr t_expr.sh

Revert r277357 as expr has been enhanced to better detect overflow conditions,
and now the tests pass

PR: 196867
X-MFC with: r277798
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/sys/fs/tmpfs tmpfs_vfsops.c tmpfs_subr.c, head/sys/vm vm_object.c vm_fault.c

Update mtime for tmpfs files modified through memory mapping.  Similar
to UFS, perform updates during syncer scans, which in particular means
that tmpfs now performs scan on sync.  Also, this means that a mtime
update may be delayed up to 30 seconds after the write.

The vm_object' OBJ_TMPFS_DIRTY flag for tmpfs swap object is similar
to the OBJ_MIGHTBEDIRTY flag for the vnode object, it indicates that
object could have been dirtied.  Adapt fast page fault handler and
vm_object_set_writeable_dirty() to handle OBJ_TMPFS_NODE same as
OBJT_VNODE.

Reported by:        Ronald Klop <ronald-lists at klop.ws>
Tested by:        pho
Sponsored by:        The FreeBSD Foundation
MFC after:        2 weeks

FreeBSD — head/sys/fs/tmpfs tmpfs_vfsops.c

tmpfs does not use UVM on FreeBSD.

Sponsored by:        The FreeBSD Foundation
MFC after:        3 days
Delta File
+4 -4 head/sys/fs/tmpfs/tmpfs_vfsops.c
+4 -4 1 file

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

MFV r255258:

Diff reduction with upstream.  The actual change was merged in r272483
already.

MFC after:        2 weeks

FreeBSD — projects/clang360-import/share/mk bsd.sys.mk

Disable the new -Wunused-local-typedef warning for WARNS <= 3, since it
triggers way too many times for the version of libc++ we have in base at
this point.  While here, fix the compiler version check for
-Wno-unused-const-variable.

FreeBSD — head/sys/dev/ath/ath_rate/sample sample.h

Cast everything to something longer than 32 bits so the sample mask
doesn't get truncated to 32 bits.

Without this, 3x3 NICs transmitting at an MCS rate whose rix (rate
index) in the rate table is > 31 end up returning errors, as the
sample rate code doesn't think the rate is set in the rate table.

Tested:

* AR9380, STA, speaking 3x3 to an AP

FreeBSD — head/sys/dev/ath/ath_rate/sample sample.c

Print out the final_rix if there's a problem.

FreeBSD — head/sys/dev/ath/ath_hal ah_internal.h

Add a new HAL capability - required to compile the updated AR9300
HAL i have lying about.

FreeBSD — projects/pmac_pmu ObsoleteFiles.inc Makefile.inc1, projects/pmac_pmu/bin/cat Makefile tests

IFC at r277786

FreeBSD — stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs trim_map.c

MFC r277185:
Fix overflow bug from r248577, turning 30s TRIM timeout into ~4s.

FreeBSD — stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs trim_map.c

MFC r277169: Reimplement TRIM throttling added in r248577.

Previous throttling implementation approached problem from the wrong side.
It significantly limited useful delaying of TRIM requests and aggregation
potential, while not so much controlled TRIM burstiness under heavy load.

With this change random 4K write benchmarks (probably the worst case for
TRIM) show me IOPS increase by 20%, average latency reduction by 30%, peak
TRIM bursts reduction by 3 times and same peak TRIM map size (memory usage).

Also the new logic does not force map size down so heavily, really allowing
to keep deleted data for 32 TXG or 30 seconds under moderate load.  It was
practically impossible with old throttling logic, which pushed map down to
only 64 segments.

FreeBSD — stable/9/contrib/gdb/gdb corelow.c std-regs.c

MFC        r277608, r277656, r277659:

Small upstream fixes for GDB.

GDB: Fix memset thinkos.

2005-03-25  Anthony Green  <green at redhat.com>

       * remote.c (remote_store_registers): Fix memset usage.
       * std-regs.c (value_of_builtin_frame_reg): Ditto.
       (value_of_builtin_frame_fp_reg): Ditto.
       (value_of_builtin_frame_reg): Ditto.

Reported by:        Dirk Engling

gdb: Add missing break statements

2004-05-21  Jim Blandy  <jimb at redhat.com>

       * dwarf2expr.c (execute_stack_op): Add 'break' statements after
       cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)

GDB: Replace use of sprintf.

2005-03-17  Mark Kettenis  <kettenis at gnu.org>

    [6 lines not shown]

FreeBSD — stable/10/contrib/gdb/gdb corelow.c std-regs.c

MFC        r277608, r277656, r277659:

Small upstream fixes for GDB.

GDB: Fix memset thinkos.

2005-03-25  Anthony Green  <green at redhat.com>

       * remote.c (remote_store_registers): Fix memset usage.
       * std-regs.c (value_of_builtin_frame_reg): Ditto.
       (value_of_builtin_frame_fp_reg): Ditto.
       (value_of_builtin_frame_reg): Ditto.

Reported by:        Dirk Engling

gdb: Add missing break statements

2004-05-21  Jim Blandy  <jimb at redhat.com>

       * dwarf2expr.c (execute_stack_op): Add 'break' statements after
       cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)

GDB: Replace use of sprintf.

2005-03-17  Mark Kettenis  <kettenis at gnu.org>

    [6 lines not shown]

FreeBSD — head/sys/netinet sctp_usrreq.c

Whitespace change.
Delta File
+0 -1 head/sys/netinet/sctp_usrreq.c
+0 -1 1 file

FreeBSD — head/contrib/amd/amd amfs_generic.c

amd: Add extra check for NULL before deref.

CID:                274421
Obtained from:        NetBSD
MFC after:        5 days

FreeBSD — user/cperciva/freebsd-update-build/patches/10.0-RELEASE 17-SA-15:03.sctp 17-SA-15:02.kmem, user/cperciva/freebsd-update-build/patches/10.1-RELEASE 5-SA-15:03.sctp 5-SA-15:02.kmem

Add patches for 2015-01-27 batch.

FreeBSD — projects/clang360-import/lib/clang/include Makefile

Instead of hardcoding /usr/lib, as in r277803, use ${LIBDIR} for the
private header location, since this Makefile (and everything under
lib/clang) is not processed for the 32-bit compat stages anyway.

Noticed by:        bjk

FreeBSD — head/usr.bin/sed main.c

sed: fix pasto from previous r277802.

MFC after:        3 days
Delta File
+2 -2 head/usr.bin/sed/main.c
+2 -2 1 file

FreeBSD — stable/10/sys/cam/ctl ctl_tpc.c

MFC r277647: Fix wrong LUN reference in XCOPY block-to-block operation.

This could cause data corruption due to accessing wrong LUN in case of
retries on write errors.  Failed writes were retried to read LUN.
Delta File
+1 -1 stable/10/sys/cam/ctl/ctl_tpc.c
+1 -1 1 file