Displaying 1 50 of 271,320 commits (0.057s)

FreeBSD — vendor/atf atf-0.21

Tag import of atf-0.21.
Delta File
+0 -0 vendor/atf/atf-0.21/
+0 -0 1 file

FreeBSD — vendor/atf/dist configure Makefile.in, vendor/atf/dist/admin ltmain.sh install-sh

Import atf-0.21:

Released on October 23rd, 2014.

* Restored the atf(7) manual page to serve as a reference to all the other
  manual pages shipped by ATF.

* Added the -s flag to atf-sh to support specifying the shell interpreter
  to be used.

* Removed ATF_WORKDIR.  The only remaining consumers have been converted to
  use the standard TMPDIR environment variable.  As a benefit, and because
  Kyua forces the TMPDIR to live within the test case's work directory,
  any stale files left behind by ATF will be automatically cleaned up.

* Documented the environment variables recognized by each component in the
  relevant manual pages.  This information was lost with the atf-config(1)

* Added a new "require.diskspace" metadata property to test cases so that
  they can specify the minimum amount of disk space required for the test
  to run.

* Renamed the atf-{c,c++,sh}-api(3) manual pages to atf-{c,c++,sh}(3) for
  discoverability purposes.  Symbolic links are provided for the time

    [29 lines not shown]
Delta File
+3,220 -1,951 vendor/atf/dist/admin/ltmain.sh
+1,159 -1,230 vendor/atf/dist/configure
+987 -979 vendor/atf/dist/m4/libtool.m4
+793 -0 vendor/atf/dist/atf-c/atf-c.3
+0 -775 vendor/atf/dist/atf-c/atf-c-api.3
+457 -231 vendor/atf/dist/admin/install-sh
+3,578 -4,567 194 files not shown
+10,194 -9,733 200 files

FreeBSD — stable/9/sys/contrib/rdma/krping krping.c, stable/9/sys/ofed/drivers/infiniband/core addr.c agent.c

MFC r273135 and r273867:
Update the OFED Linux compatibility layer and
Mellanox hardware driver(s):

- Properly name an inclusion guard.
- Fix compile warnings regarding unsigned enums.
- Fix compile warning regarding unused variable.
- Add two new sysctl nodes.
- Remove all empty linux header files.
- Make an error printout more verbose.
- Use "mod_delayed_work()" instead of
  cancelling and starting a timeout.
- Implement more Linux scatterlist
- Don't forget to add "options OFED" to
  the kernel configuration file before
  using infiniband.

Sponsored by:        Mellanox Technologies

FreeBSD — head/sys/ofed/drivers/net/mlx4 mcg.c

Fix compile warning by removing unused variable.

MFC:                3 days
Sponsored by:        Mellanox Technologies

FreeBSD — head/sys/sys buf_ring.h

Plug memory ordering holes in buf_ring_enqueue. For at least some
users this patch eliminates the races previously discussed on the
mailing list.

Submitted by:        oleg
Reviewed by:        kmacy
MFC after:        2 weeks
Tested by:        kmacy,rpaulo
Delta File
+16 -33 head/sys/sys/buf_ring.h
+16 -33 1 file

FreeBSD — head/sbin/fsck_msdosfs dosfs.h boot.c, head/sys/boot/amd64/boot1.efi boot1.c

Make UEFI booting of 4Kn disks work:
      -        convert boot1.efi to corrrectly calculate the lba for what the
        media reports and convert the size based on what FreeBSD uses.
        The existing code would use the 512 byte lba and convert the
        size using 4K byte size.
      -        make fsck_msdosfs read the boot block as 4K so the read doesn't
        fail on a 4Kn drive since FreeBSD will error out parition reads
        of a block.  Make the bpbBytesPerSec check a multiple of 512 since
        it can be 512 or 4K depending on the disk.  This allows fsck to
        pass checking the EFI partition on a 4Kn disk.

To create the EFI file system I used:
        newfs_msdos -F 32 -S 4096 -c 1 -m 0xf8 <partition>
This works for booting 512 and 4Kn disks.

Caveat is that loader.efi cannot read the 4Kn EFI partition.  This isn't
critical right now since boot1.efi will read loader.efi from the ufs
partition.  It looks like loader.efi can be fixed via making some of the
512 bytes reads more flexible.  loader.efi doesn't have trouble reading
the ufs partition.  This is probably a simple fix.

I now have FreeBSD installed on a system with 4Kn drives and tested the
same code works on 512.

MFC after:        1 week

FreeBSD — stable/9/contrib/ofed/libibverbs/examples device_list.c devinfo.c, stable/9/contrib/ofed/libmlx4/src mlx4-abi.h

MFC r254122, r254123, r256116, r255970, r247671, r269861, r268314, r256269,
  r255969, r256179, r230135, r254121, r255932, r255972, r255973, r256281,
  r256470, r257867, r259608, r269862, r271127, r272407, r257864, r256682,
  r258276, r254734, r247675, r254735 and r272683:

Hardware driver update from Mellanox Technologies, including:
 - improved performance
 - better stability
 - new features
 - bugfixes

Supported HCAs:
 - ConnectX-2
 - ConnectX-3
 - ConnectX-3 Pro

  - TSO feature needs r271946, which is not yet merged.

Sponsored by:        Mellanox Technologies

FreeBSD — head/sys/dev/agp agp.c

Avoid possible overflow in agp_generic_alloc_memory.

MFC after:        1 week
Delta File
+1 -1 head/sys/dev/agp/agp.c
+1 -1 1 file

FreeBSD — head/sys/dev/drm2 drm_agpsupport.c, head/sys/dev/drm2/radeon radeon_device.c radeon_ttm.c

Port the TTM AGP backend to the FreeBSD agp driver and enable AGP support
in the radeonkms driver.

Note: In PCI mode virtual addresses on the graphics card that map to system
RAM are translated to physical addresses by the graphics card itself.   In
AGP mode address translation is done by the AGP chipset so fictitious
addresses appear on the system bus.  For the CPU cache management to work
correctly when the CPU accesses this memory it needs to use the same
fictitious addresses (and let the chipset translate them) instead of using
the physical addresses directly.

Reviewed by:        kib
MFC after:        1 month

FreeBSD — head/sbin/mount_nfs mount_nfs.c

Remove two functions unused after r273848.  Would be nice if clang
or at least scan-build yelled about it.

MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Delta File
+0 -29 head/sbin/mount_nfs/mount_nfs.c
+0 -29 1 file

FreeBSD — stable/9/sys/net if_gif.c, stable/9/sys/netinet ip_gre.c

MFC r272770 (modified version):
  When tunneling interface is going to insert mbuf into netisr queue after stripping
  outer header, consider it as new packet and clear the protocols flags.

  This fixes problems when IPSEC traffic goes through various tunnels and router
  doesn't send ICMP/ICMPv6 errors.

PR:                174602
Sponsored by:        Yandex LLC

FreeBSD — stable/10/sys/net if_gif.c, stable/10/sys/netinet ip_gre.c

MFC r272770:
  When tunneling interface is going to insert mbuf into netisr queue after stripping
  outer header, consider it as new packet and clear the protocols flags.

  This fixes problems when IPSEC traffic goes through various tunnels and router
  doesn't send ICMP/ICMPv6 errors.

PR:                174602
Sponsored by:        Yandex LLC

FreeBSD — head/sys/netinet6 in6_ifattach.c

Remove redundant code.
if_detach already did these steps. Also, now we didn't keep routes to link-local

Obtained from:        Yandex LLC
Sponsored by:        Yandex LLC
Delta File
+4 -65 head/sys/netinet6/in6_ifattach.c
+4 -65 1 file

FreeBSD — head/sys/netinet6 in6_mcast.c

Move ifq drain into in6m_purge().

Suggested by:        bms
MFC after:        1 week
Sponsored by:        Yandex LLC
Delta File
+2 -3 head/sys/netinet6/in6_mcast.c
+2 -3 1 file

FreeBSD — head/sys/dev/agp agp.c agpvar.h

Add two new functions to the AGP driver KPI to bind/unbind arbitrary sets
of pages into the GTT.

Reviewed by:        kib
MFC after:        1 month
Delta File
+73 -0 head/sys/dev/agp/agp.c
+13 -0 head/sys/dev/agp/agpvar.h
+86 -0 2 files

FreeBSD — head/sys/netinet6 in6_mcast.c

Fix mbuf leak in IPv6 multicast code.
When multicast capable interface goes away, it leaves multicast groups,
this leads to generate MLD reports, but MLD code does deffered send and
MLD reports are queued in the in6_multi's in6m_scq ifq. The problem is
that in6_multi structures are freed when interface leaves multicast groups
and thread that does deffered send will not take these queued packets.

PR:                194577
MFC after:        1 week
Sponsored by:        Yandex LLC
Delta File
+3 -0 head/sys/netinet6/in6_mcast.c
+3 -0 1 file

FreeBSD — head/lib/libc/posix1e acl.3

Update acl(3) to expand on NFSv4 ACL support.

MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Delta File
+9 -5 head/lib/libc/posix1e/acl.3
+9 -5 1 file

FreeBSD — head/lib/libc/posix1e acl_add_flag_np.3 acl_clear_flags_np.3

Make it clear that ACL flags are NFSv4-only.

MFC after:        1 month
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/fs/nfsclient nfs_clvfsops.c

Fix handling of "conn" mount_nfs(8) option.

Reviewed by:        rmacklem@
MFC after:        1 month
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sbin/mount_nfs mount_nfs.8

Note that the "timeout" nfs option is in tenths of a second.

MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Delta File
+2 -1 head/sbin/mount_nfs/mount_nfs.8
+2 -1 1 file

FreeBSD — head/sys/netinet tcp_timewait.c tcp_usrreq.c

Fix a race condition in TCP timewait between tcp_tw_2msl_reuse() and
tcp_tw_2msl_scan().  This race condition drives unplanned timewait
timeout cancellation.  Also simplify implementation by holding inpcb
reference and removing tcptw reference counting.

Differential Revision:        https://reviews.freebsd.org/D826
Submitted by:                Marc De la Gueronniere <mdelagueronniere at verisign.com>
Submitted by:                jch
Reviewed By:                jhb (mentor), adrian, rwatson
Sponsored by:                Verisign, Inc.
MFC after:                2 weeks
X-MFC-With:                r264321

FreeBSD — head/sbin/mount_nfs mount_nfs.c mount_nfs.8, head/sys/fs/nfsclient nfs_clvfsops.c

Add support for "timeo", "actimeo", "noac", and "proto" options
to mount_nfs(8).  They are implemented on Linux, OS X, and Solaris,
and thus can be expected to appear in automounter maps.

Reviewed by:        rmacklem@
MFC after:        1 month
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sbin/mount_nfs mount_nfs.c

Get rid of obsolete code in mount_nfs(8).

Reviewed by:        rmacklem@
Sponsored by:        The FreeBSD Foundation
Delta File
+2 -217 head/sbin/mount_nfs/mount_nfs.c
+2 -217 1 file

FreeBSD — stable/10/sys/dev/acpi_support acpi_ibm.c, stable/10/sys/dev/acpica acpi.c

MFC r273733, r273740 and r273773:

The SYSCTL data pointers can come from userspace and must not be
directly accessed. Although this will work on some platforms, it can
throw an exception if the pointer is invalid and then panic the kernel.

Add a missing SYSCTL_IN() of "SCTP_BASE_STATS" structure.

Sponsored by:        Mellanox Technologies

FreeBSD — head/sys/kern kern_descrip.c

filedesc: make sure to force table reload in fget_unlocked when count == 0

This is a fixup to r273843.
Delta File
+6 -1 head/sys/kern/kern_descrip.c
+6 -1 1 file

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

fix spelling of offset since that is what is used in the body...
Delta File
+3 -3 head/usr.bin/hexdump/hexdump.1
+3 -3 1 file

FreeBSD — head/sys/kern kern_descrip.c

filedesc: microoptimize fget_unlocked by retrying obtaining reference count
without restarting whole lookup

Restart is only needed when fp was closed by current process, which is a much
rarer event than ref/deref by some other thread.
Delta File
+3 -4 head/sys/kern/kern_descrip.c
+3 -4 1 file

FreeBSD — head/sys/kern kern_descrip.c, head/sys/sys filedesc.h

filedesc: get rid of atomic_load_acq_int from fget_unlocked

A read barrier was necessary because fd table pointer and table size were
updated separately, opening a window where fget_unlocked could read new size
and old pointer.

This patch puts both these fields into one dedicated structure, pointer to which
is later atomically updated. As such, fget_unlocked only needs data a dependency
barrier which is a noop on all supported architectures.

Reviewed by:        kib (previous version)
MFC after:        2 weeks

FreeBSD — stable/10/sys/netinet in.h

MFC r266842: netinet/in.h: Expose htonl(), htons(), ntohl() and ntohs() in
strict POSIX mode.

Put the htonl(), htons(), ntohl() and ntohs() declarations under
__POSIX_VISIBLE >= 200112. POSIX.1-2001 and newer require these to be
exposed from <netinet/in.h> (as well as <arpa/inet.h>).

Note that it may be unnecessary to check __POSIX_VISIBLE >= 200112 because
older versions of POSIX and the C standard do not define this header.
However, other places in the same file already perform the check.

PR:                188316
Submitted by:        Christian Neukirchen
Delta File
+2 -2 stable/10/sys/netinet/in.h
+2 -2 1 file

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

MFC r264628: fcntl.h: Make visible various POSIX.1-2008 features.

Also, remove #if __BSD_VISIBLE where it is redundant. When __BSD_VISIBLE is
defined to 1, __POSIX_VISIBLE, __XSI_VISIBLE and __ISO_C_VISIBLE are also
defined to the newest supported version.

PR:                188173
Delta File
+7 -9 stable/10/sys/sys/fcntl.h
+7 -9 1 file

FreeBSD — head ObsoleteFiles.inc

.a's are installed in /usr/lib, don't delete them.
Delta File
+0 -1 head/ObsoleteFiles.inc
+0 -1 1 file

FreeBSD — stable/10/share/man/man4 tcp.4, stable/10/sys/netinet tcp_timer.c tcp_output.c

MFC r272720, 273061, 273062, 273063, 273064

Implement PLPMTUD blackhole detection (RFC 4821), inspired by code
from xnu sources.  If we encounter a network where ICMP is blocked
the Needs Frag indicator may not propagate back to us.  Attempt to
downshift the mss once to a preconfigured value.

Note, this is turned off by default.

FreeBSD — head/lib/libutil login_class.c

Fix a clang 3.5 warning about abs(3) being given an argument of type
quad_t in setusercontext().  While here, sanitize the clamping of the
priority value, and use the correct type for the return value of

Reviewed by:        kib
MFC after:        3 days
Delta File
+5 -5 head/lib/libutil/login_class.c
+5 -5 1 file

FreeBSD — projects/release-vmimage/release/amd64 mk-openstack.sh, projects/release-vmimage/release/i386 mk-openstack.sh

Fix output file name for openstack images.
No further conversion is necessary for this
VM file target, so there is no need to append
the '.raw' suffix here.

Sponsored by:        The FreeBSD Foundation

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

Replace a magic number with the proper definition.  This change actually
fixes broken state field after r273266, i.e., "CPU-1" was displayed in place
of "RUN".
Delta File
+2 -2 head/usr.bin/top/machine.c
+2 -2 1 file

FreeBSD — head/usr.sbin/etcupdate etcupdate.8

Rework the EXAMPLES section to be a bit clearer.
- Add an example of using etcupdate diff.
- Create a subsection on bootstrapping that is below the simple
  examples.  This should make it clearer that 'etcupdate extract' is
  a one-time operation and not part of the common workflow.  It also
  adds more suggestions on when bootstrapping is needed and additional
  steps to make future merges simpler.

Reviewed by:        adrian
MFC after:        3 days
Delta File
+58 -6 head/usr.sbin/etcupdate/etcupdate.8
+58 -6 1 file

FreeBSD — projects/release-vmimage/release Makefile.vm, projects/release-vmimage/release/amd64 mk-openstack.sh

Initial commit providing a mechanism to create
openstack images as part of the release build.

This mimics the way Microsoft Azure images are
built, with the addition of installing the
net/cloud-init package and adding a (commented)
rc.conf(5) entry for cloudinit.

Sponsored by:        The FreeBSD Foundation

FreeBSD — releng/10.1/sys/amd64/amd64 pmap.c, releng/10.1/sys/amd64/vmm vmm_ioport.c

MFS10 r273573, MFC r273356:
Fix a race in pmap_emulate_accessed_dirty() that could trigger a EPT
misconfiguration VM-exit.

MFS10 r273807, MFC r273666:
Don't pass the 'error' return from an I/O port handler directly to vm_run().

Approved by:        re (kib)

FreeBSD — stable/10/usr.sbin/bsdinstall/partedit gpart_ops.c partedit_x86.c, stable/10/usr.sbin/bsdinstall/scripts zfsboot config

MFC r271539,273003,273005:

Add ZFS support to the bsdinstall partition editor and sade

Submitted by:        Kurt Lidl (original version)

FreeBSD — stable/10/sys/arm/arm locore.S

MFC r273288:

 Allow the armv6 kernel to be build with PHYSADDR undefined. The kernel
 will now find the virtual to physical mapping for libkvm to use at
 runtime. This makes PHYSADDR redundant, however keep it around to give
 everyone a chance to update their libkvm.
Delta File
+19 -1 stable/10/sys/arm/arm/locore.S
+19 -1 1 file

FreeBSD — stable/10/sys/conf Makefile.arm

MFC r273287:

 Only build the ARM tranpoline when KERNPHYSADDR is defined as it is
 otherwise unneeded in armv6 kernels.
Delta File
+2 -0 stable/10/sys/conf/Makefile.arm
+2 -0 1 file

FreeBSD — stable/10/lib/libkvm kvm_arm.c, stable/10/sys/arm/arm dump_machdep.c

MFC r273284:

 Allow libkvm to get the kernel va to pa delta without the need for
 physaddr. This should allow for a kernel where PHYSADDR and KERNPHYSADDR
 are both undefined.

 For now libkvm will use the old method of reading physaddr and kernaddr
 to allow it to work with old kernels. This could be removed in the future
 when enough time has passed.

FreeBSD — stable/10/lib/libc/arm/aeabi aeabi_vfp.h, stable/10/lib/msun/arm fenv.c

MFC r269956:

 From https://sourceware.org/ml/newlib/2014/msg00113.html
 By Richard Earnshaw at ARM
 >GCC has for a number of years provides a set of pre-defined macros for
 >use with determining the ISA and features of the target during
 >pre-processing.  However, the design was always somewhat cumbersome in
 >that each new architecture revision created a new define and then
 >removed the previous one.  This meant that it was necessary to keep
 >updating the support code simply to recognise a new architecture being
 >The ACLE specification (ARM C Language Extentions)
 >provides a much more suitable interface and GCC has supported this
 >since gcc-4.8.
 >This patch makes use of the ACLE pre-defines to map to the internal
 >feature definitions.  To support older versions of GCC a compatibility
 >header is provided that maps the traditional pre-defines onto the new
 >ACLE ones.

 Stop using __FreeBSD_ARCH_armv6__ and switch to __ARM_ARCH >= 6 in the
 couple of places in tree. clang already implements ACLE. Add a define

    [2 lines not shown]

FreeBSD — projects/release-vmimage/release/amd64 mk-azure.sh, projects/release-vmimage/release/i386 mk-azure.sh

Remove a few vestiges of passing an exit code to

Sponsored by:        The FreeBSD Foundation

FreeBSD — projects/release-vmimage/release Makefile.vm, projects/release-vmimage/release/amd64 mk-azure.sh

Avoid hard-coding the Azure image file format.
While here, avoid using OSRELEASE for the output
file name.

Sponsored by:        The FreeBSD Foundation

FreeBSD — projects/release-vmimage/release Makefile.vm Makefile

Add glue to allow enabling building cloud provider
VM images by default.

to the release/Makefile 'release' target.

CLOUDTARGETS is generated from the contents of
CLOUDWARE, which should be a list of all supported
target providers.

Sponsored by:        The FreeBSD Foundation

FreeBSD — projects/release-vmimage/release Makefile.vm Makefile

Move virtual machine / cloud provider targets and
options from release/Makefile to their own Makefile.

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/usr.bin/iscsictl token.l, head/usr.sbin/ctld token.l

Fix iscsictl(8) and ctld(8) to correctly handle Windows newlines
(CRLF) in iscsi.conf and ctl.conf.

MFC after:        1 month
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/usr.sbin/ctld parse.y

Keep the token list sorted.

MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Delta File
+3 -3 head/usr.sbin/ctld/parse.y
+3 -3 1 file

FreeBSD — head/usr.sbin/ctld parse.y token.l

Make it possible to optionally use semicolon to separate statements.
This makes it possible to format stuff like this:

target xxx {
        lun 0 { path /foo/bar; size 4G; }

MFC after:        1 month
Sponsored by:        The FreeBSD Foundation