Commit Graph

95175 Commits

Author SHA1 Message Date
rushani
d2021de109 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
tjr
b952d3fda3 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
tjr
fef194d740 Fix BSS buffer overflow in makeargv(). 2003-10-12 00:27:55 +00:00
kris
cb8b38ab31 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
se
6a55ff3777 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
5b9cc4b22e - 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
dds
b2c1ae4295 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
dds
cbf5708f43 - 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
iwasaki
324480cbaf 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
fjoe
8f0a204f9b Describe '-M' in usage().
PR:		57462
Submitted by:	Ryuichiro Imura <imura@ryu16.org>
2003-10-11 12:05:05 +00:00
rushani
9e1748c0e7 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
fjoe
7fa0184dee /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
ume
63ae58bf13 correct unsafe use of realloc().
Obtained from:	KAME
2003-10-11 10:37:43 +00:00
blackend
922aa1a4f4 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
des
809a30b985 Tweak the colors for failed runs 2003-10-11 09:44:18 +00:00
des
272ffb18d4 Show stale results (8 hours old or more) in a paler color. 2003-10-11 09:40:18 +00:00
nyan
d8d22397ed MFi386: revision 1.576. 2003-10-11 09:24:58 +00:00
hrs
471fcd605e Use Japanese localized version of trademarks.ent. 2003-10-11 08:56:04 +00:00
blackend
88e85b883a s/disklabel/bsdlabel where needed. 2003-10-11 08:24:07 +00:00
tjr
971569170c Make the warning message stand out more. 2003-10-11 07:37:55 +00:00
tjr
a507187264 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
hrs
f7e281890a New release note:
amr(4) crashdump support.
2003-10-11 05:40:05 +00:00
sam
0d000789dc 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
7c3bdb09ce 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
des
9df08be68d Cosmetic nits. 2003-10-10 23:27:57 +00:00
des
8bdcdc1bc6 Collapse the Architecture and Machine columns to conserve screen space. 2003-10-10 23:25:43 +00:00
sam
98e4036e5b 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
ps
592158f5ce crashdump support.
Some bits by:	Rajesh Prabhakaran <rajeshpr@lsil.com>
2003-10-10 22:49:40 +00:00
des
8248f74b0c Discourage line breaks between the time of day and the time zone. 2003-10-10 22:41:00 +00:00
des
477ef90c7b Add support for tinderbox(1)'s -h option. 2003-10-10 21:13:37 +00:00
des
13c988b2af 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
des
25458fa495 Document the -h option. 2003-10-10 21:04:14 +00:00
bms
4d9f6dfda8 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
des
1d05773158 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
des
b73c0f3102 s/GMT/UTC/ 2003-10-10 20:44:49 +00:00
phk
a4e24a93f7 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
ume
d8181d09cf fixed an endian bug on fragment header scanning
Obtained from:	KAME
2003-10-10 19:49:52 +00:00
blackend
8685e5b297 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
hrs
57b9147ab9 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
726f9463d0 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
hrs
85afd46c50 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
hrs
45ae9557ac 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
bms
e6d522451a Add the Actiontec 801UAT1/HWU01170-01 802.11b USB Wireless Ethernet adapter. 2003-10-10 16:04:21 +00:00
ume
a72f1bdb76 nuke SCOPEDROUTING. Though it was there for a long time,
it was never enabled.
2003-10-10 16:04:00 +00:00
ume
8df937af7e switch cast128 implementation to implementation by Steve Reid;
smaller footprint.

Obtained from:	KAME
2003-10-10 15:06:16 +00:00
phk
1665650eeb I think it is more correct to use modfind() than kldfind() here. 2003-10-10 14:32:28 +00:00
nectar
fb970e56ae The header files hdb_asn1.h, hdb_err.h, and kadm5_err.h are generated,
and must be installed from ${.OBJDIR}.

Pointy hat:	nectar
2003-10-10 13:12:35 +00:00
sos
2688d98031 Restore transfermode on devices after reinit. 2003-10-10 11:03:27 +00:00
sos
dff7842fed Dont store ata_params for devices that return a bogus ident string. 2003-10-10 11:00:06 +00:00
robert
ee29ad95a7 Add an 'include' directive to pull in <sys/ptrace.h>. 2003-10-10 10:31:48 +00:00