]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoFix yacc tests so that they run cleanly with prove.
jmmv [Sun, 9 Mar 2014 22:05:23 +0000 (22:05 +0000)]
Fix yacc tests so that they run cleanly with prove.

First, change the driver to run the installed yacc instead of the one from
/usr/obj (which might not be there), just as we (intend to) do with all
other tests.

Second, regenerate the expected output files from scratch.  Based on visual
inspection, the differences seem OK.  But this highlights that the tests in
here are too fragile and, possibly, useless: we should be testing the
behavior of the generated program, not the literal output.  Something to be
addressed later.

10 years agoFix sed tests so that they run cleanly with prove.
jmmv [Sun, 9 Mar 2014 21:56:29 +0000 (21:56 +0000)]
Fix sed tests so that they run cleanly with prove.

10 years agoRemove all traces of support for ARM chips prior to the arm9 series. We
ian [Sun, 9 Mar 2014 21:12:31 +0000 (21:12 +0000)]
Remove all traces of support for ARM chips prior to the arm9 series.  We
never actually ran on these chips (other than using SA1 support in an
emulator to do the early porting to FreeBSD long long ago).  The clutter
and complexity of some of this code keeps getting in the way of other
maintenance, so it's time to go.

10 years agoChange the terminal type/class for enabled serial lines to 3wire. This
marcel [Sun, 9 Mar 2014 21:06:22 +0000 (21:06 +0000)]
Change the terminal type/class for enabled serial lines to 3wire. This
allows us to change the uart(4) driver to not hardcode specific line
settings for the serial console.

A terminal type of 3wire makes sure the console still works when no DCD
signal is present, which preserves behviour. When it is known that the
terminal server (or DCE in general) provides DCD, a terminal type/class
of std can be used. This has the effect of being logged out when one
disconnects from the console -- improving security overall.

Likewise, when uart(4) does not fixate the baudrate, one can change
the terminal type/class to set a specific baudrate. An operator can use
this to change the console speed mid-flight, without needing a reboot.
Of course it helps in this respect if and when the firmware can be
configured from the OS.

The above mentioned capabilities depend on uart(4) being changed, which
is to happen next.

10 years agoAdd 3wire and std as terminal types/classes. These are similar to
marcel [Sun, 9 Mar 2014 20:51:14 +0000 (20:51 +0000)]
Add 3wire and std as terminal types/classes. These are similar to
the existing terminal types/classes that have the baudrate suffix,
but differ in that no baudrate is set/defined.

The purpose of these new types/classes is to allow them to be used
for the serial console. Currently the uart(4) driver fixates the
baudrate and the CLOCAL flag, which means that it doesn't matter
whether you give it std.<baud> or 3wire.<baud> as the terminal type
to getty and what exactly <baud> is set to. It's being overridden
by uart(4). The goal is to change uart(4) not to override these
settings.

10 years agoFix printf tests so that they run cleanly with prove.
jmmv [Sun, 9 Mar 2014 19:37:01 +0000 (19:37 +0000)]
Fix printf tests so that they run cleanly with prove.

10 years agoFix m4 tests so that they run cleanly with prove.
jmmv [Sun, 9 Mar 2014 19:25:53 +0000 (19:25 +0000)]
Fix m4 tests so that they run cleanly with prove.

10 years agoThe arm exception entry points currently vector through a function pointer
ian [Sun, 9 Mar 2014 18:08:27 +0000 (18:08 +0000)]
The arm exception entry points currently vector through a function pointer
to the actual handler routine.  All the pointers are static-intialized to
the only handlers available, and yet various platform-specific inits still
set those pointers (to the values they're already initialized to).  Begin
to drain the swamp by removing all the redundant external declarations and
runtime setting of the pointers that's scattered around various places.

10 years agoMake undefined exception entry MPSAFE.
ian [Sun, 9 Mar 2014 15:36:56 +0000 (15:36 +0000)]
Make undefined exception entry MPSAFE.

The old code used static storage to preserve a couple registers while
setting up the trapframe for the main handler.  Doing so was the last
leftover crumbs from the days when a low-level debugger was hooked into
the exception entry code.

Now the exception entry sequence is essentially the same as for the
other exceptions, which still involves needlessly indirecting through
a function pointer which points to the same code on every platform.
Removing that indirection will be handled as a separate cleanup.

This work is based on an analysis by Juergen Weiss.

10 years agoWhen a thread begins life it doesn't own the VFP hardware state on any cpu.
ian [Sun, 9 Mar 2014 14:54:05 +0000 (14:54 +0000)]
When a thread begins life it doesn't own the VFP hardware state on any cpu.

10 years agoAlways call vfp_discard() on thread death, not just when the VFP is
ian [Sun, 9 Mar 2014 14:24:05 +0000 (14:24 +0000)]
Always call vfp_discard() on thread death, not just when the VFP is
enabled.  In vfp_discard(), if the state in the VFP hardware belongs to
the thread which is dying, NULL out pcpu fpcurthread to indicate the
state currently in the hardware belongs to nobody.

Submitted by: Juergen Weiss
Pointy hat to: me

10 years agokldconfig: Remove some code for compatibility with FreeBSD 4.x.
jilles [Sun, 9 Mar 2014 13:19:37 +0000 (13:19 +0000)]
kldconfig: Remove some code for compatibility with FreeBSD 4.x.

Verified using md5(1).

10 years agovarious formating fixes, use NUL for NUL bytes..
jmg [Sun, 9 Mar 2014 07:45:59 +0000 (07:45 +0000)]
various formating fixes, use NUL for NUL bytes..

drop out dated perf numbers (can't imagine people are still running
Pentium MMX 166's anymore)...

bump date...

drop max length of salt of 8 since _PASSWORD_LEN is now large, 128..
and state the max length of the salt depends upon the module,
sha-{256,512} have a max salt of 16..

recommend 8 characters of salt instead of just 2...

MFC after: 1 week

10 years agoRemove all dregs of a per-thread undefined-exception-mode stack. This is
ian [Sun, 9 Mar 2014 03:49:06 +0000 (03:49 +0000)]
Remove all dregs of a per-thread undefined-exception-mode stack.  This is
a leftover from the days when a low-level debugger had hooks in the
undefined exception vector and needed stack space to function.  These days
it effectively isn't used because we switch immediately to the svc32 mode
stack on exception entry.  For that, the single undef mode stack per core
that gets set up at init time works fine.

The stack wasn't necessary but it was harmful, because the space for it
was carved out of the normal per-thread svc32 stack, in effect cutting
that 8K stack in half.  If svc32 mode used more than 4k of stack space it
wandered down into the undef mode stack, and then an undef exception would
overwrite a couple words on the stack while switching to svc32 mode,
corrupting the scv32 stack.  Having another stack abut the bottom of the
svc32 stack also effectively mooted the guard page below the stack.

This work is based on analysis and patches submitted by Juergen Weiss.

10 years agoRework the VFP code that handles demand-based save and restore of state.
ian [Sun, 9 Mar 2014 03:00:03 +0000 (03:00 +0000)]
Rework the VFP code that handles demand-based save and restore of state.

The old code was full of complexity that would only matter if the
kernel itself used the VFP hardware.  Now that's reduced to either killing
the userland process or panicking the kernel on an illegal VFP instruction.

This removes most of the complexity from the assembler code, reducing it
to just calling the save code if the outgoing thread used the VFP.

The routine that stores the VFP state now takes a flag that indicates
whether the hardware should be disabled after saving state.  Right now it
always is, but this makes the code ready to be used by get/set_mcontext()
(doing so will be addressed in a future commit).

Remove the arm-specific pc_vfpcthread from struct pcpu and use the MI
field pc_fpcurthread instead.

Reviewed by: cognet

10 years agoRemove bogus define that causes compile errors. Most of the defines
imp [Sun, 9 Mar 2014 02:28:30 +0000 (02:28 +0000)]
Remove bogus define that causes compile errors.  Most of the defines
for SAM9X are going away soonish anyway (once FDT works), but until
then...

10 years agoFix panic "_mtx_lock_sleep: recursed on non-recursive mutex ttymtx" caused when
neel [Sun, 9 Mar 2014 02:07:15 +0000 (02:07 +0000)]
Fix panic "_mtx_lock_sleep: recursed on non-recursive mutex ttymtx" caused when
acquiring the tty lock in bvm_tty_close(). Instead just assert that the tty
lock is held before calling callout_reset().

10 years agoUpdate board definition for WANDBOARD-QUAD to match crochet.
gjb [Sun, 9 Mar 2014 02:00:48 +0000 (02:00 +0000)]
Update board definition for WANDBOARD-QUAD to match crochet.

Sponsored by: The FreeBSD Foundation

10 years agoFollow r262916 with one more config file that references a renamed common.c
ian [Sun, 9 Mar 2014 01:52:21 +0000 (01:52 +0000)]
Follow r262916 with one more config file that references a renamed common.c

10 years agoinstall: Use posix_spawnp() for starting strip and improve error messages.
jilles [Sat, 8 Mar 2014 23:05:28 +0000 (23:05 +0000)]
install: Use posix_spawnp() for starting strip and improve error messages.

10 years agoBack out r262921. I don't know what I was thinking, but it is lame.
imp [Sat, 8 Mar 2014 19:59:52 +0000 (19:59 +0000)]
Back out r262921. I don't know what I was thinking, but it is lame.

10 years agosh: Successfully do nothing when killing a terminated job.
jilles [Sat, 8 Mar 2014 19:44:34 +0000 (19:44 +0000)]
sh: Successfully do nothing when killing a terminated job.

If a job has terminated but is still known, silently do nothing when using
the kill builtin with the job specifier. Formerly, the shell called kill()
with the process group ID that might have been reused.

10 years agoCall ieee80211_dump_pkt() based on IFF_DUMPPKTS().
rpaulo [Sat, 8 Mar 2014 19:35:31 +0000 (19:35 +0000)]
Call ieee80211_dump_pkt() based on IFF_DUMPPKTS().

MFC after: 3 days

10 years agoFix another bug in multicast filtering. i.MX uses 6 bits from MSB in
hrs [Sat, 8 Mar 2014 14:58:39 +0000 (14:58 +0000)]
Fix another bug in multicast filtering.  i.MX uses 6 bits from MSB in
LE CRC32 for the hash value, not the lowest 6 bits in BE CRC32.

Tested by: Takanori Sawada
PR: arm/187179

10 years agoMove AIC related stuff to own file.
imp [Sat, 8 Mar 2014 06:06:50 +0000 (06:06 +0000)]
Move AIC related stuff to own file.

10 years agoProperly round on unmapping.
imp [Sat, 8 Mar 2014 06:06:42 +0000 (06:06 +0000)]
Properly round on unmapping.

10 years agoMake at91_soc_id() public.
imp [Sat, 8 Mar 2014 05:03:56 +0000 (05:03 +0000)]
Make at91_soc_id() public.

10 years agoSet the baud rate if it isn't 0 (meaning it has been specified) not
imp [Sat, 8 Mar 2014 03:39:15 +0000 (03:39 +0000)]
Set the baud rate if it isn't 0 (meaning it has been specified) not
only if it is 0 (meaning that it hasn't been specified and is likely
to turn off the UART's transmitter).

10 years agoMake clock optional on uart nodes. It is a FreeBSD-specific extention,
imp [Sat, 8 Mar 2014 03:39:09 +0000 (03:39 +0000)]
Make clock optional on uart nodes. It is a FreeBSD-specific extention,
and won't be present in vendor supplied dts files.

10 years agoAdd commented out dts for sam9260ek as well as early printf support.
imp [Sat, 8 Mar 2014 03:22:25 +0000 (03:22 +0000)]
Add commented out dts for sam9260ek as well as early printf support.

10 years agoInitial cut for DTS on the hl201 board.
imp [Sat, 8 Mar 2014 03:22:20 +0000 (03:22 +0000)]
Initial cut for DTS on the hl201 board.

10 years ago - Make runq_steal_from more aggressive. Previously it would examine only
jeff [Sat, 8 Mar 2014 00:35:06 +0000 (00:35 +0000)]
 - Make runq_steal_from more aggressive.  Previously it would examine only
   a single priority queue.  If that queue had a thread or threads which
   could not be migrated we would fail to steal load.  This could cause
   starvation in situations where cores are idle.

Submitted by: Doug Kilpatrick <dkilpatrick@isilon.com>
Tested by: pho
Reviewed by: mav
Sponsored by: EMC / Isilon Storage Division

10 years agoMove all the files named foo/common.c to foo/foo_common.c, as
imp [Sat, 8 Mar 2014 00:14:40 +0000 (00:14 +0000)]
Move all the files named foo/common.c to foo/foo_common.c, as
appropriate for each of the 'foo' in the tree. This will allow us to
compile them together (although symbol conflicts prevent us from doing
that today, this just fixes the file name collision).

10 years agoPartial revert of change 262914. I screwed up subversion syntax with
asomers [Fri, 7 Mar 2014 23:40:36 +0000 (23:40 +0000)]
Partial revert of change 262914.  I screwed up subversion syntax with
perforce syntax and committed some unrelated files.  Only devd files
should've been committed.

Reported by:  imp
Pointy hat to: asomers
MFC after: 3 weeks
X-MFC-With: r262914

10 years agosbin/devd/devd.8
asomers [Fri, 7 Mar 2014 23:30:48 +0000 (23:30 +0000)]
sbin/devd/devd.8
sbin/devd/devd.cc
Add a -q flag to devd that will suppress syslog logging at
LOG_NOTICE or below.

Requested by: ian@ and imp@
MFC after: 3 weeks
Sponsored by: Spectra Logic Corporation

10 years agocddl/contrib/opensolaris/lib/libuutil/common/uu_avl.c
asomers [Fri, 7 Mar 2014 23:01:35 +0000 (23:01 +0000)]
cddl/contrib/opensolaris/lib/libuutil/common/uu_avl.c
Fix a memory leak in uu_avl_pool_create: pthread_mutex_init without
a corresponding pthread_mutex_destroy.  It shows up, among other
places, when doing "zfs list".

MFC after: 3 weeks
Sponsored by: Spectra Logic Corporation

10 years agoTake a group name on the command-line if available.
dteske [Fri, 7 Mar 2014 22:29:00 +0000 (22:29 +0000)]
Take a group name on the command-line if available.

10 years agoFix copy/paste error in a comment.
dteske [Fri, 7 Mar 2014 22:24:53 +0000 (22:24 +0000)]
Fix copy/paste error in a comment.

10 years agoChange dipatch words from group* to *Group to backward compatible with
dteske [Fri, 7 Mar 2014 22:17:35 +0000 (22:17 +0000)]
Change dipatch words from group* to *Group to backward compatible with
ye-olden sysinstall(8).

10 years agoStrip arm/conf/DEFAULTS down to just items that are mandatory for running
ian [Fri, 7 Mar 2014 21:36:49 +0000 (21:36 +0000)]
Strip arm/conf/DEFAULTS down to just items that are mandatory for running
the architecture.  Move the other contents into each of the individual
config files.

Requested by: imp

10 years agoRewrite groupmgmt -- hooking it into the scripting system with dispatch
dteske [Fri, 7 Mar 2014 20:44:19 +0000 (20:44 +0000)]
Rewrite groupmgmt -- hooking it into the scripting system with dispatch
commands groupAdd, groupDelete, and groupEdit. Getting rid of the awkward-
to-use `groupinput' bolt-on which Ron and I talked about rewriting.

10 years agoFix the arm sys_sigreturn(): its argument is a struct ucontext, not a
ian [Fri, 7 Mar 2014 20:32:45 +0000 (20:32 +0000)]
Fix the arm sys_sigreturn(): its argument is a struct ucontext, not a
struct sigframe containing the struct ucontext.

The signal trampoline return code on the other hand DOES have just a
struct sigframe on the stack to work with, so have it get a pointer to
the ucontext out of there to pass along to sys_sigreturn.

In other words, make everything work right whether sys_sigreturn is
invoked from the trampoline or from userland code calling sigreturn(2).

Submitted by: Takashi Komatsu <komatsu.taka@jp.panasonic.com>
Reviewed by: cognet

10 years agoComment -- to go with NL global introduced (but not mentioned) by r262901
dteske [Fri, 7 Mar 2014 20:32:26 +0000 (20:32 +0000)]
Comment -- to go with NL global introduced (but not mentioned) by r262901

10 years agos/__number/__num/ for code clarify but more to prevent localization of
dteske [Fri, 7 Mar 2014 20:29:19 +0000 (20:29 +0000)]
s/__number/__num/ for code clarify but more to prevent localization of
__number if passed as the var_to_set argument.

10 years agoCentralize function name. Update a comment while here.
dteske [Fri, 7 Mar 2014 20:24:59 +0000 (20:24 +0000)]
Centralize function name. Update a comment while here.

10 years agoMake f_show_err non-fatal.
dteske [Fri, 7 Mar 2014 20:20:27 +0000 (20:20 +0000)]
Make f_show_err non-fatal.

10 years agoFix incorrect return status if var_to_set and var_to_get are the same.
dteske [Fri, 7 Mar 2014 20:18:39 +0000 (20:18 +0000)]
Fix incorrect return status if var_to_set and var_to_get are the same.

10 years agoFix a typo in a comment.
dteske [Fri, 7 Mar 2014 20:15:52 +0000 (20:15 +0000)]
Fix a typo in a comment.

10 years agoAdd missing local declaration.
dteske [Fri, 7 Mar 2014 20:15:08 +0000 (20:15 +0000)]
Add missing local declaration.

10 years agoAllow dispatched reswords to carry arguments. Fix a comment while here.
dteske [Fri, 7 Mar 2014 20:12:59 +0000 (20:12 +0000)]
Allow dispatched reswords to carry arguments. Fix a comment while here.

10 years agokern/Makefile
asomers [Fri, 7 Mar 2014 19:30:03 +0000 (19:30 +0000)]
kern/Makefile
Set WARNS=5 for all files in this directory

kern/unix_seqpacket_test.c
Fix compiler warnings.  Most were benign, but rcvbuf_oversized
wasn't working as intended because I forgot to set the buffer sizes.

MFC after: 2 weeks
Reported by: pho
Sponsored by: Spectra Logic Corporation

10 years agowlanstats: Add some logic to translate from a vap to its parent device.
eadler [Fri, 7 Mar 2014 17:47:53 +0000 (17:47 +0000)]
wlanstats: Add some logic to translate from a vap to its parent device.

This isn't entirely correct (as the device may not necc. be called wlan*) but
this will be further worked into a combined ath, iwn, wlan, etc. tool.

Discussed with: jhb, adrian

10 years ago- Export panel info to DTS
br [Fri, 7 Mar 2014 16:14:51 +0000 (16:14 +0000)]
- Export panel info to DTS
- Reset all the layers before setup first one
- Enable display

10 years agolibc man pages: Remove reference to non-existent FreeBSD Security
eadler [Fri, 7 Mar 2014 15:35:54 +0000 (15:35 +0000)]
libc man pages: Remove reference to non-existent FreeBSD Security
Architecture

MFC After: 3 days

10 years agoFix support for increased logical sector size (4K-native drives).
mav [Fri, 7 Mar 2014 09:45:40 +0000 (09:45 +0000)]
Fix support for increased logical sector size (4K-native drives).

- Logical sector size is measured in words, not bytes.
- If physical sector is not bigger then logical sector, it does not mean
it should be set equal to 512 bytes, but set to logical sector.

PR: misc/187269
Submitted by: Ravi Pokala <rpokala@panasas.com>
MFC after: 1 week

10 years agoAdd driver for Port control and interrupts (PORT).
br [Fri, 7 Mar 2014 07:06:36 +0000 (07:06 +0000)]
Add driver for Port control and interrupts (PORT).

PORT is responsible for external interrupts management,
so move IRQ lines from GPIO driver.

10 years agoOpen the uart emulation's backing tty in non-blocking mode.
grehan [Fri, 7 Mar 2014 06:23:37 +0000 (06:23 +0000)]
Open the uart emulation's backing tty in non-blocking mode.
This fixes the issue of bhyve appearing to halt when using
nmdm ports for the console, until a connection is made to
the other end.

bhyveload already does this.

Reported by: Many.
MFC after: 3 weeks.

10 years agowlanstats: add help
eadler [Fri, 7 Mar 2014 01:23:49 +0000 (01:23 +0000)]
wlanstats: add help

- add a help (-h) flag
- move usage into itsown function

10 years agoSlight if reordering to make error branch last.
imp [Fri, 7 Mar 2014 01:01:57 +0000 (01:01 +0000)]
Slight if reordering to make error branch last.

10 years agoAdd option TMPFS to arm/conf/DEFAULTS, remove it from the few configs
ian [Fri, 7 Mar 2014 00:25:23 +0000 (00:25 +0000)]
Add option TMPFS to arm/conf/DEFAULTS, remove it from the few configs
that have it individually.  Concensus on freebsd-arm@ is that it should
be included in all ARM kernels.

10 years agofts: Don't abort if an empty pathname is given.
jilles [Thu, 6 Mar 2014 22:47:11 +0000 (22:47 +0000)]
fts: Don't abort if an empty pathname is given.

Make fts_open(3) treat an empty pathname like any other pathname that cannot
be lstatted because of [ENOENT].

It is rather confusing if  rm -rf file1 "" file2  does not remove file1 and
file2.

PR: bin/187264
MFC after: 2 weeks

10 years agoWhen calculating the MPU freq, make sure not to overflow by using a uint64_t.
cognet [Thu, 6 Mar 2014 21:07:13 +0000 (21:07 +0000)]
When calculating the MPU freq, make sure not to overflow by using a uint64_t.

PR: arm/187223
Submitted by: Svatopluk Kraus <onwahe@gmail.com>

10 years agoext2fs: Fix a bug when sorting htree entries.
pfg [Thu, 6 Mar 2014 21:02:16 +0000 (21:02 +0000)]
ext2fs: Fix a bug when sorting htree entries.

This a typo introduced when bringing the original code from NetBSD.

Reported by: Mike Ma
MFC after: 3 days

10 years agoOnly use -lpthread for unix_seqpacket_test, not for all test programs.
asomers [Thu, 6 Mar 2014 20:39:56 +0000 (20:39 +0000)]
Only use -lpthread for unix_seqpacket_test, not for all test programs.

Reported by: Garrett Cooper
MFC after: 3 weeks
Sponsored by: Spectra Logic Corporation

10 years agoFix PR kern/185813 "SOCK_SEQPACKET AF_UNIX sockets with asymmetrical
asomers [Thu, 6 Mar 2014 20:24:15 +0000 (20:24 +0000)]
Fix PR kern/185813 "SOCK_SEQPACKET AF_UNIX sockets with asymmetrical
buffers drop packets".  It was caused by a check for the space available
in a sockbuf, but it was checking the wrong sockbuf.

sys/sys/sockbuf.h
sys/kern/uipc_sockbuf.c
    Add sbappendaddr_nospacecheck_locked(), which is just like
    sbappendaddr_locked but doesn't validate the receiving socket's
    space.  Factor out common code into sbappendaddr_locked_internal().
    We shouldn't simply make sbappendaddr_locked check the space and
    then call sbappendaddr_nospacecheck_locked, because that would cause
    the O(n) function m_length to be called twice.

sys/kern/uipc_usrreq.c
    Use sbappendaddr_nospacecheck_locked for SOCK_SEQPACKET sockets,
    because the receiving sockbuf's size limit is irrelevant.

tests/sys/kern/unix_seqpacket_test.c
    Now that 185813 is fixed, pipe_128k_8k fails intermittently due to
    185812.  Make it fail every time by adding a usleep after starting
    the writer thread and before starting the reader thread in
    test_pipe.  That gives the writer time to fill up its send buffer.
    Also, clear the expected failure message due to 185813.  It actually
    said "185812", but that was a typo.

PR: kern/185813
Reviewed by: silence from freebsd-net@ and rwatson@
MFC after: 3 weeks
Sponsored by: Spectra Logic Corporation

10 years agoPart 2 of bug 187310.. had to commit separately due to local confusion.
julian [Thu, 6 Mar 2014 19:58:03 +0000 (19:58 +0000)]
Part 2 of bug 187310.. had to commit separately due to local confusion.
Don't let pw crash when give certain input.

PR: 187310
Submitted by: Kim Shrier
MFC after: 1 week

10 years agoStop pw(8) from segfaulting when given certain input
julian [Thu, 6 Mar 2014 19:26:08 +0000 (19:26 +0000)]
Stop pw(8) from segfaulting when given certain input

PR:187310
Submitted by: Kim Shrier
Obtained from: bug
MFC after: 1 week

10 years agoAdd a hack-ish attempt to provide backwards-compatibility with
gjb [Thu, 6 Mar 2014 18:48:02 +0000 (18:48 +0000)]
Add a hack-ish attempt to provide backwards-compatibility with
release.conf SVNROOT entries that do not have a trailing '/'.

In order to provide a mechanism to use !svn, the trailing '/'
was added to SVNROOT so there were no assumptions being made
about '/' being in the URL between SVNROOT and SRCBRANCH.

Sponsored by: The FreeBSD Foundation

10 years agoDisable libwrap (TCP wrappers) support in rpcbind by default, introducing
mav [Thu, 6 Mar 2014 17:33:27 +0000 (17:33 +0000)]
Disable libwrap (TCP wrappers) support in rpcbind by default, introducing
new command line options -W, to enable it when needed.

On my tests this change by almost ten times improves rpcbind performance.

No objections: many, net@

10 years ago- Move carl to the alumni section
pgj [Thu, 6 Mar 2014 17:33:12 +0000 (17:33 +0000)]
- Move carl to the alumni section

10 years agoMinor fix to r262789.
mav [Thu, 6 Mar 2014 12:37:25 +0000 (12:37 +0000)]
Minor fix to r262789.

MFC after: 6 days

10 years agoMake reset handling in iSCSI target RFC-compliant. This fixes some rare
trasz [Thu, 6 Mar 2014 10:45:53 +0000 (10:45 +0000)]
Make reset handling in iSCSI target RFC-compliant.  This fixes some rare
hangs with Open-iSCSI (Linux).

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

10 years agoMigrate npestats to use bsdstat.
adrian [Thu, 6 Mar 2014 07:50:54 +0000 (07:50 +0000)]
Migrate npestats to use bsdstat.

10 years agoFix compiler warning. Thanks clang!
adrian [Thu, 6 Mar 2014 07:49:12 +0000 (07:49 +0000)]
Fix compiler warning. Thanks clang!

10 years agoMigrate mwlstats to use bsdstat.
adrian [Thu, 6 Mar 2014 07:48:43 +0000 (07:48 +0000)]
Migrate mwlstats to use bsdstat.

10 years agoMigrate athstats to use bsdstat.
adrian [Thu, 6 Mar 2014 07:47:19 +0000 (07:47 +0000)]
Migrate athstats to use bsdstat.

10 years agoFix a compiler warning.
adrian [Thu, 6 Mar 2014 07:46:32 +0000 (07:46 +0000)]
Fix a compiler warning.

Thanks Clang!

10 years agoMigrate athaggrstats to use bsdstat.
adrian [Thu, 6 Mar 2014 07:45:53 +0000 (07:45 +0000)]
Migrate athaggrstats to use bsdstat.

10 years agoLet __bt_put() accept the R_SETCURSOR flag, as stated in the dbopen(3) manpage.
jlh [Thu, 6 Mar 2014 07:44:45 +0000 (07:44 +0000)]
Let __bt_put() accept the R_SETCURSOR flag, as stated in the dbopen(3) manpage.

While here, update the comment above with all the accepted flags.

Reviewed by: silence on hackers@
MFC after: 2 weeks

10 years agoRemove these; they're no longer required.
adrian [Thu, 6 Mar 2014 07:44:08 +0000 (07:44 +0000)]
Remove these; they're no longer required.

10 years agoModify wlanstats to now use the copy of libbsdstat in /usr/lib/private.
adrian [Thu, 6 Mar 2014 07:43:42 +0000 (07:43 +0000)]
Modify wlanstats to now use the copy of libbsdstat in /usr/lib/private.

10 years agoFix a logic error when enabling MAC.
kevlo [Thu, 6 Mar 2014 06:39:55 +0000 (06:39 +0000)]
Fix a logic error when enabling MAC.

10 years agoAdd 'libstatfoo' from Sam Leffler.
adrian [Thu, 6 Mar 2014 04:06:36 +0000 (04:06 +0000)]
Add 'libstatfoo' from Sam Leffler.

10 years agoFix compilation for 32-bit machines.
glebius [Thu, 6 Mar 2014 02:00:01 +0000 (02:00 +0000)]
Fix compilation for 32-bit machines.

10 years agoUse SYSDIR to reference to the top of the sys hierarchy. Define SYSDIR
marcel [Thu, 6 Mar 2014 01:59:13 +0000 (01:59 +0000)]
Use SYSDIR to reference to the top of the sys hierarchy. Define SYSDIR
relative to .CURDIR if not already defined. This makes the makefiles
more readable but also more re-usable and adaptable.

Obtained from: Juniper Networks, Inc.

10 years agoAdd siphash.c. While here, sort.
marcel [Thu, 6 Mar 2014 00:37:16 +0000 (00:37 +0000)]
Add siphash.c. While here, sort.

10 years agoAdd a manual page for zopen(3) provided by our libz.so.
delphij [Thu, 6 Mar 2014 00:25:21 +0000 (00:25 +0000)]
Add a manual page for zopen(3) provided by our libz.so.

10 years ago - If we fail to do a non-blocking acquire of a buf lock while doing a
jeff [Thu, 6 Mar 2014 00:13:21 +0000 (00:13 +0000)]
 - If we fail to do a non-blocking acquire of a buf lock while doing a
   waiting sync pass we need to do a blocking acquire and restart.
   Another thread, typically the buf daemon, may have this buf locked and
   if we don't wait we can fail to sync the file.  This lead to a great
   variety of softdep panics because we rely on all dependencies being
   flushed before proceeding in several cases.

Reported by: pho
Discussed with: mckusick
Sponsored by: EMC / Isilon Storage Division
MFC after: 2 weeks

10 years ago - Gracefully handle truncation failures when trying to shrink directories.
jeff [Thu, 6 Mar 2014 00:10:07 +0000 (00:10 +0000)]
 - Gracefully handle truncation failures when trying to shrink directories.
   This could cause dirhash panics since the dirhash state would be
   successfully truncated while the directory was not.

Reported by: pho
Discussed with: mckusick
Sponsored by: EMC / Isilon Storage Division
MFC after: 2 weeks

10 years agomark that libctf depends upon libz so that if you dlopen libctf, you
jmg [Wed, 5 Mar 2014 23:37:25 +0000 (23:37 +0000)]
mark that libctf depends upon libz so that if you dlopen libctf, you
don't get:
Undefined symbol "zError"

10 years agoMerge ^/projects/release-embedded into ^/head.
gjb [Wed, 5 Mar 2014 23:17:53 +0000 (23:17 +0000)]
Merge ^/projects/release-embedded into ^/head.

After several months of testing and fixing (and breaking)
various parts of release/release.sh changes, it is now
possible to build FreeBSD/arm images as part of the release
process.

When EMBEDDEDBUILD is set in the release.conf file, release.sh
will create the build environment, then run a separate script
in release/${XDEV}/release.sh [1].  Currently, only arm is
supported.

The release/${XDEV}/release.sh configures the build environment
specific for the target image, such as installing gcc(1),
installing additional third-party software from the ports tree,
and fetching external sources.

Once the build environment is set up, release/${XDEV}/release.sh
runs Crochet, written by Tim Kientzle, which builds the userland
and kernel, and creates an image that can be written to an SD
card with dd(1).  Many thanks to Tim for his work on Crochet.

Sample configurations for FreeBSD/arm boards are in the
release/arm/ directory, and Crochet configuration files for each
board are located in release/tools/arm/.  Supported boards at this
time are: BEAGLEBONE, PANDABOARD, RPI-B, and WANDBOARD-QUAD.

Adding support for additional boards will continue in the
projects/release-embedded/ branch, and incrementally merged back
to head/.

Many thanks to the FreeBSD Foundation for the support and
sponsorship of this project.

[1] XDEV is used in order to keep the various configurations
    organized by architecture, but since TARGET and TARGET_ARCH
    are used to build the chroot, the values of those variables
    cannot be used.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

10 years agoPull in r203007 from upstream clang trunk:
dim [Wed, 5 Mar 2014 22:43:30 +0000 (22:43 +0000)]
Pull in r203007 from upstream clang trunk:

  Don't produce an alias between destructors with different calling conventions.

  Fixes pr19007.

(Please note that is an LLVM PR identifier, not a FreeBSD one.)

This should fix Firefox and/or libxul crashes (due to problems with
regparm/stdcall calling conventions) on i386.

Reported by: multiple users on freebsd-current
PR: bin/187103
MFC after: 1 week

10 years agoThe route code used to mtx_destroy() a locked mutex before rtentry free. Now,
glebius [Wed, 5 Mar 2014 21:16:46 +0000 (21:16 +0000)]
The route code used to mtx_destroy() a locked mutex before rtentry free. Now,
after r262763 it started to return locked mutexes to UMA. To fix that,
conditionally unlock the mutex in the destructor.

Tested by: "Sergey V. Dyatko" <sergey.dyatko@gmail.com>

10 years agoPull in r199848 from upstream libc++ trunk:
dim [Wed, 5 Mar 2014 20:01:04 +0000 (20:01 +0000)]
Pull in r199848 from upstream libc++ trunk:

  Const qualify __mem_fn call operator

  QOI improvement.

  Differential Revision: http://llvm-reviews.chandlerc.com/D2059

This should help with building recent versions of Mesa.  See also:
https://bugs.freedesktop.org/show_bug.cgi?id=75505

Reported by: dumbbell
MFC after: 3 days

10 years agoFix compilation for 32-bit machines.
glebius [Wed, 5 Mar 2014 19:26:22 +0000 (19:26 +0000)]
Fix compilation for 32-bit machines.

10 years ago- Temporary fix for race in RUN driver which can
hselasky [Wed, 5 Mar 2014 18:39:27 +0000 (18:39 +0000)]
- Temporary fix for race in RUN driver which can
cause freed memory to be accessed.
- Properly lock callout_reset()'s.

MFC after: 1 week

10 years agoRemove custom bus scanner code and fix use of CAM's default scanner.
mav [Wed, 5 Mar 2014 16:42:33 +0000 (16:42 +0000)]
Remove custom bus scanner code and fix use of CAM's default scanner.

This fixes kernel panic during boot, caused by incompatibility of recent
CAM locking changes and this bus scanner code.

Submitted by: Microsoft
MFC after: 1 week

10 years agoAdd efifb driver. Driver uses the data passed by UEFI compatible loader/BIOS and
ray [Wed, 5 Mar 2014 14:37:45 +0000 (14:37 +0000)]
Add efifb driver. Driver uses the data passed by UEFI compatible loader/BIOS and
enable to use framebuffer created by those loader.

10 years agoFix missing unlock in persistent reservations code, which resulted in panics
trasz [Wed, 5 Mar 2014 12:02:29 +0000 (12:02 +0000)]
Fix missing unlock in persistent reservations code, which resulted in panics
with Hyper-V Failover Cluster.

Reviewed by: ken@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

10 years agoPreserve naming consistency for test cases.
pho [Wed, 5 Mar 2014 08:33:58 +0000 (08:33 +0000)]
Preserve naming consistency for test cases.

Pointed out by:  jmmv
Sponsored by: EMC / Isilon storage division