]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoAdding myself as a new ports committer
pgollucci [Wed, 23 Jul 2008 01:37:04 +0000 (01:37 +0000)]
Adding myself as a new ports committer

Reviewed by:    gabor (mentor)
Approved by: araujo (mentor)

15 years agoRetroactively add my entry and link to garga. Forgot to do this when I
wxs [Wed, 23 Jul 2008 01:19:56 +0000 (01:19 +0000)]
Retroactively add my entry and link to garga.  Forgot to do this when I
got my commit bit.

15 years agoSync with NetBSD's license changes.
delphij [Wed, 23 Jul 2008 00:03:36 +0000 (00:03 +0000)]
Sync with NetBSD's license changes.

15 years agoMove the NFS/RPC code away from lbolt.
ed [Tue, 22 Jul 2008 21:27:22 +0000 (21:27 +0000)]
Move the NFS/RPC code away from lbolt.

The kernel has a special wchan called `lbolt', which is triggered each
second. It doesn't seem to be used a lot and it seems pretty redundant,
because we can specify a timeout value to the *sleep() routines. In an
attempt to eventually remove lbolt, make the NFS/RPC code use a timeout
of `hz' when trying to reconnect.

Only the TTY code (not MPSAFE TTY) and the VFS syncer seem to use lbolt
now.

Reviewed by: attilio, jhb
Approved by: philip (mentor), alfred, dfr

15 years agoTrivial commit to attempt to diagnose a svn problem. Add
peter [Tue, 22 Jul 2008 18:05:50 +0000 (18:05 +0000)]
Trivial commit to attempt to diagnose a svn problem.  Add
comment that Tivo disks are APM, but do not have a DDR record.

15 years agoIf an AUE_SYSCTL_NONADMIN audit event is selected, generate a record
rwatson [Tue, 22 Jul 2008 17:54:32 +0000 (17:54 +0000)]
If an AUE_SYSCTL_NONADMIN audit event is selected, generate a record
with equivilent content to AUE_SYSCTL.

Obtained from: Apple Inc.
MFC after: 3 days

15 years agoFurther minor style fixes to audit.
rwatson [Tue, 22 Jul 2008 17:49:30 +0000 (17:49 +0000)]
Further minor style fixes to audit.

Obtained from: Apple Inc.
MFC after: 3 days

15 years agoFixes based on bde's feedback.
ache [Tue, 22 Jul 2008 17:10:18 +0000 (17:10 +0000)]
Fixes based on bde's feedback.
1) Unindent and sort variables.
2) Indent struct members.
3) Remove _packed, use guaranteed >128 bytes size and only first 128
bytes from the structure.
4) Reword comment.

Obtained from:  bde

15 years agoRemove unneeded \ at the end of a macro.
rwatson [Tue, 22 Jul 2008 17:08:27 +0000 (17:08 +0000)]
Remove unneeded \ at the end of a macro.

Obtained from: Apple Inc.
MFC after: 3 days

15 years agoFurther minor white space tweaks.
rwatson [Tue, 22 Jul 2008 17:06:49 +0000 (17:06 +0000)]
Further minor white space tweaks.

Obtained from: Apple Inc.
MFC after: 3 days

15 years agoGenerally avoid <space><tab> as a white space anomoly.
rwatson [Tue, 22 Jul 2008 16:44:48 +0000 (16:44 +0000)]
Generally avoid <space><tab> as a white space anomoly.

Obtained from: Apple Inc.
MFC after: 3 days

15 years agoUse #define<tab> rather than #define<space>.
rwatson [Tue, 22 Jul 2008 16:21:59 +0000 (16:21 +0000)]
Use #define<tab> rather than #define<space>.

Obtained from: Apple Inc.
MFC after: 3 days

15 years ago1) Initialize arc4_i and arc4_j to 0 after key mixing as recommended in
ache [Tue, 22 Jul 2008 16:16:51 +0000 (16:16 +0000)]
1) Initialize arc4_i and arc4_j to 0 after key mixing as recommended in
draft-kaukonen-cipher-arcfour-03.txt (3.1.5)

2) Drop first 768 bytes as standard RC4-drop(768)

15 years agoComment fix.
rwatson [Tue, 22 Jul 2008 16:02:21 +0000 (16:02 +0000)]
Comment fix.

Obtained from: Apple Inc.
MFC after: 3 days

15 years agoAdded me as a commiter
vanhu [Tue, 22 Jul 2008 16:01:57 +0000 (16:01 +0000)]
Added me as a commiter

Approved by: gnn (mentor)

15 years agoComment typo fix.
rwatson [Tue, 22 Jul 2008 15:54:10 +0000 (15:54 +0000)]
Comment typo fix.

Obtained from: Apple Inc.
MFC after: 3 days

15 years agoMinor white space synchronization to Apple version of security audit.
rwatson [Tue, 22 Jul 2008 15:49:19 +0000 (15:49 +0000)]
Minor white space synchronization to Apple version of security audit.

Obtained from: Apple Inc.
MFC after: 3 days

15 years agoIn preparation to sync Apple and FreeBSD versions of security audit,
rwatson [Tue, 22 Jul 2008 15:29:48 +0000 (15:29 +0000)]
In preparation to sync Apple and FreeBSD versions of security audit,
pick up the Apple Computer -> Apple change in their copyright and
license templates.

Obtained from: Apple Inc.
MFC after: 3 days

15 years agoChange /dev/urandom to /dev/random since urandom marked as
ache [Tue, 22 Jul 2008 15:25:35 +0000 (15:25 +0000)]
Change /dev/urandom to /dev/random since urandom marked as
XXX Deprecated
alias in /sys/dev/random/randomdev.c

15 years agoUse unsigned int when iterating over groupsets in audit_arg_groupset().
rwatson [Tue, 22 Jul 2008 15:17:21 +0000 (15:17 +0000)]
Use unsigned int when iterating over groupsets in audit_arg_groupset().

Obtained from: Apple Inc.
MFC after: 3 days

15 years agoUse arc4random_uniform(3) since modulo size is not power of 2
ache [Tue, 22 Jul 2008 15:08:50 +0000 (15:08 +0000)]
Use arc4random_uniform(3) since modulo size is not power of 2

15 years agoo Alan Shepard was first American in the space; fix attribution.
maxim [Tue, 22 Jul 2008 14:21:56 +0000 (14:21 +0000)]
o Alan Shepard was first American in the space; fix attribution.
o Correct Alan's surname.

PR: bin/125812
Submitted by: Derek Taylor [1], gavin [2]
MFC after: 1 week

15 years ago- Whitespace fixes.
stas [Tue, 22 Jul 2008 14:04:06 +0000 (14:04 +0000)]
- Whitespace fixes.

Approved by: gonzo
MFC after: 1 week

15 years agoo Fix style(9) bugs and similar nits.
marius [Tue, 22 Jul 2008 13:51:21 +0000 (13:51 +0000)]
o Fix style(9) bugs and similar nits.
o Merge ncr53c9x.c from NetBSD:
  1.115: fix variable shadowing
  1.118: __inline -> inline
  1.121: fix empty if

15 years agoBump __FreeBSD_version for arc4random_buf() and arc4random_uniform()
ache [Tue, 22 Jul 2008 13:38:17 +0000 (13:38 +0000)]
Bump __FreeBSD_version for arc4random_buf() and arc4random_uniform()
added.

15 years agoIn arc4random_uniform() detect simple "power of two" case and
ache [Tue, 22 Jul 2008 12:43:09 +0000 (12:43 +0000)]
In arc4random_uniform() detect simple "power of two" case and
return just (arc4random() % upper_bound)

15 years agoAdd arc4random_uniform()
ache [Tue, 22 Jul 2008 11:40:42 +0000 (11:40 +0000)]
Add arc4random_uniform()

Obtained from:  OpenBSD

15 years agoAdd arc4random_uniform() function (to avoid "modulo bias")
ache [Tue, 22 Jul 2008 11:33:49 +0000 (11:33 +0000)]
Add arc4random_uniform() function (to avoid "modulo bias")

Obtained from:  OpenBSD

15 years agoIncrease initially dropped bytes from 512 to 768 (768 is also
ache [Tue, 22 Jul 2008 10:31:29 +0000 (10:31 +0000)]
Increase initially dropped bytes from 512 to 768 (768 is also
suggested in the Ilya Mironov's article). 768 taken from another
research where it treats as default for RC4-drop(768):
http://www.users.zetnet.co.uk/hopwood/crypto/scan/cs.html#RC4-drop

Minor style tweak.

15 years agoFor sun4v ensure there is an opt_global.h with SUN4V defined included,
marius [Tue, 22 Jul 2008 09:56:45 +0000 (09:56 +0000)]
For sun4v ensure there is an opt_global.h with SUN4V defined included,
even for the stand-alone build.

15 years agoDisable SSP for the kernel on arm as well (see rev 180605).
cognet [Tue, 22 Jul 2008 09:38:12 +0000 (09:38 +0000)]
Disable SSP for the kernel on arm as well (see rev 180605).
I overlooked this because a SSP kernel booted for me.

Apologises to: ticso

15 years agoAdd a sentence of credits to the KSE removal note.
bmah [Tue, 22 Jul 2008 05:02:46 +0000 (05:02 +0000)]
Add a sentence of credits to the KSE removal note.

Requested by: brooks

15 years agoTrying to fix compilation bustage:
avatar [Tue, 22 Jul 2008 04:23:57 +0000 (04:23 +0000)]
Trying to fix compilation bustage:
- removing 'const' qualifier from an input parameter to conform to the type
  required by rw_assert();
- using in_addr->s_addr to retrive 32 bits address value.

Observed by: tinderbox

15 years ago- Disallow XFS mounting in write mode. The write support never worked really
attilio [Mon, 21 Jul 2008 23:01:09 +0000 (23:01 +0000)]
- Disallow XFS mounting in write mode.  The write support never worked really
  and there is no need to maintain it.
- Fix vn_get() in order to let it call vget(9) with a valid locking
  request.  vget(9) returns the vnode locked in order to prevent recycling,
  but in this case internal XFS locks alredy prevent it from happening, so
  it is safe to drop the vnode lock before to return by vn_get().
- Add a VNASSERT() in vget(9) in order to catch malformed locking requests.

Discussed with: kan, kib
Tested by: Lothar Braun <lothar at lobraun dot de>

15 years agoChange the module example to kldload since this is the resume side.
thompsa [Mon, 21 Jul 2008 22:55:40 +0000 (22:55 +0000)]
Change the module example to kldload since this is the resume side.

15 years agoRemove sioX as an alias for uartX. It is believed to be
marcel [Mon, 21 Jul 2008 22:38:00 +0000 (22:38 +0000)]
Remove sioX as an alias for uartX. It is believed to be
more confusing than helpful.

Suggested by: jhb

15 years agomake new accessor functions consistent with existing style
kmacy [Mon, 21 Jul 2008 22:11:39 +0000 (22:11 +0000)]
make new accessor functions consistent with existing style

15 years agoAdd feature_present(3) to the FBSD 1.1 symbol map.
jhb [Mon, 21 Jul 2008 22:07:59 +0000 (22:07 +0000)]
Add feature_present(3) to the FBSD 1.1 symbol map.

15 years ago1) Use __packed attr on rdat structure to make it exact 128 bytes.
ache [Mon, 21 Jul 2008 21:57:30 +0000 (21:57 +0000)]
1) Use __packed attr on rdat structure to make it exact 128 bytes.
2) Use gettimeofday() and getpid() only if reading from /dev/urandom
fails or impossible.
3) Discard N bytes on very first initialization only (i.e. don't
discard on re-stir).
4) Reduce N from 1024 to 512 as really suggested in the
"(Not So) Random Shuffles of RC4" paper:
http://research.microsoft.com/users/mironov/papers/rc4full.pdf

15 years agoremove call to unsafe tcp_twstart function
kmacy [Mon, 21 Jul 2008 21:23:43 +0000 (21:23 +0000)]
remove call to unsafe tcp_twstart function

15 years ago- Switch to INP_WLOCK macro from inp_wlock
kmacy [Mon, 21 Jul 2008 21:22:56 +0000 (21:22 +0000)]
- Switch to INP_WLOCK macro from inp_wlock
- calling sodisconnect after tcp_twstart is both gratuitous and unsafe - remove

Submitted by: rwatson

15 years agoIf run_interrupt_driven_config_hooks() waits 360 seconds and INVARIANTS
rwatson [Mon, 21 Jul 2008 20:50:49 +0000 (20:50 +0000)]
If run_interrupt_driven_config_hooks() waits 360 seconds and INVARIANTS
is compiled into the kernel, then panic.

MFC after: 3 days
Discussed with: scottl

15 years ago1) Update copyright notice.
ache [Mon, 21 Jul 2008 20:04:32 +0000 (20:04 +0000)]
1) Update copyright notice.
2) Eliminate "struct arc4_stream *as" arg since only single arg is
possible.
3) Set rs.j = rs.i after arc4random key schedule to be more like arc4
stream cipher.

Obtained from:  OpenBSD

15 years agoAllocate a single CCB at the start of the main loop of the RAID monitoring
jhb [Mon, 21 Jul 2008 18:43:02 +0000 (18:43 +0000)]
Allocate a single CCB at the start of the main loop of the RAID monitoring
kthread of the mpt(4) driver that hangs around for the entire lifetime of
the thread.  Previously the driver would allocate a new CCB using M_WAITOK
with a lock held each time it updated its state.  While here, use the
CAM API for allocating a CCB rather than raw malloc(9).

Reviewed by: scottl
MFC after: 1 week

15 years agoAdd arc4random_buf to FBSD_1.1 space
ache [Mon, 21 Jul 2008 18:03:31 +0000 (18:03 +0000)]
Add arc4random_buf to FBSD_1.1 space

15 years ago- Remove redundant inclusion of opt_global.h.
marius [Mon, 21 Jul 2008 17:15:51 +0000 (17:15 +0000)]
- Remove redundant inclusion of opt_global.h.
- Use __FBSDID in autoconf.c.

MFC after: 3 days

15 years agoImplement the following macros for completeness:
pjd [Mon, 21 Jul 2008 15:05:25 +0000 (15:05 +0000)]
Implement the following macros for completeness:

SYSCTL_QUAD()
SYSCTL_ADD_QUAD()
TUNABLE_QUAD()
TUNABLE_QUAD_FETCH()

Now we can use 64bit tunables on 32bit systems.

15 years agoWe want to use LBOLT instead of lbolt on FreeBSD.
pjd [Mon, 21 Jul 2008 14:35:48 +0000 (14:35 +0000)]
We want to use LBOLT instead of lbolt on FreeBSD.
I've this already fixed in p4, but the fix was never integrated into HEAD.

Reported by: ed

15 years agoAdd arc4random_buf.3 to MLINKS
ache [Mon, 21 Jul 2008 14:33:11 +0000 (14:33 +0000)]
Add arc4random_buf.3 to MLINKS

15 years agoAdd arc4random_buf.
ache [Mon, 21 Jul 2008 14:03:04 +0000 (14:03 +0000)]
Add arc4random_buf.
Style: remove arg names from arc4random_addrandom.

15 years agoImplement arc4random_buf() function
ache [Mon, 21 Jul 2008 13:52:06 +0000 (13:52 +0000)]
Implement arc4random_buf() function

Obtained from:  OpenBSD

15 years agoDecrease arc4_count only when needed and with proper bytes amount.
ache [Mon, 21 Jul 2008 12:44:47 +0000 (12:44 +0000)]
Decrease arc4_count only when needed and with proper bytes amount.

Obtained from:  OpenBSD

15 years ago1) Set stired flag after forced initialization.
ache [Mon, 21 Jul 2008 10:31:28 +0000 (10:31 +0000)]
1) Set stired flag after forced initialization.
2) Increase arc4_count to the limit OpenBSD use.

Submitted by:   Thorsten Glaser <tg@mirbsd.de> (1)
Obtained from:  OpenBSD (2)

15 years agoo Document "show conifhk", wording from r180610 commit log.
maxim [Mon, 21 Jul 2008 10:03:02 +0000 (10:03 +0000)]
o Document "show conifhk", wording from r180610 commit log.

Reviewed by: rwatson

15 years agoWe want to check new options given, not the current ones.
pjd [Mon, 21 Jul 2008 09:45:44 +0000 (09:45 +0000)]
We want to check new options given, not the current ones.
This fixes 'zpool import -o <mntopt> <name>' not working properly.

15 years agoremove unneeded declarations
kmacy [Mon, 21 Jul 2008 02:34:52 +0000 (02:34 +0000)]
remove unneeded declarations

15 years agoremove local version of tcp_offload_* functions
kmacy [Mon, 21 Jul 2008 02:29:40 +0000 (02:29 +0000)]
remove local version of tcp_offload_* functions

15 years agoupdate syncache function names
kmacy [Mon, 21 Jul 2008 02:26:49 +0000 (02:26 +0000)]
update syncache function names

15 years agoAdd versions of tcp_twstart, tcp_close, and tcp_drop that hide the acquisition the...
kmacy [Mon, 21 Jul 2008 02:23:02 +0000 (02:23 +0000)]
Add versions of tcp_twstart, tcp_close, and tcp_drop that hide the acquisition the tcbinfo lock.

MFC after: 1 week

15 years agoremove cxgb local definition of locked syncache_expand
kmacy [Mon, 21 Jul 2008 02:17:27 +0000 (02:17 +0000)]
remove cxgb local definition of locked syncache_expand

15 years agoAfter the commit of SVN rev 180236, wilko@ noticed that the approach
edwin [Mon, 21 Jul 2008 02:13:14 +0000 (02:13 +0000)]
After the commit of SVN rev 180236, wilko@ noticed that the approach
doesn't work on the Alpha platform: machine/elf.h doesn't include
sys/elf32.h there.

PR: related to bin/124906
Approved by: bde@
MFC after: 1 week

15 years agoadd interface for external consumers to syncache_expand - rename syncache_add in...
kmacy [Mon, 21 Jul 2008 02:11:06 +0000 (02:11 +0000)]
add interface for external consumers to syncache_expand - rename syncache_add in a manner consistent with other bits intended for offload

15 years agoremove cxgb local definitions of socket accessor functions
kmacy [Mon, 21 Jul 2008 01:23:19 +0000 (01:23 +0000)]
remove cxgb local definitions of socket accessor functions

15 years agoAdd accessor functions for socket fields.
kmacy [Mon, 21 Jul 2008 00:49:34 +0000 (00:49 +0000)]
Add accessor functions for socket fields.

MFC after: 1 week

15 years agoadd inpcb accessor functions for fields needed by TOE devices
kmacy [Mon, 21 Jul 2008 00:08:34 +0000 (00:08 +0000)]
add inpcb accessor functions for fields needed by TOE devices

15 years agoAdd support for actually sending WCCP return packets via GRE.
julian [Sun, 20 Jul 2008 21:45:15 +0000 (21:45 +0000)]
Add support for actually sending WCCP return packets via GRE.
This MAY be combined by a clever person with the 'key' code recently
added, however a cursary glance suggest that it would be safer to just keep
the patches as it is unlikely that the two modes would be used together
and the separate patch has been extensively tested.

Obtained from:  here and there
MFC after: 1 week

15 years agoClear passphrase buffer after use.
pjd [Sun, 20 Jul 2008 19:56:13 +0000 (19:56 +0000)]
Clear passphrase buffer after use.

Submitted by: Fabian Keil <fk@fabiankeil.de> (a bit different version)

15 years agotcsh: fix abort in cleanup_until(), caused by internal xgetpass()
keramida [Sun, 20 Jul 2008 18:05:18 +0000 (18:05 +0000)]
tcsh: fix abort in cleanup_until(), caused by internal xgetpass()

The xgetpass() function pushes a cleanup entry for &osa, but then
attempts to flush the stack until an entry matching &sa.  The two
object pointers do not match, so the stack is popped too much,
and then cleanup_until calls abort() when it unexpectedly hits
the bottom of the cleanup stack.

Reported by: Paul B. Mahol, onemda at gmail.com,
Pietro Cerutti, gahr at gahr.ch
PR: bin/124191
Reviewed by: mp, kris
MFC after: 2 days

15 years agoDocument a few sysctls. While here, remove dead code
trhodes [Sun, 20 Jul 2008 17:51:58 +0000 (17:51 +0000)]
Document a few sysctls.  While here, remove dead code
related to ip4_esp_randpad.

Reviewed by: gnn, bz (older version)
Approved by: gnn
Tested with: make universe

15 years agoWhile spin-waiting for the mailbox semaphore to update, do flushing reads of
scottl [Sun, 20 Jul 2008 16:50:14 +0000 (16:50 +0000)]
While spin-waiting for the mailbox semaphore to update, do flushing reads of
PCI bus so that we don't have to wait more than needed.

15 years agoDocument a few sysctls.
trhodes [Sun, 20 Jul 2008 15:29:58 +0000 (15:29 +0000)]
Document a few sysctls.

Reviewed by: rwatson

15 years agoDocument a few sysctls.
trhodes [Sun, 20 Jul 2008 15:25:20 +0000 (15:25 +0000)]
Document a few sysctls.

Reviewed by: rwatson

15 years agoia is a pointer thus use NULL rather then 0 for initialization and
bz [Sun, 20 Jul 2008 12:31:36 +0000 (12:31 +0000)]
ia is a pointer thus use NULL rather then 0 for initialization and
in comparisons to make this more obvious.

MFC after: 5 days

15 years agoProperly underline force_depend's parameter.
lme [Sun, 20 Jul 2008 10:06:14 +0000 (10:06 +0000)]
Properly underline force_depend's parameter.

Reviewed by: brueffer

15 years agoo Add cddl, nlm and xdr to CSCOPEDIRS.
maxim [Sun, 20 Jul 2008 09:16:00 +0000 (09:16 +0000)]
o Add cddl, nlm and xdr to CSCOPEDIRS.
o Add pc98 and sun4v to CSCOPE_ARCHDIR.

PR: misc/125792
Submitted by: KOIE Hidetaka
MFC after: 1 week

15 years agoConvert lock that protects sessions list from a mutex to a rwlock.
pjd [Sun, 20 Jul 2008 07:34:00 +0000 (07:34 +0000)]
Convert lock that protects sessions list from a mutex to a rwlock.
Now we can use read lock in fast path (padlock_process()).

15 years agoEliminate dead code. (The commit message for revision 1.287 explains why
alc [Sun, 20 Jul 2008 04:13:51 +0000 (04:13 +0000)]
Eliminate dead code.  (The commit message for revision 1.287 explains why
this code is dead.)

15 years agoremove unused toedev functions and add comments for rest
kmacy [Sun, 20 Jul 2008 02:02:50 +0000 (02:02 +0000)]
remove unused toedev functions and add comments for rest

15 years agoIncrease the ceiling on the size of the buffer map.
alc [Sat, 19 Jul 2008 23:42:38 +0000 (23:42 +0000)]
Increase the ceiling on the size of the buffer map.

15 years agoCorrect the description of v_cache_count. Eliminate an unused function.
alc [Sat, 19 Jul 2008 22:35:13 +0000 (22:35 +0000)]
Correct the description of v_cache_count.  Eliminate an unused function.

15 years agoSay hi to svn, by simplifing ffs_vget() function a bit - there is no need for
pjd [Sat, 19 Jul 2008 22:29:44 +0000 (22:29 +0000)]
Say hi to svn, by simplifing ffs_vget() function a bit - there is no need for
a variable that is used only once.

15 years agoWith uart(4) default, change sio# to uart# so that
marcel [Sat, 19 Jul 2008 20:12:33 +0000 (20:12 +0000)]
With uart(4) default, change sio# to uart# so that
out-of-the-box FreeBSD is consistent.

15 years agoWith uart(4) default, change /dev/cuad# to /dev/cuau# and
marcel [Sat, 19 Jul 2008 20:12:02 +0000 (20:12 +0000)]
With uart(4) default, change /dev/cuad# to /dev/cuau# and
sio# to uart# so that out-of-the-box FreeBSD is consistent.

15 years agoWith uart(4) default, change /dev/cuad# to /dev/cuau# and
marcel [Sat, 19 Jul 2008 20:11:33 +0000 (20:11 +0000)]
With uart(4) default, change /dev/cuad# to /dev/cuau# and
sio# to uart# so that out-of-the-box FreeBSD is consistent.

15 years agoWith uart(4) default, change /dev/cuad# to /dev/cuau# so that
marcel [Sat, 19 Jul 2008 20:00:18 +0000 (20:00 +0000)]
With uart(4) default, change /dev/cuad# to /dev/cuau# so that
out-of-the-box FreeBSD is consistent.

15 years agoRather than simply waiting silently and indefinitely for all
rwatson [Sat, 19 Jul 2008 19:08:35 +0000 (19:08 +0000)]
Rather than simply waiting silently and indefinitely for all
interrupt-driven configuration handlers to complete, print out a
diagnostic message every 60 second indicating which handlers are
still running.  Do this at most 5 times per run so as to avoid
scrolling out any useful information from the kernel message
buffer.

The interval of 60 seconds was selected based on a best guess as
to the nature of "long enough" and may want to be tuned higher
or lower depending on real-world tolerances.

MFC after: 3 days
Discussed with: scottl

15 years agoWith uart(4) default, change /dev/cuad# to /dev/cuau# so that
marcel [Sat, 19 Jul 2008 19:08:22 +0000 (19:08 +0000)]
With uart(4) default, change /dev/cuad# to /dev/cuau# so that
out-of-the-box FreeBSD is consistent.  Add uart[0-7] as a
fingerfriendly shortcut alongside sio[0-7] and com[1-8].

15 years agoRemove sade(8) on the following platforms:
marcel [Sat, 19 Jul 2008 18:21:52 +0000 (18:21 +0000)]
Remove sade(8) on the following platforms:
o  arm, mips & powerpc: libdisk is non-functional.
o  ia64: libdisk is insufficient.

15 years agowitness_addgraph() is required even if DDB isn't compiled into the kernel,
rwatson [Sat, 19 Jul 2008 17:47:23 +0000 (17:47 +0000)]
witness_addgraph() is required even if DDB isn't compiled into the kernel,
so exclude it from #ifdef DDB.

Submitted by: attilio

15 years ago- When renaming a drive, also set the drive name in the gvinum header.
lulf [Sat, 19 Jul 2008 13:53:11 +0000 (13:53 +0000)]
- When renaming a drive, also set the drive name in the gvinum header.

PR: kern/125632
Approved by: pjd (mentor)
MFC after: 3 days

15 years agoAdd DDB "show conifhk" command, which lists hooks currently waiting
rwatson [Sat, 19 Jul 2008 12:12:54 +0000 (12:12 +0000)]
Add DDB "show conifhk" command, which lists hooks currently waiting
for completion in run_interrupt_driven_config_hooks().  This is
helpful when trying to figure out which device drivers have gone
into la-la land during boot-time autoconfiguration.

MFC after: 3 days

15 years agoFix a race which could result in some timeout buckets being skipped.
jeff [Sat, 19 Jul 2008 05:18:29 +0000 (05:18 +0000)]
Fix a race which could result in some timeout buckets being skipped.
 - When a tick occurs on a cpu, iterate from cs_softticks until ticks.
   The per-cpu tick processing happens asynchronously with the actual
   adjustment of the 'ticks' variable.  Sometimes the results may
   be visible before the local call and sometimes after.  Previously this
   could cause a one tick window where we didn't evaluate the bucket.
 - In softclock fetch curticks before incrementing cc_softticks so we
   don't skip insertions which were made for the current time.

Sponsored by: Nokia

15 years ago - Check whether we've recorded this tick in ts_ticks on another cpu in
jeff [Sat, 19 Jul 2008 05:13:47 +0000 (05:13 +0000)]
 - Check whether we've recorded this tick in ts_ticks on another cpu in
   sched_tick() to prevent multiple increments for one tick.  This pushes
   the value out of range and breaks priority calculation.

Reviewed by: kib
Found by: pho/nokia
Sponsored by: Nokia
MFC after: 3 days

15 years agoDisable SSP on arm for the time being.
cognet [Sat, 19 Jul 2008 00:19:16 +0000 (00:19 +0000)]
Disable SSP on arm for the time being.
The segfaults when using SSP seem to be a gcc bug, a patch is available
in the gcc bugzilla, and will be imported once it's committed
into the official gcc tree.

15 years agoStaticify symbols that will not be used in other
delphij [Sat, 19 Jul 2008 00:13:26 +0000 (00:13 +0000)]
Staticify symbols that will not be used in other
places.

15 years agoUse %zd for size_t. With this gcore(1) is WARNS=6 clean.
delphij [Fri, 18 Jul 2008 23:37:05 +0000 (23:37 +0000)]
Use %zd for size_t.  With this gcore(1) is WARNS=6 clean.

15 years agoIndent the else path, reduce diff against OpenBSD.
delphij [Fri, 18 Jul 2008 23:35:31 +0000 (23:35 +0000)]
Indent the else path, reduce diff against OpenBSD.

15 years agoCorrect an error in pmap_change_attr()'s initial loop that verifies that the
alc [Fri, 18 Jul 2008 22:05:51 +0000 (22:05 +0000)]
Correct an error in pmap_change_attr()'s initial loop that verifies that the
given range of addresses are mapped.  Previously, the loop was testing the
same address every time.

Submitted by: Magesh Dhasayyan

15 years agoSimplify pmap_extract()'s control flow, making it more like the related
alc [Fri, 18 Jul 2008 20:07:50 +0000 (20:07 +0000)]
Simplify pmap_extract()'s control flow, making it more like the related
functions pmap_extract_and_hold() and pmap_kextract().

15 years agoEnhance arena_chunk_map_t to directly support run coalescing, and use
jasone [Fri, 18 Jul 2008 19:35:44 +0000 (19:35 +0000)]
Enhance arena_chunk_map_t to directly support run coalescing, and use
the chunk map instead of red-black trees where possible.  Remove the
red-black trees and node objects that are obsoleted by this change.  The
net result is a ~1-2% memory savings, and a substantial allocation speed
improvement.