Commit Graph

150687 Commits

Author SHA1 Message Date
ad
297f461929 Add the lockstat command: displays a summary of kernel locking events
recorded over the lifetime of a called program.
2006-09-07 00:50:45 +00:00
xtraeme
cd9bde5343 Note scan_ffs(8) -f file support. 2006-09-07 00:49:49 +00:00
xtraeme
7aa92d971b Add -f file support. Useful to search for partitions on disk images. 2006-09-07 00:48:21 +00:00
ad
beafae096b Add the 'lockstat' driver, which collects basic information about lock events. 2006-09-07 00:20:28 +00:00
gdamore
229365fda3 Use common todr_settime_ymdhms/gettime_ymdhms.
While here, fix an incorrect test for timeset (that's in kern_todr already),
and an incorrect to time_second (instead of using the date passed in).
2006-09-07 00:18:50 +00:00
gdamore
942bfe3e30 Add support for new todr entry points for drivers- todr_gettime_ymdhms and
todr_settime_ymdhms.  This allows drivers to avoid repeated conversions, and
allows us to centralize check for Y2038 overflow.   As discussed on
tech-kern.
2006-09-07 00:10:49 +00:00
rumble
cfba0d26d0 Avoid a panic on adapter check interrupts: the 'tl_restart' callout expects
a pointer to struct ifnet, not tl_softc.
2006-09-07 00:00:02 +00:00
ad
6c8685b2d2 Use p_find(addr, PFIND_LOCKED) in case the proclist_lock is held. 2006-09-06 23:58:20 +00:00
adrianp
8d13789c5a Apply the third version of the patch from OpenSSL to address this issue.
- Rollback the updates for rsa.h, rsa_eay.c and rsa_err.c as they were
  not necessary to address this vulnerability.
- Small update to the patch for rsa_sign.c for backward compatability so
  the same patch can be applied to 0.9.[6-9]
2006-09-06 22:47:11 +00:00
garbled
3053244401 Add preliminary support for the 7025-F40. The MPIC must not be wired up
by the initial PCI_NETBSD_CONFIGURE, nor should it be manually wired by
the indirect stuff.  This is all taken care of by the prep_init() function.
7025-F40 support supports the primary pci bus only.  The second PCI bus
on the machine is still unsupported, but the machine runs and can access
everything except for the two slots the other bus covers.
2006-09-06 22:32:56 +00:00
thorpej
f68bacf5a3 Use static at the function decl if the prototype also uses static. 2006-09-06 20:01:57 +00:00
dsl
0eca4248ac Fix requests for msg input with a NULL target buffer (or zero length one)
to core dumps from sysinsts mbr code (and others) that use message boxes
for 'press enter to continue' actions.
Fixes PR/34206
2006-09-06 19:24:15 +00:00
dsl
895acb9f43 Rename 'max_chars' to 'val_buf_len' to make it clearer that it has to include
the trailing NUL.
2006-09-06 19:13:51 +00:00
wiz
9934420870 Only mark up one word, not the whole sentence. 2006-09-06 18:59:21 +00:00
liamjfoy
ecc29b2222 document net.inet.ip.maxflows. dump date. 2006-09-06 18:56:21 +00:00
wiz
18bbdd85f7 Update set lists for todr*9 and time*9 changes. 2006-09-06 18:18:49 +00:00
wiz
3629da0138 Fix todr(9) MLINKS line. 2006-09-06 18:15:35 +00:00
wiz
e88c786bd4 Fix typo. 2006-09-06 18:06:00 +00:00
gdamore
43de604779 time.9 renamed to time_second.9. various updates to reflect API changes. 2006-09-06 18:04:30 +00:00
rpaulo
083973a8e4 Fix example. 2006-09-06 16:47:00 +00:00
rumble
3691c21c61 Minor english nits. 2006-09-06 14:59:15 +00:00
blymn
c09e9ac5fb * Remove "hinted" interface
* Modify fileassoc internals to use fhandle_t instead of fileid
2006-09-06 13:37:49 +00:00
cherry
b441b8ce45 fix unaligned vendor string array. showed up during a gcc4 compile. 2006-09-06 12:54:31 +00:00
manu
f0cbe4f3bf Implement Linux's fdatasync, patch from Nicolas Joly 2006-09-06 12:01:23 +00:00
ad
b126141ea3 Remove 'makedev mouse'. 2006-09-06 11:09:58 +00:00
manu
84b03d19fe Fix linux32_sys_setres{uid|gid}: -1 does not means the same thing on i386
and amd64...
2006-09-06 08:32:00 +00:00
simonb
e099b5edda Add \n to end of autoconf message. 2006-09-06 06:26:54 +00:00
gdamore
493d9bc7e2 pdp10 should use generic todr and timecounters. By using MI is one less
thing that needs to be implemented, and the stubs that just panic() are
removed.
2006-09-06 04:51:34 +00:00
gdamore
8da6e23a9e Cesfic converted to timecounters (clockinterrupt only ) and generic-todr
(which is meaningless, since it lacks any kind of RTC.)
2006-09-06 04:29:01 +00:00
matt
92ae0af8bc Don't include <sys/device.c> unless this is a _KERNEL 2006-09-06 00:31:50 +00:00
matt
3d1a5167c6 Define LIBCRTBEGIN/LIBCRTEND so we don't need to build userland before
building the bootloaders.
2006-09-06 00:31:22 +00:00
uwe
6cfe10b75a __db_print_symbol: don't try to be too smart with db_print_loc_and_inst.
We can have in a register an address that points to/into some variable
in the data segment, but db_print_loc_and_inst only looks for
functions, so it will misprint it as something unrelated from libkern
+ huge offset.  E.g. instead of netbsd:cpu_info_store it would print
netbsd:prop_string_create_cstring+0xdeadbeef

Worse, if the address happens to be odd (char field in a struct, an
element of char array), attempt at printing the "instruction" at that
address will cause a fault and will abort "mach frame".

Disassemly is not really that useful in "mach frame" listing anyway
and more often just clutters things by overflowing 80 columns.
2006-09-06 00:11:49 +00:00
uwe
f6bf0450b3 Cosmetics - space auxiliary defines so that they are not visually
hidden in surrounding code.
2006-09-05 22:48:40 +00:00
reinoud
0f0ed58759 Fix copying too much space from a small buffer. The chances of it actually
happening are small but corrupt media could trigger it.
2006-09-05 22:30:52 +00:00
christos
e32e513967 Find the alias file name from the postfix configuration. From our anonymous
user.
2006-09-05 22:10:51 +00:00
scw
24f4ed9338 The list of registers which sdivsi3 can clobber has changed in gcc4.
Make the necessary changes.
2006-09-05 22:07:08 +00:00
gdamore
50d22dfb8e Convert time.tv_sec to time_second. 2006-09-05 21:59:51 +00:00
uwe
40ada7179f ANSIfy db_error. 2006-09-05 21:56:44 +00:00
uwe
7c918c612d Mark db_error __attribute__((__noreturn__)). 2006-09-05 21:52:11 +00:00
riz
d28b2bee5d Deal with wedges and the new disk geometry structures, instead of using
struct disklabel.  (Shrinking a file system still seems to have problems,
though, independent of this change)
2006-09-05 19:46:14 +00:00
riz
3d1e464b85 Deal with wedges and the new disk geometry structures, instead of using
struct disklabel.  From Christos Zoulas.
2006-09-05 19:44:44 +00:00
matt
0cbed11bde #define __HAVE_GENERIC_TODR 2006-09-05 19:33:55 +00:00
matt
27176f3722 Switch VAX over to generic TODR 2006-09-05 19:32:57 +00:00
matt
7cdae31eb1 Before calling todr_gettime, fill in tv.tv_sec. At least one port (vax)
needs that functionality.
2006-09-05 19:32:17 +00:00
adrianp
ee74a1421a Fixes for CVE-2006-4095 and CVE-2006-4096 from bind-9.3.2-P1
* Assertion failure in ISC BIND SIG query processing (CVE-2006-4095)

- Recursive servers
Queries for SIG records will trigger an assertion failure if more
than one RRset is returned. However exposure can be minimized by
restricting which sources can ask for recursion.

- Authoritative servers
If a nameserver is serving a RFC 2535 DNSSEC zone and is queried
for the SIG records where there are multiple RRsets, then the
named program will trigger an assertion failure when it tries
to construct the response.

* INSIST failure in ISC BIND recursive query handling code (CVE-2006-4096)

It is possible to trigger an INSIST failure by sending enough
recursive queries such that the response to the query arrives after
all the clients waiting for the response have left the recursion
queue. However exposure can be minimized by restricting which sources
can ask for recursion.

ok'ed christos@
2006-09-05 19:31:47 +00:00
ad
38566f3287 Add an SPLLOWER() macro. 2006-09-05 19:00:42 +00:00
plunky
ac9c65b377 Halt the callout on detach 2006-09-05 18:14:57 +00:00
rumble
d5dbfe8cbd Make this work with timecounters. 2006-09-05 17:31:31 +00:00
manu
4d5f807455 Fix linux32_sys_sysctl, it was horribly broken. 2006-09-05 17:12:19 +00:00
reinoud
6014bf8aa0 Fix locking scheme in udf_mount() to follow more the other filingsystems.
For yet unknown reasons passing the LOCKLEAF flag to namei() did return a
locked vnode as was meant but would panic when a raw device was passed.
2006-09-05 17:03:04 +00:00