Displaying 1 50 of 269,104 commits (0.182s)

FreeBSD — head/usr.sbin/makefs ffs.c

r258695 introduces a sanity check for makefs in order to verify that
the minimum image size specified is always less than the maximum
image size. If makefs(1) is invoked specifying minimum image size,
but not maximum one, the program exits with an error. Example:

# sudo -E makefs -M 538968064 -B be /home/davide/disk.img $DESTDIR
makefs: `/home/davide/tftproot/mips' minsize of 538968064 rounded up
to ffs bsize of 8192 exceeds maxsize 0.  Lower bsize, or round the
minimum and maximum sizes to bsize.

Assert then that minsize < maxsize iff maxsize is specified.
This change allows me to build MIPS images using makefs(1) and following
what specified in the wiki again.

Reviewed by:        jmallett, ngie
Delta File
+2 -1 head/usr.sbin/makefs/ffs.c
+2 -1 1 file

FreeBSD — head/sys/net if_vlan.c

Remove old comment, we already do 802.1q tagging.

Phabric:        D797
Reviewed by:        kevlo
Approved by:        kevlo
Sponsored by:        QNAP Systems Inc.
Delta File
+1 -2 head/sys/net/if_vlan.c
+1 -2 1 file

FreeBSD — stable/10/share/man/man4 iscsi.4 Makefile, stable/10/usr.bin/iscsictl iscsictl.8

MFC r271445,r271446,r271560:
Improve markup and language throughout the ctl.conf man page

MFC r271543:
Add the new iscsi(4) man page
Cross reference it from iscsid(8) and iscsictl(8)

Approved by:        re (gjb), bcr (mentor)

FreeBSD — head/sbin/ifconfig ifconfig.8, head/share/man/man4 lagg.4

The lagg(4) interface is based on trunk(4) interface from OpenBSD.
The FreeBSD is the only system that has the FEC protocol, that is a simple alias
to loadbalance protocol and does not implement the ancient Cisco FEC standard.

From now on, we remove the fec protocol from the documentation and keep the FEC
code only for compatibility.

Phabric:        D539
Reviewed by:        glebius, thompsa
Approved by:        glebius
Sponsored by:        QNAP Systems Inc.

FreeBSD — head/sbin/ifconfig ifconfig.8, head/share/man/man4 lagg.4

Add laggproto broadcast, it allows sends frames to all ports of the lagg(4) group
and receives frames on any port of the lagg(4).

Phabric:        D549
Reviewed by:        glebius, thompsa
Approved by:        glebius
Obtained from:        OpenBSD
Sponsored by:        QNAP Systems Inc.

FreeBSD — head/sys/dev/isp isp_freebsd.c isp_freebsd.h

Fix a kernel panic when unloading isp(4).

In the current implementation, the isp_kthread() threads never exit.

The target threads do have an exit mode from isp_attach(), but it is
not invoked from isp_detach().

Ensure isp_detach() notifies threads started for each channel, such
that they exit before their parent device softc detaches, and thus
before the module does.  Otherwise, a page fault panic occurs later in:

sysctl_kern_proc
  sysctl_out_proc
    kern_proc_out
      fill_kinfo_proc
        fill_kinfo_thread
          strlcpy(kp->ki_wmesg, td->td_wmesg, sizeof(kp->ki_wmesg));

For isp_kthread() (and isp(4) target threads), td->td_wmesg references
now-unmapped memory after the module has been unloaded.  These threads
are typically msleep()ing at the time of unload, but they could also
attempt to execute now-unmapped code segments.

MFC after:        1 month
Sponsored by:        Spectra Logic
MFSpectraBSD:        r1070921 on 2014/06/22 13:01:17

FreeBSD — head Makefile.inc1

Root the lib32 object tree under the overall object tree.

This enables a common root directory for all object files for a given tree,
which eases sharing a common MAKEOBJDIRPREFIX, and cleaning up of object trees.

In particular, one can simply (from the source directory) rm -rf /usr/obj$(pwd)
to destroy all object files for it.  Or to copy/sync files, etc.

Reviewed by:        bdrewery
CR:                https://reviews.freebsd.org/D796
MFC after:        1 month
Sponsored by:        Spectra Logic
Delta File
+3 -2 head/Makefile.inc1
+3 -2 1 file

FreeBSD — stable/10/contrib/llvm/patches patch-r271432-clang-r205331-debug-info-crash.diff, stable/10/contrib/llvm/tools/clang/lib/CodeGen CGDebugInfo.cpp

MFC Clang debuginfo crash fix

r271432: Merge upstream Clang rev 205331 debuginfo crash fix:

      Debug info: fix a crash when emitting IndirectFieldDecls, which were
      previously not handled at all.
      rdar://problem/16348575

r271433: Add clang patch corresponding to r271432

Approved by:        re
Sponsored by:        DARPA, AFRL

FreeBSD — head/sys/dev/bxe ecore_sp.h

For ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() check bxe_debug flag before
printing error message.

MFC after:5 days
Delta File
+12 -3 head/sys/dev/bxe/ecore_sp.h
+12 -3 1 file

FreeBSD — head/sys/modules/bce Makefile

Remove clean option

MFC after:5 days
Delta File
+0 -5 head/sys/modules/bce/Makefile
+0 -5 1 file

FreeBSD — head/sys/modules/bxe Makefile

Remove clean option

MFC after:5 days
Delta File
+0 -5 head/sys/modules/bxe/Makefile
+0 -5 1 file

FreeBSD — stable/10/sys/dev/bxe ecore_sp.h bxe.h

MFC r268854
Initiate error recovery stats fail to update after 3 retries.
Change bxe_panic() ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() to
panic only if ECORE_STOP_ON_ERROR is defined.

Approved by: re(gjb)

FreeBSD — head/sys/sys param.h, head/sys/vm vm_mmap.c

The vm_mmap_cdev() explicitely converts absence of both MAP_SHARED and
MAP_PRIVATE flags to MAP_SHARED.  Apparently, some code in tree, in
particular, libgeom, relied on this behaviour, see r271721.  For
regular file types, the absence of the flags is interpreted as
MAP_PRIVATE, and libc nlist used this (fixed in r271723).

Allow the implicit flags for legacy binaries.  Bump __FreeBSD_version
to get the ABI note on new binaries to check for in mmap code.

Remove the test for presence of one of the MAP_ANON, MAP_SHARED or
MAP_PRIVATE flags before fget_mmap().  For MAP_ANON, we already verify
that passed fd == -1.  For fd != -1, test after fget_mmap() (for newer
binaries) covers the case.

Reported by:        bdrewery, pho
Reviewed by:        jhb
Sponsored by:        The FreeBSD Foundation
Delta File
+6 -2 head/sys/vm/vm_mmap.c
+2 -1 head/sys/sys/param.h
+8 -3 2 files

FreeBSD — head/lib/libc/gen nlist.c

Explicitly set MAP_PRIVATE to avoid [EINVAL] after r271635.

X-MFC-With:        r271635
Reviewed by:        jhb
Delta File
+2 -2 head/lib/libc/gen/nlist.c
+2 -2 1 file

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

- 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.

Submitted by:        alc (2)
Delta File
+1 -14 head/lib/libc/sys/mmap.2
+1 -14 1 file

FreeBSD — head/lib/libgeom geom_stats.c

Explicitly specify MAP_SHARED when mapping the stats file descriptor.

Reviewed by:        kib
MFC after:        1 week
Delta File
+2 -2 head/lib/libgeom/geom_stats.c
+2 -2 1 file

FreeBSD — head/sbin/savecore savecore.c

If fgets(3) fails in getbounds(), show strerror(3) if not an EOF. Also fix
a FILE* leak in getbounds().

Submitted by:        Conrad Meyer <conrad.meyer at isilon.com>
PR:                192032
Sponsored by:        EMC / Isilon Storage Division
MFC after:        1 week
Delta File
+5 -1 head/sbin/savecore/savecore.c
+5 -1 1 file

FreeBSD — head/lib/msun/ld128 e_lgammal_r.c, head/lib/msun/ld80 e_lgammal_r.c

For targets that have a signed zero, lgamma_r(-0, &signgamp) should
set signgamp = -1.

Submitted by:        enh at google dot com (e_lgamma[f]_r.c)

FreeBSD — head/sys/cam cam_xpt.c

Correct a comment
Delta File
+1 -1 head/sys/cam/cam_xpt.c
+1 -1 1 file

FreeBSD — head/sys/dev/acpica acpi.c, head/sys/sparc64/pci psycho.c

Revert unrelated changes accidentally committed in r271192.

FreeBSD — head/sys/amd64/amd64 pmap.c, head/sys/i386/i386 pmap.c

Presence of any VM_PROT bits in the permission argument on x86 implies
that the entry is readable and valid.

Reported by:        markj
Submitted by:        alc
Tested by:        pho (previous version), markj
MFC after:        3 days

FreeBSD — projects/bhyve_svm ObsoleteFiles.inc Makefile.inc1, projects/bhyve_svm/bin/dd dd.1

IFC @r271694

FreeBSD — stable/10/sys/dev/if_ndis if_ndis.c, stable/9/sys/dev/if_ndis if_ndis.c

MFC 270830:
When anouncing link state changes on an 802.11 interface with a vap,
announce the change on the vap's ifnet instead of the main ifnet.  This
matches the behavior of other wireless drivers in the tree and allows the
default devd configuration to correctly start dhclient automatically after
an ndis wireless device associates.

Approved by:        re (marius for 10)

FreeBSD — head/sys/kern sched_ule.c

Reprase r271616 comments.

Submitted by:        alc
MFC after:        1 month
Delta File
+2 -2 head/sys/kern/sched_ule.c
+2 -2 1 file

FreeBSD — head/sys/kern kern_intr.c, head/sys/mips/cavium ciu.c

Migrate ie->ie_assign_cpu and associated code to use an int for CPU rather
than u_char.

Migrate post_filter to use an int for a CPU rather than u_char.

Change intr_event_bind() to use an int for CPU rather than u_char.

It touches the ppc, sparc64, arm and mips machdep code but it should
(hah!) be a no-op.

Tested:

* i386, AMD64 laptops

Reviewed by:        jhb

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

Update the bhyve(8) manual to reflect that it is no
longer considered 'experimental.'

Reviewed by:        grehan
MFC after:        3 days
Sponsored by:        The FreeBSD Foundation
Delta File
+2 -2 head/usr.sbin/bhyve/bhyve.8
+2 -2 1 file

FreeBSD — stable/9/sys/dev/ahci ahci.c

MFC r271403: Add PCI ID for Promise TX8660 8-port 3Gbps HBA.

This device reports RAID subclass, but appears to be AHCI compatible.

Submitted by:        Yuri Perejilin <yuri at rivera.ru>
Delta File
+1 -0 stable/9/sys/dev/ahci/ahci.c
+1 -0 1 file

FreeBSD — stable/10/sys/dev/ahci ahci.c

MFC r271403: Add PCI ID for Promise TX8660 8-port 3Gbps HBA.

This device reports RAID subclass, but appears to be AHCI compatible.

Submitted by:        Yuri Perejilin <yuri at rivera.ru>
Approved by:        re (gjb)
Delta File
+1 -0 stable/10/sys/dev/ahci/ahci.c
+1 -0 1 file

FreeBSD — stable/9/sys/kern sched_ule.c

MFC r271604, r271616:
Add couple memory barriers to order tdq_cpu_idle and tdq_load accesses.

This change fixes transient performance drops in some of my benchmarks,
vanishing as soon as I am trying to collect any stats from the scheduler.
It looks like reordered access to those variables sometimes caused loss of
IPI_PREEMPT, that delayed thread execution until some later interrupt.
Delta File
+14 -0 stable/9/sys/kern/sched_ule.c
+14 -0 1 file

FreeBSD — stable/10/sys/kern sched_ule.c

MFC r271604, r271616:
Add couple memory barriers to order tdq_cpu_idle and tdq_load accesses.

This change fixes transient performance drops in some of my benchmarks,
vanishing as soon as I am trying to collect any stats from the scheduler.
It looks like reordered access to those variables sometimes caused loss of
IPI_PREEMPT, that delayed thread execution until some later interrupt.

Approved by:        re (marius)
Delta File
+14 -0 stable/10/sys/kern/sched_ule.c
+14 -0 1 file

FreeBSD — stable/10/usr.sbin/iscsid login.c

MFC r271437:

Don't blindly assume the target agreed to transition to Full Feature Phase;
if we got a Login Response PDU without the "T" bit set, try again with
an empty request.  This fixes interoperability with COMSTAR.

Reviewed by:        mav
Tested by:        mav
Approved by:        re (kib)
Sponsored by:        The FreeBSD Foundation
Delta File
+31 -9 stable/10/usr.sbin/iscsid/login.c
+31 -9 1 file

FreeBSD — head/sys/dev/drm2 drm_gem_names.c drm_gem_names.h, head/sys/dev/drm2/i915 i915_gem_context.c i915_drv.c

drm/i915: Add HW context support

This feature is required by Mesa 9.2+. Without this, a GL application
crashes with the following message:
    # glxinfo
    name of display: :0.0
    Gen6+ requires Kernel 3.6 or later.
    Assertion failed: (ctx->Version > 0), function handle_first_current,
      file ../../src/mesa/main/context.c, line 1498.
    Abort (core dumped)

Now, Mesa 10.2.4 and 10.3-rc3 works fine:
    # glxinfo
    name of display: :0
    display: :0  screen: 0
    direct rendering: Yes
    ...
    OpenGL renderer string: Mesa DRI Intel(R) 965GM
    OpenGL version string: 2.1 Mesa 10.2.4
    ...

The code was imported from Linux 3.8.13.

Reviewed by:        kib@
Tested by:        kwm@, danfe@, Henry Hu,

    [5 lines not shown]

FreeBSD — stable/10/usr.sbin/autofs token.l

MFC r271167:

Make it possible to quote names in autofs maps using double quotes.

Note that this is a workaround, not a proper solution.  If you know
lex well, and want to help - please let me know, I'll explain how it
should work.

PR:                192968
Approved by:        re (kib)
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -0 stable/10/usr.sbin/autofs/token.l
+1 -0 1 file

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

Fix LUN discovery for targets that don't support REPORT_LUNS, broken
in r263741.  At least with CTL (slightly modified to report SPC2) there
is still some problem: it doesn't seem to find LUNs higher than 7.

Sponsored by:        The FreeBSD Foundation
Delta File
+6 -1 head/sys/dev/iscsi/iscsi.c
+6 -1 1 file

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

Fix tpc_create_token() introduced in r269497 to encode CREATOR LOGICAL UNIT
DESCRIPTOR field as Identification Descriptor CSCD descriptor, not just as
Identification Descriptor.

MFC after:        3 days
Delta File
+7 -2 head/sys/cam/ctl/ctl_tpc.c
+7 -2 1 file

FreeBSD — stable/10/usr.sbin/ctld login.c

MFC r271319:

Fix ctld(8) to not forget to send TargetPortalGroupTag and TargetAlias
when the initiator skips security negotiation.  This fixes interoperability
with Xtend SAN initiator.

PR:                193021
Approved by:        re (marius)
Sponsored by:        The FreeBSD Foundation
Delta File
+20 -4 stable/10/usr.sbin/ctld/login.c
+20 -4 1 file

FreeBSD — head/sys/cam/scsi scsi_all.h

Fix typo in defined ROD types in r269497.

MFC after:        3 days
Delta File
+5 -5 head/sys/cam/scsi/scsi_all.h
+5 -5 1 file

FreeBSD — head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid tst.weak2.c

Implement a workaround to allow this test program to be compiled with clang.
It seems that if a pragma is used to define a weak alias for a local
function, the pragma must appear after the function is defined.

PR:                193056
MFC after:        1 week
Sponsored by:        EMC / Isilon Storage Division

FreeBSD — head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/uctf tst.aouttype.ksh err.invalidtype.ksh

Fix a number of typos and programming errors in the userland CTF tests. It
seems that they would only pass by chance on illumos; on FreeBSD, they still
fail since userland CTF is not yet supported.

MFC after:        1 week
Sponsored by:        EMC / Isilon Storage Division

FreeBSD — head/sys/cddl/dev/dtrace/powerpc dtrace_isa.c, head/sys/cddl/dev/fbt/powerpc fbt_isa.c

Fix the stack tracing for dtrace/powerpc.

Summary:
Fix the stack tracing for dtrace/powerpc by using the trapexit/asttrapexit
return address sentinels instead of checking within the kernel address space.

As part of this, I had to add new inline functions.  FBT traces the kernel, so
we have to have special case handling for this, since a trap will create a full
new trap frame, and there's no way to pass around the 'real' stack.  I handle
this by special-casing 'aframes == 0' with the trap frame.  If aframes counts
out to the trap frame, then assume we're looking for the full kernel trap frame,
so switch to the real stack pointer.

Test Plan: Tested on powerpc64

Reviewers: rpaulo, markj, nwhitehorn

Reviewed By: markj, nwhitehorn

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

MFC after:        3 week
Relnotes:        Yes

FreeBSD — head ObsoleteFiles.inc, head/etc/defaults rc.conf

Use a devd event to start hv_kvpd instead of doing so in rc.d script.
This is cleaner and eliminates the unneeded startup of KVP daemon on
systems that do not run as a Hyper-V guest.

Submitted by:        hrs
X-MFC-with:        271493, 271688, 271699

FreeBSD — head/cddl/contrib/opensolaris/lib/libctf/common ctf_lib.c, head/cddl/contrib/opensolaris/lib/libdtrace/common dt_print.c

Fix some incorrect endianness checks.

MFC after:        1 week
Sponsored by:        EMC / Isilon Storage Division

FreeBSD — projects/bhyve_svm/sys/amd64/vmm/amd svm.c

Rework vNMI injection.

Keep track of NMI blocking by enabling the IRET intercept on a successful
vNMI injection. The NMI blocking condition is cleared when the handler
executes an IRET and traps back into the hypervisor.

Don't inject NMI if the processor is in an interrupt shadow to preserve the
atomic nature of "STI;HLT". Take advantage of this and artificially set the
interrupt shadow to prevent NMI injection when restarting the "iret".

Reviewed by:        Anish Gupta (akgupt3 at gmail.com), grehan

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

Fix a typo.

MFC after:        3 days
Delta File
+1 -1 head/usr.bin/elfdump/elfdump.1
+1 -1 1 file

FreeBSD — head/sys/net if_vlan.c

* Fix if_omcast handling
* Convert if_oerrors to pcpu.

Suggested by:        glebius
MFC after:        2 weeks
Delta File
+11 -6 head/sys/net/if_vlan.c
+11 -6 1 file

FreeBSD — stable/10/sys/netinet/cc cc_cdg.c

MFC r270160:

Destroy the "qdiffsample_zone" UMA zone on unload to avoid a use-after-unload
panic easily triggered by running "sysctl -a" after unload.

Reported and tested by:        Grenville Armitage <garmitage at swin.edu.au>
Approved by:        re(gjb)
Delta File
+11 -1 stable/10/sys/netinet/cc/cc_cdg.c
+11 -1 1 file

FreeBSD — head/etc/rc.d hv_kvpd

Such typo, many email, very spelling.  wow.

MFC with 271688 271493
Submitted by:        ngie ian
MFC after:        2 weeks
Relnotes:        yes
Delta File
+1 -1 head/etc/rc.d/hv_kvpd
+1 -1 1 file

FreeBSD — head/etc/defaults rc.conf, head/etc/rc.d hv_kvpd

Add proper disable/enable hooks to the default scripts so that this is only
run when asked for by the user.  Right now, hv_kvpd is run on every boot.

Don't do that.

Add hv_kvpd_enable= for this script to be run.

MFC with 271493

MFC after:        2 weeks
Relnotes:        yes

FreeBSD — stable/10/release/doc/en_US.ISO8859-1/errata article.xml, stable/9/release/doc/en_US.ISO8859-1/errata article.xml

Document SA-14:19

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