154738 Commits

Author SHA1 Message Date
alc
c7b3cb6e97 CID-3317: check for 'm != NULL' before using it (rework the code path to
explicitly return `EINVAL'. Before, it was done but later in
ip6_setpktopt() when checking for 'len < ...')
CID-3316: check for 'm != NULL' before using it

ok christos@
2006-12-27 18:49:40 +00:00
dogcow
0dbd865aab arg might be improperly initialized; fix that.
(also, since we check arg == NULL, s/arg = 0/arg = NULL/.)
2006-12-27 18:47:20 +00:00
alc
a4ba78e89b CID-4197,4198: ensure that `fp' is not NULL before calling FILE_UNUSE()
ok christos@
2006-12-27 18:45:30 +00:00
alc
24803bd1c4 remove the KASSERT() introduced in last commit and use VLAN_OUTPUT_TAG() macro.
tested by martin@
pointed out and ok by pavel@, also ok from christos@
2006-12-27 18:36:09 +00:00
alc
ea827cc550 CID-3809: move up the initialization of `fr' as we can jump to junkput: if
fr_inobj() fails. junkput: will then check the value of `fr' which is at
this time uninitialized.

CID-3803: don't leak `ipn' upon return

ok christos@
2006-12-27 18:28:54 +00:00
alc
980fc49cd5 CID-3325: don't leak `fd'
Also, check for the return value of malloc(3)

ok christos@
2006-12-27 18:13:53 +00:00
alc
aca410156d CID-3802: don't leak `isc'
ok christos@
2006-12-27 18:10:03 +00:00
pooka
a61b6925e7 support reading wtmp/wtmpx from stdin with -f -
from bin/35329 by David A. Holland
2006-12-27 18:03:26 +00:00
alc
f8b0309827 CID-3821: don't leak `fh' and close the firmware properly
ok christos@
2006-12-27 18:01:45 +00:00
alc
2fc133de08 CID-4192: ensure we have 'uobj != NULL` here
ok christos@ and yamt@
2006-12-27 17:59:08 +00:00
alc
c6ea7a850f CID-4199: move the test (line != NULL) one line up to check the
return value of strdup()

ok christos@
2006-12-27 17:55:05 +00:00
alc
0c17aa264d Fix a typo in ht_free() which caused the last list of the hashtable to be ignored.
It caused config(1) to crash on the following assert() if the list was used.

This bug shows up after the recent change in files.c which fixed a memory leak.

pointed out by dogcow@
reviewed by cube@
2006-12-27 17:50:27 +00:00
rumble
ca581a2f34 Catch and report bus errors. 2006-12-27 15:56:26 +00:00
martin
f666b179b1 After discussing this further with uwe, rearange stack usage slightly and
replace a comment with words suggested by him.
2006-12-27 13:40:56 +00:00
yamt
431da137b1 - remove the rest of nqnfs.
- reject NFSMNT_MNTD and NFSMNT_KERB.  (no users in tree.)
2006-12-27 12:51:22 +00:00
yamt
dae26da41f remove the rest of Kerberos 4 code. 2006-12-27 12:43:10 +00:00
yamt
c3ad9e4929 remove now unused vnode::v_lease. 2006-12-27 12:22:14 +00:00
yamt
bb0e3db15a sync with header changes. (nqnfs removal) 2006-12-27 12:13:55 +00:00
yamt
fa33174966 obsolete /usr/include/nfs/nqnfs.h. 2006-12-27 12:12:11 +00:00
yamt
ccfd2c0df0 remove nqnfs. 2006-12-27 12:10:09 +00:00
wiz
211f17ad46 Sort options in usage. 2006-12-27 11:28:59 +00:00
wiz
78cc844673 Sort options. 2006-12-27 11:27:37 +00:00
yamt
b9625c8fbe oops, remove duplicated -D. 2006-12-27 11:08:30 +00:00
yamt
580a1898fe revive -D option because it actually has some meanings for non-nqnfs mounts. 2006-12-27 11:05:04 +00:00
elad
8764325d83 Refactor a bit the ptrace(2) code: first make the keep-kernel-stable
decisions, then have a kauth(9) call for security policy enforcement,
and only then proceed to processing each request.

Add a KAUTH_PROCESS_CANSEE call right after pfind(). This should really
be done differently, so mark it with XXX.
2006-12-27 10:02:46 +00:00
yamt
a8552e41ca mount_domount: don't forget to handle MNT_RDONLY.
PR/35327 from Christian Biere.
2006-12-27 08:55:35 +00:00
rumble
63c6a08fb6 Specify the member names of struct platform for clarity. 2006-12-27 07:45:11 +00:00
martin
e131201724 When converting FP exception codes, prefer overflow/underflow over
inexact result - this makes regress/lib/libc/ieeefp/except a bit happier.
2006-12-26 23:26:13 +00:00
ad
f87898b1c5 Signal masks are thread private, and there is no guarantee of the order in
which the two signal handlers in this test will execute, at least not beyond
SIGUSR1 being caught first, and SIGUSR2 being caught after that. One way
that it can fail erroneously is:

    2    kill(getpid(), SIGUSR1)
    2    Receive signal SIGUSR1
    2    kill(getpid(), SIGUSR2)
    1    Receive signal SIGUSR2
    1    Exit handler
    2    Exit handler

So if the handlers appear not to have run in sequence, at least verify
that they were run by different threads.
2006-12-26 20:29:03 +00:00
elad
74409752fc Fix copy/paste error: Veriexec's sysctl setup routine was named after
PaX's.
2006-12-26 19:31:33 +00:00
rumble
d1139b199f zskbd is unit 0, not 1. 2006-12-26 19:29:00 +00:00
rumble
0887b4b60e Make backspace and control keys work.
XXX: Why does KS_BackSpace not do what we want? We're copying pckbd now...
2006-12-26 17:37:22 +00:00
elad
0ffd2bf379 Adapt to recent machdep scope changes.
Pointed out by Kouichirou Hiratsuka, thanks!
2006-12-26 16:42:06 +00:00
ad
e96fca7884 Define ipl_t as uint8_t so that it can be packed into a word with a lock
byte. Ok yamt@.
2006-12-26 15:22:44 +00:00
yamt
90b1120ae3 ufs_readdir: start from offsets known to be valid,
rather than assuming users feed us valid offsets.
2006-12-26 14:50:08 +00:00
tsutsui
03841e683e Wrap a sanity check in re_newbuf() with #ifdef DIAGNOSTIC and
make it fatal on failure.
2006-12-26 13:45:43 +00:00
tsutsui
91031286e2 Use __predict_false() in several conditionals. 2006-12-26 13:40:58 +00:00
yamt
42489b9a68 - shorten the period to modify mnt_flag temporarily.
- desupport MNT_EXPORTED without MNT_UPDATE explicitly.
- fix a comment.
- unwrap short lines.
2006-12-26 12:39:01 +00:00
martin
e404fd2fc6 Make the DDB_TRACE variant compilable 2006-12-26 12:28:31 +00:00
elad
504c71d9fe Make machdep scope architecture-agnostic by removing all arch-specific
requests and centralizing them all. The result is that some of these
are not used on some architectures, but the documentation was updated
to reflect that.
2006-12-26 10:43:43 +00:00
elad
7e1cc3fd07 Elaborate on SSP.
Requested by and okay wiz@.
2006-12-26 10:24:53 +00:00
elad
8daca39031 Fix a comment. No functional change. 2006-12-26 08:55:32 +00:00
elad
ff39342b33 veriexec_lookup() should not return an internal data-structure, but rather
just a boolean value.
2006-12-26 07:50:40 +00:00
rumble
4bbcf8f210 Add type for sgimips/light(4). 2006-12-26 05:54:00 +00:00
rumble
a942babab1 Add light(4). 2006-12-26 04:44:54 +00:00
rumble
62b7bdb3b6 Add a page for LG1/LG2 graphics. Add xrefs. 2006-12-26 04:43:10 +00:00
rumble
78f4031e6d Bring in support for the SGI Light/Entry/Starter LG1/LG2 framebuffers
found in Indigo systems.
2006-12-26 04:28:16 +00:00
alc
1d470e84d6 fix whitespace nits (space -> tab) 2006-12-26 00:13:24 +00:00
alc
9594e8adae CID-4284: check for 'kup != NULL' after kmem_zalloc() returns 2006-12-26 00:10:40 +00:00
alc
b68a85a32f CID-4282: dies if we can't allocate memory for `peer->hba'
CID-2488: `t' is uninitialized
2006-12-26 00:08:44 +00:00