Displaying 1 51 of 268,350 commits (0.294s)

FreeBSD — head/sys/dev/mrsas mrsas_cam.c mrsas.h

Fix for WITNESS warning while doing xpt_rescan.
This happen when converting any JBOD to RAID or creating
any new RAID from Unconfigured Drives.

Without this fix, user may see below call trace if  WITNESS is enabled.

witness_warn() at witness_warn+0x4b5/frame 0xfffffe011f929a00
uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfffffe011f929a70
malloc() at malloc+0x192/frame 0xfffffe011f929ac0
mrsas_bus_scan_sim() at mrsas_bus_scan_sim+0x32/frame 0xfffffe011f929af0
mrsas_aen_handler() at mrsas_aen_handler+0x11c/frame 0xfffffe011f929b20
taskqueue_run_locked() at taskqueue_run_locked+0xf0/frame 0xfffffe011f929b80
taskqueue_thread_loop() at taskqueue_thread_loop+0x9b/frame 0xfffffe011f929bb0
fork_exit() at fork_exit+0x84/frame 0xfffffe011f929bf0
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe011f929bf0

Submitted by:   kadesai
Reviewed by:    ambrisko
MFC after:      3 days

FreeBSD — head/lib/libthr/thread thr_cond.c

Fix typo in a comment.
Delta File
+1 -1 head/lib/libthr/thread/thr_cond.c
+1 -1 1 file

FreeBSD — head/sys/boot/fdt/dts/arm cubieboard2.dts sun4i-a10.dtsi

The proper compatibility string for the AHCI device is
allwinner,sun4i-ahci, so use that instead of the older string which
had become FreeBSD specific.

FreeBSD — stable/10/usr.sbin/ctld Makefile

MFC r270179:

  Add missing libraries to DPADD; sort DPADD so DPADD and LDADD match up

  This fixes "make checkdpadd"

  Approved by: jmmv (mentor)
  Phabric: D630
  PR: 192765
Delta File
+2 -2 stable/10/usr.sbin/ctld/Makefile
+2 -2 1 file

FreeBSD — stable/10/sys/sys elf_common.h, stable/10/usr.bin/elfdump elfdump.c

MFC elfdump improvements

r269092: Improve section type reporting

  The SHT range 0x70000000-0x7fffffff is processor-specific.  Pass the
  ELF machine type header to sh_types so the section header type name can
  be reported correctly for the given processor.

  For all ranges report the actual value for unknown types.

  Add MIPS-specific type SHT_MIPS_OPTIONS.

r269143 (andreast): Further improvements on elfdump, to follow up r269092:

  - Add ARM specific section header types.
  - Add SHT_GNU_HASH section header type.
  - Improve reporting of undefined tags in d_tags.
  - Add DT_GNU_HASH tag.

  Reviewed by:        emaste

r269337: add EM_AARCH64 64-bit ARM machine architecture

r269338: use existing ELF constants where available

    [9 lines not shown]

FreeBSD — projects/ipfw/sys/netpfil/ipfw ip_fw_table_value.c ip_fw_table.c

Add more comments on newly-added functions.
Add back opstate handler function.

FreeBSD — user/cperciva/freebsd-update-build/patches/8.4-RELEASE 13-SA-14:16.file 13-EN-14:08.heimdal

Add two missed patches for 8.4-RELEASE.

FreeBSD — user/cperciva/freebsd-update-build/patches/10.0-RELEASE 7-SA-14:17.kmem, user/cperciva/freebsd-update-build/patches/8.4-RELEASE 13-SA-14:17.kmem 13-EN-14:09.jail

Add patches for 2014-07-08 batch.

FreeBSD — head/sys/sys cdefs.h

Clean up <sys/cdefs.h> slightly.

- Remove c++0x hack from <sys/cdefs.h> that was needed when Clang did
  not fully implement C++11. We can now safely test against C++11 to
  check whether thread_local is available, like we do for all other
  C++11 keywords.

- Don't use __clang__ to test for thread safety annotation presence. It
  turns out we have a proper attribute for this.
Delta File
+2 -3 head/sys/sys/cdefs.h
+2 -3 1 file

FreeBSD — projects/sendfile/sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_vnops.c

Plug new sendfile(2) operation on ZFS. Unlike UFS it is blocking on I/O.

Sponsored by:        Netflix
Sponsored by:        Nginx, Inc.

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

IFC @r269962

Submitted by:        Anish Gupta (akgupt3 at gmail.com)

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

Update a comment to reflect the changes in r213408.

MFC after:        5 days
Delta File
+1 -1 head/sys/amd64/amd64/pmap.c
+1 -1 1 file

FreeBSD — head/sys/dev/ofw openfirm.c

Fix typo.

Pointy hat:        ian
Delta File
+1 -1 head/sys/dev/ofw/openfirm.c
+1 -1 1 file

FreeBSD — head/sys/dev/fdt fdt_clock.c

Use OF_xref_from_device(), not OF_xref_from_node().  Also, use bzero()
rather than memset().
Delta File
+4 -3 head/sys/dev/fdt/fdt_clock.c
+4 -3 1 file

FreeBSD — head/sys/dev/ofw openfirm.c openfirm.h

Add OF_xref_from_device() so that there's no need to have an intermediate
call to ofw_bus_get_node() to lookup info that's already in the xreflist.

FreeBSD — head/sys/conf files, head/sys/dev/fdt fdt_clock.c fdt_clock_if.m

Create an interface for drivers to enable or disable their clocks as listed
in the clocks=<...> properties of their FDT data.  The clock properties
consist of 2-cell tuples, each containing a clock device node reference and
a clock number.  A clock device driver can register itself as providing
this interface, then other drivers can turn the FDT clock node reference
into the corresponding device_t so that they can use the interface to query
and manipulate their clocks.

This provides convenience functions to enable or disable all the clocks
listed in the properties for a device, so most drivers will be able to
manage their clocks with a single call to fdt_clock_enable_all(dev).

FreeBSD — head/sys/arm/freescale/imx imx6_anatop.c

The anatop driver controls power and PLLs and needs to be available before
just about anything else (other than octop which provides it config info),
so make it an EARLY_DRIVER_MODULE().

FreeBSD — head/sys/arm/freescale fsl_ocotp.c

The ocotp driver provides access to registers containing chip configuration
data that is needed by other drivers, so make it an EARLY_DRIVER_MODULE()
that loads before just about anything else.

FreeBSD — head/usr.sbin/bsdconfig/share dialog.subr

Fix a bug where command line arguments could be misprocessed if getopts is
used prior to f_dialog_init() -- e.g., in a script that sets
DIALOG_SELF_INITIALIZE to NULL, preventing f_dialog_init() from being run
automaticaly when `dialog.subr' is included. Caused by sub-shell processing
of arguments inheriting prior value of $OPTIND, used by getopts. Solved by
unsetting OPTIND prior to [re-]processing of positional arguments.

FreeBSD — head/sys/dev/ofw openfirm.c openfirm.h

Create a mechanism for looking up a device_t associated with an ofw/fdt
xref handle, and for registering that association.  Also use the same data
for faster translations between node and xref handles.

Now when fdt properties contain &othernode references, a driver can find
the device instance that corresponds to &othernode, and thus can use
interfaces provided by that instance.

Reviewed by:        nwhitehorn

FreeBSD — head/include stdlib.h, head/lib/libc/stdlib Symbol.map

Add bsearch_b to the libc map and the stdlib header.

bsearch_b is the Apple blocks enabled version of bsearch(3).
This was added to libc in Revision 264042 but the commit
missed the declaration required to make use of it.

While here move some other block-related functions to the
BSD_VISIBLE block as these are non-standard.

Phabric:        D638
Reviewed by:        theraven, wollman

FreeBSD — head/share/mk bsd.sys.mk, head/usr.sbin/auditdistd Makefile

Add -Wthread-safety to WARNS=6.

While there, add a NO_WTHREAD_SAFETY flag that can be used to disable
this specific warning flag. Disable it for auditdistd. We can easily
patch up auditdistd to have the right annotations to build, but as
auditdistd is intended to be portable across other operating systems,
it's not worth the effort.

Approved by:        brueffer@

FreeBSD — head/lib/libcuse cuse_lib.c

Add lock annotations to libcuse.

- Add annotations to the lock/unlock function to indicate that the
  function is allowed to lock and unlock the underlying pthread mutex.

- Add __guarded_by() annotations to the global variables.

Approved by:        hselasky@
Delta File
+7 -5 head/lib/libcuse/cuse_lib.c
+7 -5 1 file

FreeBSD — projects/nfsv4.1-server sys

Delete the rest of the project, since the code is now in head.
Delta File
+0 -0 projects/nfsv4.1-server/sys/
+0 -0 1 file

FreeBSD — head/sys/arm/broadcom/bcm2835 bcm2835_sdhci.c, head/sys/arm/freescale/imx imx_sdhci.c

sdhci.h has grown a dependency on sysctl.h, include the latter where needed.

FreeBSD — head/lib/msun/src e_lgamma_r.c e_lgammaf_r.c

According to the ISO C standard, lgamma(-integer) returns
inf and raises the divided-by-zero exception.  Compilers
constant fold one/zero to inf but do not raise the exception.
Introduce a volatile vzero to prevent the constant folding.

Move the declaration of zero into the main declaration block.

While here, fix a nearby disordering of 'lx,ix'

Discussed with:        bde

FreeBSD — projects/nfsv4.1-server/sys/fs/nfs nfs_commonsubs.c nfsproto.h, projects/nfsv4.1-server/sys/fs/nfsclient nfs_clrpcops.c nfs_clstate.c

Start clearing out project, since code is in head.

FreeBSD — head/sys/arm/arm nexus.c, head/sys/arm/at91 at91_pinctrl.c

Rename OF_xref_phandle() to OF_node_from_xref() and add a new function
that provides the inverse translation, OF_xref_from_node().

Discussed with:        nwhitehorn

FreeBSD — head/sbin/hastd synch.h primary.c

Add lock annotations to the threading API used by hastd.

Approved by:        pjd@
Delta File
+12 -11 head/sbin/hastd/synch.h
+1 -2 head/sbin/hastd/primary.c
+13 -13 2 files

FreeBSD — head/include pthread.h, head/lib/libstdthreads threads.h

Add lock annotations to the header files of our threading libraries.

This change extends all of the functions present in the <pthread.h> and
<threads.h> headers to have lock annotations. This will allow Clang to
warn about the following:

- Locking a function twice,
- Unlocking a function without a mutex being locked,
- Forgetting to unlock a mutex before returning,
- Destroying or reinitializing a mutex that is currenty locked,
- Using an unlocked mutex in combination with a condition variable.

Enabling these annotations already allowed me to catch a bug in one of
our userspace tools (r270749).

FreeBSD — head/sys/sys cdefs.h

Enable lock annotations on HEAD when using Clang.

MFC after:        never
Delta File
+4 -3 head/sys/sys/cdefs.h
+4 -3 1 file

FreeBSD — head/sys/sys cdefs.h

Add lock annotations to <sys/cdefs.h>.

Clang has support for annotating mutexes and code that uses mutexes to
validate certain aspects of thread safety:

- Whether acquiring/releasing locks is done properly (e.g., whether you
  unlock a mutex before leaving a function).
- Whether a lock is held while reading/writing data from/to memory.

Analysis is performed at the function level. Functions can be annotated
to indicate they:

- (try to) pick up a lock,
- release a lock,
- can only be called when (not) holding a lock,
- assert that a lock is held.

Variables and structure members can be annotated to indicate that they
are guarded by a certain lock. In C++, these annotations can refer
to both global variables, but also other class/structure members. In C,
it is only possible to refer to global variables.

This change adds wrappers for the annotations used by Clang to
<sys/cdefs.h>. They currently have no effect, but this is on purpose.
This change will be merged back to FreeBSD 9 and 10, which means we can

    [5 lines not shown]
Delta File
+56 -0 head/sys/sys/cdefs.h
+56 -0 1 file

FreeBSD — projects/arm64/sys/arm64/arm64 swtch.S

Implement cpu_throw

FreeBSD — projects/arm64/lib/libc/arm64/gen _set_tp.c, projects/arm64/sys/arm64/arm64 swtch.S

Start to support tls using the tpidr_el0 register

FreeBSD — projects/arm64/sys/arm64/arm64 pmap.c

Remove ATTR_AF from tables, these bits should be zero on table entries.

FreeBSD — projects/arm64/sys/arm64/arm64 pmap.c

Uncomment more calls to pmap_invalidate_page

FreeBSD — projects/arm64/sys/arm64/arm64 pmap.c

Fix pmap_invalidate_page and pmap_invalidate_range, the addresses need
to be be shifted to get them in the correct location in the register.

FreeBSD — head/etc/rc.d syscons

Add vt(4) support to the console initialisation script, specifically:

- Identify the console driver used and print syscons or vt as appropriate.

- If vt is used and a keymap could not be loaded, then try to replace the
  keymap name configured in rc.conf based on a replacement list in this
  script. Warn about the fact, that a syscons keyname is configured and
  report the replacement used under vt.

- If no replacement keymap is found, no keymap is loaded and a warning
  is displayed, which points at the conversion script and allows the
  conversion of keymaps not part of the official distribution.

This patch has been sent to the -hackers list for review, but no comment
has been received, yet. It is tested to work under syscons and vt on my
system (on vt with either the syscons or vt keymap file name in rc.conf).

MFC after:        3 days
Delta File
+115 -4 head/etc/rc.d/syscons
+115 -4 1 file

FreeBSD — head/tools/tools/vt/keymaps convert-keymap.pl KBDFILES.map

Final patches to the tools used to convert syscons keymaps for use with

MFC after:        3 days

FreeBSD — head/sbin/conscontrol conscontrol.8, head/usr.sbin/vidcontrol vidcontrol.1

Add references to vt(4) to further man-pages.

MFC after:        3 days

FreeBSD — head/lib/msun/src e_lgammaf_r.c e_lgamma_r.c

Fix a tab that somehow became 8 spaces.

Remove parentheses in a return statement to be consistent with the
rest of the file.

Rename sin_pi() in the float version to sin_pif().

Remove large comment that precedes sin_pif().  The comment
duplicates a comment in e_lgamma_r.c where the algorithm
is documented.

Requested by:        bde

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

Fix typo (by -> be).

MFC after:        3 days
Delta File
+1 -1 head/usr.sbin/smbmsg/smbmsg.8
+1 -1 1 file

FreeBSD — head/sys/arm/include asm.h

Do not generate unwind info in asm functions if _STANDALONE is defined.
The .fnend op causes the assembler to emit RELOC references to unwind
support functions that don't exist in libstand.
Delta File
+1 -1 head/sys/arm/include/asm.h
+1 -1 1 file

FreeBSD — head/share/man/man4 ip.4, head/sys/netinet raw_ip.c

Make SOCK_RAW sockets to be truly raw, not modifying received and sent
packets at all. Swapping byte order on SOCK_RAW was actually a bug, an
artifact from the BSD network stack, that used to convert a packet to
native byte order once it is received by kernel.

Other operating systems didn't follow this, and later other BSD
descendants fixed this, leaving us alone with the bug. Now it is
clear that we should fix the bug.

In collaboration with:        Olivier Cochard-Labbé <olivier cochard.me>
See also:                https://wiki.freebsd.org/SOCK_RAW
Sponsored by:                Nginx, Inc.

FreeBSD — head/sys/netpfil/pf pf.c

Explicitly free packet on PF_DROP, otherwise a "quick" rule with
"route-to" may still forward it.

PR:                177808
Submitted by:        Kajetan Staszkiewicz <kajetan.staszkiewicz innogames.de>
Sponsored by:        InnoGames GmbH
Delta File
+8 -0 head/sys/netpfil/pf/pf.c
+8 -0 1 file

FreeBSD — head/sys/netinet6 in6_src.c, head/usr.bin/netstat inet6.c

Add the reverse part to rule #9. Also change its description in the
netstat(8) output.

MFC after:        1 week

FreeBSD — stable/8/sys/netinet6 nd6_nbr.c

MFC r257985:
  Fix panic with RADIX_MPATH, when RTFREE_LOCKED() called for already
  unlocked route. Use in6_rtalloc() instead of in6_rtalloc1. This helps
  simplify the code and remove several now unused variables.

  PR:                156283
Delta File
+12 -25 stable/8/sys/netinet6/nd6_nbr.c
+12 -25 1 file

FreeBSD — stable/10/sys/netpfil/pf pf.h pf.c

Fix ABI broken in r270576. This is direct commit to stable/10.

Reported by:        kib

FreeBSD — stable/9/sys/netinet6 nd6_nbr.c

MFC r257985:
  Fix panic with RADIX_MPATH, when RTFREE_LOCKED() called for already
  unlocked route. Use in6_rtalloc() instead of in6_rtalloc1. This helps
  simplify the code and remove several now unused variables.

  PR:                156283
Delta File
+12 -25 stable/9/sys/netinet6/nd6_nbr.c
+12 -25 1 file