xtraeme
d9e9fef5b7
More NQNFS fallout (hi yamt!).
2006-12-28 04:17:51 +00:00
itohy
3e588075d6
Stop callout on detach.
2006-12-28 03:13:54 +00:00
hubertf
f300aecb2d
Fill manpage with some data, taken from comments in the kernel source
2006-12-28 02:09:49 +00:00
yamt
a23a6ee6c6
remove several nqnfs definitions.
2006-12-28 00:39:03 +00:00
chs
7645d04974
fix two more problems in the recent changes to lookup():
...
- don't hold the parent directory vnode locked while traversing mount points.
the fs that's mounted might be an NFS served by a userland process
like the automounter, which might need to traverse the parent directory
in order to complete the lookup.
- in the ENAMETOOLONG case fixed in rev. 1.75, set ni_dvp to dp
since we've logically moved on to using "dp" as the parent.
the caller will then handle vput()ing it as normal.
this fixes PR 35279.
2006-12-27 23:21:02 +00:00
dogcow
be3e9fcde5
fix a (valid) "buf may be used uninitialized" warning/error in DIAGNOSTIC.
2006-12-27 22:07:17 +00:00
dogcow
d7e50df65a
more NQNFS removal fallout
2006-12-27 21:53:58 +00:00
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