Commit Graph

192315 Commits

Author SHA1 Message Date
njoly
139189167c Add some sanity checks for statvfs values. 2010-07-16 17:49:38 +00:00
jmmv
c7a6d624ff Note that the libpthread tests have been converted to atf. 2010-07-16 15:47:06 +00:00
jmmv
59c643ac55 The libpthread tests have been converted to atf; remove the old versions. 2010-07-16 15:46:01 +00:00
jmmv
b0efb6eb58 Add libpthread tests. 2010-07-16 15:45:05 +00:00
jmmv
df453a7e8b Add dirs for libpthread tests. 2010-07-16 15:43:23 +00:00
jmmv
ac555471ca Convert the libpthread tests to atf.
Initial work from the GSoC 2008 project by Lukasz Strzygowski.

I think that this, together with the previous conversion of librt, obsoletes
the tests in the semaphore/ directory.  Will investigate later.
2010-07-16 15:42:53 +00:00
tsutsui
0f487a87b0 Fix a wrong arg for callout_reset(9) in txcom_txintr(). PR port-hpcmips/43474 2010-07-16 15:30:10 +00:00
tsutsui
716b5eae08 Add missing callout_init(9) calls. PR port-hpcmips/43472 2010-07-16 15:28:38 +00:00
njoly
983665317c Add some missing .debug suffix. 2010-07-16 15:26:04 +00:00
pooka
978c8480cc skip directory test on sysvbfs 2010-07-16 14:14:27 +00:00
jmmv
1c44f7af8a Note conversion of some extra tests to atf. 2010-07-16 13:59:22 +00:00
jmmv
065d8f673d Remove tests converted to ATF. 2010-07-16 13:59:07 +00:00
jmmv
64d9d4534b Add tests for libposix, libprop, librt, libskey and libutil. 2010-07-16 13:57:16 +00:00
jmmv
5ff82976a0 Add new tests dirs. 2010-07-16 13:56:52 +00:00
jmmv
c505c44298 Convert the libposix, libprop, librt, libskey and libutil tests to ATF.
Initial work from the GSoC 2008 project by Lukasz Strzygowski.
2010-07-16 13:56:31 +00:00
pooka
b7d235f4da Fix typo in comment. comment tested by wizd. 2010-07-16 13:07:23 +00:00
pooka
16c5b04bd3 Fill in PR kern/43626 now that it exists. 2010-07-16 11:46:31 +00:00
pooka
8206e1e692 Do the famous renamerace test using directories. Uh oh, bad idea.
PR coming soon.
2010-07-16 11:33:45 +00:00
pooka
b006a8b60d This test does not always fail for LFS, so apply same kludge as
elsewhere while waiting for atf to grow support for these cases.
2010-07-16 10:50:55 +00:00
hannken
3b6c9000bf Use a kmutex to protect the hash chains and always take this mutex
before removing a node from the hash chain.

Release the hash list lock before calling getnewvnode() and check the
hash list again like other file systems do.

Take v_interlock before calling vget().
2010-07-16 10:41:12 +00:00
hannken
438de34ae8 Always take the hash list lock before removing a node from the hash chain.
Release the hash list lock before calling getnewvnode() and check the
hash list again like other file systems do.

Take v_interlock before calling vget().
2010-07-16 08:23:28 +00:00
dyoung
a055a1e00a Under some circumstances, udp6_output() would call ip6_clearpktopts()
with an uninitialized struct ip6_pktopts on the stack, opt.
ip6_clearpktopts(&opt, ...) could dereference dangling pointers,
leading to memory corruption or a crash.  Now, udp6_output() calls
ip6_clearpktopts(&opt, ...) only if opt was initialized. Thanks to
Clement LECIGNE for reporting this bug.

Fix a potential memory leak: it is udp6_output()'s responsibility
to free its mbuf arguments on error.  In the unlikely event that
sa6_embedscope() failed, udp6_output() would not free its mbuf
arguments.

I will ask for this to be pulled up to -4, -5, and -5-0.
2010-07-15 23:46:55 +00:00
jym
b5924bfd19 With Xen, PDPpaddr should contain a guest physical address (== PFN). 2010-07-15 23:20:34 +00:00
jym
dfcbd5678f pte0 is used to map the page required by bioscall() trampoline code, so
add VM_PROT_EXECUTE protection for it.

Currently, this does not change much, as page execute permission is not
enforced for i386 (except for Xen, where BIOS calls are not used anyway).
2010-07-15 22:19:19 +00:00
christos
6533f925b7 Document the format of the system crontab file, since cron(8) says that we do. 2010-07-15 22:18:20 +00:00
pooka
b97a9a0af5 f_namemax is one of the static fields overridden by copy_statvfs_info(),
so be sure to set it to the value coming from the file server as
part of mount args.

exposed, like so many other problems, by njoly's tests
2010-07-15 21:55:05 +00:00
pooka
01e9b21900 Default f_namemax to MAXNAMLEN, mostly for initial statvfs struct
passed to kernel in mount.

XXX: there's currently no way for a file server to override the
one passed in mount.
2010-07-15 21:53:10 +00:00
jym
dd8a27c182 Check the virtual address 'va' for each PDIR_SLOT_PTE entry. PDP_SIZE
is 4 with PAE (Xen only currently), 1 otherwise: loop should be unrolled
when PDP_SIZE is 1.

pmap_alloc_level() is used by pmap_growkernel(), the PDE is a kernel
mapping: mark it so with PG_k. While here, use pmap_pa2pte() for physical
address 'pa'.

No functional change.
2010-07-15 21:14:31 +00:00
christos
4d77e7cf65 PR/43623: Takahiro Kambe: Allow /etc/crontab processing if it is not writable,
don't insist that it is mode 0600.
2010-07-15 20:04:14 +00:00
christos
7035a6c5ea remove bad cast. 2010-07-15 20:03:28 +00:00
dyoung
c0d48690b2 To help find the cause of kernel complaints such as "/netbsd:
nd6_storelladdr: sdl_alen == 0, dst=... if=wm1", add printfs for some
"impossible" conditions, and make the nd6_storelladdr() printf more
informative by printing the value of sdl_alen.
2010-07-15 19:15:30 +00:00
jym
7d13a50ab2 Make the comment about PDPpaddr more thorough. 2010-07-15 19:02:26 +00:00
jym
d3c610129a Purely cosmetic: move L2_SLOT_KERNBASE out of the PAE #ifdef/#endif block. 2010-07-15 18:58:40 +00:00
jym
c60095f23a In Xen PAE case, fix argument size passed to init386(), by pushing the
upper bits onto stack (we do not expect first_avail to be above 4GiB, so
assume their value is 0).

Remove macros (PROC0PDIR and PROC0STACK) that were never used.
2010-07-15 18:55:27 +00:00
pooka
d46f7cf9c7 some recent changes 2010-07-15 16:29:42 +00:00
joerg
3c0c4333af Regen for libarchive 2.8.4 2010-07-14 22:14:17 +00:00
joerg
1332698d66 Merge libarchive 2.8.4 2010-07-14 22:13:58 +00:00
joerg
7a09c6c34f Import libarchive 2.8.4:
Symlink dereference fix for Linux broke the build there; corrected.
Fix issues on ancient FreeBSD, QNX, ancient NetBSD and Minix.
Improved reliability of hash function detection.
2010-07-14 22:10:39 +00:00
jmmv
eea82a7db0 Add the new kernel/t_sigaction test program. 2010-07-14 21:48:31 +00:00
jmmv
fc6db98b3b Add a couple of simple tests for sigaction(2): one for the case where flags
is set to 0 and the other for the case where we set SA_RESETHAND.

The latter test is intended to expose PR port-macppc/43619 and is marked as
an expected failure on such platform.
2010-07-14 21:47:06 +00:00
pooka
6314ba47ee xfail test on lfs. It goes badaboom faster than you can find your
multipass.  Borrow PR kern/43582 used earlier for rmdirrace, as it
looks pretty much like the same problem.
2010-07-14 21:44:40 +00:00
pooka
1d97126256 start converting renameraces to vfs 2010-07-14 21:41:32 +00:00
pooka
3b5bc723d2 Convert "The Original" rename race test from to vfs and retire the
ffs/tmpfs versions.  The only difference is that the origamical
one mounted ffs with MNT_LOG (and therein actually lay the bug).
2010-07-14 21:39:31 +00:00
pooka
5aa789e743 Check that nobody raced us into the source dir while it was unlocked
in preparation for rename.
2010-07-14 21:24:40 +00:00
pooka
ae0b9ccec6 Add an assortment of rename tests. Not complete, but at least tests
something.

This contains the tests for PR kern/43616 and PR kern/43617.
2010-07-14 20:45:48 +00:00
pooka
7d034c7a9d Return correct error values from a bunch of questionable renames.
There's no substitute for single-stepping do_sys_rename() into ffs
when trying to figure out what error should come from what layer...
well, at least apart from TNT.
2010-07-14 17:10:14 +00:00
pooka
6a86e782e9 * remove target node from right directory
* remove what i guess to be a useless if-clause (although with
  file systems you can never be sure)
2010-07-14 16:59:35 +00:00
pooka
083df92b14 return same errno as ffs 2010-07-14 16:03:49 +00:00
jym
b1392d44f0 Fix typo in comment. 2010-07-14 14:42:40 +00:00
pooka
28a6875445 check we don't rename onto a non-empty directory 2010-07-14 14:22:15 +00:00