ƒ¹w234843 136 2110 201 205 768 109 713 886 221 568 183 164 164 361 691 177 324 175 143 1246 1303 339 128 128 109 404 122 155 201 282 282 312 606 786 600 837 1264 550 263 804 553 316 196 270 232 201 392 250 538 402 721 235 726 201 603 191 2168 289 181 1193 198 288 288 180 986 627 156 118 288 294 756 186 792 179 812 812 203 177 1104 1219 283 245 142 336 254 446 330 402 187 176 638 172 166 261 526 1969 984 263 307 252 247 248 196 216 425 328 232 142 112 170 1191 162 286 411 268 298 414 152 120 214 120 224 224 224 275 275 275 160 160 207 128 207 129 162 275 116 264 K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2012-04-30T13:37:07.803294Z K 7 svn:log V 2011 MFC r233507: Use program exit status as pam_exec return code (optional) pam_exec(8) now accepts a new option "return_prog_exit_status". When set, the program exit status is used as the pam_exec return code. It allows the program to tell why the step failed (eg. user unknown). However, if it exits with a code not allowed by the calling PAM service module function (see $PAM_SM_FUNC below), a warning is logged and PAM_SERVICE_ERR is returned. The following changes are related to this new feature but they apply no matter if the "return_prog_exit_status" option is set or not. The environment passed to the program is extended: o $PAM_SM_FUNC contains the name of the PAM service module function (eg. pam_sm_authenticate). o All valid PAM return codes' numerical values are available through variables named after the return code name. For instance, $PAM_SUCCESS, $PAM_USER_UNKNOWN or $PAM_PERM_DENIED. pam_exec return code better reflects what went on: o If the program exits with !0, the return code is now PAM_PERM_DENIED, not PAM_SYSTEM_ERR. o If the program fails because of a signal (WIFSIGNALED) or doesn't terminate normally (!WIFEXITED), the return code is now PAM_SERVICE_ERR, not PAM_SYSTEM_ERR. o If a syscall in pam_exec fails, the return code remains PAM_SYSTEM_ERR. waitpid(2) is called in a loop. If it returns because of EINTR, do it again. Before, it would return PAM_SYSTEM_ERR without waiting for the child to exit. Several log messages now include the PAM service module function name. The man page is updated accordingly. Reviewed by: des@ Sponsored by: Yakaz (http://www.yakaz.com) MFC r234184: Fix error messages containing the executed command name Before, we took the first argument to pam_exec(8). With the addition of options in front of the command, this could be wrong. Now, options are parsed before calling _pam_exec() and messages contain the proper command name. While here, fix a warning. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-04-30T13:44:04.034761Z K 7 svn:log V 108 MFC r234616: Allow for the process information sysctls to accept a thread id in addition to the process id. END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2012-04-30T15:46:41.927326Z K 7 svn:log V 107 MFC r233575: Make ReiserFS MPSAFE Most functions seemed to be already fine w.r.t. what's done in msdosfs. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-04-30T16:08:02.955469Z K 7 svn:log V 673 Improve growfs(8) in a few ways; unfortunately, it's somewhat hard to untangle them and commit separately. 1. Rewrite the way growfs(8) finds the device and mount point. This makes it possible to use e.g. "growfs /mnt"; it's also used to display more helpful messages. 2. Be more user-friendly, using descriptive messages, like this: OK to grow filesystem on /dev/md0, mounted on /mnt, from 9.8GB to 20GB? [Yes/No]" 3. Allow to specify the size (-s option) just like with mdconfig(8), i.e. with postfixes ("mdconfig -s 10g"). 4. Reload read-only filesystem after growing. Reviewed by: kib, mckusick (earlier version) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2012-04-30T16:16:37.129954Z K 7 svn:log V 12 Add myself. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-04-30T17:53:02.181237Z K 7 svn:log V 620 Add to GEOM RAID class module, supporting the DDF metadata format, as defined by the SNIA Common RAID Disk Data Format Specification v2.0. Supports multiple volumes per array and multiple partitions per disk. Supports standard big-endian and Adaptec's little-endian byte ordering. Supports all single-layer RAID levels. Dual-layer RAID levels except RAID10 are not supported now because of GEOM RAID design limitations. Some work is still to be done, but the present code already manages basic interoperation with RAID BIOS of the Adaptec 1430SA SATA RAID controller. MFC after: 1 month Sponsored by: iXsystems, Inc. END K 10 svn:author V 4 gleb K 8 svn:date V 27 2012-04-30T17:56:49.582881Z K 7 svn:log V 792 MFC r233998-r234000 and r234325: r233998: Add reserved memory limit sysctl to tmpfs. Cleanup availble and used memory functions. Check if free pages available before allocating new node. r233999 (partial): Add vfs_getopt_size. Support human readable file system options in tmpfs. Increase maximum tmpfs file system size to 4GB*PAGE_SIZE on 32 bit archs. NOTE: To preserve KBI add tmpfs_getopt_size function instead of global vfs_getopt_size. r234000: tmpfs supports only INT_MAX nodes due to limitations of unit number allocator. Replace UINT32_MAX checks with INT_MAX. Keeping more than 2^31 nodes in memory is not likely to become possible in foreseeable feature and would require new unit number allocator. r234325: Provide better description for vfs.tmpfs.memory_reserved sysctl. END K 10 svn:author V 4 bapt K 8 svn:date V 27 2012-04-30T21:02:57.877916Z K 7 svn:log V 127 Respect mathematical operation order piority with the exponent gnu extension Obtained from: OpenBSD Approved by: des (mentor) END K 10 svn:author V 4 bapt K 8 svn:date V 27 2012-04-30T21:26:35.669112Z K 7 svn:log V 474 Add two special directives to libmap.conf: include : Parse the contents of file before continuing with the current file. includedir : Parse the contents of every file in dir that ends in .conf before continuing with the current file. Any file or directory encountered while processing include or includedir directives will be parsed exactly once, even if it is encountered multiple times. Reviewed by: kib, des Approved by: des (mentor) MFC after: 1 month END K 10 svn:author V 4 bapt K 8 svn:date V 27 2012-04-30T22:00:34.485028Z K 7 svn:log V 90 Import m4 regression tests from OpenBSD Obtained from: OpenBSD Approved by: des (mentor) END K 10 svn:author V 5 marck K 8 svn:date V 27 2012-04-30T22:03:43.346261Z K 7 svn:log V 70 MFC r234345: VMware environment is frequent nowadays. Add VMFS id. END K 10 svn:author V 5 marck K 8 svn:date V 27 2012-04-30T22:06:47.875923Z K 7 svn:log V 70 MFC r234345: VMware environment is frequent nowadays. Add VMFS id. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-04-30T22:46:09.501075Z K 7 svn:log V 266 Unbreak jemalloc build with MALLOC_PRODUCTION set. New jemalloc version uncovered MIPS-related gcc bug described in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33256 The patch was obtained from r128198 in gcc-4_1-branch, which is GPLv2, so it's OK to merge it. END K 10 svn:author V 3 rmh K 8 svn:date V 27 2012-04-30T23:12:16.081645Z K 7 svn:log V 598 GNU/kFreeBSD portability fix. This glue overrides header protection in the system-wide version of by wrapping the #include_next within the scope of its own header protection. On FreeBSD this has no effect, since both header protections are equivalent. However the GNU version of implements a special header protection mechanism which allows it to be included multiple times (in different modes). Simply by moving the #include_next off the header protection, we allow system-wide to implement its own protection policy, whichever that may be. END K 10 svn:author V 3 jwd K 8 svn:date V 27 2012-05-01T01:19:56.136411Z K 7 svn:log V 85 Add myself to this file - it didn't exist last time. Approved by: rmacklem (mentor) END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-05-01T04:01:22.051837Z K 7 svn:log V 229 Huge merge from HEAD as a first step of re-integration process. This commit breaks buildworld in several ways: - Missing handling of armv6 TLS support - Violating ld's shared-textrel limitation by libc Fixes will follow END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-05-01T04:35:53.387527Z K 7 svn:log V 80 Migrate ARGE_DEBUG to opt_arge.h. Submitted by: Stefan Bethke END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2012-05-01T05:04:49.637120Z K 7 svn:log V 46 Teach ubldr(8) about simple MBR partitioning. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-05-01T06:11:38.376679Z K 7 svn:log V 1149 Bring over the first part of the etherswitch framework - an MDIO bus and MDIO/MII rendezvous proxy. * Add an 'mdio' bus, which is the "IO" side of an MII bus (but by design can be anything which implements the underlying register access API.) * Add 'miiproxy' and 'mdioproxy', which provides a rendezvous mechanism for MII busses to appear hanging off arbitrary busses (ie, that aren't necessarily a traditional looking MII bus.) MII busses can now hang off anything that implements an mdiobus. For the AR71xx SoC, there's one MDIO bus but two MII busses. So to properly support two or more real PHYs, this can be done: # arge0 MDIO bus - there's no arge1 MDIO bus for AR71xx hint.argemdio.0.at="nexus0" hint.argemdio.0.maddr=0x19000000 hint.argemdio.0.msize=0x1000 hint.argemdio.0.order=0 # Create two mdioproxy instances hint.mdioproxy.0.at="mdio0" hint.mdioproxy.1.at="mdio0" # .. and with a follow-up patch hint.arge.0.mdio=mdioproxy0 hint.arge.1.mdio=mdioproxy0 TODO: * Do a sweep or two and add appropriate locking in mdio/mdioproxy/miiproxy. Submitted by: Stefan Bethke Reviewed by: ray END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-05-01T06:18:30.140689Z K 7 svn:log V 1206 Break out the arge MDIO bus code into an optional argemdio device. This is only done if the ARGE_MDIO option is included. * Shuffle the arge MDIO bus into a separate device, that needs to be probed early (use hint.argemdio.X.order=0) * hint.arge.X.mdio now specifies which miiproxy to rendezvous with. * Call MAC/MDIO bus init during MDIO attach, not arge attach. This is done regardless: * Shift the arge MAC and MDIO bus reset code into separate functions and call it early during MDIO bus attach. It's required for correct MDIO bus IO to occur on AR71xx/AR91xx devices. * Remove the AR71xx/AR91xx centric assumption that there's only one MDIO bus. The initial code mapped miibus0(arge0) and miibus1(arge1) MII register operations to the MII0 (arge0) register space. The AR724x (and later, upcoming chipsets) have two MDIO busses and the second is very much in use. TODO: * since the multiphy behaviour has changed (where now a phymask of >1 PHY will still be enumerated), multiphy setups may be quite wrong. I'll go and fix these so they still have a chance of working, at least. until the switch PHY support appears in -HEAD. Submitted by: Stefan Bethke END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-05-01T06:21:02.304306Z K 7 svn:log V 243 Convert AP96 to use the mdioproxy and ARGE_MDIO option. arge1 still works (it's the standalone PHY) but arge0 and the other switch ports don't work. They're enumerated though, demonstrating that the mdiobus abstraction is correctly working. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-05-01T07:15:18.092270Z K 7 svn:log V 33 MFC r234762: Whitespace changes. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-05-01T07:27:23.448889Z K 7 svn:log V 33 MFC r234762: Whitespace changes. END K 10 svn:author V 3 uqs K 8 svn:date V 27 2012-05-01T07:38:40.268332Z K 7 svn:log V 17 Fix make depend. END K 10 svn:author V 6 daichi K 8 svn:date V 27 2012-05-01T07:46:30.288364Z K 7 svn:log V 308 - fixed a vnode lock hang-up issue. - fixed an incorrect lock status issue. - fixed an incorrect lock issue of unionfs root vnode removed. (pointed out by keith) - fixed an infinity loop issue. (pointed out by dumbbell) - changed to do LK_RELEASE expressly when unlocked. Submitted by: ozawa@ongs.co.jp END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-05-01T08:19:29.261685Z K 7 svn:log V 30 Improve DDF metadata writing. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-05-01T09:21:21.759559Z K 7 svn:log V 63 Implement volume deletion if disk has more then one partition. END K 10 svn:author V 4 bapt K 8 svn:date V 27 2012-05-01T10:16:12.931496Z K 7 svn:log V 107 - close the open file after fetching - create a default /usr/local/etc/pkg.conf Approved by: des (mentor) END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-05-01T10:49:20.053080Z K 7 svn:log V 189 MFC r234657: Take the spinlock around clearing of the fp->_flags in fclose(3), which indicates the avaliability of FILE, to prevent possible reordering of the writes as seen by other CPUs. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-05-01T11:45:16.596680Z K 7 svn:log V 189 MFC r234657: Take the spinlock around clearing of the fp->_flags in fclose(3), which indicates the avaliability of FILE, to prevent possible reordering of the writes as seen by other CPUs. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-05-01T14:48:51.418149Z K 7 svn:log V 216 Change the MIB cycle count API to return HAL_BOOL, rather than uint32_t, to return whether it was successful. Add placeholder (blank) methods for previous chips, for both it and the 11n extension channel busy call. END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T15:35:10.247904Z K 7 svn:log V 507 Added Self-protected action category (including MPM). * Added new action category IEEE80211_ACTION_CAT_SELF_PROT which is used by 11s for Mesh Peering Management; * Updated Self protected enum Action codes to start from 1 instead of 0 according to the standard spec; * Removed old and wrong action categories IEEE80211_ACTION_CAT_MESHPEERING; * Modified ieee80211_mesh.c and ieee80211_action.c to use the new action category code; * Added earlier verification code in ieee80211_input; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T15:39:16.060615Z K 7 svn:log V 687 Modified structure and code that handles Mesh peering management. * Old struct ieee80211_meshpeer_ie had wrong peer_proto field size; * Added IEEE80211_MPM_* size macros; * Created an enum for the Mesh Peering Protocol Identifier field according to the standard spec and removed old defines; * Abbreviated Handshake Protocol is not used by the standard anymore; * Modified mesh_verify_meshpeer to use IEEE80211_MPM_* macros for verification; * Modified mesh_parse_meshpeering_action to parse complete frame, also to parse it according to the standard spec; * Modified ieee80211_add_meshpeer to construct correct MPM frames according to the standard spec; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T15:42:41.200564Z K 7 svn:log V 501 Fixed some MPM reason codes and max number of neighbors check * Added IEEE80211_MESH_MAX_NEIGHBORS and it is set to 15, same as before; * Modified mesh_parse_meshpeering_action to verify MPM frame and send correct reason code for when a frame is rejected according to standard spec; * Modified mesh_recv_action_meshpeering_* according to the standard spec; * Modified mesh_peer_timeout_cb to always send CLOSE frame when in CONFIRMRCV state according to the standard spec; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T15:47:30.705626Z K 7 svn:log V 738 Implemented so that Mesh forwarding information lifetime is dynamic. * Introduced ieee80211_mesh_rt_update that updates a route with the maximum(lifetime left, new lifetime); * Modified ieee80211_mesh_route struct by adding a lock that will be used by both ieee80211_mesh_rt_update and precursor code (added in future commit); * Modified in ieee80211_hwmp.c HWMP code to use new ieee80211_mesh_rt_update; * Modified mesh_rt_flush_invalid to use new ieee80211_mesh_rt_update; * mesh_rt_flush also checks that lifetime == 0, this gives route discovery a change to complete; * Modified mesh_recv_mgmt case IEEE80211_FC0_SUBTYPE_BEACON: when ever we received a beacon from a neighbor we update route lifetime; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T15:56:26.618856Z K 7 svn:log V 1164 Mesh forwarding with proxy support. * Modified HWMP PREP/PREQ to contain a proxy entry and also changed PREP frame processing according to amendment as following: o Fixed PREP to always update/create if acceptance criteria is meet; o PREQ processing to reply if request is for a proxy entry that is proxied by us; o Removed hwmp_discover call from PREQ, because sending a PREP will build the forward path, and by receving and accepting a PREQ we have already built the reverse path (non-proactive code); * Disabled code for pro-active in PREP for now (will make a separate patch for pro-active HWMP routing later) * Added proxy information for a Mesh route, mesh gate to use and proxy seqno; * Modified ieee80211_encap according to amendment; * Introduced Mesh control address extension enum and removed unused struct, also rename some structure element names. * Modified mesh_input and added mesh_recv_* that should verify and process mesh data frames according to 9.32 Mesh forwarding framework in amendment; * Modified mesh_decap accordingly to changes done in mesh control AE struct; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T15:58:10.627569Z K 7 svn:log V 451 Added route lifetime update for destination and source mesh along a mesh path; * In mesh_recv_indiv_data_to_fwd update route entry for both meshDA and meshSA; * In mesh_recv_indiv_data_to_me update route entry for meshSA; * in ieee80211_mesh_rt_update put code so that a proxy entry that is gated by us (number of hops == 0) is never invalidated; * Fixed so that we always call ieee80211_mesh_rt_update with lifetime in ms; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T16:00:31.773602Z K 7 svn:log V 164 * MeshForwarding update mesh_recv_indiv_data_to_fwrd to silently discard unknown meshDA instead of panic, which is allowed per amendment spec; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T16:02:31.309519Z K 7 svn:log V 705 PREP update * Added assertion in mesh_rt_update; * Fixed some prep propagation that where multicast, ALL PREPS ARE UNICAST; * Fixed PREP acceptance criteria; * Fixed some PREP debug messages; * HWMP intermediate reply (PREP) should only be sent if we have newer forwarding infomration (FI) about target; * Fixed PREP propagation condition and PREP w/ AE handling; * Ignore PREPs that have unknown originator. * Removed old code inside PREP that was for proactive path building to root mesh; Other errors include: * use seq number of target and not orig mesh STA; * Metric is what we have stored in our FI; * Error in amendment, Hop count is not 0 but equals FI hopcount for target; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T16:03:27.395736Z K 7 svn:log V 454 Change how we enforce PREQ minimum interval. * Moved hs_lastpreq to be hr_lastpreq cause this rate check should be per target mesh STA according to amendment (NB: not applicable for PERR); * Modified hwmp_send_preq to use two extra arguments for last sent PREQ and minimum PREQ interval; * hwmp_send_preq is called with last two arguments equal to NULL when sending Proactive PREQs cause the call back task enforces the rate check; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T16:05:09.983714Z K 7 svn:log V 217 * Added a mesh max PREQ retires sysctl that governous how many times we try to discover an address; * Added a mesh net travelse time across an MBSS, which is used to enforce discovery rate check; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T16:06:20.976925Z K 7 svn:log V 98 * Fixed PREQ flag field Adressing mode subfiled according to amendment specs; Approved by: adria END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T16:07:35.322530Z K 7 svn:log V 171 * Fixed hwmp_discover code to populate a PREQ packet correctly; * Removed IEEE80211_MESHPREQ_TFLAGS_RF which is no longer part of the amendment spec; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T16:08:46.638071Z K 7 svn:log V 133 * Proactive PREQ (original transmission) must also set IEEE80211_MESHPREQ_TFLAGS_USN flag in target_flag field; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T16:09:44.310495Z K 7 svn:log V 102 * PREQ acceptance criteria updated to check for proxy condition as in amendment; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T16:10:32.319466Z K 7 svn:log V 293 Updated PREQ propagation code; * When receiving a Proactive PREQ dont return after processing it but propagate; * When we propagate we should not enforce ratechecking; * Added checking for multiple pred ID detection; * Storing proxy orig address when PREQ is not for us; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T16:11:47.850749Z K 7 svn:log V 151 * Modified PERR acceptance criteria according to amendment; * Modified how PERR is handled and propagated according to amendment; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T16:12:39.787543Z K 7 svn:log V 439 PERR update to be called from mesh code. * Added mpp_senderror for Mesh Path Selection protocol; * Added hwmp_senderror that will send an HWMP PERR according to the supplied reason code; * Call mpp_senderror when deleting a route with correct reason code for whether the route is marked proxy or not; * Call mpp_senderror when trying to forward an individually addressed frame and there is no forwarding information; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T16:13:22.137881Z K 7 svn:log V 303 RANN update * Introduced a new HWMP sysctl, Root Confirmation Interval; * Added hr_lastrootconf to hwmp_route, is for ratecheck for a specific ROOT; * We missed reading RANN.interval subfield from a RANN frame before; * Updated hwmp_recv_rann according to amendment, see comments; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T16:14:18.369304Z K 7 svn:log V 622 Net80211s update: Mesh Gate Announcement and removal of Portal Announcement. * Renamed IEEE80211_ELEMID_MESHPANN to IEEE80211_ELEMID_MESHGANN according to amendment; * Added IEEE80211_IOC_MESH_GATE that controls whether Mesh Gate Announcement is activated or not; * Renamed all flags from Portal to Gate in HWMP frames; * Removed IEEE80211_ACTION_MESHPANN enum cause its part of the Mesh Action category now as per amendment; * Renamed IEEE80211_MESHFLAGS_PORTAL to IEEE80211_MESHFLAGS_GATE in ieee80211_mesh_state flags; * Modified ieee80211_hwmp.c/ieee80211_mesh.c to use new GATE flags; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T16:15:34.996543Z K 7 svn:log V 136 * Added new command to ifconfig to activate Mesh Gate Announcement called meshgate with corresponding explanation; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T16:16:20.465727Z K 7 svn:log V 627 PREQ discovery update. * Added a new discovery flag IEEE80211_MESHRT_FLAGS_DISCOVER; * Modified ieee80211_ioctl.h to include IEEE80211_MESHRT_FLAGS_DISCOVER; * Added hwmp_rediscover_cb, which will be called by a timeout to do rediscovery if we have not reach max number of preq discovery; * Modified hwmp_discover to setup a callout for path rediscovery; * Added to ieee80211req_mesh_route to have a back pointer to ieee80211vap for the discovery callout context; * Modified mesh_rt_add_locked arguemnt from ieee80211_mesh_state to ieee80211vap, this because we have to initialize the above back pointer; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T16:17:17.894123Z K 7 svn:log V 102 * Modified ifconfig to show the IEEE80211_MESHRT_FLAGS_DISCOVER flag with a 'D'; Approved by: adrian END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-01T16:18:38.489035Z K 7 svn:log V 504 Update HWMP Proactive code and mesh route flags. * Modified hwmp_recv_preq: o cleaned up code, removed rootmac variable because preq->origaddr is the root when we recevie a Proactive PREQ; o Modified so that a PREP in response of a Proactive PREQ is unicast, a PREP is ALWAYS unicast; * Modified hwmp_recv_prep: o Before we mark a route to be valid we should remove the discovery flag and then mark it valid in such a way we wont lose the isgate flag; Approved by: adrian END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-05-01T16:38:33.970522Z K 7 svn:log V 96 Add a command for showing the heap usage. PR: 165025 Submitted by: Gavin Mu MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-05-01T17:16:01.106886Z K 7 svn:log V 2071 Add initial support for booting from ZFS on sparc64. At least on Sun Fire V100, the firmware is known to be broken and not allowing to simultaneously open disk devices, causing attempts to boot from a mirror or RAIDZ to cause a crash. This will be worked around later. The firmwares of newer sun4u models don't seem to exhibit this problem though. Steps for ZFS booting: 1. create VTOC8 label # gpart create -s vtoc8 da0 2. add partitions, f.e.: # gpart add -t freebsd-zfs -s 60g da0 # gpart add -t freebsd-swap da0 resulting in something like: # gpart show => 0 143331930 da0 VTOC8 (68G) 0 125821080 1 freebsd-zfs (60G) 125821080 17510850 2 freebsd-swap (8.4G) 3. create zpool # zpool create bunker da0a or for mirror/RAIDZ (after preparing additional disks as in steps 1. + 2.): # zpool create bunker mirror da0a da1a # zpool create bunker raidz da0a da1a da2a ... 4. set bootfs # zpool set bootfs=bunker bunker 5. install zfsboot # zpool export bunker # gpart bootcode -p /boot/zfsboot da0 6. write zfsloader to the ZFS Boot Block (so far, there's no dedicated tool for this, so dd(1) has to be used for this purpose) When using mirror/RAIDZ, step 4. and the dd(1) invocation should be repeated for the additional disks in order to be able to boot from another disk in case of failure. # sysctl kern.geom.debugflags=0x10 # dd if=/boot/zfsloader of=/dev/da0a bs=512 oseek=1024 conv=notrunc # zpool import bunker 7. install system on ZFS filesystem Don't forget to set 'zfs_load="YES"' and vfs.root.mountfrom="zfs:bunker" in loader.conf as well as 'zfs_enable="YES"'in rc.conf. 8. copy zpool.cache to the ZFS filesystem cp -p /boot/zfs/zpool.cache /bunker/boot/zfs/zpool.cache 9. set mountpoint # zfs set mountpoint=/ bunker 10. Now, given that aliases for all disks in the zpool exists (check with the `devalias` command on the boot monitor prompt) and disk0 corresponds to da0 (likewise for additional disks), the system can be booted from the ZFS with: {1} ok boot disk0 PR: 165025 Submitted by: Gavin Mu END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-05-01T18:00:31.509560Z K 7 svn:log V 196 Improve spare disks support. Unluckily, for some reason Adaptec 1430SA RAID BIOS doesn't want to understand spare disks created by graid. But at least spares created by BIOS are working fine now. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-05-01T20:32:38.320668Z K 7 svn:log V 86 Add in the MII configuration parameters for the AR71xx. Obtained from: Linux/OpenWRT END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-05-01T20:42:03.721698Z K 7 svn:log V 1096 - Add missing locking in at91_usart_getc(). - Align the RX buffers on the cache line size, otherwise the requirement of partial cache line flushes on every are pretty much guaranteed. [1] - Make the code setting the RX timeout match its comment (apparently, start and stop bits were missed in the previous calculation). [1] - Cover the busdma operations in at91_usart_bus_{ipend,transmit}() with the hardware mutex, too, so these don't race against each other. - In at91_usart_bus_ipend(), reduce duplication in the code dealing with TX interrupts. - In at91_usart_bus_ipend(), turn the code dealing with RX interrupts into an else-if cascade in order reduce its complexity and to improve its run-time behavior. - In at91_usart_bus_ipend(), add missing BUS_DMASYNC_PREREAD calls on the RX buffer map before handing things over to the hardware again. [1] - In at91_usart_bus_getsig(), used a variable of sufficient width for storing the contents of USART_CSR. - Use KOBJMETHOD_END. - Remove an unused header. Submitted by: Ian Lepore [1] Reviewed by: Ian Lepore MFC after: 1 week END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-05-01T23:46:18.774848Z K 7 svn:log V 100 Fix the NFSv4.1 client for exclusive create, which must be done differently for NFSv4.1 vs NFSv4.0. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-05-02T00:30:30.978413Z K 7 svn:log V 191 MFC r233770: Eliminate two cases of unwanted strncpy(). The name is not required by the current code, and the results would get overwritten anyway by subsequent memset(). Reviewed by: ume END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-05-02T00:31:09.862429Z K 7 svn:log V 191 MFC r233770: Eliminate two cases of unwanted strncpy(). The name is not required by the current code, and the results would get overwritten anyway by subsequent memset(). Reviewed by: ume END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-05-02T01:14:15.065902Z K 7 svn:log V 85 Introduce an enum which encapsulates the PHY interface types that can be configured. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-05-02T01:21:57.746796Z K 7 svn:log V 890 MII related infrastructure changes. * Add a new method to set the MII mode - GMII, RGMII, RMII, MII. + arge0 supports all four (two for non-Gige interfaces.) + arge1 only supports two (one for non-gige interfaces.) * Set the MII clock speed when changing the MAC PLL speed. + Needed for AR91xx and AR71xx; not needed for AR724x. Tested: * AR71xx only, I'll do AR913x testing tonight and fix whichever issues creep up. TODO: * Implement the missing AR7242 arge0 PLL configuration, but don't adjust the MII speed accordingly. * .. the AR7240/AR7241 don't require this, so make sure it's not set accidentally. Bugs (not fixed here): * Statically configured arge speeds are still broken - investigate why that is on the AP96 board. Autonegotiate is working fine, but there still seems to be an occasionally heavy packet loss issue. Obtained from: Linux/Atheros/OpenWRT END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-05-02T04:51:43.950506Z K 7 svn:log V 531 Further ar71xx MII support improvements. * Flesh out the PLL configuration fetch function, which will return the PLL configuration based on the unit number and speed. * Remove the PLL speed config logic from the AR71xx/AR91xx chip PLL config function - pass in a 'pll' value instead. * Modify arge_set_pll() to: + fetch the PLL configuration + write the PLL configuration + update the MII speed configuration. This will allow if_arge to override the PLL configuration as required. Obtained from: Linux/Atheros/OpenWRT END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2012-05-02T05:49:58.402074Z K 7 svn:log V 59 Remove some redundant register loads. Discussed on: arm@ END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-05-02T06:17:16.412352Z K 7 svn:log V 23 Add a missing newline. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-05-02T06:18:12.314582Z K 7 svn:log V 192 Allow the MII mode to be overridden via 'hint.arge.X.miimode'. It takes a number at the moment, rather than a string. Some of the Linux board configurations specify the MII mode explicitly. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-05-02T06:19:26.063440Z K 7 svn:log V 198 * Force the ethernet MII configuration to be RGMII * Populate the "pll_1000" field, which will soon be used to override the PLL configuration from the default value. Obtained from: Linux OpenWRT END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-05-02T06:52:00.016082Z K 7 svn:log V 663 Merge ATA_CAM compatibility shims. While 8-STABLE doesn't have ATA_CAM enabled by default, this should make migration easier for users enabling it manually. r221071: Add shim to simplify migration to the CAM-based ATA. For each new adaX device in /dev/ create symbolic link with adY name, trying to mimic old ATA numbering. Imitation is not complete, but should be enough in most cases to mount file systems without touching /etc/fstab. r221384: Do not report legacy unit numbers (do not create legacy aliases) for disks on port multiplier ports above first two. They don't fit into ATA_STATIC_ID scheme and so can't be mapped properly. No need to pollute dev. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-05-02T06:58:44.016726Z K 7 svn:log V 94 MFC r222336, r222339: Add names for few more SES element types according SES-2 specification. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-05-02T07:05:20.711223Z K 7 svn:log V 699 MFC r222643: When possible, join ranges of subsequest BIO_DELETE requests to handle more (up to 2048 instead of 256 or even 64) of them with single TRIM request. OCZ Vertex2/Vertex3 SSDs can handle no more then 64 ranges per TRIM request. Due to lack of BIO_DELETE clustering now, it means that we could delete no more then 2MB per request (on FS with 32K block) with limited request rate. This change increases delete rate on Vertex2 from 250MB/s to 950MB/s. MFC r222643: Increase maximum supported number of ranges per TRIM command from 256 to 512 to use full potential of Intel X25-M SSDs. On synthetic test with 32K ranges it gives about 20% speedup, which probably costs more then 2K of RAM. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-05-02T07:08:04.536133Z K 7 svn:log V 87 MFC r223019: Do not report CFA devices as ATAPI, even though IDENTIFY data look alike. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-05-02T07:17:53.414873Z K 7 svn:log V 719 MFC r234415: Some improvements to GEOM MULTIPATH: - Implement "configure" command to allow switching operation mode of running device on-fly without destroying and recreation. - Implement Active/Read mode as hybrid of Active/Active and Active/Passive. In this mode all paths not marked FAIL may handle reads same time, but unlike Active/Active only one path handles write requests at any point in time. It allows to closer follow original write request order if above layers need it for data consistency (not waiting for requisite write completion before sending dependent write). - Hide duplicate messages about device status change. - Remove periodic thread wake up with 10Hz rate. Sponsored by: iXsystems, Inc. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-05-02T07:22:58.648312Z K 7 svn:log V 719 MFC r234415: Some improvements to GEOM MULTIPATH: - Implement "configure" command to allow switching operation mode of running device on-fly without destroying and recreation. - Implement Active/Read mode as hybrid of Active/Active and Active/Passive. In this mode all paths not marked FAIL may handle reads same time, but unlike Active/Active only one path handles write requests at any point in time. It allows to closer follow original write request order if above layers need it for data consistency (not waiting for requisite write completion before sending dependent write). - Hide duplicate messages about device status change. - Remove periodic thread wake up with 10Hz rate. Sponsored by: iXsystems, Inc. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-05-02T07:41:26.176971Z K 7 svn:log V 107 Disable the pll_1000 hint for now, the upcoming work enables it and it breaks without the switch PHY code. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-05-02T07:43:11.377472Z K 7 svn:log V 82 Implement PLL configuration override support, similar to what openwrt implements. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2012-05-02T08:10:15.916618Z K 7 svn:log V 1006 Merge a rudimentary gxemul "oldtestmips" port. This consists almost entirely of one machdep file lifted from the MALTA port, as well as a low-level console and tty driver for the gxemul debugging console device (the emulators stdio). As with many low-level embedded and hypervisor console devices, it is polled only, so we drive TTY I/O from a callout; we are perhaps a bit too aware of the MIPS physical maps in order to attach the console before newbus comes to life. The sample kernel configuration depends on an MD-based root file system, which is not provided. However, any 64-bit, big-endian userspace image (such as one generated for MALTA) should work. This will hopefully be supplemented by additional device drivers for gxemul-specific hardware simulations from Juli Mallett. We have found oldtestmips quite useful for testing and improving aspects of the MIPS port, so it's worth supporting better in FreeBSD. Requested by: theraven, jmallett Sponsored by: DARPA, AFRL MFC after: 3 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2012-05-02T08:23:53.042409Z K 7 svn:log V 1121 Clean up various aspects of the MIPS generic busspace implementation: 1) Always implement missing bus space methods using a panic() stub rather than a NULL pointer. This appeared not to trip up any existing device drivers, but due to the nature of the devices I'm supporting locally, I'm making use of some of the more obscure busspace methods, and panic() is a preferred failure mode. For example, do this for the setregion methods. 2) Hook up several existing busspace method implementations that were provided in the file, but not actually present in the methods structure. Especially, single-byte bus I/O routines. This should allow bugs to be fixed in the Atheros 802.11 driver. There are still some remaining unimplemented methods that would be desirable to implement -- especially, 64-bit I/O calls that would observably accelerate device performance on FPGA-based soft CPU cores that are typically clocked an order of magnitude slower than conventional hard core CPUs, but that remains for another day. MFC after: 3 weeks Discussed with: jmallett, scottl Sponsored by: DARPA, AFRL END K 10 svn:author V 5 marck K 8 svn:date V 27 2012-05-02T08:38:43.483894Z K 7 svn:log V 188 MFC r234417: VMware environments are not unusual now. Add VMware partitions recognition (both MBR for ESXi <= 4.1 and GPT for ESXi 5) to g_part. Reviewed by: ae Approved by: ae END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-05-02T09:19:42.679480Z K 7 svn:log V 152 The PIT is really 16 bytes long (0x10) not 10 bytes long. Doesn't matter much, since these defines are unused... Obtained from: AT91SAM9G20 datasheet END K 10 svn:author V 6 jasone K 8 svn:date V 27 2012-05-02T10:15:42.044793Z K 7 svn:log V 47 Bump __FreeBSD_version due to jemalloc import. END K 10 svn:author V 5 marck K 8 svn:date V 27 2012-05-02T11:38:58.578674Z K 7 svn:log V 241 MFC (with appropriate changes to gpt ikernel structures) r234417: VMware environments are not unusual now. Add VMware partitions recognition (both MBR for ESXi <= 4.1 and GPT for ESXi 5) to g_part. Reviewed by: ae Approved by: ae END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2012-05-02T12:15:34.750451Z K 7 svn:log V 157 mips/mips64eb became mips/mips64 while I wasn't looking (whoops), so update GXEMUL kernel config for the new world order. Spotted by: bz MFC after: 3 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-05-02T14:25:39.162976Z K 7 svn:log V 353 - Don't log messages saying that accounting is being disabled and enabled if the accounting log file is atomically replaced with a new file (such as during log rotation). - Simplify accounting log rotation a bit. There is no need to re-run accton(8) after renaming the new log file to it's real name. PR: kern/167321 Tested by: Jeremy Chadwick END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-05-02T14:38:43.308721Z K 7 svn:log V 238 Catch-up with r232853 and remove platform APIs which are not used by any code and which had only stub implementations or no implementation on all platforms. Makes gxemul compile. Hinted by: rwatson MFC after: 3 weeks X-MFC by: rwatson: END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-05-02T15:15:28.325417Z K 7 svn:log V 310 MFC r233787: - Use more natural ip->i_flags instead of vap->va_flags in the final flags check. - Add a comment for the immutable/append check done after handling of the flags. - Style improvements. No functional change intended. MFC r234421: The part about exec atime no longer applies in the comment. END K 10 svn:author V 3 gnn K 8 svn:date V 27 2012-05-02T16:23:36.657044Z K 7 svn:log V 95 Fix so that ,usr and ,os work correctly with fixed function (IAF) counters. MFC after: 1 week END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-05-02T18:41:58.456169Z K 7 svn:log V 84 Fix comment about what board this is really for left over from early cut and paste. END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-05-02T19:32:11.019567Z K 7 svn:log V 545 Added D_TRACKCLOSE to sndstat_cdevsw to fix the situation when another process is in open() or stat() for the device node, then close() from the owning process does not result in cdevsw close method call. This fixes the pemanent "Device busy" seen. Changed the sndstat_lock from mutex to sx. This allows to extend the region covered by the lock, to include the uiomove() call in sndstat_read() and bufptr increment. This fixes the "panic: sbuf_put_byte called with finished or corrupt sbuf" seen. In collaboration with: kib MFC after: 1 week END K 10 svn:author V 9 monthadar K 8 svn:date V 27 2012-05-02T20:01:28.304975Z K 7 svn:log V 74 Update man page date to the date of the last commit. Approved by: adrian END K 10 svn:author V 5 jamie K 8 svn:date V 27 2012-05-02T21:24:08.126341Z K 7 svn:log V 72 Add YY_NO_INPUT so clang doesn't complain about "input" not being used. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-02T21:50:13.342542Z K 7 svn:log V 165 Prefer the use of csup to cvsup when talking about the binary. PR: docs/167459 Submitted by: "Bryan Drewery" Approved by: bcr MFC after: 1 week END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-05-03T01:41:12.925447Z K 7 svn:log V 430 Relax restriction on direct tx to child ports Lagg(4) restricts the type of packet that may be sent directly to a child port, to avoid undesired output from accidental misconfiguration. Previously only ETHERTYPE_PAE was permitted. BPF writes to a lagg(4) child port are presumably intentional, so just allow them, while still blocking other packets that should take the aggregation path. PR: kern/138620 Approved by: thompsa@ END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-05-03T03:05:18.823481Z K 7 svn:log V 1871 Merge 233103, 233912 from head: 233103: Some software think a mutex can be destroyed after it owned it, for example, it uses a serialization point like following: pthread_mutex_lock(&mutex); pthread_mutex_unlock(&mutex); pthread_mutex_destroy(&muetx); They think a previous lock holder should have already left the mutex and is no longer referencing it, so they destroy it. To be maximum compatible with such code, we use IA64 version to unlock the mutex in kernel, remove the two steps unlocking code. 233912: umtx operation UMTX_OP_MUTEX_WAKE has a side-effect that it accesses a mutex after a thread has unlocked it, it event writes data to the mutex memory to clear contention bit, there is a race that other threads can lock it and unlock it, then destroy it, so it should not write data to the mutex memory if there isn't any waiter. The new operation UMTX_OP_MUTEX_WAKE2 try to fix the problem. It requires thread library to clear the lock word entirely, then call the WAKE2 operation to check if there is any waiter in kernel, and try to wake up a thread, if necessary, the contention bit is set again by the operation. This also mitgates the chance that other threads find the contention bit and try to enter kernel to compete with each other to wake up sleeping thread, this is unnecessary. With this change, the mutex owner is no longer holding the mutex until it reaches a point where kernel umtx queue is locked, it releases the mutex as soon as possible. Performance is improved when the mutex is contensted heavily. On Intel i3-2310M, the runtime of a benchmark program is reduced from 26.87 seconds to 2.39 seconds, it even is better than UMTX_OP_MUTEX_WAKE which is deprecated now. http://people.freebsd.org/~davidxu/bench/mutex_perf.c Special code for stable/8: And add code to detect if the UMTX_OP_MUTEX_WAKE2 is available. PR: threads/167308 END K 10 svn:author V 6 grehan K 8 svn:date V 27 2012-05-03T03:11:27.803578Z K 7 svn:log V 888 Add 16550 uart emulation as a PCI device. This allows it to be activated as part of the slot config options. The syntax is: -s ,uart[,stdio] The stdio parameter instructs the code to perform i/o using stdin/stdout. It can only be used for one instance. To allow legacy i/o ports/irqs to be used, a new variant of the slot command, -S, is introduced. When used to specify a slot, the device will use legacy resources if it supports them; otherwise it will be treated the same as the '-s' option. Specifying the -S option with the uart will first use the 0x3f8/irq 4 config, and the second -S will use 0x2F8/irq 3. Interrupt delivery is awaiting the arrival of the i/o apic code, but this works fine in uart(4)'s polled mode. This code was written by Cynthia Lu @ MIT while an intern at NetApp, with further work from neel@ and grehan@. Obtained from: NetApp END K 10 svn:author V 6 grehan K 8 svn:date V 27 2012-05-03T05:04:37.530360Z K 7 svn:log V 167 Until the issue of how to handle guest XCR0 state is resolved, prevent CURRENT guests from hitting unhandled xsetbv exits by hiding the xsave/osxsave/avx cpuid2 bits. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-05-03T05:32:56.365098Z K 7 svn:log V 214 Add optional -o argument to the `graid label ` to specify some metadata format options. Use it for specifying byte order for the DDF metadata: big-endian defined by specification and little-endian used by Adaptec. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-05-03T05:52:39.685687Z K 7 svn:log V 156 Fix a totally bone-headed, last minute bounds check snafu that somehow I must've missed when booting a test kernel. This has been validated on the AR7161. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-05-03T07:12:38.403192Z K 7 svn:log V 151 MFC r234715,r234716: Export symbols for sctp_sendv() and sctp_recvv(). Move sctp_sendv and sctp_recvv to FBSD_1.3 as suggested by Konstantin Belousov. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-05-03T07:17:25.211781Z K 7 svn:log V 152 MFC r234715,r234716: Export symbols for sctp_sendv() and sctp_recvv(). Move sctp_sendv and sctp_recvv to FBSD_1.3 as suggested by Konstantin Belousov. END K 10 svn:author V 6 daichi K 8 svn:date V 27 2012-05-03T07:22:29.477032Z K 7 svn:log V 100 fixed a unionfs_readdir math issue PR: 132987 Submitted by: Matthew Fleming END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-05-03T07:48:19.800067Z K 7 svn:log V 120 In the new world order, multiphy is now when the phymask is 0x0. This makes the TP-WN1043ND (ar913x based) work again. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-05-03T08:56:43.954062Z K 7 svn:log V 327 Revert r234834 per luigi@ request. Cleaner solution (e.g. adding another header) should be done here. Original log: Move several enums and structures required for L2 filtering from ip_fw_private.h to ip_fw.h. Remove ipfw/ip_fw_private.h header from non-ipfw code. Requested by: luigi Approved by: kib(mentor) END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-05-03T09:17:31.239316Z K 7 svn:log V 231 MFp4: Enqueue thread in LIFO, this can cause starvation, but it gives better performance. Use _thr_queuefifo to control the frequency of FIFO vs LIFO, you can use environment string LIBPTHREAD_QUEUE_FIFO to configure the variable. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-05-03T09:47:22.305551Z K 7 svn:log V 136 MFC r234701: Fix a bug in the TCP tracerouting which resulted in not accepting any incoming packets. So all packets seemed to be lost. END K 10 svn:author V 4 bapt K 8 svn:date V 27 2012-05-03T09:57:52.585041Z K 7 svn:log V 49 Import byacc 20120115 Approved by: des (mentor) END K 10 svn:author V 4 bapt K 8 svn:date V 27 2012-05-03T09:58:36.492293Z K 7 svn:log V 19 Tag byacc 20120115 END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-05-03T10:26:33.799473Z K 7 svn:log V 75 Fix another RFC 6458 issue. Spotted by Irene Ruengeler. MFC after: 3 days END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-05-03T10:38:02.602596Z K 7 svn:log V 1097 When callout_reset_on() cannot immediately migrate a callout since it is running on other cpu, the CALLOUT_PENDING flag is temporarily cleared. Then, callout_stop() on this, in fact active, callout fails because CALLOUT_PENDING is not set, and callout_stop() returns 0. Now, in sleepq_check_timeout(), the failed callout_stop() causes the sleepq code to execute mi_switch() without even setting the wmesg, since the switch-out is supposed to be transient. In fact, the thread is put off the CPU for full timeout interval, instead of being put on runq immediately. Until timeout fires, the process is unkillable for obvious reasons. Fix this by marking the migrating callouts with CALLOUT_DFRMIGRATION flag. The flag is cleared by callout_stop_safe() when the function detects a migration, besides returning the success. The softclock() rechecks the flag for migrating callout and cancels its execution if the flag was cleared meantime. PR: misc/166340 Reported, debugging traces provided and tested by: Christian Esken Reviewed by: avg, jhb MFC after: 1 week END K 10 svn:author V 3 bjk K 8 svn:date V 27 2012-05-03T13:08:11.614555Z K 7 svn:log V 70 Grammar and markup fixes. PR: docs/159854 Approved by: hrs (mentor) END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-05-03T15:25:11.733725Z K 7 svn:log V 194 Fix multiple OpenSSL vulnerabilities. Security: CVE-2011-4576, CVE-2011-4619, CVE-2011-4109 Security: CVE-2012-0884, CVE-2012-2110 Security: FreeBSD-SA-12:01.openssl Approved by: so (bz,simon) END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-05-03T15:34:44.720078Z K 7 svn:log V 316 - correct a bug in pcap_dispatch(): a count of 0 means infinity. - in pcap_dispatch(), issue a prefetch on the buffer before the callback, this may save a little bit of time if the client is very fast. - in pcap_inject(), use a fast copy routine, which also helps saving a few nanoseconds with fast clients. END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-05-03T15:37:05.778908Z K 7 svn:log V 173 - add code to run pkt-gen on top of libpcap so we can see the difference from a native API - add some testing options, such as conditional prefetching and packet copy. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2012-05-03T15:51:34.131271Z K 7 svn:log V 200 Check vplabel for NULL before dereferencing it. Fixes a panic when running atop with MAC_MLS enabled. Submitted by: Richard Kojedzinszky Reviewed by: rwatson MFC after: 1 week END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-05-03T15:54:06.756402Z K 7 svn:log V 316 Fix after clang decided to rename all of its builtins to include a c11 prefix to disambiguate them from the one provided by GCC. Note: Clang 3.1 also supports the GCC builtins for libstdc++ 4.7 compatibility, but I don't recommend using them because they are very poorly designed. MFC after: 2 weeks END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-05-03T16:04:02.002070Z K 7 svn:log V 55 Import a new version of libc++ into the vendor branch. END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-05-03T16:05:34.119972Z K 7 svn:log V 23 Tag new libc++ import. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-05-03T16:06:22.283438Z K 7 svn:log V 116 Make sure the EHCI bandwidth allocation algorithm for FULL speed SPLIT transactions works fully. MFC after: 1 week END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-05-03T16:09:44.075391Z K 7 svn:log V 26 add some performance data END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-03T16:19:41.981431Z K 7 svn:log V 128 MFC r234714, r234700: Document the standardization status of err* and warn* PR: docs/164939 Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-03T16:20:50.844463Z K 7 svn:log V 128 MFC r234714, r234700: Document the standardization status of err* and warn* PR: docs/164939 Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-03T16:21:26.954338Z K 7 svn:log V 128 MFC r234714, r234700: Document the standardization status of err* and warn* PR: docs/164939 Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-03T16:31:21.079636Z K 7 svn:log V 179 MFC r234131: Return EBADF instead of EMFILE from dup2 when the second argument is outside the range of valid file descriptors PR: kern/164970 Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-03T16:31:44.621206Z K 7 svn:log V 179 MFC r234131: Return EBADF instead of EMFILE from dup2 when the second argument is outside the range of valid file descriptors PR: kern/164970 Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-03T16:32:09.331145Z K 7 svn:log V 179 MFC r234131: Return EBADF instead of EMFILE from dup2 when the second argument is outside the range of valid file descriptors PR: kern/164970 Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-03T16:48:48.703923Z K 7 svn:log V 65 MFC r230108: Fix trivial typo Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-03T16:49:27.674066Z K 7 svn:log V 65 MFC r230108: Fix trivial typo Approved by: cperciva (implicit) END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-05-03T16:50:55.452380Z K 7 svn:log V 114 Vendor import of llvm release_31 branch r155985: http://llvm.org/svn/llvm-project/llvm/branches/release_31@155985 END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-05-03T16:52:07.344401Z K 7 svn:log V 36 Tag llvm release_31 branch r155985. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-05-03T16:53:59.987522Z K 7 svn:log V 114 Vendor import of clang release_31 branch r155985: http://llvm.org/svn/llvm-project/cfe/branches/release_31@155985 END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-05-03T16:54:32.463647Z K 7 svn:log V 37 Tag clang release_31 branch r155985. END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-05-03T17:08:40.661642Z K 7 svn:log V 68 add support for pcap receive statistics (used by net-mgmt/darkstat) END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-05-03T17:44:07.878520Z K 7 svn:log V 177 Import new version of libc++. Among other improvements, this comes with an header that works with clang 3.1 (and, importantly, the pre-3.1 snapshot currently in head) END K 10 svn:author V 3 lev K 8 svn:date V 27 2012-05-03T18:12:01.881581Z K 7 svn:log V 24 Merge from HEAD r234962 END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-03T19:55:36.715042Z K 7 svn:log V 168 MFC r233429,r233435,r233437,r234077,r234133,r234135,r234159,r234823: A variety of changes that make the default shell easier to use. Approved by: cperciva (implicit) END