dragonfly.git
13 years agomdoc.local: Indent with spaces like everywhere else.
Sascha Wildner [Sun, 25 Apr 2010 00:43:56 +0000 (02:43 +0200)]
mdoc.local: Indent with spaces like everywhere else.

13 years agoproplib - Verbatim import from NetBSD
Alex Hornung [Sun, 18 Apr 2010 17:02:41 +0000 (17:02 +0000)]
proplib - Verbatim import from NetBSD

13 years agolibkern - add strchr
Alex Hornung [Sat, 24 Apr 2010 07:03:01 +0000 (07:03 +0000)]
libkern - add strchr

13 years agoFix -pg compiled programs on i386
Aggelos Economopoulos [Tue, 1 Jun 2010 20:07:52 +0000 (23:07 +0300)]
Fix -pg compiled programs on i386

mcount() is supposed to preserve all registers. Since it
clobbered ecx, this resulted in argc/argv always being 0.
It probably only ever worked because of some artifact of
code generation by older GCCs.

Reported-by: Venkatesh Srinivas <me@endeavour.zapto.org>
Testing-by: swildner@
13 years agoacpica - Use tsleep() instead of DELAY() to avoid long delays at boot time.
Antonio Huete Jimenez [Thu, 27 May 2010 00:13:34 +0000 (02:13 +0200)]
acpica - Use tsleep() instead of DELAY() to avoid long delays at boot time.

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1755>
Obtained-from: FreeBSD

13 years agoAdd a token(9) manual page explaining LWKT soft tokens.
Sascha Wildner [Sun, 30 May 2010 23:45:32 +0000 (01:45 +0200)]
Add a token(9) manual page explaining LWKT soft tokens.

Submitted-by: Venkatesh Srinivas <me@acm.jhu.edu>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1775>

13 years agolib/csu: Fix 'make clean'.
Sascha Wildner [Sat, 29 May 2010 00:01:53 +0000 (02:01 +0200)]
lib/csu: Fix 'make clean'.

13 years agoAdjust some comments/manpages regarding where profiling libs are.
Sascha Wildner [Fri, 28 May 2010 23:25:59 +0000 (01:25 +0200)]
Adjust some comments/manpages regarding where profiling libs are.

13 years agogcc(1): Fix compilation with "c++ -pg" (for CCVER=gcc41).
Sascha Wildner [Fri, 28 May 2010 22:38:34 +0000 (00:38 +0200)]
gcc(1): Fix compilation with "c++ -pg" (for CCVER=gcc41).

We don't install profiling libraries as /usr/lib/lib${LIB}_p.a anymore
since it was switched to /usr/lib/profile/lib${LIB}.a almost 5 years
ago (in c4c23d9061b6eb2a3456620a48b84583b00fe0ce).

Reported-by: Damian Weber <dweber@htw-saarland.de>
13 years agogcc(1): Fix typos in gcc41's spec so that profiling libraries are found.
Sascha Wildner [Fri, 28 May 2010 22:32:59 +0000 (00:32 +0200)]
gcc(1): Fix typos in gcc41's spec so that profiling libraries are found.

13 years agoevtranalyze(1): Staticise some functions for now to unbreak buildworld.
Sascha Wildner [Fri, 28 May 2010 20:31:33 +0000 (22:31 +0200)]
evtranalyze(1): Staticise some functions for now to unbreak buildworld.

13 years agoevtranalyze: support for completion event statistics
Aggelos Economopoulos [Fri, 28 May 2010 11:47:53 +0000 (14:47 +0300)]
evtranalyze: support for completion event statistics

- Refactor existing code to support different statistics for
  different value types
- Implement a simple vector type
- Bring in a hash table implementation

13 years agolibevtr: correct copy length
Aggelos Economopoulos [Fri, 28 May 2010 11:44:59 +0000 (14:44 +0300)]
libevtr: correct copy length

13 years agolibevtr: add support for data objects
Aggelos Economopoulos [Thu, 27 May 2010 22:06:15 +0000 (01:06 +0300)]
libevtr: add support for data objects

Currently using the Haskell data constructor syntax.

13 years agoftpd - Fix security issue in libopie. FreeBSD-SA-10:05.opie
Matthew Dillon [Thu, 27 May 2010 19:51:32 +0000 (12:51 -0700)]
ftpd - Fix security issue in libopie. FreeBSD-SA-10:05.opie

* Fix a buffer overflow issue in libopie.

Submitted-by: Xin LI <delphij@delphij.net>
Credits: Maksymilian Arciemowicz and Adam Zabrocki

13 years agokernel - Fix up hysteresis for the zeroidle code
Matthew Dillon [Wed, 26 May 2010 21:20:11 +0000 (14:20 -0700)]
kernel - Fix up hysteresis for the zeroidle code

* Fix a minor bug in the zeroidle hysteresis code and document the
  states.

With-input-from: Venkatesh Srinivas <me@acm.jhu.edu>

13 years agommap: Remove an additional reference to the disablexworkaround variable
Matthew Dillon [Wed, 26 May 2010 21:19:15 +0000 (14:19 -0700)]
mmap: Remove an additional reference to the disablexworkaround variable

* Fix kernel build, remove a second disablexworkaround check that was
  missed.

13 years agommap: get rid of old hack to support the XIG X server
Aggelos Economopoulos [Wed, 26 May 2010 13:26:44 +0000 (16:26 +0300)]
mmap: get rid of old hack to support the XIG X server

Submitted-by: Venkatesh Srinivas <me@acm.jhu.edu>
13 years agoStart using our hash tables for thread switch/lifetime events
Aggelos Economopoulos [Wed, 26 May 2010 13:13:08 +0000 (16:13 +0300)]
Start using our hash tables for thread switch/lifetime events

13 years agoktrdump: constify pointer
Aggelos Economopoulos [Wed, 26 May 2010 13:10:49 +0000 (16:10 +0300)]
ktrdump: constify pointer

13 years agolibevtr: alternative hash syntax and more fixes
Aggelos Economopoulos [Tue, 25 May 2010 22:17:36 +0000 (01:17 +0300)]
libevtr: alternative hash syntax and more fixes

- Rewrite hsh.foo to hsh["foo"]
- Better error handling and more controlled error reporting
  (don't just write stuff to stderr)
- Accept integer constants in hexadecimal (0x) form as well

13 years agoktrdump: dump some device info
Aggelos Economopoulos [Mon, 24 May 2010 22:19:11 +0000 (01:19 +0300)]
ktrdump: dump some device info

Walk the kernel devices and populate the 'devnames' hash.

13 years agoevtranalyze: don't try to open stdin by default
Aggelos Economopoulos [Mon, 24 May 2010 22:15:50 +0000 (01:15 +0300)]
evtranalyze: don't try to open stdin by default

We don't handle that correctly yet, so error out instead. A
lot of people were getting a crash on their first run b/c
they didn't specify an input file.

13 years agolibevtr: add support for string literals
Aggelos Economopoulos [Sun, 23 May 2010 12:44:36 +0000 (15:44 +0300)]
libevtr: add support for string literals

13 years agoevtranalyze: correctly print out name of variable
Aggelos Economopoulos [Sun, 23 May 2010 12:35:23 +0000 (15:35 +0300)]
evtranalyze: correctly print out name of variable

13 years agolibevtr: oops, stay withing the bounds of the hash table
Aggelos Economopoulos [Sun, 23 May 2010 12:33:45 +0000 (15:33 +0300)]
libevtr: oops, stay withing the bounds of the hash table

13 years agoath - use ifnet serialization calls instead of directly calling lwkt
Matthew Dillon [Wed, 26 May 2010 00:18:04 +0000 (17:18 -0700)]
ath - use ifnet serialization calls instead of directly calling lwkt

* Use ifnet_*serialize_all() instead of lwkt_serialize_*().

13 years agokernel - Fix panic in setrlimit() when changing the stack limit
Matthew Dillon [Tue, 25 May 2010 22:13:29 +0000 (15:13 -0700)]
kernel - Fix panic in setrlimit() when changing the stack limit

* setrlimit() has to make a VM call with the MP lock held when changing
  the stack limit, and was not properly obtaining the MP lock.

13 years agotmpfs - Fix chown for tmpfs
Matthew Dillon [Tue, 25 May 2010 22:09:50 +0000 (15:09 -0700)]
tmpfs - Fix chown for tmpfs

* Replace the manual permission check bits with a call to
  vop_helper_chown().

* Fixes an issue where suid programs were unable to call chown() on
  files in tmpfs.

Reported-by: Francois Tigeot <ftigeot@wolfpond.org>
13 years agoSync with FreeBSD (somehow, DragonFly 2.6 had slipped).
Sascha Wildner [Mon, 24 May 2010 07:43:57 +0000 (09:43 +0200)]
Sync with FreeBSD (somehow, DragonFly 2.6 had slipped).

13 years agousbd(8): Raise WARNS to 6 and fix warnings.
Sascha Wildner [Sun, 23 May 2010 10:59:47 +0000 (12:59 +0200)]
usbd(8): Raise WARNS to 6 and fix warnings.

13 years agolm(4): support W83627EHF-A (an early revision of the chip in ASUS MBs)
Constantine A. Murenin [Sun, 23 May 2010 01:39:15 +0000 (21:39 -0400)]
lm(4): support W83627EHF-A (an early revision of the chip in ASUS MBs)

13 years agosa(8): Raise WARNS to 6 and fix warnings.
Sascha Wildner [Sun, 23 May 2010 01:01:36 +0000 (03:01 +0200)]
sa(8): Raise WARNS to 6 and fix warnings.

13 years agoncplist(1): Raise WARNS to 3 and fix warnings.
Sascha Wildner [Sat, 22 May 2010 23:55:46 +0000 (01:55 +0200)]
ncplist(1): Raise WARNS to 3 and fix warnings.

13 years agosys/netproto/ncp/ncp_lib.h: Constify bn_name in struct ncp_bitname.
Sascha Wildner [Sat, 22 May 2010 23:53:30 +0000 (01:53 +0200)]
sys/netproto/ncp/ncp_lib.h: Constify bn_name in struct ncp_bitname.

13 years agoAHCI - Fix use of error ccb in error path
Matthew Dillon [Sat, 22 May 2010 16:40:14 +0000 (09:40 -0700)]
AHCI - Fix use of error ccb in error path

* A conditional was improperly reusing the 'ccb' variable.  Use a different
  variable name so the original ccb (the error ccb) is not replaced.

13 years agomalloc.3: Sort of sync with NetBSD (for the examples, mainly).
Sascha Wildner [Fri, 21 May 2010 20:09:48 +0000 (22:09 +0200)]
malloc.3: Sort of sync with NetBSD (for the examples, mainly).

13 years agoacpi(4): Remove an unused variable.
Sascha Wildner [Fri, 21 May 2010 19:32:34 +0000 (21:32 +0200)]
acpi(4): Remove an unused variable.

13 years agobsd-family-tree: Sync with FreeBSD (for OpenBSD 4.7).
Sascha Wildner [Thu, 20 May 2010 12:00:46 +0000 (14:00 +0200)]
bsd-family-tree: Sync with FreeBSD (for OpenBSD 4.7).

13 years agouuid_{name,addr}_lookup(3): Fix free() order.
Sascha Wildner [Wed, 19 May 2010 18:45:01 +0000 (20:45 +0200)]
uuid_{name,addr}_lookup(3): Fix free() order.

13 years agoscsi(4): Add a missing 'break'.
Sascha Wildner [Tue, 18 May 2010 19:56:31 +0000 (21:56 +0200)]
scsi(4): Add a missing 'break'.

13 years agosys/netinet/in_pcb.c: Fix a broken range check.
Sascha Wildner [Tue, 18 May 2010 10:15:40 +0000 (12:15 +0200)]
sys/netinet/in_pcb.c: Fix a broken range check.

Back in 2004, in commit 80dff869, RANGECHK() was changed from a macro
to an inline function. This broke the test since the passed 'var' could
not be changed by the inline unless a pointer was used.

Instead of changing to using pointers now (or adding a return value to
RANGECHK()), revert to using a macro again.

13 years agoGo over sys/platform and remove dead initialization and unneeded variables.
Sascha Wildner [Sun, 16 May 2010 19:06:21 +0000 (21:06 +0200)]
Go over sys/platform and remove dead initialization and unneeded variables.

No functional changes.

13 years agovkernel64: Do some more replacing amd64 -> x86_64.
Sascha Wildner [Sun, 16 May 2010 18:41:39 +0000 (20:41 +0200)]
vkernel64: Do some more replacing amd64 -> x86_64.

This reduces differences with the non-vkernel 64 bit code.

13 years agoAdd a missing break in the 64 bit vkernel, too.
Sascha Wildner [Sun, 16 May 2010 18:03:10 +0000 (20:03 +0200)]
Add a missing break in the 64 bit vkernel, too.

13 years agovkernel: To restart the scan, npv needs to be reset, not pv.
Sascha Wildner [Sun, 16 May 2010 17:41:01 +0000 (19:41 +0200)]
vkernel: To restart the scan, npv needs to be reset, not pv.

13 years agokernel - zero pages during idle
Matthew Dillon [Sun, 16 May 2010 17:46:35 +0000 (10:46 -0700)]
kernel - zero pages during idle

Bring in base work by Venkatesh Srinivas:

* vm/vm_zeropage.c and bzeront() code.

Plus make the following adjustments:

* Move the bzeront code from platform/ to cpu/ and add a x86_64 version
  of bzeront().

* Expose the page zeroing rate via sysctl and adjust the default upwards.

* Expose the movnti feature via sysctl (defaults to off).

* Change poll interval from 1 second to 1/10 second.

* Correct a bug where the MP lock was not being initially released.  The
  thread is created with the MP lock held.  This was causing the hysteresis
  check to fail.

* Correct a bug where vm_page_zero_count was being double-incremented
  due to changes in how the zerod page is freed.

* Clean up the code syntax a bit.

Submitted-by: Venkatesh Srinivas <me@endeavour.zapto.org>
13 years agovkernel: Fix a wrong check of netif_set_tapflags()'s return value.
Sascha Wildner [Sun, 16 May 2010 17:26:16 +0000 (19:26 +0200)]
vkernel: Fix a wrong check of netif_set_tapflags()'s return value.

13 years agokx86_64_set_watch(): Add a missing 'break'.
Sascha Wildner [Sun, 16 May 2010 15:39:12 +0000 (17:39 +0200)]
kx86_64_set_watch(): Add a missing 'break'.

13 years agocxm(4) doesn't depend on smbus(4).
Sascha Wildner [Sun, 16 May 2010 01:46:31 +0000 (03:46 +0200)]
cxm(4) doesn't depend on smbus(4).

Reported-by: Thomas Klausner <wiz@netbsd.org>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1766>

13 years agoFix compiling iic(4) on x86_64 by adding <machine/iic.h>.
Sascha Wildner [Sun, 16 May 2010 01:45:42 +0000 (03:45 +0200)]
Fix compiling iic(4) on x86_64 by adding <machine/iic.h>.

Reported-by: Thomas Klausner <wiz@netbsd.org>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1766>

13 years agokernel - Update random number generator
Matthew Dillon [Sat, 15 May 2010 16:54:37 +0000 (09:54 -0700)]
kernel - Update random number generator

* Update the random number generator with recommended changes to IBAA.
  This addresses a short-cycle problem and prevents bad initial states.

* Passes diehard (as did the original).

* Note that DragonFly continuously injects entropy and was likely not
  subject to these issues, and with these changes is even less so.

Submitted-by: Robin Carey <robin.carey1@googlemail.com>
13 years agoFix the x86_64 kernel build with 'options BUS_DEBUG'.
Sascha Wildner [Fri, 14 May 2010 23:07:03 +0000 (01:07 +0200)]
Fix the x86_64 kernel build with 'options BUS_DEBUG'.

Reported-by: Thomas Klausner <wiz@netbsd.org>
13 years agoRemove unused vm.stats.misc.cnt_prezero sysctl.
Venkatesh Srinivas [Sun, 9 May 2010 20:32:07 +0000 (13:32 -0700)]
Remove unused vm.stats.misc.cnt_prezero sysctl.

13 years agocxm(4): Right now, cxm(4) isn't built as a module.
Sascha Wildner [Fri, 14 May 2010 00:58:10 +0000 (02:58 +0200)]
cxm(4): Right now, cxm(4) isn't built as a module.

Reported-by: Thomas Klausner <wiz@netbsd.org>
13 years agopatch: Free temporary buffer after stripping.
Venkatesh Srinivas [Fri, 30 Apr 2010 07:56:48 +0000 (00:56 -0700)]
patch: Free temporary buffer after stripping.

Imported from OpenBSD 2010/01.

13 years agoumass(4): Add IDs for the Sony Cybershot, model DSC-W80.
Sascha Wildner [Thu, 13 May 2010 20:16:56 +0000 (22:16 +0200)]
umass(4): Add IDs for the Sony Cybershot, model DSC-W80.

Submitted-by: Francis Gudin <fgudin@nerim.net>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1765>

13 years agoSilence some warnings in the kernel.
Sascha Wildner [Thu, 13 May 2010 19:52:57 +0000 (21:52 +0200)]
Silence some warnings in the kernel.

13 years agorelease.7: The USB image is now built by default.
Sascha Wildner [Wed, 12 May 2010 19:39:06 +0000 (21:39 +0200)]
release.7: The USB image is now built by default.

13 years agoAdd a manual page for the ioprio_get() and ioprio_set() system calls.
Sascha Wildner [Wed, 12 May 2010 19:34:25 +0000 (21:34 +0200)]
Add a manual page for the ioprio_get() and ioprio_set() system calls.

13 years agohammer utility - Update manual page
Matthew Dillon [Wed, 12 May 2010 17:48:32 +0000 (10:48 -0700)]
hammer utility - Update manual page

* Update the manual page with information on how to properly restore from
  a snapshot.

13 years agorelease build - 'img' is now the default.
Matthew Dillon [Wed, 12 May 2010 17:42:12 +0000 (10:42 -0700)]
release build - 'img' is now the default.

* Both the ISO and the IMG will be generated by default now instead of just
  the ISO.

13 years agoSync zoneinfo database with tzdata2010j from elsie.nci.nih.gov
Sascha Wildner [Tue, 11 May 2010 03:57:00 +0000 (05:57 +0200)]
Sync zoneinfo database with tzdata2010j from elsie.nci.nih.gov

northamerica:   8.30 -> 8.31
zone.tab:       8.35 -> 8.36

Bahia de Banderas (municipality in the Mexican state of Nayarit) changed
time zone from UTC-7 to UTC-6. This requires introducing a new zone
(America/Bahia_Banderas).

13 years agoIncrease the LiveCD's /var a bit since it was at 104% capacity.
Sascha Wildner [Sun, 9 May 2010 23:15:08 +0000 (01:15 +0200)]
Increase the LiveCD's /var a bit since it was at 104% capacity.

13 years agoAdd a mutex(9) manual page.
Sascha Wildner [Sun, 9 May 2010 18:20:41 +0000 (20:20 +0200)]
Add a mutex(9) manual page.

Submitted-by: Venkatesh Srinivas <me@endeavour.zapto.org>
13 years agoAdd manual pages for pfind(), pgfind() and zpfind() (taken from FreeBSD).
Sascha Wildner [Sun, 9 May 2010 10:17:30 +0000 (12:17 +0200)]
Add manual pages for pfind(), pgfind() and zpfind() (taken from FreeBSD).

13 years agomake upgrade: Don't remove rc scripts which could be from pkgsrc.
Sascha Wildner [Sat, 8 May 2010 22:37:15 +0000 (00:37 +0200)]
make upgrade: Don't remove rc scripts which could be from pkgsrc.

13 years agoMakefile_upgrade.inc: Fix some merging artifacts.
Sascha Wildner [Sat, 8 May 2010 22:24:43 +0000 (00:24 +0200)]
Makefile_upgrade.inc: Fix some merging artifacts.

13 years agomake upgrade: Remove BIND's rc script, too.
Sascha Wildner [Sat, 8 May 2010 22:22:45 +0000 (00:22 +0200)]
make upgrade: Remove BIND's rc script, too.

13 years agoRemove some more (BIND related) files via 'make upgrade'.
Sascha Wildner [Sat, 8 May 2010 22:17:34 +0000 (00:17 +0200)]
Remove some more (BIND related) files via 'make upgrade'.

13 years agopthread* manual pages: <pthread_np.h> needs <pthread.h>.
Sascha Wildner [Sat, 8 May 2010 20:43:42 +0000 (22:43 +0200)]
pthread* manual pages: <pthread_np.h> needs <pthread.h>.

13 years agoextattr.9: Some cosmetic changes.
Sascha Wildner [Sat, 8 May 2010 19:56:20 +0000 (21:56 +0200)]
extattr.9: Some cosmetic changes.

13 years agoBring in a extattr(2) manual page (from FreeBSD, with changes).
Sascha Wildner [Sat, 8 May 2010 19:56:02 +0000 (21:56 +0200)]
Bring in a extattr(2) manual page (from FreeBSD, with changes).

13 years agoieee80211.9: Comment out reference to ieee80211_amrr(9).
Sascha Wildner [Sat, 8 May 2010 06:56:16 +0000 (08:56 +0200)]
ieee80211.9: Comment out reference to ieee80211_amrr(9).

13 years agoRemove some unnecessary lines in Makefile_upgrade.inc.
Sascha Wildner [Sat, 8 May 2010 05:54:12 +0000 (07:54 +0200)]
Remove some unnecessary lines in Makefile_upgrade.inc.

13 years agomake.conf(5): Remove some no longer used (BIND related) options.
Sascha Wildner [Fri, 7 May 2010 18:52:55 +0000 (20:52 +0200)]
make.conf(5): Remove some no longer used (BIND related) options.

13 years agomtree: Remove /usr/include/isc
Sascha Wildner [Fri, 7 May 2010 10:03:44 +0000 (12:03 +0200)]
mtree: Remove /usr/include/isc

13 years agoMakefile_upgrade.inc: Remove conflict marker.
Sascha Wildner [Thu, 6 May 2010 21:00:57 +0000 (23:00 +0200)]
Makefile_upgrade.inc: Remove conflict marker.

On-behalf-of: lentferj

13 years agoBIND: add pkgsrc/bind96 to nrelease
Jan Lentfer [Thu, 6 May 2010 20:53:42 +0000 (22:53 +0200)]
BIND: add pkgsrc/bind96 to nrelease

* Add BIND 9.6 to nrelease so it will be build
  as a replacement for the base BIND during CD builds.

13 years agoBIND removal: more cleanup
Jan Lentfer [Thu, 22 Apr 2010 18:33:47 +0000 (20:33 +0200)]
BIND removal: more cleanup

* remove more BIND leftovers

13 years agoBIND-Removal: Add removals to make upgrade.
Jan Lentfer [Mon, 8 Mar 2010 14:50:00 +0000 (15:50 +0100)]
BIND-Removal: Add removals to make upgrade.

13 years agoBIND: entirely purge BIND and related stuff from base
Jan Lentfer [Mon, 8 Mar 2010 10:17:32 +0000 (11:17 +0100)]
BIND: entirely purge BIND and related stuff from base

13 years agoBIND: remove bind/ from contrib.
Jan Lentfer [Sat, 6 Mar 2010 19:15:27 +0000 (20:15 +0100)]
BIND: remove bind/ from contrib.

First step to entirely get rid of BIND.

13 years agoiostat - add read/write details to output
Jan Lentfer [Wed, 5 May 2010 20:17:40 +0000 (22:17 +0200)]
iostat - add read/write details to output

This adds option "-D" that will output read/write
details to the output as described in the manpage.
This is based on Matt Dillon's addition to systat.

13 years agonrelease - try to workaround a problem with ./bootstrap
Matthew Dillon [Fri, 30 Apr 2010 18:10:06 +0000 (11:10 -0700)]
nrelease - try to workaround a problem with ./bootstrap

* setenv share_dir during the bootstrap build to try to work around a
  problem where recent changes in the build cause bmake to try to access
  the system mk files in /usr/share/mk.

13 years agokernel - Try to fix NULL pointer issue in syncache_timer_handler()
Matthew Dillon [Fri, 30 Apr 2010 18:08:14 +0000 (11:08 -0700)]
kernel - Try to fix NULL pointer issue in syncache_timer_handler()

* There seems to be a case where a tcpcb's inp can be NULL when accessed
  from syncache_timer_handler().  Try to handle it.

13 years agokernel - Disallow dsioctl when no media is present
Matthew Dillon [Fri, 30 Apr 2010 18:06:56 +0000 (11:06 -0700)]
kernel - Disallow dsioctl when no media is present

* Attempt to fix a panic which can occur when attempts are made to
  call ioctl() via a slice/partition on removable drives with no media.

13 years agoRemove references to VAX and MIPS from ddb(4).
Venkatesh Srinivas [Fri, 30 Apr 2010 06:58:29 +0000 (23:58 -0700)]
Remove references to VAX and MIPS from ddb(4).

13 years agokernel - mmap offset is invalid for MAP_ANON
Samuel J. Greear [Fri, 30 Apr 2010 04:30:05 +0000 (22:30 -0600)]
kernel - mmap offset is invalid for MAP_ANON

Submitted-by: Venkatesh Srinivas
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1723>

13 years agobpf(4): Fix the division by zero check in bpf_validate().
Sascha Wildner [Fri, 30 Apr 2010 10:03:52 +0000 (12:03 +0200)]
bpf(4): Fix the division by zero check in bpf_validate().

BPF_RVAL() was being used where BPF_SRC() would have been correct.

Reported-by: Guy Harris <guy@alum.mit.edu>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1748>

13 years agokernel - Fix resident_count problems with kernel_pmap & related crashes
Matthew Dillon [Fri, 30 Apr 2010 02:48:58 +0000 (19:48 -0700)]
kernel - Fix resident_count problems with kernel_pmap & related crashes

* kernel_pmap.pm_stats.resident_count could get out of sync due to the
  lwbuf code calling kmem_free() on KVM with pages that were entered
  via pmap_kenter().  Delete the pages before calling kmem_free().

  This in turn caused various failures and kernel panics due to conditionals
  based on resident_count == 0.  Heavy sendfile() activity could trigger
  the bug but it was taking a few days for the resident_count to decrement
  to zero.

* Fix a similar issue in zdestroy() on ZONE_INTERRUPT zones.  Nothing calls
  this routine so it was not a vector for crashes.

* Document the case.

13 years agoieee80211.9: Fix typo.
Sascha Wildner [Thu, 29 Apr 2010 22:45:54 +0000 (00:45 +0200)]
ieee80211.9: Fix typo.

13 years agoieee80211.9: Remove some references to manual pages which don't exist.
Sascha Wildner [Thu, 29 Apr 2010 20:35:01 +0000 (22:35 +0200)]
ieee80211.9: Remove some references to manual pages which don't exist.

13 years agoath.4: We don't have a pcic.4 manual page.
Sascha Wildner [Thu, 29 Apr 2010 20:34:24 +0000 (22:34 +0200)]
ath.4: We don't have a pcic.4 manual page.

13 years agoieee80211_proto.9: Fix typo in function name.
Sascha Wildner [Thu, 29 Apr 2010 20:33:01 +0000 (22:33 +0200)]
ieee80211_proto.9: Fix typo in function name.

13 years agoieee80211_scan.9: Fix typo in function name.
Sascha Wildner [Thu, 29 Apr 2010 20:29:27 +0000 (22:29 +0200)]
ieee80211_scan.9: Fix typo in function name.

13 years agoAdd a regdomain.5 manual page (from FreeBSD).
Sascha Wildner [Thu, 29 Apr 2010 20:18:05 +0000 (22:18 +0200)]
Add a regdomain.5 manual page (from FreeBSD).

13 years agoComment out a reference to iwi(4) for now until it is ported.
Sascha Wildner [Thu, 29 Apr 2010 20:09:16 +0000 (22:09 +0200)]
Comment out a reference to iwi(4) for now until it is ported.

13 years agoieee80211_{ddb,radiotap}.9: Remove some unneeded .Pp's.
Sascha Wildner [Thu, 29 Apr 2010 19:58:56 +0000 (21:58 +0200)]
ieee80211_{ddb,radiotap}.9: Remove some unneeded .Pp's.

13 years agoDisable ieee80211_amrr.9 for now.
Sascha Wildner [Thu, 29 Apr 2010 19:58:07 +0000 (21:58 +0200)]
Disable ieee80211_amrr.9 for now.

This was replaced by the new ratectl code.