summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2011-08-08If two carp interfaces on the same physical interface had addressesAlexander Bluhm
with the same prefix, neighbor discovery did not work. When comparing two carp interfaces in in6_ifpprefix(), assume they share the prefix if they have the same parent. sure deraadt@
2011-08-08myx requires the driver pad short ethernet frames to 60 bytes byDavid Gwynne
adding a descriptor pointing at zeroed bytes onto the end of transmit chains. i was accounting for this extra descriptor when i was completing the chain, but not when i was setting this up. this meant the number of free descriptors kept growing until it overflowed. at this point the check for space in the ring failed and packets no longer flowed. this counts the pad descriptor in the tx chain setup too. ok deraadt@
2011-08-07A few more fixes to the lazy FPU context switching code.Mark Kettenis
2011-08-07Avoid clobbering system call arguments upon system call entry.Mark Kettenis
2011-08-07Enable ssio(4) and com(4).Mark Kettenis
2011-08-07Bring over ssio(4) from hppa for proper serial console support.Mark Kettenis
2011-08-07Several fixes for the IPV6_PKTINFO handling with sendmsg(2)Mike Belopuhov
Verify that the address in the in6_pktinfo structure included in the control message is unicast and configured on the local host. Additional checks prevent from using non-routable addresses and inactive interfaces. Embed the scope identifier into the link local addresses as required by the stack. Do not force users to provide valid interface index in the ipi6_ifindex but look it up in place if needed. ok bluhm, waived by deraadt for the release.
2011-08-07Recognize 64-bit store instructions.Mark Kettenis
2011-08-07Make sure interrupts are properly masked at the level they're established at.Mark Kettenis
The old code left an interrupt enabled at that level, making spl-protection non functional. Remove __packed from struct hppa_iv. Instead re-order the members to pack things efficient on a 64-bit host. Remove explicit padding.
2011-08-07When checking wether a prefix belongs to an interface, also allowAlexander Bluhm
the route to be at the corresponding carp or physical interface or at an interface belonging to a common bridge. This fixes IPv6 neighbor discovery with carp. bug report and tested by Florian Fuessl put it in deraadt@
2011-08-04Move the check that ::1 is not allowed from the wire before pf_test().Alexander Bluhm
Otherwise pf could reroute or redirect such a packet. KAME moved it in rev 1.189 of their ip6_input.c. This also allows rdr or nat to ::1 in pf. bug report and test camield@ ok mikeb@; go for it deraadt@
2011-08-04Make this compile with gcc4. Same fix as for hppa.Mark Kettenis
2011-08-04In `string' state, accept bell (^G) as an end of sequence in addition toMiod Vallat
`ESC \', as supported by xterm; some third-party software such as ncmpcpp rely upon this. Noticed by dcoppa@, based on a draft diff by nicm@; ok deraadt@
2011-08-03back out pedro diff for VOP_FSYNC of softdep when limit is reached.Bob Beck
The basic analysys is correct, however, the problem in this case is that by forcing softdept to synchornously flush everything across *all* softdep filesystems we cause a huge performance problem when we take a 3 second pause and slam everything synchronously. the right way to fix this is to fix the speedup_softdep code, not make the filesystem go synchronous when we hit a limit - if we are doing that we may as well not run softdep it will be faster. ok deraadt@
2011-08-03move to releaseTheo de Raadt
2011-08-03As usual, turn off POOL_DEBUG for the release. Note that POOL_DEBUG isTheo de Raadt
not the same as it was in 4.9 or earlier. In either case you can turn it on again using sysctl kern.pool_debug=1 -- but if POOL_DEBUG is not enabled you only get a subset of the strict checks. ok kettenis miod beck
2011-08-03Fix linux compat breakage: can't copyin() from kernel-space, soPhilip Guenthe
move that out of i386_set_threadbase(), and have clone() pass NULL to fork1() for the child func argument so that it gets the child proc pointer. Report and verification by pirofti@, heavy lifting by matthew@
2011-08-03Remove redundant prototype for pf_socket_lookup().Marco Pfatschbacher
It's already in pfvar.h OK mcbride@
2011-08-03Alexander Polakov found a use of an uninitialized pointer in the scsiDavid Gwynne
unmap handling.
2011-08-03someone (*cough*henning*cough*) made pf_state.state_flags a u_int16_tDavid Gwynne
without growing it in pfsync_state too. to keep the wire format compat this uses some of the pad bytes to send all the state flags on the wire as well as maintaining the old state_flags field. after 5.0 we'll deprecate the original field and only use the new one. discussed with mcbride and deraadt and based on a diff from deraadt. tested against an "old" pfsync locally. ok mcbride@ henning@ deraadt@
2011-08-02Replace one byte of padding with sa_family_t af in pfsync_state_key;Ryan Thomas McBride
Reject states with pfsync_state->af == 0 in pfsync_state_import(), in preparation for states which specify an address family in each state key instead (change will take place post-5.0). ok dlg henning mikeb
2011-08-02Add softraid (and option CRYPTO as pointed out by todd).Matthieu Herrb
Tested on my thecus. ok miod@, todd@, deraadt@.
2011-08-02disable mmuagp due to reports it breaks some machines.Theo de Raadt
oga has disappeared
2011-08-01Synch with hppa. Seems to fix at least one of the remaining pmap bugs.Mark Kettenis
2011-07-31Add support for the Ricoh 5U823 SD/MMC controller found on the x220.Mark Kettenis
ok deraadt@, phessler@
2011-07-31regenMark Kettenis
2011-07-31Fix typo in Ricoh 5U823 SD/MMC entry.Mark Kettenis
ok deraadt@
2011-07-30Send SIGBUS instead of SIGSEGV for unaligned access which is not emulatedTheo de Raadt
ok kettenis
2011-07-30When using rthreads, the thread that calls exit will be the last one toJoel Sing
actually exit. This means that the main thread will exit and free the process group, which results in the thread dereferencing a null pointer when it is woken back up. Avoid this by checking that the ps_pgrp is not null before deferefencing it. Also expand the ps_session macro to avoid hiding the dereference. ok tedu@
2011-07-29Make sure we use the right tbl/dyn pointer to check the pfrkt_refcntcost;Ryan Thomas McBride
improved debugging for error cases inside the weighted round-robin loop. original diff from claudio, ok henning
2011-07-28Kill integer from pointer warning when compiling with MALLOC_DEBUG.Ryan Thomas McBride
ok kettenis
2011-07-28fix set skip group matching: don't match partial strings, i. e. 'set skip onHenning Brauer
lo' must not match a group 'local'. diff from sthen who is not around for a few days, ok me and mpf. I can't find the mail of the guy who initially ran into this problem, sorry for that, thanks for reporting!
2011-07-27Add support for weighted round-robin in load balancing pools and tables.Ryan Thomas McBride
Diff from zinke@ with a some minor cleanup. ok henning claudio deraadt
2011-07-26Accept neighbor discovery packets from source IPv6 addresses forAlexander Bluhm
which we have a cloning or cloned route. The old check was based on configured interface addresses, now we use a route lookup. This allows us to use prefixes for the local network that ospf6d has added. ok claudio@
2011-07-26Calling a detach function from an attach function is no longer legal (Theo de Raadt
see a recent subr_autoconf.c commit). To resolve this problem, mark the other attachment dead, and clean it up when the first servicing timeout gets run. ok kettenis
2011-07-26do not describe where DELAY comes from; pointed out by austin; ok jsgTheo de Raadt
2011-07-26No need to byte-swap d_checksum just before setting it to zero.Kenneth R Westerback
ok matthew@
2011-07-26__arm32__ -> __arm__, since our new compiler isn't defining theMartynas Venckus
former anymore. OK miod@.
2011-07-25Disable MSI for now; something is still not quite right on UltrSPARC T2Mark Kettenis
systems.
2011-07-25two more syscall functions that should have returned int, not pid_tTed Unangst
2011-07-25Make sure vfsp is not used uninitialized in the mount -o update case;Miod Vallat
ok krw@ matthew@
2011-07-25sys_wait4 properly returns int. ok deraadtTed Unangst
2011-07-24OS fingerprinting can only be done on rules that explicitly specify TCPRyan Thomas McBride
now, put it in the IPPROTO_TCP case of the pf_test_rule() inner loop. ok henning sthen
2011-07-23Replace the IPv6 header walking loop in pf_test_state_icmp() withAlexander Bluhm
the common function pf_walk_header6(). For that, pf_walk_header6() can now extract both the information wether it is a fragment and the final protocol if it is the first fragment. This allows to match the icmp6 too big packet of a first fragment to the reassembled packet's state. This is neccesary if a refragmented fragment is to big for the Path-MTU. Note that pd.proto contains the real protocol number for the first fragment and IPPROTO_FRAGMENT for later fragments. pd.virtual_protocol is set to PF_VPROTO_FRAGMENT for all fragments. ok mcbride@
2011-07-22Fix PMAPDEBUG compileMiod Vallat
2011-07-22use ifmedia_delete_instance() when destroying a vetherTheo de Raadt
from Martin Pelikan
2011-07-22Sync 'block return' behaviour for ICMP packets with our IP stack:Ryan Thomas McBride
Rather than silently dropping ALL icmp packets, return icmp/icmp6 error for 'informational' message types (but continue dropping ICMP errors unconditionally). ok markus sthen henning
2011-07-22fix typos, martin pelikanHenning Brauer
2011-07-22Add the Huawei E181.David Coppa
From Chris Turner <c.turner(at)199technologies(dot)com> OK sthen@
2011-07-22Add the Huawei E181.David Coppa
From Chris Turner <c.turner(at)199technologies(dot)com> OK sthen@