Displaying 1 50 of 273,298 commits (0.082s)

FreeBSD — stable/10/contrib/llvm/tools/clang/lib/CodeGen TargetInfo.cpp, stable/9/contrib/llvm/tools/clang/lib/CodeGen TargetInfo.cpp

MFC r275759:

Pull in r221170 from upstream clang trunk (by Roman Divacky):

  Implement vaarg lowering for ppc32. Lowering of scalars and
  aggregates is supported. Complex numbers are not.

This adds va_args support for PowerPC (32 bit) to clang.

Reviewed by:        jhibbits
Differential Revision: https://reviews.freebsd.org/D1308

FreeBSD — head/sys/dev/malo if_malo_pci.c

Update the use of bus space macros to be more correct.

This was a problem on i386 PAE builds.
Delta File
+2 -2 head/sys/dev/malo/if_malo_pci.c
+2 -2 1 file

FreeBSD — head/sys/dev/mwl if_mwl_pci.c

Use the correct macro for listing the maximum bus space size.

Without this, it fails to compile on i386 PAE builds.
Delta File
+2 -2 head/sys/dev/mwl/if_mwl_pci.c
+2 -2 1 file

FreeBSD — head/sys/netinet sctp_pcb.c

Add a missing break.

Reported by:        Coverity
CID:                1232014
MFC after:         3 days
Delta File
+1 -0 head/sys/netinet/sctp_pcb.c
+1 -0 1 file

FreeBSD — head/sys/netinet6 sctp6_usrreq.c

Plug a memory leak in an error code path.

Reported by:        Coverity
CID:                1018936
MFC after:         3 days
Delta File
+4 -1 head/sys/netinet6/sctp6_usrreq.c
+4 -1 1 file

FreeBSD — head Makefile.inc1

Fix sporadic build failures due to race when running make installworld
when strip gets replaced at install time by adding it to ITOOLS for the
default usr.bin/xinstall STRIP_CMD

This will fix the failure noted in this Jenkins build step:
https://jenkins.freebsd.org/job/Build-UFS-image/688/

This will also fix the issue reported by alfred@ dealing with installing on
targets that differ from build hosts (e.g. installing on i386/i386 when built
on amd64/amd64)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Delta File
+1 -1 head/Makefile.inc1
+1 -1 1 file

FreeBSD — head/gnu/usr.bin/groff Makefile, head/gnu/usr.bin/groff/src Makefile

Parallelize building gnu/usr.bin/groff

This speeds up building the directory from the bootstrap-tools stage in
buildworld as well as building from the subdirectory

Based on a patch submitted via -arch:
https://lists.freebsd.org/pipermail/freebsd-arch/2014-December/016493.html

MFC after: 1 week
Submitted by: Jia-Shiun Li <jiashiun at gmail.com>
Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/sys/cam/ctl ctl_backend_block.c ctl.c, head/usr.sbin/ctladm ctladm.8

Add configuration options to override physical and UNMAP blocks geometry.

While in most cases CTL should correctly fetch those values from backing
storages, there are some initiators (like MS SQL), that may not like large
physical block sizes, even if they are true.  For such cases allow override
fetched values with supported ones (like 4K).

MFC after:        1 week

FreeBSD — head/sys/cam/ctl ctl_frontend_iscsi.c ctl_frontend_iscsi.h, head/sys/dev/iscsi iscsi.c iscsi_proto.h

Make sequence numbers checks more strict.

While we don't support MCS, hole in received sequence numbers may mean
only PDU loss.  While we don't support lost PDU recovery, terminate the
connection to avoid stuck commands.

While there, improve handling of sequence numbers wrap after 2^32 PDUs.

MFC after:        2 weeks

FreeBSD — stable/9/sys/fs/ext2fs ext2_inode.c

MFC        r275645;

ext2fs: Fix old out-of-bounds access.

Overrunning buffer pointed to by (caddr_t)&oip->i_db[0] of 48 bytes by
passing it to a function which accesses it at byte offset 59 using
argument 60UL.

The issue was inherited from an older FFS implementation and
fixed there with by merging UFS2 in r98542. We follow the
FFS fix.

CID:                1007665
Discussed with:        bde
Delta File
+16 -6 stable/9/sys/fs/ext2fs/ext2_inode.c
+16 -6 1 file

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

Do not strip all when stripping an explicit symbol

When requested to strip specific symbols (-N flag) the default should be
to strip nothing (other than the requested symbols). This is consistent
with binutils strip(1).

PR:                196038
Reviewed by:        imp
Sponsored by:        The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1327

FreeBSD — head/sys/boot/fdt/dts/mips beripad-sockit.dts, head/sys/mips/beri files.beri

Add configuration files for BERI soft-core synthesized on
Terasic SoCKit board (Altera FPGA).

Use virtio block as root filesystem device.

Sponsored by:        DARPA, AFRL

FreeBSD — head/sys/boot/fdt/dts/mips beri-netfpga.dts beri-sim.dts

Move memory node to the root, so fdt_get_mem_regions() can find it.

FreeBSD — head/sys/boot/fdt/dts/arm socfpga-sockit-beri.dts

o Add PIO[2,3] devices information
o Enable Virtio Block

FreeBSD — head/sys/mips/beri beri_machdep.c

Use memory regions information provided in FDT.

Reviewed by:        brooks
Sponsored by:        DARPA, AFRL
Delta File
+28 -0 head/sys/mips/beri/beri_machdep.c
+28 -0 1 file

FreeBSD — head/lib/libc/net sctp_sys_calls.c

Initilize the msg_flags field consistently in all code paths.

Reported by:        Coverity
CID:                1018726

FreeBSD — head/sys/compat/linprocfs linprocfs.c, head/sys/compat/svr4 svr4_socket.c

Adjust printf format specifiers for dev_t and ino_t in kernel.

ino_t and dev_t are about to become uint64_t.

Reviewed by:        kib, mckusick

FreeBSD — head/sbin/ffsinfo ffsinfo.c, head/usr.bin/id id.c

Adjust printf format specifiers for dev_t and ino_t in user space.

ino_t and dev_t are about to become uint64_t.

Reviewed by:        kib, mckusick

FreeBSD — releng/10.0 UPDATING, releng/10.0/contrib/unbound/iterator iterator.c iterator.h

Fix unbound remote denial of service vulnerability.

Security:        FreeBSD-SA-14:30.unbound
Security:        CVE-2014-8602
Approved by:        so

FreeBSD — stable/10/contrib/unbound/iterator iterator.c iterator.h

MFC r275852: MFV r275844:

Fix unbound remote denial of service vulnerability.

Security:        FreeBSD-SA-14:30.unbound
Security:        CVE-2014-8602
Approved by:        so

FreeBSD — head/contrib/unbound/iterator iterator.c iterator.h

MFV r275844:

Fix unbound remote denial of service vulnerability.

Security:        FreeBSD-SA-14:30.unbound
Security:        CVE-2014-8602

FreeBSD — head/sbin/ifconfig ifvxlan.c ifconfig.8, head/share/man/man4 vxlan.4

Prefix all the vxlan ifconfig commands so they are unique

And rehook ifvxlan back into the build.

FreeBSD — head/sys/amd64/vmm/io vatpic.c

Fix 8259 IRQ priority resolver.
Initialize the 8259 such that IRQ7 is the lowest priority.

Reviewed by:                tychon
Differential Revision:        https://reviews.freebsd.org/D1322
MFC after:                1 week
Delta File
+28 -18 head/sys/amd64/vmm/io/vatpic.c
+28 -18 1 file

FreeBSD — projects/building-blocks Makefile.inc1

Remove leftover MK_VI == no from previous work that's no longer needed

FreeBSD — projects/building-blocks Makefile.inc1

Do not enable DEBUG_FILES in stages 1. through 3. of the build

Blindly building debugging symbols into the toolchain slows down builds
considerably and eats up a lot more resources than required, both in
terms of memory and disk I/O

This change has no noticeable effect for those who do not build with
MK_DEBUG_FILES=no (which is the default)

Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/lib/libc/sys procctl.2

Bump Dd for r275846

MFC after:        3 weeks
Delta File
+1 -1 head/lib/libc/sys/procctl.2
+1 -1 1 file

FreeBSD — head/lib/libc/sys procctl.2

Add some additional clarification and fix a few gammer nits.

Reviewed by: kib
MFC after:   3 weeks
Delta File
+66 -58 head/lib/libc/sys/procctl.2
+66 -58 1 file

FreeBSD — head/cddl/contrib/opensolaris/lib/libdtrace/common drti.c

Initialize an argument to NULL instead of expecting dlinfo() to do it.

dlinfo() is a weak reference that may not be initialized at the time of
execution. The default implementation (in lib/libc/gen/dlfcn.c) neither
modifies the address pointed to by the third argument nor returns an error.

Differential Revision:        https://reviews.freebsd.org/D1326
Reviewed by:                markj
MFC after:                1 week

FreeBSD — vendor/unbound/dist/iterator iterator.c iterator.h

Bring in unbound fixes for CVE-2014-8602 to ease future code import.

FreeBSD — stable/10/usr.bin/kdump mksubr kdump.c, stable/10/usr.bin/truss syscalls.c syscall.h

MFC 273053:
Decode the arguments passed to _umtx_op().  In particular, decode the
opcode.

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

Do not count RCTD bit set as an error.

We can not really implement it, but specification tells that it "shall"
work, so it can be safely ignored.

MFC after:        1 week
Delta File
+1 -1 head/sys/cam/ctl/ctl_cmd_table.c
+1 -1 1 file

FreeBSD — stable/10/usr.bin/patch pch.c common.h

MFC        r275553, r275612;

patch(1): Bring fixes from OpenBSD

Check fstat return value.  Use off_t for file size and offsets.
Avoid iterating over end of string.

Introduce strtolinenum to properly check line numbers while parsing:
no signs, no spaces, just digits, 0 <= x <= LONG_MAX

Properly validate line ranges supplied in diff file to prevent overflows.
Also fixes an out of boundary memory access because the resulting values
are used as array indices.

PR:                195436
Obtained from:        OpenBSD

FreeBSD — stable/10/usr.bin/patch pch.c patch.c

MFC        r275531, r275581, r275582;

patch(1): Small changes to sync with OpenBSD

Update OpenBSD CVS revision tag for our r255232.
Prefer setvbuf() to setlinebuf().
Small space changes, mostly to keep in sync with OpenBSD

Obtained from:        OpenBSD

FreeBSD — head UPDATING Makefile.inc1

Add an UPDATING entry and warning about the change in r274807 to help users
transition to the new behavior.

Discussed with:        jmallett
Sponsored by:        DARPA, AFRL
Delta File
+8 -0 head/UPDATING
+2 -0 head/Makefile.inc1
+10 -0 2 files

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

sed: Bounds check the file path used in the 'w' command.

Modified version of a diff from Sebastien Marie to prevent a crash found
with the afl fuzzer.

Obtained from:        OpenBSD (CVS Rev. 1.37)
MFC after:        1 week
Delta File
+4 -1 head/usr.bin/sed/compile.c
+4 -1 1 file

FreeBSD — stable/10/lib/libc/sys mmap.2

MFC 271635,271722:
- Only the manpage updates from 271635 are merged to give additional
  heads up for the stricter checks in 11, but the kernel in 10 remains
  permissive.
  - Fail with EINVAL if an invalid protection mask is passed to mmap().
  - Fail with EINVAL if an unknown flag is passed to mmap().
  - Fail with EINVAL if both MAP_PRIVATE and MAP_SHARED are passed to
    mmap().
  - Require one of either MAP_PRIVATE or MAP_SHARED for non-anonymous
    mappings.
- Remove mention of MAP_INHERIT.  It hasn't been implemented for thirteen
  years.
- Remove mention of unimplemented MAP_SWAP.  There are no future plans to
  implement it.
Delta File
+24 -14 stable/10/lib/libc/sys/mmap.2
+24 -14 1 file

FreeBSD — stable/10/sys/dev/e1000 if_igb.c, stable/9/sys/dev/e1000 if_igb.c

MFC 272897:
Various fixes to stats:
- Read the counts of received, dropped, and transmitted management
  packets and add sysctl nodes for them.
- Fix the total octets received/transmitted to read all 64 bits of
  the counters.
- Add missing sysctl nodes for rlec, tncrs, fcruc, tor, and tot.
- Remove spurious spaces.

FreeBSD — projects paravirt

Create projects branch for paravirt work

This branch will initially be used to develop support for KVM
paravirtualization - KVM clock, EIO, and async page fault -
and then hopefully pvops infrastructure and support for other
hypervisors.
Delta File
+0 -0 projects/paravirt/
+0 -0 1 file

FreeBSD — stable/10/sys/fs/ext2fs ext2_inode.c

MFC        r275645;

ext2fs: Fix old out-of-bounds access.

Overrunning buffer pointed to by (caddr_t)&oip->i_db[0] of 48 bytes by
passing it to a function which accesses it at byte offset 59 using
argument 60UL.

The issue was inherited from an older FFS implementation and
fixed there with by merging UFS2 in r98542. We follow the
FFS fix.

CID:                1007665
Discussed with:        bde
Delta File
+16 -6 stable/10/sys/fs/ext2fs/ext2_inode.c
+16 -6 1 file

FreeBSD — head/sys/amd64/amd64 exception.S

The iret instruction may generate #np and #ss fault, besides #gp.
When returning to usermode, the handler for that exceptions is also
executed with wrong gs base.  Handle all three possible faults in the
same way, checking for iret fault, and performing full iret.

Sponsored by:        The FreeBSD Foundation
MFC after:        3 days
Delta File
+7 -2 head/sys/amd64/amd64/exception.S
+7 -2 1 file

FreeBSD — head/tools/tools/nanobsd defaults.sh nanobsd.sh

Make NanoBSD source-able from other scripts.

Summary:
This change converts NanoBSD into a two-script bundle.
- defaults.sh contains all non-CLI code.  Most NanoBSD code is moved into
  this file.
- nanobsd.sh now consists just of a command line interface that calls into
  functions in defaults.sh.

Test Plan: Run NanoBSD using a previously-working configuration.

Reviewers: imp

Reviewed By: imp

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

FreeBSD — head/contrib/elftoolchain readelf

Copy elftoolchain readelf from vendor branch
Delta File
+0 -0 head/contrib/elftoolchain/readelf/
+0 -0 1 file

FreeBSD — head/sbin/ping6 ping6.c

Add ability to not specify a zone identifier twice, when both source and
destination addresses are specified.
For example:
        # ping6 -S fe80::1%ix0 ff02::1
or
        # ping6 -S fe80::1 fe80::2%ix0

Obtained from:        Yandex LLC
Sponsored by:        Yandex LLC
Delta File
+13 -4 head/sbin/ping6/ping6.c
+13 -4 1 file

FreeBSD — head/usr.sbin/pw/tests pw_usermod.sh pw_useradd.sh

Add tests for pw -N

PR:                150449
Submitted by:        Robert O'Neil <oneil.rs at gmail.com>
Approved by:        will

FreeBSD — stable/10/sys/net if_stf.c, stable/10/sys/netinet6 icmp6.c

MFC r275394:
  Remove unneded check. No need to do m_pullup to the size that we prepended.

Sponsored by:        Yandex LLC

FreeBSD — stable/9/sys/net if_stf.c, stable/9/sys/netinet6 icmp6.c

MFC r275394:
  Remove unneded check. No need to do m_pullup to the size that we prepended.

Sponsored by:        Yandex LLC

FreeBSD — stable/9/sys/netipsec keysock.c

MFC r275393:
  Remove unneded check. No need to do m_pullup to the size that we prepended.

MFC r275473:
  Fix style(9) and remove m_freem(NULL).
  Add XXX comment, it looks incorrect, because m_pkthdr.len is already
  incremented by M_PREPEND().

Sponsored by:        Yandex LLC
Delta File
+3 -6 stable/9/sys/netipsec/keysock.c
+3 -6 1 file

FreeBSD — stable/10/sys/netipsec keysock.c

MFC r275393:
  Remove unneded check. No need to do m_pullup to the size that we prepended.

MFC r275473:
  Fix style(9) and remove m_freem(NULL).
  Add XXX comment, it looks incorrect, because m_pkthdr.len is already
  incremented by M_PREPEND().

Sponsored by:        Yandex LLC
Delta File
+3 -6 stable/10/sys/netipsec/keysock.c
+3 -6 1 file

FreeBSD — stable/9/sys/netipsec key.c

MFC r275575:
  key_getspacq() returns holding the spacq_lock. Unlock it in all cases.

Sponsored by:        Yandex LLC
Delta File
+2 -1 stable/9/sys/netipsec/key.c
+2 -1 1 file

FreeBSD — user/pho/stress2/misc pcatch.sh

Added a regression test.

Sponsored by:         EMC / Isilon storage division
Delta File
+149 -0 user/pho/stress2/misc/pcatch.sh
+149 -0 1 file