Commit Graph

207210 Commits

Author SHA1 Message Date
jym
35de13d139 Whitespace fixes. 2011-11-28 20:57:51 +00:00
tls
2a139c3401 Add cprng(9) manual page, remove arc4random(9) manual page 2011-11-28 20:19:25 +00:00
bouyer
8f2dc14263 There is problem with 82576 chips (and probably 82575 too) with hardware vlan
tagging: some packets are sent untagged on the wire.
Follow OpenBSD and disable hardware vlan tagging for these chips
(I couldn't find a hint in other open-source drivers at what could be
wrong ...)
2011-11-28 18:21:46 +00:00
tron
bb4b748000 Don't build postscreen(8) if "MKCRYPTO" is set to "no". It cannot be
built without TLS support, at least not without major surgery.
I've only tested this by building with "MKCRYPTO" set to "yes"
because the build fails much ealier otherwise.

Problem reported by Nick Hudson in private e-mail.
2011-11-28 16:22:14 +00:00
tls
63b031c3bb Fix one last dangling use of arc4randbytes(). 2011-11-28 15:22:41 +00:00
yamt
ef9d35249e comments 2011-11-28 14:06:59 +00:00
ahoka
f97a7e495e cleanup, some style and remove leftover code 2011-11-28 12:50:07 +00:00
joerg
93a30e6d6f Kill a bunch of manual __attribute__ usages and replace them with the
equivalent sys/cdefs.h invocation.
2011-11-28 12:44:18 +00:00
jmcneill
090512c6e6 PR# kern/45664: audio panic at detach
Pass the size of the structure to kmem_free, not the size of the DMA
buffer.
2011-11-28 11:46:54 +00:00
wiz
8956200af2 Remove unused header. From Henning Petersen in PR 45658. 2011-11-28 10:10:10 +00:00
wiz
8ff9859919 New sentence, new line. Use more markup. Bump date for previous. 2011-11-28 09:38:45 +00:00
tls
f27d6532f5 Remove arc4random() and arc4randbytes() from the kernel API. Replace
arc4random() hacks in rump with stubs that call the host arc4random() to
get numbers that are hopefully actually random (arc4random() keyed with
stack junk is not).  This should fix some of the currently failing anita
tests -- we should no longer generate duplicate "random" MAC addresses in
the test environment.
2011-11-28 08:05:05 +00:00
tls
0bbf9b7ae6 Change to rnd.h missed in previous commit. 2011-11-28 08:00:48 +00:00
tls
a031ce7187 Add support for passing saved entropy (random seed file) to the kernel
from the bootloader.  This can fix the problem of poor quality keys
for other kernel modules which call arc4random() early in kernel startup
(NFS startup, in particular, causes this).

We continue to rely on the etc/rc.d/random_seed script to save entropy
to the seed file at shutdown and erase the seed file at startup.

Boot loader support implemented only for i386 and amd64 ports for now but
it should be easy for other ports to do the same or similar.
2011-11-28 07:56:53 +00:00
agc
1dafd61846 get rid of an old merge conflict which managed to creep through 2011-11-28 06:36:14 +00:00
sekiya
c4f5060af2 Note kern-SHEEVAPLUG. 2011-11-28 06:16:40 +00:00
sekiya
71d1bc8567 Enable SHEEVAPLUG for build. 2011-11-28 06:15:48 +00:00
manu
55557eb9ac - Add missing ENOENT or ESTALL when accessing deleted node
- Fix a warning, fix style (80 chars for a line)
2011-11-28 05:33:33 +00:00
jnemeth
2f91d3f4da Move "unloaded module" debug message higher as it appears that name
sometimes points to memory that gets freed causing the system to crash.
2011-11-28 03:13:31 +00:00
jmcneill
cb9ec697cf SVN r220966 from FreeBSD:
Fix a corner-case of interrupt handling which resulted in potentially
spurious (and fatal) interrupt errors.
2011-11-28 00:30:17 +00:00
reinoud
c3c6935ba6 Big patch that changes the signal stack usage of urkel significantly.
Formerly, all signals came on the signal stack and the two important ones were
then forwared to either the system call or the pagefault handler. This worked
fine but the signal stack remains that, a stack. When we go multi-process this
stack gets corrupted and out-of-order with all kind of nastyness since a
userland process switch can occure when a system call is called or when a
process gets a page fault.

The new scheme only uses the signal stack as a jumpboard. It swaps states and
then returns from the signal, clearing the stack but instead of returning to
the code it now jumpt to the handler and that handler then returns to the code
when its finished.
2011-11-27 21:38:17 +00:00
reinoud
47228a07fe Create two panics that signal inconsistent states. 2011-11-27 21:33:19 +00:00
reinoud
a5180ff2ca Add some config settings as default and make a note that DDB is far from
working yet :-/
2011-11-27 21:31:48 +00:00
reinoud
ba6f3f2e03 Add thunk_sigprocmask() 2011-11-27 21:23:46 +00:00
reinoud
5b805c1914 Use AIO by default 2011-11-27 21:22:28 +00:00
reinoud
d854fd8989 Fix in-code declaration of the sigaction structure. 2011-11-27 20:57:28 +00:00
reinoud
42150e60ec Implement the choice between using AIO or not. 2011-11-27 20:08:23 +00:00
reinoud
926a0f2ea5 Compile in syscall name table so urkel debugging code can print out the names
of the system calls so its more clear where it strands.`
2011-11-27 20:06:26 +00:00
jakllsch
823df23091 more whitespace and comment spelling fixes 2011-11-27 18:17:08 +00:00
jakllsch
fcc28c8d61 whitespace consistency adjustment 2011-11-27 15:28:26 +00:00
mbalmer
b246c3a822 Add the Avance Logic ALC203 code, found on e.g. alix3d3 boards. 2011-11-27 15:08:04 +00:00
jakllsch
3a65f68183 We need a cv_destroy() here too. Fixes LOCKDEBUG panic on interface detachment. 2011-11-27 14:55:57 +00:00
rmind
398c78517c G/C unnecessary IPL_HARDUSB 2011-11-27 14:36:20 +00:00
dholland
4a00a690f3 Use __dead, not attribute noreturn. 2011-11-27 13:24:32 +00:00
dholland
dc46435fc4 The proper type for a variable that can be either a uid or gid is id_t,
not uint32_t.
2011-11-27 13:23:50 +00:00
martin
9d4df64069 No <stdbool.h> if _STANDALONE 2011-11-27 11:07:21 +00:00
mbalmer
da918447be Typo. 2011-11-27 10:53:07 +00:00
martin
c90e2e5e8e If not kernel, include <stdbool.h> 2011-11-27 10:31:12 +00:00
martin
4fc4feee2e New Rawrite32 release is out. 2011-11-27 09:24:34 +00:00
skrll
052320efd5 Typo 2011-11-27 09:07:11 +00:00
isaki
94c14e52e6 Note powsw(4) for x68k. 2011-11-27 09:04:37 +00:00
isaki
9289c438ac Add powsw(4) for x68k power switch. It substitutes for a part about
power switch handler of pow(4) deleted before.
Benefits than pow(4):
- separate a front switch (= powsw0) and an EXPWON line (= powsw1)
  completely. Only powsw0 is enabled in GENERIC by default.
- prevent chattering in some hardware individuals.
  thank you for a report and a test: Yasushi Oshima and Y.Sugahara.
2011-11-27 09:00:32 +00:00
mrg
d1a1bb2cc0 also apply the previous spin mutex hack to uaudio_trigger_input() 2011-11-27 07:36:54 +00:00
mrg
69c41efb88 drop sc_intr_lock when calling into uaudio_chan_ptransfer(). 2011-11-27 04:32:41 +00:00
mrg
1ca7f87732 re-write most of the debug messages using c99 varaidic macros and always
include the __func__ and pid:lid.  remove the handful of other __func__
uses and the 100+ other hard coded function name uses.
2011-11-27 04:10:38 +00:00
jakllsch
a4206480fa Make KERNEL_LOCKED_P() work for !defined(MULTIPROCESSOR) && !defined(_MODULE). 2011-11-27 03:52:38 +00:00
jmcneill
a234ff6e84 assert kernel_lock in usbd_transfer, usb_transfer_complete,
and usb_insert_transfer
2011-11-27 03:25:00 +00:00
jmcneill
4580d72277 add KERNEL_LOCKED_P() macro 2011-11-27 03:24:00 +00:00
tsutsui
49921f182e Set WARNS?=2. 2011-11-27 00:53:52 +00:00
tsutsui
997e5ef587 Remove no longer necessary -Wno-error and set WARNS?=2 . 2011-11-27 00:50:37 +00:00