Commit Graph

213964 Commits

Author SHA1 Message Date
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
alnsn
1f35320d1c Add import notes. 2012-10-06 18:29:44 +00:00
alnsn
77d6837703 Initial import of sljit @ r175.
svn co https://sljit.svn.sourceforge.net/svnroot/sljit@r175 dist
2012-10-06 18:24:18 +00:00
wiz
b1203a9851 Make mandb path configurable. makemandb (and related tools) use
the path from the _mandb variable from man.conf now.

Set _mandb in man.conf to same value as was used before.

From Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>.
2012-10-06 15:33:59 +00:00
macallan
80e004118d don't crash when we're not the console 2012-10-06 14:41:40 +00:00
christos
a6caf9ace8 regen 2012-10-06 14:38:06 +00:00
christos
ae92eb2a24 recognize apple bluetooth adapter in MacBook Air. (Ryo Onodera) 2012-10-06 14:37:41 +00:00
joerg
5af64d5574 PR 46978: ICE on spilling MMX registers
GCC/i386 has code to lower the required alignment for long long to 32bit
as the CPU doesn't need more. It is also using the same mode for setting
up the MMX registers and in turn, the stack slots reserved for spilling
require 32bit alignment. The actual vector types used keep the original
64bit alignment, so when the compiler wants to spill a MMX register, it
hits an assertion. Fix this by using the vector type as raw type for MMX
registers.
2012-10-06 14:10:46 +00:00
khorben
179e907bea Regenerated with the proper RCS Id (thanks Bernd for noticing) 2012-10-06 12:05:58 +00:00
wiz
4d8d2d3c45 Revert my previous commit, I misunderstood the intention.
Noted by njoly.
2012-10-06 09:11:34 +00:00
jnemeth
ef04cc2567 Add some text to "Common Problems" about Open Firmware 3.x not
setting up the console and how to work around the problem.  This
is an initial stab at solving PR/35348 for NetBSD 6.0.  After 6.0
is released, a better solution can be done for 6.1.
2012-10-06 05:28:46 +00:00
matt
0f627165e8 Fix a cut&paste error with supersections. 2012-10-06 02:58:39 +00:00
matt
b3d739f2eb Always set IC for each receive descriptor.
Make sure to produce rx descriptors even if you stop at the end of the ring.
2012-10-06 01:30:46 +00:00
khorben
05c0e9d6d3 Added the device id for the Huawei EM770W 3G modem to u3g(4)
Confirmed to work on a WeTab

ok christos@
2012-10-05 22:04:56 +00:00
wiz
ff22935a2e Previous slightly more consistently. 2012-10-05 21:30:29 +00:00
wiz
624d8cd9d5 If you must use Pp with Ed, at least use it afterwards. 2012-10-05 21:28:38 +00:00