Commit Graph

194710 Commits

Author SHA1 Message Date
rmind 97b932f123 NPF checkpoint:
- Add proper TCP state tracking as described in Guido van Rooij paper,
  plus handle TCP Window Scaling option.
- Completely rework npf_cache_t, reduce granularity, simplify code.
- Add npf_addr_t as an abstraction, amend session handling code, as well
  as NAT code et al, to use it.  Now design is prepared for IPv6 support.
- Handle IPv4 fragments i.e. perform packet reassembly.
- Add support for IPv4 ID randomization and minimum TTL enforcement.
- Add support for TCP MSS "clamping".
- Random bits for IPv6.  Various fixes and clean-up.
2010-11-11 06:30:39 +00:00
agc b2d38cefdf Bring the netpgpverify(1) manual page into line with current output, etc.
With thanks to Jeremy Reed for the fixes.
2010-11-11 04:51:18 +00:00
agc 98c5ed6b49 make this compile on amd64: clean up a debug statement, pointed out by jak 2010-11-11 01:08:26 +00:00
agc b0df0a2281 Changes to 3.99.15/20101110
+ add support for partial blocks, defined in rfc 4880, and used fairly
extensively by gnupg where the input size may not be known in advance
(e.g. for encrypted compressed data, as produced by default by gpg -e)
2010-11-11 00:58:04 +00:00
skrll 37fdf4b364 Note nside(4). 2010-11-10 22:37:23 +00:00
skrll 5f5029c482 Add nside(4) - a driver for the National Semiconductor PC87415 IDE
controller as found in many HP PA-RISC machines.

From OpenBSD.

Reviewed by Manuel Bouyer.
2010-11-10 22:34:24 +00:00
christos d7b55f9d71 PR/44077: Dr. Wolfgang Stukenbrock: redundant xdr_passwd implementation should
be removed, and the one from -lrpcsvc should be used.
2010-11-10 18:56:17 +00:00
skrll 50eaa87a8f Update pa-netbsd.h to match pa-linux.h where it should. That is, remove
local definitions of

	ASM_PREFERRED_EH_DATA_FORMAT
	ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX

and make it obvious we're not using local ASM_OUTPUT_INTERNAL_LABEL

This fixes the current build problems (and probably more)
2010-11-10 18:28:29 +00:00
pooka ac0efea1ab Don't puff sigpipe if the connection has been severed. May happen
e.g. when a client executes a blocking call such a poll() and
decides to exit before the result is ready.
2010-11-10 16:12:15 +00:00
roy c1259c9577 Put correct init.d hooks into dhcpcd-run-hooks. 2010-11-10 14:12:28 +00:00
pooka dbfa9a01cc Now that copyinstr() correctly returns error, trim the semaphore
name to fit into SEM_MAX_NAMELEN.
2010-11-10 11:14:12 +00:00
dholland c6a2fe972d <space><tab>
I went and wrote a gizmo to automate this a while back, but I seem to
have *lost* the thing. grr.
2010-11-10 10:07:44 +00:00
uebayasi 04cf143fd6 Use more VM_PHYSMEM_*() accessors. No functional changes. 2010-11-10 09:27:21 +00:00
mrg 1109ac3635 use a sysctllog structure, and sysctl_teardown(), to destroy the drm data.
this should actually now fix PR#40029.
2010-11-10 05:22:55 +00:00
macallan 5f8ec2be4f don't build fbdev support on powerpc and sparc64 2010-11-10 04:08:56 +00:00
enami 5260b632e4 Clear all entries past the NULL while scrubing environ vector. 2010-11-10 02:40:08 +00:00
enami ef075363bd Indent using tab rather than four spaces. 2010-11-10 02:33:49 +00:00
dholland 5e8c4c324d Amplify comments per thread in source-changes-d about the previous
commit to this file: we must restore the PID value (that is, the
current address space ID) before touching memory, or the memory writes
might go to arbitrary wrong places or fault.

I'm not completely convinced this function (or other functions in this
file) are handling pipeline hazards safely, but I don't have
authoritative mips1 documentation any more so I'm not going to meddle.
2010-11-10 01:49:00 +00:00
christos d6f06df46c add a safe alternative of the previous. 2010-11-10 01:44:04 +00:00
uebayasi e367a5a854 Prepare vm_physmem[] -> (*vm_physmem)[] migration, so that physical
segments can be changed at run-time.  Pointers are easier to update.
2010-11-10 01:24:46 +00:00
joerg 73bdaeedcd Add back easy_encoder.c, lost during the final 5.0.0 update. 2010-11-09 23:07:09 +00:00
shattered 3a1b5ff0fa PR/10000: disable fast scrolling on Cyrix GXLV (CS5530 chipset)
OK by wiz@
2010-11-09 21:12:19 +00:00
pooka b9b9911952 Fix off-by-one in the rpc path of copyinstr() 2010-11-09 20:55:14 +00:00
macallan d4e53faa15 add support for controlling power to the modem in some PowerBooks
works at least with my Pismo, probably others
2010-11-09 20:44:49 +00:00
apb 4c73f7f041 Change the ironically unafe "find . -print | xargs pathchk -p" to
the safe "find . -exec pathchk -p \{\} +" in an example.
2010-11-09 20:34:55 +00:00
hannken 1c9818e8f4 Genfs_getpages(): Break a deadlock where one thread runs VOP_GETPAGES(),
has busy pages and wants the wapbl lock as reader from wapbl_begin(),
another thread has the wapbl lock as reader and waits for a page from
the first thread.  Now a third thread calls wapbl_flush() and wants the
wapbl lock as writer.

Move the wapbl_begin() up to a point where genfs_getpages() has no busy
pages yet.
2010-11-09 16:31:48 +00:00
hannken 897bf1dab0 Wapbl_register_deallocation(): the taken reader lock is not sufficient to
protect wl_dealloc* members.  Take the mutex here and change the lock
requirements of these fields to "writer lock or mutex".

This error lead to file system corruption and "freeing free block" panics.
2010-11-09 16:30:26 +00:00
pooka 05738eefce +tp 2010-11-09 15:26:41 +00:00
pooka ff2758a541 Test copystr/copyinstr/copyoutstr focusing on the off-by-one cases.
As a notable caveat, this does not test the remote RPC paths of
those routines, which are arguably a little more complex.
2010-11-09 15:25:19 +00:00
pooka 8fcead892c fix copystr/copyinstr/copyoutstr to return ENAMETOOLONG where appropriate 2010-11-09 15:22:47 +00:00
skrll b9a753e3b3 Note sti(4) changes. 2010-11-09 15:06:08 +00:00
jmmv 97a78f11fc Remove ugly workaround to skip this if unprivileged-user=_atf and just use
'su -m' as pooka@ did in t_mkdir.sh.  As he says this may still fail if
root's shell is csh; we need a better solution.
2010-11-09 13:01:33 +00:00
skrll f2dcf75998 Update sti(4) from OpenBSD bringing across support for sti @ pci.
Thanks to Adam Hoka for testing.
2010-11-09 12:24:47 +00:00
pooka 92603a1ff0 This test is cursed.
Yesterday I thought I committed the increased timeout and when the
test was still failing for the autotests n hours later I noticed
I had actually failed to commit it.  I did manage to commit something
in the evening, but the autotests were still failing this morning,
so I noticed I increased the timeout of the wrong test.  I wonder
what will go wrong this time...

(and p.s.: 10240 is probably slow because it's O(n^2) with a constant
of quite a few)
2010-11-09 11:48:35 +00:00
uebayasi b55225d99f Whitespace. 2010-11-09 06:48:19 +00:00
uebayasi 1965543a44 Use VM_PAGE_TO_PHYS(). 2010-11-09 06:47:24 +00:00
skrll a39d14f356 #if 0 out the trap checks around tf_iioq_{head,tail}. The sti(4) code
can/will trigger them.
2010-11-09 06:41:03 +00:00
lukem 70f37e1ba5 Don't set DPADD for HOSTPROGs 2010-11-09 00:11:37 +00:00
pooka 537f9e3a0b Increase timeout from 30 to 300 since this test runs for a long time.
XXX1: should 2x10240 loops really be *that* slow?
XXX2: is 10240 a sensible number to begin with?
2010-11-08 23:28:41 +00:00
skrll 9425fe2fb3 Fix the count usage of various bus_space methods that take a count. 2010-11-08 23:10:24 +00:00
pooka d4a18bf9e3 another long-running test, so give it some buffer 2010-11-08 21:38:13 +00:00
skrll 4790248ad9 Update cpu_model_cpuid to work for E[2345]5 machines.
From Sergey Svishchev.
2010-11-08 19:59:20 +00:00
pooka ae2e5e944c increase timeouts of long-running tests 2010-11-08 19:06:12 +00:00
pooka b1ad0f13e4 In TLBRead, restore PID before doing the saves so that the caller's
TLB entries are used instead of the PID given as the argument.

from Alessandro Forin
2010-11-08 18:09:38 +00:00
pooka 617f136424 Use su -m since _atf has nologin as its shell.
XXX: this will still fail if root's shell is csh
2010-11-08 15:25:50 +00:00
njoly e7d0fdd058 Do not fail but skip tests if POSIX semaphores are not supported. 2010-11-08 13:05:49 +00:00
pooka f1d4214202 Update RUMP_ACTION to use rumpclient.
The server must of course have some disks configured.  Let's say
we have this simple server with disks as a few sparse host files:

main()
{
        rump_init();
        rump_pub_etfs_register("/disk1", "./disk1.img", RUMP_ETFS_BLK);
        rump_pub_etfs_register("/disk2", "./disk2.img", RUMP_ETFS_BLK);
        rump_pub_etfs_register("/disk3", "./disk3.img", RUMP_ETFS_BLK);
        rump_pub_etfs_register("/disk4", "./disk4.img", RUMP_ETFS_BLK);
        pause();
}

And we run the server:

mainbus0 (root)
Kernelized RAIDframe activated
/disk1: hostpath ./disk1.img (97 GB)
/disk2: hostpath ./disk2.img (97 GB)
/disk3: hostpath ./disk3.img (97 GB)
/disk4: hostpath ./disk4.img (97 GB)

We can then configure the raid against the server:

> ./raidctl -c theraid.conf raid0

And lo, we have evidence of a level1 raid in the server dmesg:

raid0: RAID Level 1
raid0: Components: /disk1 /disk2 /disk3 /disk4
raid0: Total Sectors: 409599744 (199999 MB)

yea, i initialized it already in a previous run:

> ./raidctl -S raid0
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.
2010-11-08 12:42:35 +00:00
pooka 6b66a6ec34 usb port stuff is a goner 2010-11-08 12:06:47 +00:00
pooka 21893685ca print some dmesg blub for etfs files attaching as block devices 2010-11-08 11:01:45 +00:00
enami d63316f97f Fix typo in previous commit. 2010-11-08 09:43:27 +00:00