Commit Graph

95024 Commits

Author SHA1 Message Date
Hajimu UMEMOTO
492528c051 - RIPEMD160 support
- pass size arg to ah->result (avoid assuming result buffer size)

Obtained from:	KAME
2003-10-12 09:41:42 +00:00
Hideyuki KURASHINA
5e6a487b36 Fix a typo. 2003-10-12 09:08:54 +00:00
Hiroki Sato
36a6252a9b Refine translation. 2003-10-12 08:54:10 +00:00
John-Mark Gurney
9e5de980c6 fix a problem referencing free'd memory. This is only a problem for
kqueue write events on a socket and you regularly create tons of pipes
which overwrites the structure causing a panic when removing the knote
from the list.  If the peer has gone away (and it's a write knote), then
don't bother trying to remove the knote from the list.

Submitted by:	Brian Buchanan and myself
Obtained from:	nCircle
2003-10-12 07:06:02 +00:00
Hideyuki KURASHINA
a307eb3d01 Merge the following from the English version:
1.44   -> 1.55   errata/article.sgml
   1.163  -> 1.183  hardware/common/dev.sgml
2003-10-12 04:42:33 +00:00
Tim J. Robbins
a95edcba94 Fix a multitude of security bugs in the iBCS2 emulator:
- Return NULL instead of returning memory outside of the stackgap
  in stackgap_alloc() (FreeBSD-SA-00:42.linux)
- Check for stackgap_alloc() returning NULL in ibcs2_emul_find();
  other calls to stackgap_alloc() have not been changed since they
  are small fixed-size allocations.
- Replace use of strcpy() with strlcpy() in exec_coff_imgact()
  to avoid buffer overflow
- Use strlcat() instead of strcat() to avoid a one byte buffer
  overflow in ibcs2_setipdomainname()
- Use copyinstr() instead of copyin() in ibcs2_setipdomainname()
  to ensure that the string is null-terminated
- Avoid integer overflow in ibcs2_setgroups() and ibcs2_setgroups()
  by checking that gidsetsize argument is non-negative and
  no larger than NGROUPS_MAX.
- Range-check signal numbers in ibcs2_wait(), ibcs2_sigaction(),
  ibcs2_sigsys() and ibcs2_kill() to avoid accessing array past
  the end (or before the start)
2003-10-12 04:25:26 +00:00
Tim J. Robbins
7f3a5689e7 Fix BSS buffer overflow in makeargv(). 2003-10-12 00:27:55 +00:00
Kris Kennaway
63d707097e Bump default /etc size from 2MB to 5MB to deal with bloat^Wgrowth in
the size of /etc.
2003-10-12 00:19:45 +00:00
Stefan Eßer
66f314b5f2 The code that was meant to test alignment of the register offset
parameter in the read and write case dereferenced an unitialized
pointer and can't possibly ever have catched an actual invalid
argument.

This was apparently true for the read/write and getconf cases. The
latter does not even receive the paramter that is to be verified.

I'm surprised that this did not cause kernel panics, but it seems
that the uninitialized local variable happens to contain data that
may be used as a pointer to memory that satisfies the test condition.

Make the code work as intended by moving the test inside the switch
case where the pointer has been properly initialized.

Since the read and write case shared just about all code (except
for the single call to PCIB_READ_CONFIG resp. PCIB_WRITE_CONFIG) I
have merged both cases.

Noticed by:	trhodes@FreeBSD.org (Tom Rhodes)
2003-10-11 22:20:34 +00:00
Jeff Roberson
7dd1328c13 - Fix a typo, I meant & and not |. This was causing lockups from the syncer
looping forever due to list corruption.

Solved by:	tegge
2003-10-11 21:50:45 +00:00
Diomidis Spinellis
638f4836e3 Changed EINVAL constant reference from UIO_MAXIOV to IOV_MAX.
The former is a kernel-only visible constant, the latter the
POSIX-specified userland constant defined by including limits.h.
2003-10-11 20:47:44 +00:00
Diomidis Spinellis
91b7d6dc58 - Check and report write(2) errors.
- Issue a single writev(2) call instead of multiple write(2)s.
  This change improves the inefficiencies introduced when echo
  went on an stdio diet.

The following figures are for echoing 1000 arguments.
original stdio-based echo:
        0.01 real         0.01 user         0.00 sys
before:
        0.05 real         0.00 user         0.04 sys
after:
        0.01 real         0.00 user         0.00 sys
2003-10-11 20:34:43 +00:00
Mitsuru IWASAKI
84b11cd80a Fix some problems in linux_sendmsg() and linux_recvmsg().
- Allocate storage for uap->msg always because it is copyin()'ed in
   native sendmsg().
 - Convert sockopt level from Linux to FreeBSD after native recvmsg() calling.
 - Some cleanups.

Tested with:	Oracle 9i shared server connection mode.

MFC after:	1 week
2003-10-11 15:08:32 +00:00
Max Khon
d03a9dc77a Describe '-M' in usage().
PR:		57462
Submitted by:	Ryuichiro Imura <imura@ryu16.org>
2003-10-11 12:05:05 +00:00
Hideyuki KURASHINA
e47af2ae15 Merge the following from the English version:
1.3 -> 1.4	relnotes/alpha/article.sgml
   1.1 -> 1.2	relnotes/amd64/article.sgml
   1.4 -> 1.5	relnotes/i386/article.sgml
   1.1 -> 1.2	relnotes/ia64/article.sgml
   1.1 -> 1.2	relnotes/pc98/article.sgml
   1.3 -> 1.4	relnotes/sparc64/article.sgml
2003-10-11 12:01:24 +00:00
Max Khon
d2038d56f2 /usr/libdata/msdosfs is no longer used, because of kiconv(3) commit.
PR:		57277
Submitted by:	Ryuichiro Imura <imura@ryu16.org>
2003-10-11 11:57:03 +00:00
Hajimu UMEMOTO
c0839c961f correct unsafe use of realloc().
Obtained from:	KAME
2003-10-11 10:37:43 +00:00
Marc Fonvieille
84783ceaeb Add a full example of a file-backed disk creation, I used the Handbook's
example.

PR:		docs/51897
Submitted by:	Kevin Oberman <oberman@es.net>
2003-10-11 09:59:25 +00:00
Dag-Erling Smørgrav
adc0836e72 Tweak the colors for failed runs 2003-10-11 09:44:18 +00:00
Dag-Erling Smørgrav
cd4c9b964f Show stale results (8 hours old or more) in a paler color. 2003-10-11 09:40:18 +00:00
Yoshihiro Takahashi
ac134d1d1b MFi386: revision 1.576. 2003-10-11 09:24:58 +00:00
Hiroki Sato
aa91d1cb48 Use Japanese localized version of trademarks.ent. 2003-10-11 08:56:04 +00:00
Marc Fonvieille
8b23842d38 s/disklabel/bsdlabel where needed. 2003-10-11 08:24:07 +00:00
Tim J. Robbins
392d789d29 Make the warning message stand out more. 2003-10-11 07:37:55 +00:00
Tim J. Robbins
acb85bc034 Fix a BSS buffer overflow caused by makeargv() writing past the end of
margv[] when an input line contains 20 or more space-separated words.
2003-10-11 07:35:35 +00:00
Hiroki Sato
7ffba86d07 New release note:
amr(4) crashdump support.
2003-10-11 05:40:05 +00:00
Sam Leffler
3299a156c7 fix braino: null the pointer who's memory we just free'd, not some other
pointers that are (potentially) used later
2003-10-11 04:48:35 +00:00
Peter Wemm
c369afae3f Set page zero read/write right from the start rather than trying to
change it later on.
2003-10-10 23:35:15 +00:00
Dag-Erling Smørgrav
ffa02b4681 Cosmetic nits. 2003-10-10 23:27:57 +00:00
Dag-Erling Smørgrav
a39eb57a16 Collapse the Architecture and Machine columns to conserve screen space. 2003-10-10 23:25:43 +00:00
Sam Leffler
7f59ff24d8 locking fixups:
o correct recursive locking when polling and in em_82547_move_tail
o destroy mutex on detach
o add EM_LOCK_ASSERT and similar macros for creating+deleteing the mtx

Submitted by:	Daniel Eischen <eischen@vigrid.com>
2003-10-10 23:14:21 +00:00
Paul Saab
6728a38bf2 crashdump support.
Some bits by:	Rajesh Prabhakaran <rajeshpr@lsil.com>
2003-10-10 22:49:40 +00:00
Dag-Erling Smørgrav
4b59e44a86 Discourage line breaks between the time of day and the time zone. 2003-10-10 22:41:00 +00:00
Dag-Erling Smørgrav
f5e8ed3d85 Add support for tinderbox(1)'s -h option. 2003-10-10 21:13:37 +00:00
Dag-Erling Smørgrav
8843f010b9 There is no need for $have_logs since we determine what platforms and
branches to show from what logs are actually present on disk.
2003-10-10 21:05:31 +00:00
Dag-Erling Smørgrav
b9dc5c11b8 Document the -h option. 2003-10-10 21:04:14 +00:00
Bruce M Simpson
c3f4241601 Add the Intersil Prism2/Atmel device. These particular devices are strange
beasts which are reported to exist in both Atmel and Prism2 flavours. In
particular, Itronix branded laptops have the Atmel part with an Intersil
radio.

Obtained from:	NetBSD
2003-10-10 21:01:00 +00:00
Dag-Erling Smørgrav
ae7558858d Report the version number and hostname at the top of the log. Allow the
user to override the hostname on the command line (for whatever reason).
Add a comment to explain why a particular piece of code is commented out.
2003-10-10 20:59:51 +00:00
Dag-Erling Smørgrav
3ce6706cff s/GMT/UTC/ 2003-10-10 20:44:49 +00:00
Poul-Henning Kamp
47850d0ae7 Sanitize the code relating to the /dev/ti%d entries. In particular evict
the evil vnode sniffing code and use destroy_dev() instead.
2003-10-10 20:35:28 +00:00
Hajimu UMEMOTO
020a816f9e fixed an endian bug on fragment header scanning
Obtained from:	KAME
2003-10-10 19:49:52 +00:00
Marc Fonvieille
acc596e494 Update the manual page examples: use of bsdlabel(8) instead of
disklabel(8).  While I'm there: some punctuation fixes.
2003-10-10 18:40:41 +00:00
Hiroki Sato
ca144d1ca4 New release note:
- sk(4) now supports SK-9521 and 3C940.
	- libalias now supports Cisco Skinny Station protocol.
2003-10-10 18:36:52 +00:00
Peter Wemm
4dab350282 Move the pmap_kenter(KERNBASE, 0) a bit earlier so that it works for
the hasbrokenint12 tunable case too.  (with some related and unrelated
style fixes)

Submitted by:  bde
2003-10-10 17:43:42 +00:00
Hiroki Sato
64024d1cc8 Merge the following from the English version:
1.15  -> 1.16 	early-adopter/article.sgml

Submitted by:	Hiroo Ono <hiroo@oikumene.gcd.org>
2003-10-10 16:40:34 +00:00
Hiroki Sato
1d0ada8ae6 Merge the following from the English version:
1.11  -> 1.12 	hardware/i386/proc-i386.sgml

Submitted by:	Hiroo Ono <hiroo@oikumene.gcd.org>
2003-10-10 16:23:00 +00:00
Bruce M Simpson
d7a65264fd Add the Actiontec 801UAT1/HWU01170-01 802.11b USB Wireless Ethernet adapter. 2003-10-10 16:04:21 +00:00
Hajimu UMEMOTO
953ad2fb67 nuke SCOPEDROUTING. Though it was there for a long time,
it was never enabled.
2003-10-10 16:04:00 +00:00
Hajimu UMEMOTO
7aab01fa76 switch cast128 implementation to implementation by Steve Reid;
smaller footprint.

Obtained from:	KAME
2003-10-10 15:06:16 +00:00
Poul-Henning Kamp
fc36082a22 I think it is more correct to use modfind() than kldfind() here. 2003-10-10 14:32:28 +00:00