Commit Graph

165193 Commits

Author SHA1 Message Date
joerg 08acf5f65c Prepare for timecounter support on amiga. 2007-12-28 20:49:49 +00:00
joerg 153e6ec350 Be friendly to timecounter enabled architectures. 2007-12-28 20:18:45 +00:00
riz 42a4e6ef13 As discussed on tech-userlevel, add NetBSD GPT partition types for
swap, ffs, lfs, raidframe, ccd and cgd.  gpt(8) now defaults to
NetBSD ffs if no type is given, but previous FreeBSD types are
still recognized in the DKWEDGE_AUTODISCOVER code.
2007-12-28 19:53:09 +00:00
christos 716fde8fa0 simplify; mapbase == vaddrbase from the PaX author. 2007-12-28 19:36:21 +00:00
dholland 8e861287d3 Still more stuff: AST, PAE, RAS.
(I guess this is what happens when I catch up on old mail)
2007-12-28 19:27:06 +00:00
ad d6a5f3c8fa Pull up 1.71.8.1. 2007-12-28 18:22:16 +00:00
ad 22f711b877 Remove reference to VI_XWANT - it will be gone soon. 2007-12-28 18:08:39 +00:00
pooka 844fb47f15 The leprechaun is dead, update interfaces. 2007-12-28 18:05:22 +00:00
reinoud a661982b31 Use uvm_vnp_setwritesize() on file extending to instruct UVM to NOT read-in
the newly added space first. This significantly speeds up write speed for
msdosfs and making it at par with ffs wich already had this patched.

Speed increase measured on my IDE disc from 2Mb/sec to 32 Mb/sec
2007-12-28 17:46:48 +00:00
elad 0f25f24ed8 Provide 8 more bits of stack randomization, from the PaX author.
While here, don't make too much use of one random value, and call
arc4random() directly. Allows for the removal of 'ep_random' from the
exec_package.

Prompted by and okay christos@.
2007-12-28 17:14:50 +00:00
dholland ca5bc82dc2 Add some more stuff:
ADB, AFS, BAR, HA, OS, RPC, TCB, LOC, KLOC, LSI, VLSI, VA, PA
ICE as in-circuit emulator
KVM as kernel virtual memory
2007-12-28 15:19:14 +00:00
dholland 1061c9e847 add ASLR, PIC, PIE 2007-12-28 14:50:40 +00:00
wiz ef266ed897 Wordo fix, noted by jmc@openbsd. 2007-12-28 14:32:50 +00:00
joerg 02d07b4e9d Remove delaytab and just compute the reminder directly. This requires
two muls and a shift, which needs at most 2ms on a 25MHz i386 and should
end up as fast as delay(1) was before due to using a reminder of 2.
Discussed with ad@.
2007-12-28 14:05:22 +00:00
yamt ac257c9a5b sprinkle more kmem_poison_check. 2007-12-28 13:49:25 +00:00
ad afb5e69ead Pull up 1.87.2.8. 2007-12-28 13:11:16 +00:00
hannken bdc290470e maxfiles is now an u_int. 2007-12-28 10:00:18 +00:00
jmmv 92f6ea962c Properly capture the output of the SSH server. Its -e flag is supposed to
be used alongside -D, but as this was not documented I thought it was a bug
and "fixed" -e's behavior locally (so I got the correct output before, but
nobody else).

Also, fix a race condition that could cause the SSH server to not be killed
if the pid file was not written before the kill, which might happen on very
fast machines.  There still may be a problem when trying to do the connection
if the server has not yet finished initialization...
2007-12-28 08:57:42 +00:00
dogcow 0a9401426e XEN only gets defined in opt_xen.h; move the ifndef check after the include. 2007-12-28 07:04:54 +00:00
garbled 0abe9cf449 Add one more convenience function to rtas, rtas_has_func, and add a
global int machine_has_rtas that can be used to decide if a machine has
rtas functionality or not.  Take a crack at power off support for the
pegasos, which doesn't work right, probably due to a firmware bug.
2007-12-28 05:12:41 +00:00
garbled f217f96524 Take advantage of the new rtas_call function and get rid of the uneeded
rtas_reboot() function.  Still reboots even.
2007-12-28 04:47:37 +00:00
garbled ae7424d959 Rewrite the rtas_call command, to allow ports to call rtas directly from
outside rtas.c, by simply issuing the right token.  This makes using the
rtas functionality much simpler.
2007-12-28 04:45:57 +00:00
dholland 1bbd65fe3f Extend size of entry buffer for partition type ids from 4 to 5, to allow
room for hex values. Fixes (my own) PR 34791, now that I've had a chance
to test it.
Reviewed-by: martin
2007-12-28 00:48:43 +00:00
martin 93310937f3 Avoid munmap(-1, ...) - doesn't make much sense. 2007-12-28 00:39:32 +00:00
dholland 9784aa9aba Regen. 2007-12-28 00:35:23 +00:00
dholland 45274b234f typo fix: brige -> bridge 2007-12-28 00:34:00 +00:00
dholland e94a5bc9f9 Comprehensive (or at least extensive) string handling cleanup for rogue.
This patch dates (mostly) back to 2002; the critical parts of it were
handled back then by security-officer. As far as I know, there's
nothing exploitable fixed herein.

A slightly earlier version of this patch was reviewed by Christian Biere
when I filed it as PR 34750.
2007-12-27 23:52:59 +00:00
ad 0ed5b8dd38 sched_pstats: need proclist_mutex to send signals. 2007-12-27 22:13:19 +00:00
joerg 53c1ce668c opt_physmem.h only exists for !Xen. 2007-12-27 21:31:35 +00:00
pooka 38a05cc07d Flesh this out a bit more. Unfortunately it's still unfinished,
and I don't know when I'll get a chance to finish it.
2007-12-27 18:50:42 +00:00
garbled 47b06f10ce change some printf's to aprint_normal. 2007-12-27 17:49:36 +00:00
garbled 28d432f9cc Add an infinate loop after the reboot call so we don't somehow drop past
it if it fails.
2007-12-27 17:25:02 +00:00
garbled 86909579bf Make the reboot function work when in single/multi user mode. I have no
idea why this makes it work, but apparently it needs to return status,
and if it doesn't, it won't reboot.  (unless you call it at the askroot
prompt, then it worked fine).  *boggle*.
2007-12-27 17:23:54 +00:00
christos c9a64311d7 make this compile again. 2007-12-27 17:18:11 +00:00
martin 6cc2e0f273 Remove now superflous (and wrong) extern declaration for maxfiles. 2007-12-27 17:05:28 +00:00
joerg df7753af9c Fix typo. 2007-12-27 16:50:43 +00:00
jmcneill bfa597bd9c Don't call pmf_check_system_drivers on shutdown. 2007-12-27 16:03:10 +00:00
ad fb0185d80e pipe_direct_write: kill a mutex_exit() that escaped. 2007-12-27 15:25:22 +00:00
elad d36f83120b PAX_ASLR_DELTA_PROG_LEN -> PAX_ASLR_DELTA_EXEC_LEN, and put it in pax.h.
Export randomized bits # for stack and exec base too via sysctl.

okay christos@.
2007-12-27 15:21:52 +00:00
elad 72be971020 Mention security(8) for ASLR, requested by hubertf@. 2007-12-27 15:19:05 +00:00
ws 92c079bdac Change cacheline fixup for 3114's second set of channels, too.
Fix provided by Masanori Kanaoka in PR 37519.
Fixed differently to avoid code duplication.
2007-12-27 15:14:23 +00:00
elad cb6146bcbd Call pax_init() for PAX_ASLR. 2007-12-27 13:34:43 +00:00
wiz ac14332299 Fix argument confusion, noted by drochner. 2007-12-27 12:59:56 +00:00
wiz 665cd277c5 Comment out xref to makemap(8), which does not exist. 2007-12-27 12:56:49 +00:00
rjs fa579d4ec4 Change to new softint API. 2007-12-27 12:29:16 +00:00
pooka cb36cc5493 Uncommit accidentally committed PUFFS_FLAG_OPDUMP.
overextensive library verbosity noticed by riz
2007-12-27 11:39:06 +00:00
garbled cbd61cd9a6 Enable l2 cache on the pegasos 2007-12-27 05:41:51 +00:00
garbled 07cb4134b6 Lots and lots of fixes to the cpu identification code, and dealing with
L2 and L3 cache initialization.  Mostly to get the L2 enabled on the
pegasos, but since I had the manual, I fixed a few other things I saw
while I was there.
2007-12-27 05:40:49 +00:00
xtraeme b7d6181694 Fixup some comments. 2007-12-27 01:23:55 +00:00
xtraeme b9fa8c12a2 Add configuration properties for the Gigabyte P35C-DS3R, that uses
an IT8718F Super I/O.
2007-12-27 00:52:40 +00:00