summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge 1.127 from OpenBSD, that closes a regression from 1.125 (mergedglebius2012-12-111-3/+6
| | | | | | | | | | as r242694): do better detection of when we have a better version of the tcp sequence windows than our peer. this resolves the last of the pfsync traffic storm issues ive been able to produce, and therefore makes it possible to do usable active-active statuful firewalls with pf.
* Cleanup more of the kassert_panic.alfred2012-12-111-9/+30
| | | | | fix compile warnings on !amd64 and NULL derefs that would happen if kassert_panic() would return.
* Fix WITNESS when INVARIANT_SUPPORT is defined.alfred2012-12-111-0/+1
| | | | | | This fixes tinderbox breakage from r244105. Pointed out by: adrian
* There's no need to use a TXQ pointer here; we specifically need theadrian2012-12-112-30/+14
| | | | | | hardware queue ID when queuing to EDMA descriptors. This is a small part of trying to reduce the size of ath_buf entries.
* Allow sysctl to filter boot and runtime tunables.alfred2012-12-112-6/+30
| | | | | | | | | | | Add the following flags to sysctl: -W - show only writable sysctls -T - show only tuneable sysctls This can be used to create a /var/run/sysctl.boot to compare set tunables versus booted tunables. Sponsored by: iXsystems
* Switch the hardwired WITNESS panics to kassert_panic.alfred2012-12-113-42/+58
| | | | | | | | | | | This is an ongoing effort to provide runtime debug information useful in the field that does not panic existing installations. This gives us the flexibility needed when shipping images to a potentially large audience with WITNESS enabled without worrying about formerly non-fatal LORs hurting a release. Sponsored by: iXsystems
* In parse():delphij2012-12-111-6/+5
| | | | | | | | - Only operate on copy, don't operate on source. - Eliminate home-rolled strsep(). - Constify the parameter. MFC after: 2 weeks
* back out half of 244098.alfred2012-12-111-1/+1
| | | | | | kern.bootfile needs to be rw for installkernel. Pointed out by: kib, flo
* Add CTLFLAG_STATS to sysctl flagsalfred2012-12-101-0/+1
| | | | | | | | | | | | In preparation for sysctl(8) growing the ability to only print out boot/run-time tunables we need a way to differentiate between RW sysctl nodes that tune a particular thing, or simply export a stat that we want to allow the sysadmin to reset to 0 (or some other value). To do so, we add the CTLFLAG_STATS which should be OR'd into the CTLFLAGs when exporting a "writable/resettable" statistic node via sysctl.
* Add constant missed in r244099alfred2012-12-101-0/+1
| | | | KDB entered due to KASSERT.
* allow KASSERT to enter KDB.alfred2012-12-101-0/+14
|
* make sysctls kern.{bootfile,conftxt} read-onlyalfred2012-12-101-10/+3
| | | | MFC after: 1 month
* Sync pf.os with OpenBSD:delphij2012-12-101-2/+10
| | | | | | | add a handful of linux signatures from p0fv2 and some other signatures from observation. MFC after: 2 weeks
* Do not yield while owning a mutex. The Giant reacquire in thekib2012-12-101-16/+18
| | | | | | | | | | | | | | | | | kern_yield() is problematic than. The owned mutex is the mount interlock, and it is in fact not needed to guarantee the stability of the mount list of active vnodes, so fix the the issue by only taking the mount interlock for MNT_REF and MNT_REL operations. While there, augment the unconditional yield by some amount of spinning [1]. Reported and tested by: pho Reviewed by: attilio Submitted by: attilio [1] MFC after: 3 days
* libc: Make various internal file descriptors close-on-exec.jilles2012-12-107-12/+12
| | | | These are obtained via fopen().
* Improve style(9) compliance of function declarations.brooks2012-12-101-4/+12
|
* Changes to resolve races in bpfread() and catchpacket() that, at worst,ghelmer2012-12-104-12/+38
| | | | | | | | | | | | cause kernel panics. Add a flag to the bpf descriptor to indicate whether the hold buffer is in use. In bpfread(), set the "hold buffer in use" flag before dropping the descriptor lock during the call to bpf_uiomove(). Everywhere else the hold buffer is used or changed, wait while the hold buffer is in use by bpfread(). Add a KASSERT in bpfread() after re-acquiring the descriptor lock to assist uncovering any additional hold buffer races.
* Add support for comma-separated values (whitespace-separated still supported).dteske2012-12-101-6/+6
| | | | | | PR: conf/121064 Submitted by: koitsu Reviewed by: jh
* NGM_NETFLOW_SHOW reports IPv6 flows as well.glebius2012-12-101-5/+1
| | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov gmail.com>
* Prevent long type overflow of realmem calculation on ILP32 by forcingandre2012-12-101-2/+2
| | | | | | | | calculation to be in quad_t space. Fix style issue with second parameter to qmin(). Reported by: alc Reviewed by: bde, alc
* Adjust the channel to correctly setup the HT flags when transitioningadrian2012-12-101-1/+3
| | | | | | | | | | | | | an IBSS VAP to RUN. An 11n IBSS was beaconing HTINFO/HTCAP IE's that didn't have any HT information setup (like the HT TX/RX MCS bitmask.) Tested: * AR9280, IBSS - both a statically setup channel and a scanned channel PR: kern/172955
* Add amd64-specific ddb command "show pte". The command displays thekib2012-12-101-0/+43
| | | | | | | | hierarchy of the page table entries which map the specified address. Reviewed by: alc (previous version) Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Do not ignore zero address, possibly returned by the vm_map_find()kib2012-12-101-14/+14
| | | | | | | | | | | | call. The function indicates a failure by the TRUE return value. To be extra safe, assert that the return value from the following vm_map_insert() indicates success. Fix style issues in the nearby lines, reformulate the comment. Reviewed by: alc (previous version) Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Give users a hint when their locate database is too small.eadler2012-12-101-1/+3
| | | | | | | Reviewed by: wblock, gcooper Reviewed by: "Lowell Gilbert" <lgfbsd@be-well.ilk.org> Approved by: cperciva (implicit) MFC after: 3 weeks
* Update the aggressive mode logic to also enable aggressive modeadrian2012-12-101-8/+50
| | | | | | | | | | | | parameters in IBSSes. IBSS was just being plainly ignored here even though aggressive mode was 'on'. This still doesn't fix the "why are the WME parameters reset upon interface down/up" issue. PR: kern/165969
* Undo the previous adhoc commit - doing the WME IE handling hereadrian2012-12-091-10/+0
| | | | | | | | | | | | | | | | | is totally wrong. If we parse the WME IE here, we'll be constantly updating the WME configuration from each WME enabled IBSS node we see. There's a separate issue where the WME configuration is blanked out when the interface is brought up; the WME parameters aren't "sticky." Also, ieee80211_init_neighbor() parses the ath IE, so doing it here isn't required. Sorry about the noise. PR: kern/165969
* Handle ath-specific and WME IE's in adhoc mode.adrian2012-12-093-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Adhoc support wasn't parsing and handling the ath specific and WME IEs, thus the atheros vendor support and WME TXOP parameters aren't being copied from the peer. It copies the WME parameters from whichever adhoc node it decides to associate to, rather than just having them be statically configured per adhoc node. This may or may not be exactly "right", but it's certainly going to be more convienent for people - they just have to ensure their adhoc nodes are setup with correct WME parameters. Since WME parameters aren't per-node but are configured on hardware TX queues, if some nodes support WME and some don't - or perhaps, have different WME parameters - things will get quite quirky. So ensure that you configure your adhoc nodes with the same WME parameters. Secondly - the Atheros Vendor IE is parsed and operated on per-node, so this should work out ok between nodes that do and don't do Atheros extensions. Once you see a becaon from that node and you setup the association state, it _should_ parse things correctly. TODO: * I do need to ensure that both adhoc setup paths are correctly updating the IE stuff. Ie, if the adhoc node is created by a data frame instead of a beacon frame, it'll come up with no WME/ath IE config. The next beacon frame that it receives from that node will update the state. I just need to sit down and better understand how that's suppose to work in IBSS mode. Tested: * AR5416 <-> AR9280 - fast frames and the WME configuration both popped up. (This is with a local HAL patch that enables the fast frames capability on the AR5416 chipsets.) PR: kern/165969
* Add missed BETA* to list.gjb2012-12-091-1/+1
| | | | | | Approved by: simon (implicit) MFC after: 3 days X-MFC-With: r244058
* Fix bandwidth reporting when doing a restarted download with "-r".andre2012-12-091-1/+1
| | | | | | | | | | The offset is already accounted for in xs->lastrcvd and doesn't have to be subtracted again. Reported by: Florian Smeets <flo@smeets.im> Submitted by: Mateusz Guzik <mjguzik@gmail.com> Tested by: Florian Smeets <flo@smeets.im> MFC after: 1 week
* Get 'uname -r' earlier, so it can be used to determine what branch isgjb2012-12-091-1/+12
| | | | | | | | being run to set BSDINSTALL_DISTSITE accordingly. This change allows non-RELEASE branches to use the FTP snapshots directory for bootonly.iso installations. Approved by: simon
* Add "nfsstat -m" support for the two new NFS mount optionsrmacklem2012-12-091-0/+6
| | | | added by r244042.
* Document the new NFS mount options added by r244042.rmacklem2012-12-091-1/+13
| | | | This is a content change.
* Remove useless comment.kib2012-12-091-2/+0
| | | | MFC after: 3 days
* Fix typo.kib2012-12-091-1/+1
| | | | MFC after: 3 days
* Fix a couple of CTL locking issues and clean up some duplicated code.ken2012-12-092-37/+31
| | | | | | | | | | | | | | | | | | | | ctl_frontend_cam_sim.c: Coalesce cfcs_online() and cfcs_offline() into a single function since these were identical except for one line. Make sure we hold the SIM lock around path creation, and calling xpt_rescan(). scsi_ctl.c: In ctlfe_onoffline(), make sure we hold the SIM lock around path creation and free calls, as well as xpt_action(). In ctlfe_lun_enable(), hold the SIM lock around path and peripheral operations that require it. Sponsored by: Spectra Logic Corporation MFC after: 1 week
* Atheros SuperG bug fixes, as part of hunting down kern/174283.adrian2012-12-092-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | The stageqdepth (global, over all staging queues) was being kept incorrectly. It was being incremented whenever things were added, but only decremented during a flush. During active fast frames activity it wasn't being decremented, resulting in it always having a non-zero value during normal fast-frames operation. It was only used when checking if the aging queue should be checked; we may as well just defer to each of those staging queue counters (which look correct, thankfully.) Whilst I'm here, add locking assertions in the staging queue add/remove functions. The current crash shows that the staging queue has one frame, but only has a tail pointer set (the head pointer being set to NULL.) I'd like to grab a few more crashes where these locking assertions are in place so I can narrow down the issue between "somehow locking is messed up and things are racy" and "the stage queue head/tail pointer manipulation logic is subtly wrong." Tested: * AR5416 STA, AR5413 AP; with FastFrames enabled in the AR5416 HAL. PR: kern/174283
* Use ASCII characters for box/line characters in frames.4thdteske2012-12-092-0/+56
| | | | | | | | | | | | Committed with changes to support the following from loader.conf(5): + console="vidconsole comconsole" (not just console="comconsole") + boot_serial="anything" (not just boot_serial="YES") + boot_multicons="anything" (unsupported in originally-submitted patch) PR: conf/121064 Submitted by: koitsu Reviewed by: gcooper, adrian (co-mentor) Approved by: adrian (co-mentor)
* Add new USB ID.hselasky2012-12-092-0/+5
| | | | | MFC after: 1 week Submitted by: Artyom Mirgorodskiy
* Add a comment on why inlining critical_enter() may not be a good ideaattilio2012-12-091-0/+6
| | | | | | | for the general case. Reviewed by: bde MFC after: 1 week
* Don't panic if the stageq here is empty; just fall through with NULLadrian2012-12-092-0/+18
| | | | | | | | | | | pointers and leave the stage queue flush routine to just do nothing (since both head and tail here will be NULL.) This should quieten the "stageq empty" panic where the stageq itself is empty, but it won't fix the second KASSERT() here "staging queue empty" as that's likely a different underlying problem. PR: kern/174283
* In the past four years, we've added two new vm object types. Each time,alc2012-12-097-30/+47
| | | | | | | | | | | | | | | | | | similar changes had to be made in various places throughout the machine- independent virtual memory layer to support the new vm object type. However, in most of these places, it's actually not the type of the vm object that matters to us but instead certain attributes of its pages. For example, OBJT_DEVICE, OBJT_MGTDEVICE, and OBJT_SG objects contain fictitious pages. In other words, in most of these places, we were testing the vm object's type to determine if it contained fictitious (or unmanaged) pages. To both simplify the code in these places and make the addition of future vm object types easier, this change introduces two new vm object flags that describe attributes of the vm object's pages, specifically, whether they are fictitious or unmanaged. Reviewed and tested by: kib
* Move the NFSv4.1 client patches over from projects/nfsv4.1-clientrmacklem2012-12-0822-376/+3968
| | | | | | | | | | to head. I don't think the NFS client behaviour will change unless the new "minorversion=1" mount option is used. It includes basic NFSv4.1 support plus support for pNFS using the Files Layout only. All problems detecting during an NFSv4.1 Bakeathon testing event in June 2012 have been resolved in this code and it has been tested against the NFSv4.1 server available to me. Although not reviewed, I believe that kib@ has looked at it.
* A number of places in the source tree still reference cuad.* aftereadler2012-12-0819-50/+50
| | | | | | | | | | | sio(4) was deprecated by uart(4). s/cuad/cuau/g/ PR: docs/171533 Reviewed by: imp Approved by: cperciva (implicit) MFC after: 3 weeks
* Remove outdated reference to tcp inflight limiting. It was removedandre2012-12-081-47/+1
| | | | | | a long time ago. MFC after: 1 week
* libc: Add a missing header to a test program.jilles2012-12-081-0/+1
| | | | Usage of dup(), mkstemp() and unlink() needs <unistd.h>.
* Add check for failure of mkstemp and setenv.eadler2012-12-081-2/+6
| | | | | | | Reviewed by: des Approved by: cperciva (implicit) Obtained from: DragonFlyBSD MFC after: 1 week
* time: Use close-on-exec instead of fclose() in the child process.jilles2012-12-081-3/+1
|
* Get it compiling without INET and INET6 support (mainly userland stack).tuexen2012-12-081-0/+4
| | | | MFC after: 2 weeks
* More warnings for zones that depend on the kern.ipc.maxsockets limit.pjd2012-12-083-0/+4
| | | | Obtained from: WHEEL Systems
* Add support for various Yamaha keyboards.hselasky2012-12-081-1/+125
| | | | | MFC after: 1 week PR: usb/174254
OpenPOWER on IntegriCloud