Commit Graph

84522 Commits

Author SHA1 Message Date
perry
a3ed824965 another space tab fix 2006-10-31 00:18:12 +00:00
christos
11c53ad61c kill crypto/rmd160.h and crypto/sha2.h, and instead make symlinks to
/usr/include from /usr/include/sys. This makes all the one way hash
header handling identical.
2006-10-30 20:22:53 +00:00
hauke
9d2e5c6d9c The {GENERIC,INSTALL}SBC kernel configurations are out of sync with
the vanilla ones. They are supposed to be identical to
{GENERIC,INSTALL}, apart from the different ncr5380 driver.
Instead of re-sync'ing, use a new feature of configure and just disable
the ncrscsi driver.

(Approved by Allen Briggs)
2006-10-30 19:40:47 +00:00
garbled
bcb7c3b253 Add -Wextra -Wno-unused for prep. 2006-10-30 17:56:30 +00:00
garbled
54ded9290c Make these files compile with -Wextra -Wno-unused 2006-10-30 17:54:29 +00:00
garbled
9d0e6979a5 Make these files compile with -Wextra -Wno-unused. 2006-10-30 17:52:12 +00:00
elad
52d8744717 Use integers, not pointers to integers, for KAUTH_REQ_NETWORK_SOCKET_OPEN.
Reminded by yamt@, thanks!
2006-10-30 16:53:48 +00:00
skrll
e231c02e1c KASSERT that the pmap_extract works in _bus_dmamap_load_buffer 2006-10-30 16:22:42 +00:00
skrll
ebb445db43 Remove the boot-from-disk hppa hack now that a real fix has been found. 2006-10-30 16:15:56 +00:00
jmmv
bccb33bf70 Fix a typo in a comment. 2006-10-30 16:06:05 +00:00
skrll
140ca90ce5 pmap_kenter_pa the kernel and it's data structures including the kernel
stack.

Fixes the "booting from disk memory corruption bug" which was a result
of pmap_extract silently failing against a scsipi_xfer data area allocat-
ed on kernel stack in _bus_dmamap_load_buffer
2006-10-30 16:04:10 +00:00
jmmv
71f9a07732 Update the file's ctime after a rename. Thanks to pooka@. 2006-10-30 15:23:20 +00:00
jmmv
da1dae4180 Grr... cvs diff scrolled too much and I didn't notice there were some
unwanted changes in this file.  Revert them; sorry.
2006-10-30 15:11:01 +00:00
jmmv
2185c98874 When renaming a file, we have to modify the mtime of the directory holding
it, not the mtime of the file itself.  This fixes the problems exposed when
unpacking software under a tmpfs and trying to build it because dependencies
were not calculated properly (e.g. autoconf 2.60 as reported by tls@).
2006-10-30 15:09:47 +00:00
elad
cc83a2c614 Don't use memcmp() and memcpy() on userspace addresses.
Pointed out by mrg@, thanks.

This also makes it so a malicious root user can't panic the kernel by
passing junk pointers.
2006-10-30 12:37:08 +00:00
perry
671b3fbc73 note about UFS_DIRHASH from i386, and a couple of space tab fixes 2006-10-30 12:34:22 +00:00
elad
ea927d2c6a oops, remove debug printf slipped in. good catch from yamt@, thanks! 2006-10-30 12:19:23 +00:00
elad
ff7c31739a Use consistent logging messages. 2006-10-30 11:29:12 +00:00
skrll
4663c12d85 Add some debug code. 2006-10-30 08:41:27 +00:00
skrll
c6dcde599c Whitespace fixes. 2006-10-30 08:39:04 +00:00
skrll
92df06c2d1 G/C pages_per_vm_page 2006-10-30 08:30:01 +00:00
christos
a4037f35ea depend on the cardbus version too. 2006-10-30 01:31:04 +00:00
christos
9217ff877d Fix typo (hi Elad) 2006-10-30 00:58:21 +00:00
elad
eddfaaf54c Move i386/amd64 common code (check_pa_acc()) to x86.
I didn't know what header to put the prototype in, so it's both in
i386/mem.c and amd64/mem.c; probably can be moved later.

Tested on amd64, assumed working on i386. :)

yamt@ okay
2006-10-30 00:41:26 +00:00
elad
048a21b75e Simplify and rework duplication check code.
If we already have an entry, we only print a message mentioning it if the
fingerprints mismatch; that may indicate a security issue.

If the fingerprints match, there's a good chance it's the same file
appearing multiple times as a hard-link, in which case print a message
only if the verbose level is 1 or more.
2006-10-30 00:30:20 +00:00
christos
3f792e2267 add an "emul" file node. 2006-10-29 22:35:35 +00:00
christos
ce42f55037 add the emulation in kinfo_proc2 2006-10-29 22:34:07 +00:00
yamt
d566a2d50f make agr headers include lock.h and queue.h by themselves. 2006-10-29 22:14:14 +00:00
christos
7cca893a23 don't descend to crypto. 2006-10-29 19:08:53 +00:00
christos
0e5129986f fix print formatting. 2006-10-29 19:05:36 +00:00
christos
7379f78872 handle NPX_CPUID 2006-10-29 18:00:10 +00:00
christos
1fb46e1531 handle NPX_CPUID. reported by Takahiro Kambe 2006-10-29 16:11:54 +00:00
he
19b3e362f5 Work around the propagation of volatile-ness from struct to struct members.
OK'ed by nsmrtks.
2006-10-29 16:05:15 +00:00
yamt
fb3b846458 agr_setconfig: ensure ifname is NUL terminated. PR/34894 from Michael Pounov. 2006-10-29 11:38:56 +00:00
freza
e224ffd4ee Inline UPDATE_INTERVAL macro, it's only used once. Per mrg@'s note
on previous.
2006-10-29 11:29:58 +00:00
minskim
ff7273278a Correct spelling. 2006-10-29 09:34:35 +00:00
dogcow
f7bd540aee cargo-cult copy changes from npx_isa.c so that GENERIC.MPACPI builds again.
(hi, christos!)
2006-10-29 09:24:47 +00:00
itohy
74588a5b22 Turn on PHY power earlier in the initialization.
This should make 3c575CT work and fix following PRs:

kern/12965: 3com 575CT does not work
port-i386/16295: Problems in pci routing table and ex0 (3c575c-tx) networking
2006-10-29 05:56:35 +00:00
uwe
ba0408a7f5 Lift extern shb_cd declaration to the top level.
Make all routines static.
2006-10-29 02:10:12 +00:00
oster
feecc58eab rmd160.h and sha2.h now live in /usr/include/crypto/../sys ,
not in /usr/include/crypto/sys.
2006-10-29 01:46:01 +00:00
christos
f26b055a0e PR/34933: Sami Kantoluoto: RealTek 8168B found from Asus P5B motherboard
is not recognized
2006-10-28 23:18:34 +00:00
christos
238d204377 Make npx work on the AMD Geode LX-800 processor by short-circuiting
the npx detection code. Since exception reporting is broken,  check the
CPUID_FPU feature. This is what FreeBSD does.
2006-10-28 21:24:45 +00:00
tsutsui
6ed1365e7f - bcopy -> strcpy (in debug message)
- bcopy -> memcpy
2006-10-28 18:45:57 +00:00
tsutsui
40c87dddb4 - use continue for an empty statement in for() loop
- remove an empty statement in if() clause by inverting logic
- use KDASSERT(9) rather than #ifdef DEBUG + KASSERT(9)
- replace commented out M_WRITABLE() with !M_READONLY(9)
2006-10-28 18:26:15 +00:00
tsutsui
b62bfc53fd M_TRALINGSPACE(m) returns 0 if M_READONLY(m) is true,
so no need to call both.  Pointed out by Pavel Cahyna.
2006-10-28 18:00:53 +00:00
christos
d165928f40 check for negative length in PT_COREDUMP (from Neil) 2006-10-28 17:58:22 +00:00
bjh21
1aeaeb0efa When setting the FIFO preload, chose an entirely safe value rather than
using a completely bogus heuristic to guess at one.  This might cause FIFO
underruns in particularly exciting video modes, but it also makes more
boring ones work correctly.
2006-10-28 17:39:59 +00:00
elad
40d6264cec Remove bogus sanity check.
The passed size doesn't mean anything really and can only help detect
corrupted configuration files, which should be done in userland anyway.

Note it's possible to trigger a kernel panic by passing a junk
pointer in the 'fingerprint' member of the parameters, but then again
that's true for anything that copies in data from a userland-supplied
pointer. And we have plenty of those.

At the moment, Veriexec only allows the super-user to open the pseudo
device, so it's ~okay. Maybe we should address that in copy(9) or
something?
2006-10-28 15:13:11 +00:00
elad
066e9189c4 Adapt to changes suggested by yamt@ to get rid of __UNCONST() stuff.
While here, don't leak pathbuf on success.
2006-10-28 11:43:45 +00:00
peter
9cc4e60c56 Don't allow to initialize an interface with MTU smaller than one.
This prevents a divide by zero and fixes PR #21474.

ok tron@
2006-10-28 11:35:17 +00:00