Commit Graph

213779 Commits

Author SHA1 Message Date
tsutsui
19c63c3512 Fix device_t/softc split botches that could be fatal. From
Chuck Silvers' patch posted current-users and tech-kern:
http://mail-index.netbsd.org/current-users/2012/10/09/msg021233.html

Should be pulled up to netbsd-6.
2012-10-10 16:51:50 +00:00
skrll
d862e30d4d Remove the (never used) struct device from ssio_softc.
From chuq.
2012-10-10 16:51:10 +00:00
apb
aec5d483cb Refer to the list of mirrors at http://www.NetBSD.org/mirrors
in "Quick install notes for the impatient".  Previously it
said "Check the NetBSD website for details" without giving an URL.
2012-10-10 16:08:14 +00:00
skrll
f756908307 Use device_xname.
From chuq
2012-10-10 15:46:33 +00:00
pooka
edf42f21f8 Implement the writewatchfile routines for a Linux hypervisor. As a
result, the shmif network driver now works when hosted on Linux.
2012-10-10 11:15:57 +00:00
dholland
03f1fbd862 In layer_lookup(), clear *vpp before returning EROFS, as otherwise a
stale value can be returned and this causes a diagnostic panic in
namei.

In relookup(), clear *vpp before calling VOP_LOOKUP, as is done in
lookup_once(), as an additional precautionary measure.

(in theory both of these fixes are not required together)

Should fix PR 47040.
2012-10-10 06:55:25 +00:00
christos
91f0e20769 Split out modsi3 and umodsi3 from the divsi3 file. This is so that
we don't get re-defined symbols in libc from libgcc in static linking.
Example: cc -pthread -static main-calls-pthread-create.c
2012-10-10 02:16:54 +00:00
christos
58e206816c add split files. 2012-10-10 02:15:31 +00:00
christos
09560d8fbc add split files 2012-10-10 02:15:03 +00:00
christos
5d98f59f2d Apply P4:
3383.  [security]      A certain combination of records in the RBT could
                       cause named to hang while populating the additional
                       section of a response. [RT #31090]
2012-10-09 22:55:39 +00:00
macallan
1876b99eba add acceleration support, for Sun XVR-1200 and compatible only so far
adapted from OpenBSD with various improvements, no support for Expert3D has
been added
this is still suboptimal since we have to sync the engine all the time but
it's an improvement over software-only operation
2012-10-09 21:59:19 +00:00
christos
bf9565ac33 remove wrong ntohl (from Aran Clauson) 2012-10-09 21:32:54 +00:00
jdc
8803ac043c Driver for pckbc at ebus, as found on Tadpole SPARCle.
Largely based on sparc's pckbc_js.c.
2012-10-09 20:55:04 +00:00
pooka
bea63a3d10 Gather some statistics about biglock usage. 2012-10-09 13:35:50 +00:00
msaitoh
95081ff12e Use PRIxPADDR to print a DMA address. This fix a problem that if_wm.c
can't compile with WM_DEBUG on non-64bit platforms.
2012-10-09 10:25:44 +00:00
msaitoh
1ebeab278c Add {INET,TCP,UDP}_CSUM_COUNTERS and LOCKDEBUG 2012-10-09 08:57:36 +00:00
dholland
68bcc97b05 regen 2012-10-08 23:44:09 +00:00
dholland
4fc6b20089 Add namei-level support for openat() and friends. The way you do it is
by calling NDAT(&nd, dirvp) after NDINIT().

Right now the implementation is vile and unspeakable to avoid changing
the kernel ABI; this way we can get openat() and friends into 6.1. I
will rectify the mess and bump the kernel once things are working.
2012-10-08 23:43:33 +00:00
dholland
eee667d033 Tidy up namei internals to allow openat() and friends without getting
tangled in nfsd's special cases.
2012-10-08 23:41:39 +00:00
alnsn
1063d31c93 Fix compilation when DIAGNOSTIC is defined. 2012-10-08 22:39:15 +00:00
matt
97dbcdbab4 Initialize the workqueue to use IPL_NET for its mutex.
Prefer softints if the current lwp is the idle lwp.
2012-10-08 20:54:10 +00:00
pooka
e30ea15ccf put all kern socket sysctls in the same place 2012-10-08 19:20:45 +00:00
njoly
ba856526e3 Remove a tab character in non-literal context.
While here, replace all sp macros with Pp.
2012-10-08 18:20:34 +00:00
njoly
17568cd1bf Kill some extra spaces in function arguments. 2012-10-08 18:15:09 +00:00
njoly
aa8d6d6d73 Function argument Fa macro expects its name on the same line. 2012-10-08 18:08:40 +00:00
pooka
6bc4679626 call pthread_setname_np() on Linux too. 2012-10-08 18:02:04 +00:00
njoly
87541adfff In columnated list, adjust address column size to match reality and
remove extra Ta macro in first It line.
While here kill a superfuous Pp.
2012-10-08 17:56:59 +00:00
kiyohara
6a6aa29e14 Left and Right LEDs on in end of cpu_reboot(). 2012-10-08 15:34:58 +00:00
christos
4f166942a1 It is Sprite, not Sprint; pointed out by Todd Miller. 2012-10-08 15:09:48 +00:00
christos
5d936c3691 EXP-TLS server: Fix TLS Message Length validation:
http://w1.fi/gitweb/gitweb.cgi?p=hostap.git;a=commitdiff;\
    h=586c446e0ff42ae00315b014924ec669023bd8de

http://www.pre-cert.de/advisories/PRE-SA-2012-07.txt
2012-10-08 14:03:09 +00:00
jkoshy
e64c806987 Style fix: keep lists of names sorted.
Reviewed by:	christos
2012-10-08 01:45:11 +00:00
christos
660f0e54bb mention new wpa code. 2012-10-08 00:12:57 +00:00
christos
b8fa3219d0 merge v1.0 2012-10-08 00:03:20 +00:00
christos
111b9fd8ca from hostap.epitest.fi 2012-10-07 23:46:57 +00:00
matt
320d4922ba If the workqueue is using a prio less than PRI_KERNEL, make sure KTHREAD_TS
is used when creating the kthread.
2012-10-07 22:16:21 +00:00
matt
aea18867f7 Don't give a boost to system threads. 2012-10-07 20:43:18 +00:00
matt
f223b21ed0 Don't just rely on softints for handling rx traffic since that can starve
the system and eventually cause a watchdog timer to reset.  Instead use
softints for "small" number of packets and use a workqueue thread for large
numbers.  This allows receive processing to be handling at normal priorities
and won't starve out other parts of the system.
2012-10-07 20:14:08 +00:00
sjg
0afab3de7c Treat empty commands same as jobs mode 2012-10-07 19:17:31 +00:00
matt
32aa62f8d7 add call to bcm53xx_dma_bootstrap. 2012-10-07 19:17:24 +00:00
matt
755e0eeddc Add bcm53xx_dma_bootstrap which, if there is more than 256MB of RAM, add two
ranges to the default dma tag.  This has the side effect of making most initial
bus_dmamem_allocs trying to get memory from the first 256MB which is coherent
on this platform.
2012-10-07 19:16:39 +00:00
matt
2e609cddbc Fix range ops to properly flush. 2012-10-07 18:47:07 +00:00
christos
0b112faa75 disable encoding of globbing characters for now. 2012-10-07 18:40:49 +00:00
gson
2a906abe79 Add Lava Computers SSERIAL-PCI to the list of supported devices. 2012-10-07 17:00:20 +00:00
rmind
f5f72a013e npf_tcp_inwindow: inspect the sequence numbers even if the packet contains no
data, fixing up only the RST to the initial SYN.  This makes off-path attacks
more difficult.  For the reference, see "Reflection Scan: an Off-Path Attack
on TCP" by Jan Wrobel.
2012-10-06 23:50:17 +00:00
rmind
1fb2724b4f npf_packet_handler: drop the packet if IPv6 reassembly did not work. 2012-10-06 23:38:20 +00:00
christos
f2a172afbf Avoid crash dereferencing a NULL fp in fd_affix() in unp_externalize
caused by the sequence of passing two fd's with two sendmsg()'s,
then doing a read() and a recvmsg(). The read() calls dom_dispose()
which discards both messages in the mbuf, and sets the fp's in the
array to NULL. Linux dequeues only one message per read() so the
second recvmsg() gets the fd from the second message.  This fix
just avoids the NULL pointer de-reference, making the second
recvmsg() to fail. It is dubious to pass fd's with stream sockets
and expect mixing read() and recvmsg() to work. Plus processing
one control message per read() changes the current semantics and
should be examined before applied. In addition there is a race between
dom_externalize() and dom_dispose(): what happens in a multi-threaded
network stack when one thread disposes where the other externalizes
the same array?

NB: Pullup to 6.
2012-10-06 22:58:08 +00:00
matt
b40d79bcfb Add a ptree_mask_node_p to determine if an item is a mask node, and what
its non-mask length is.
2012-10-06 22:15:09 +00:00
christos
9a046d1f16 old-style-definitions and no-format-zero-length are invalid for c++ 2012-10-06 20:54:58 +00:00
christos
b64afd2168 if 0 is used for the dimensions, compute the maximum size. 2012-10-06 19:39:51 +00:00
alnsn
0b0274e287 Adapt code to compile with -D_KERNEL. 2012-10-06 19:23:01 +00:00