ƒ“}259321 144 408 347 329 152 149 278 278 416 730 147 206 291 337 147 190 288 159 139 592 249 163 322 231 154 523 315 674 261 205 124 148 168 149 316 275 872 221 141 218 157 483 1023 365 981 1409 259 377 1869 145 453 791 302 205 335 178 269 631 166 204 814 661 500 146 146 147 147 147 173 161 128 157 109 624 169 203 719 473 148 373 269 226 745 409 220 2229 2229 284 167 167 169 409 384 114 391 197 176 302 279 620 227 457 188 142 231 199 371 432 206 167 451 166 272 150 382 128 183 118 276 118 159 1614 115 424 312 136 464 1678 1678 1678 150 167 167 498 355 135 425 498 144 367 250 367 305 166 175 K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-13T18:24:36.370465Z K 7 svn:log V 315 MFC r258115 (partial); gperf: bring a small update from Apple Developers tools 4.4 From [1] offset.patch Makes use the C offsetof() macro. We are not merging the size_type.patch as it raises some (apparently) bogus warnings and is not really used. [1] http://opensource.apple.com/source/gperf/gperf-9/patches/ END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T18:26:22.859308Z K 7 svn:log V 254 MFC r257197: Maximize available kva space by doing static device mapping from the top of the address space downwards, and then returning the lowest mapped device address from initarm_lastaddr(). Premap most of the device's on-chip peripherals. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T19:01:50.349162Z K 7 svn:log V 236 MFC r257480: Convert the if/else list of compatible devices to the table-driven ofw_bus_search_compatible() routine. In addition to converting existing strings to table entries, also add compat strings for the whole imx family. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T19:17:09.911283Z K 7 svn:log V 60 MFC r256949: Import basic support for Rockchip RK3188 SoC. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T19:27:23.165179Z K 7 svn:log V 57 MFC r257062: Add the Raspberry Pi SPI controller driver. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-13T19:32:02.782882Z K 7 svn:log V 185 MFV r258571: Removes strict-aliasing warnings from newer GCC in tcpdump. Corresponds to MFC r258573, but for some reason our new pre-commit hooks will not let us merge it from there. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-13T19:38:05.526082Z K 7 svn:log V 185 MFV r258571: Removes strict-aliasing warnings from newer GCC in tcpdump. Corresponds to MFC r258573, but for some reason our new pre-commit hooks will not let us merge it from there. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2013-12-13T20:33:59.034152Z K 7 svn:log V 321 MFC r256724: Make geom_label(4) resize-aware. This fixes a situation when "gpart resize" would resize a partition, but label providers - e.g. /dev/gptid/XXX - would stay the same size. MFC r256766: Fix build with gcc by spelling unused format string as "unused" instead of NULL. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T20:43:11.775206Z K 7 svn:log V 637 MFC r257199, r257200, r257217: Remove all #include from arm code. It's already included by vm/pmap.h, which is a prerequisite for arm/machine/pmap.h so there's no reason to ever include it directly. Remove #include from all the arm code that doesn't really need it. That would be almost everywhere it was included. Add it in a couple files that really do need it and were previously getting it by accident via another header. Remove the last dregs of trapframe_t. It turns out only arm was using this type, so remove it to make arm code more consistant with other platforms. END K 10 svn:author V 3 mjg K 8 svn:date V 27 2013-12-13T20:53:31.778935Z K 7 svn:log V 55 rlimit: add and utilize lim_shared MFC after: 2 weeks END K 10 svn:author V 3 mjg K 8 svn:date V 27 2013-12-13T20:54:45.168451Z K 7 svn:log V 113 rlimit: avoid unnecessary copying of rlimits If refcount is 1 just modify rlimits in place. MFC after: 2 weeks END K 10 svn:author V 5 trasz K 8 svn:date V 27 2013-12-13T21:22:12.040033Z K 7 svn:log V 196 MFC r258871: Properly report an error instead of panicing when user tries to create LUN backed by non-disk device, e.g. /dev/null. Approved by: re (glebius) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2013-12-13T21:27:16.250698Z K 7 svn:log V 242 MFC r259182: Fix handling for empty auth-groups. Without it, ctld child process would either exit on assertion, or, if assertions are not enabled, fail to authenticate the target. Approved by: re (gjb) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 4 tijl K 8 svn:date V 27 2013-12-13T21:28:45.397124Z K 7 svn:log V 54 Add mergeinfo for the MFC of r258573 done in r259326. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T21:40:12.342113Z K 7 svn:log V 98 MFC r257201, r257202 Retire arm_remap_nocache() and the data and constants associated with it. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2013-12-13T21:41:23.449473Z K 7 svn:log V 193 MFC r259183: Properly refuse handoff requests on already connected sessions. Previously this would result in dropping the session. Approved by: re (gjb) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T21:41:40.001372Z K 7 svn:log V 67 MFC r257203: Eliminate a compiler warning about extraneous parens. END K 10 svn:author V 3 ken K 8 svn:date V 27 2013-12-13T21:46:53.682314Z K 7 svn:log V 47 Release Alan Somers (asomers) from mentorship. END K 10 svn:author V 7 asomers K 8 svn:date V 27 2013-12-13T21:49:41.509068Z K 7 svn:log V 495 sbin/devd/devd.cc Increase the size of devd's client socket's send buffer from the default (8k) to 128k. This prevents clients from getting POLLHUPped during event storms. For example, during zpool creation, the kernel emits a resource.fs.zfs.statechange event for every vdev in the pool. A 128k buffer is large enough to hold the statechange events for a pool with nearly 800 drives. Reviewed by: ian, imp Approved by: ken (mentor) Sponsored by: Spectra Logic Corp MFC after: 4 weeks END K 10 svn:author V 6 eadler K 8 svn:date V 27 2013-12-13T21:50:03.616670Z K 7 svn:log V 153 getopt_long.3: wording quibbles - Make wording more clear: "is expect" vs "is expected" [1] - Remove extraneous trailing period.. Reported by: dim [1] END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2013-12-13T21:57:44.457432Z K 7 svn:log V 68 MFC r256658, r256666: Move a lot of debugging printf's to DPRINTF. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:08:31.750345Z K 7 svn:log V 229 MFC r257258, r257265: Include headers (if_var.h and others) where needed. The change that triggered the need for this on head was r257244. That hasn't been MFC'd yet, but there's no harm in paving the way for it with this MFC. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:12:37.015626Z K 7 svn:log V 138 MFC r257383, r257384: Add some bare-bones support for enabling usb and usbphy clocks. Add a "no-op" USB PHY driver for imx-family SoCs. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:15:24.159237Z K 7 svn:log V 62 MFC r257390: Add a vendor entry for Freescale Semiconductor. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:19:21.605190Z K 7 svn:log V 430 MFC r257393: Rework the imx ehci driver so that it's four separate ehci units rather than one unit with four busses attached to it. This allows us to use existing fdt data which describes separate devices with separate resources. It also allows any combination of the units to be en/disabled in the board dts files. Adjust our dts code to match what's used by linux and u-boot now that we're structured to do so. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:21:04.156339Z K 7 svn:log V 222 MFC r257407: Expand the list of compatible devices this driver works with. Increase the target frequency from 1 to 10 MHz because these SoCs are plenty fast enough to benefit from the extra event timer resolution. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:21:49.629806Z K 7 svn:log V 581 MFC r257413: Reset the timer interrupt status register at the top rather than bottom of the interrupt handler. If the event callback starts a new short timeout, the timer can fire before returning from the event callback, and clearing the interrupt status after that loses the interrupt and hangs until the counter wraps. Fixing all of this removes the need for the do-nothing loop at the top of the handler which really just waited for the counter to roll over and reach the one-shot count again. Also add a missing return(0) in the periodic timer start case. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:22:54.739385Z K 7 svn:log V 168 MFC r257418: Don't iterate through the bits of the pending interrupt register if the whole register is zero. Most of the registers will be zero most of the time. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:24:00.312001Z K 7 svn:log V 112 MFC r257419: Do not EOI an interrupt until the point after the filter handlers / before threaded handlers. END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2013-12-13T22:25:20.444322Z K 7 svn:log V 30 Officially record my mentees. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:26:10.476711Z K 7 svn:log V 56 MFC r257452: Add support for the USB PHY on imx6 SoCs. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:27:26.880950Z K 7 svn:log V 76 MFC r257453: Add stubbed-out imx6 support for clocks and power management. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:28:19.017606Z K 7 svn:log V 57 MFC r257454: Add sdhci driver glue for imx family SoCs. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:30:21.088708Z K 7 svn:log V 223 MFC r257476, r257478: Revamp the SoC identity numbering scheme to be more in line with the way Freescale numbers the chips in the ID registers. Add definitions for the register and data that describes the SoC type. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:41:57.452302Z K 7 svn:log V 182 MFC r257483, r257486, r257489: Add the Soc- / machine-dependent parts of imx6 support. Add dts source for imx6 SoCs and for Wandboard boards. Add kernel config for Wandboard. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:46:10.369487Z K 7 svn:log V 779 MFC r257518, r257519: TI sdhci driver improvements, mostly related to fdt data... Use the published compatible strings (our own invention, "ti,mmchs" is still accepted as well, for now). Don't blindly turn on 8-bit bus mode, because even though the controller supports it, the board has to be wired appropriately as well. Use the published property (bus-width=) and honor all the valid values (1,4,8). The eMMC device on a Beaglebone Black is wired for 8-bit, update the dts. The mmchs controller can inherently do both 1.8v and 3.0v on the first device and 1.8v only on other devices, unless an external transceiver is used. Set the voltage automatically for the first device and honor the published fdt property (ti,dualvolt) for other devices. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:48:01.406215Z K 7 svn:log V 128 MFC r257556: Arrange for uart_cpu_fdt's probe() routine to use the same table of compat strings as uart_bus_fdt's probe(). END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:49:18.563736Z K 7 svn:log V 49 MFC r257557: Add a missing register definition. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:50:12.972494Z K 7 svn:log V 125 MFC r257561: Bugfix: the attach routine needs to use the same table of fdt compat strings that the probe routine used. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:51:09.171728Z K 7 svn:log V 65 MFC r257595: Comments and style(9) only, no functional changes. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T22:52:59.507139Z K 7 svn:log V 390 MFC r257603, r257604: Rename WANDBOARD-COMMON to WANDBOARD.common and adjust the configs that include it accordingly. The build machinery for universe and tinderbox tries to build every kernel config whose name begins and ends with [A-Z0-9] and the common include file that has most of the options isn't buildable by itself, so the new lowercase .common will avoid building it. END K 10 svn:author V 7 asomers K 8 svn:date V 27 2013-12-13T22:58:57.962114Z K 7 svn:log V 926 sbin/devd/devd.cc Promoting the SIGINFO handler's log message from LOG_INFO to LOG_NOTICE, and promoting the "Processing event ..." message from LOG_DEBUG to LOG_INFO. Setting the logfile to LOG_NOTICE with this change will have the same result as setting it to LOG_INFO without this change. Setting it to LOG_INFO with this change will include the useful "Processing event ..." messages that were previously at LOG_DEBUG, without including useless messages like "Pushing table". The intent of this change is that one can log "Processing event ..." without logging "Pushing table" and related messages that are sent for every event. The number of lines actually logged is reduced by about 75% by making this change and setting syslog to LOG_INFO vs setting syslog to LOG_DEBUG. etc/syslog.conf Changing the recommended loglevel to notice instead of info. Sponsored by: Spectra Logic Corp MFC after: 4 weeks END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T23:07:22.752438Z K 7 svn:log V 272 MFC r257639: Remove the duplicated implementations of some bus_space functions and use the essentially identical generic implementations instead. The generic implementations differ only in the spelling of a couple variable names and some formatting differences. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T23:56:53.616851Z K 7 svn:log V 888 MFC r257648, r257649, r257660: Begin reducing code duplication in arm pmap.c and pmap-v6.c by factoring out common code related to mapping device memory into a new devmap.c file. Remove the growing duplication of code that used pmap_devmap_find_pa() and then did some math with the returned results to generate a virtual address, and likewise in reverse to get a physical address. Now there are a pair of functions, arm_devmap_vtop() and arm_devmap_ptov(), to do that. The bus_space_map() implementations are rewritten in terms of these. Move remaining code and data related to static device mapping into the new devmap.[ch] files. Emphasize the MD nature of these things by using the prefix arm_devmap_ on the function and type names (already a few of these things found their way into MI code, hopefully it will be harder to do by accident in the future). END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-14T00:16:08.768418Z K 7 svn:log V 1315 MFC r257669, r257672, r257673, r257676, r257678: Call initarm_lastaddr() later in the init sequence, after establishing static device mappings, rather than as the first of the initializations that a platform can hook into. This allows a platform to allocate KVA from the top of the address space downwards for things like static device mapping, and return the final "last usable address" result after that and other early init work is done. Because some platforms were doing work in initarm_lastaddr() that needs to be done early, add a new initarm_early_init() routine and move the early init code to that routine on those platforms. Make PTE_DEVICE a synonym for PTE_NOCACHE on armv4, to make it easier to share the same code on both architectures. Add new helper routines for arm static device mapping. The new code allocates kva space from the top down for the device mappings and builds entries in an internal table which is automatically used later by arm_devmap_bootstrap(). The platform code just calls the new arm_devmap_add_entry() function as many times as it needs to (up to 32 entries allowed; most platforms use 2 or 3 at most). Remove imx local devmap code and use the essentially identical common code that got moved from imx_machdep.c to arm/devmap.c. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-14T00:23:43.188585Z K 7 svn:log V 166 MFC r257924: Apparently with "const uint32_t foo = 0x60;" gcc doesn't consider 'foo' to be a constant integer suitable for use in a case label, so use #defines. END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2013-12-14T00:25:25.897670Z K 7 svn:log V 279 MFC r259234: drm/radeon: agp_info->ai_aperture_size is in bytes, not Mbytes This fixes radeon_agp_init() and gtt_size is now correct. However, this is not enough to make Radeon AGP cards work: ttm_agp_backend.c isn't implemented yet. Submitted by: tijl@ Approved by: re (gjb) END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-14T00:25:57.661578Z K 7 svn:log V 1775 MFC r258076, r258077: This fixes 3 problems in syslogd related to sizing receive buffers... - A call was misplaced at the wrong level of nested if blocks, so that the buffers for unix domain sockets (/dev/log, /dev/klog) were never increased at all; they remained at a way-too-small default size of 4096. - The function that was supposed to double the size of the buffer sometimes did nothing, and sometimes installed a wildly-wrong buffer size (either too large or too small) due to an unitialized 'slen' variable passed to getsockopt(). Most often it doubled the UDP buffers from 40k to 80k because accidentally there would be harmless stack garbage in the unitialized variables. - The whole concept of blindly doubling a socket's buffer size without knowing what size it started at is a design flaw that has to be called a bug. If the double_rbuf() function had worked at all (I.E., if the other two bugs didn't exist) this would lead to UDP sockets having an 80k buffer while unix dgram sockets get an 8k buffer. There's nothing about the problem being solved that requires larger buffers for UDP than for unix dgram sockets -- the buffering requirements are the same regardless of socket type. This change renames the double_rbuf() function to increase_rbuf() and increases the buffer size on all types of sockets to 80k. 80k was chosen only because it appears to be the size the original change was shooting for, and it certainly seems to be reasonably large (I might have picked 64k in the absence of any historical guidance). Add ENETUNREACH and EADDRNOTAVAIL to the list of errors that are potentially transient and shouldn't result in closing the socket and giving up forever. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-12-14T00:36:29.090089Z K 7 svn:log V 45 Work without a /usr/ports on the submit node END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2013-12-14T00:40:47.284133Z K 7 svn:log V 355 MFC r259236: drm/radeon: radeon_dp_i2c_aux_ch() must return 0 on FreeBSD The code was unmodified compared to Linux and returned the amount of received bytes from the i2c bus. This led to non-working i2c bus and failure to eg. read monitor's EDID, if connected to DisplayPort. Tested by: MikaĆ«l Urankar Approved by: re (gjb) END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-14T00:54:05.642254Z K 7 svn:log V 698 MFC r257892, r258196, r258197, r258199, r258200, r258201, r258202: Add ONFI signature check. Add Micron chip found in Freescale Vybrid Family Phytec COSMIC board. The vendor specified field is 88 bytes, not 8 bytes. Update the onfi_params struct to ONFI revision 3.2 (06 12 2013). Search for and validate the ONFI params as specified in the standard. ONFI parameters are little-endian, hence we must take care to convert them to native endianness. We must also pay attention to unaligned accesses. Rework the routine that returns a pointer to the table of software ECC byte positions within the OOB area to support chips with unusual OOB sizes such as 218 or 224 bytes. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-14T00:55:34.289372Z K 7 svn:log V 209 MFC r258740: Look up a nand chip by id in the static table before trying to obtain ONFI parameters. This allows a static table entry to provide valid data for chips known to provide invalid ONFI data. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-14T00:57:05.643989Z K 7 svn:log V 112 MFC r258240: In the data abort handler, don't panic if kdb is available and says it handled the condition. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-14T00:58:13.767653Z K 7 svn:log V 242 MFC r258356: Bugfixes... the host capabilties from FDT data are stored in host.caps, not host.host_ocr, examine the correct field when setting up the hardware. Also, the offset for the capabilties register should be 0x140, not 0x240. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-14T00:59:40.710500Z K 7 svn:log V 86 MFC r258393: Add USB_HOST_ALIGN=64; the cache line size on the am335x is 64 bytes. END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2013-12-14T01:01:32.720488Z K 7 svn:log V 171 MFC r259237: drm: Read PCIER_LINK_CAP/PCIER_LINK_CAP2 from the PCI bridge Before this fix, capabilities were read from vgapci and were incorrect. Approved by: re (gjb) END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-14T01:12:13.034542Z K 7 svn:log V 538 MFC r258392, r258412: Call cpu_setup() immediately after the page tables are installed. This enables data cache and other chip-specific features. It was previously done via an early SYSINIT, but it was being done after pmap and vm setup, and those setups need to use mutexes. On some modern ARM platforms, the ldrex/strex instructions that implement mutexes require the data cache to be enabled. Call cpu_setup() from the initarm() routine on platforms that don't use the common FDT-aware initarm() in arm/machdep.c. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-14T01:14:38.589234Z K 7 svn:log V 74 MFC r258820: Add definitions for the PIO pins found on recent AT91 SoCs. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-14T01:15:26.811485Z K 7 svn:log V 111 MFC r258828: Add a nand flash controller driver for Atmel at91 family. Tested only on at91rm9200 so far. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-14T01:34:24.304929Z K 7 svn:log V 721 MFC r259038, r259039: Bump the maximum VM space from 3 * memory size to a fixed 256MB. That's all we have room for since we map the hardware registers starting at 0xd0000000. This allows my 64MB AT91SAM9G20 to boot again after the unmmaped I/O changes were MFC'd at r251897. Other subplatforms may need similar treatment. Although not strictly required to boot a 64MB board, bump vm_max_virtual_address to be KERNVIRTADDR + 256MB. This allows some future shock protection since the KVA requirements have gone up since the unmapped changes have gone in, as well as preventing us from overlapping with the hardware devices, which we map at 0xd0000000, which we'd hit with anything more than 85MB... END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-14T01:35:57.550042Z K 7 svn:log V 568 MFC r259212, r259220: Fix one race and one fence post error. When the TX buffer was completely full, we'd not complete any of the mbufs due to the fence post error (this creates a large leak). When this is fixed, we still leak, but at a much smaller rate due to a race between ateintr and atestart_locked as well as an asymmetry where atestart_locked is called from elsewhere. Ensure that we free in-flight packets that have completed there as well. Also remove needless check for NULL on mb, checked earlier in the loop and simplify a redundant if. END K 10 svn:author V 2 np K 8 svn:date V 27 2013-12-14T03:08:03.111910Z K 7 svn:log V 408 Read card capabilities after firmware initialization, instead of setting them up as part of firmware initialization (which the driver gets to do only if it's the master driver). Read the range of tids available for the ETHOFLD functionality if it's enabled. New is_ftid() and is_etid() functions to test whether a tid falls within the range of filter tids or ETHOFLD tids respectively. MFC after: 2 weeks END K 10 svn:author V 2 ae K 8 svn:date V 27 2013-12-14T04:16:27.909695Z K 7 svn:log V 55 MFC r257965: Add missing line breaks. PR: 181900 END K 10 svn:author V 2 ae K 8 svn:date V 27 2013-12-14T04:16:47.000430Z K 7 svn:log V 55 MFC r257965: Add missing line breaks. PR: 181900 END K 10 svn:author V 2 ae K 8 svn:date V 27 2013-12-14T04:24:32.756428Z K 7 svn:log V 56 MFC r257987: Initialize prot variable. PR: 177417 END K 10 svn:author V 2 ae K 8 svn:date V 27 2013-12-14T04:24:50.545293Z K 7 svn:log V 56 MFC r257987: Initialize prot variable. PR: 177417 END K 10 svn:author V 2 ae K 8 svn:date V 27 2013-12-14T04:27:28.401430Z K 7 svn:log V 56 MFC r257987: Initialize prot variable. PR: 177417 END K 10 svn:author V 3 rmh K 8 svn:date V 27 2013-12-14T11:32:58.194228Z K 7 svn:log V 81 MFC r259003: Initialize modesetting sysctls in radeonkms. Approved by: re (gjb) END K 10 svn:author V 4 bapt K 8 svn:date V 27 2013-12-14T13:31:19.065546Z K 7 svn:log V 68 Add Bryan Drewery (bdrewery) as a src committer. Approved by: core END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-12-14T14:47:29.986430Z K 7 svn:log V 33 Add devices the PandaBoard needs END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-12-14T14:49:09.296952Z K 7 svn:log V 62 Add cpu_reset, cpu_initclocks, and DELAY to the platform code END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2013-12-14T17:46:58.054767Z K 7 svn:log V 12 MFC@r259387 END K 10 svn:author V 5 gavin K 8 svn:date V 27 2013-12-14T18:49:59.688610Z K 7 svn:log V 529 Fix several panics when initialization of an ISA or PC-CARD device fails: o Assign sc->an_dev in an_probe() (which isn't really a probe function in the standard newbus sense) as we may need it for printing errors. o Use device_printf() rather than if_printf() in an_reset() - this is called from an_probe() long before the ifp structure is initialised in an_attach(). o Initialize the ifp structure early in an_attach() as we use if_printf() in cases where allocation of descriptors etc fails. MFC after: 3 days END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2013-12-14T19:01:24.391055Z K 7 svn:log V 72 Rebase the PMC indices at 1, since PMC_SOFT is at 0. MFC after: 1 week END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2013-12-14T20:12:28.578832Z K 7 svn:log V 105 Add userland PMC backtracing, and use the PMC trapframe macros for kernel backtraces. MFC after: 1 week END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-12-14T20:55:53.762010Z K 7 svn:log V 626 MFC r259113, r259115, r259144, r259148: r259113 (dteske): Fix failed attempt to send pkg(8) stderr to /dev/null r259115 (dteske): Prevent truncating /tmp/bsdinstall_log each time we exec a module. r259144 (dteske): Fix a regression after successfully installing to encrypted ZFS root, the passphrase is not accepted and a message about "incorrect key" is displayed. r259148 (dteske): Fix a regression resulting in mountroot prompt after attempting to install to encrypted ZFS root (caused by a typo in a variable name -- ZFSBOOT_BOOT_FSNAME -> ZFSBOOT_BOOTFS_NAME). Sponsored by: The FreeBSD Foundation END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-12-14T22:07:40.677008Z K 7 svn:log V 372 Widen lun_id_t to 64 bits. This is a follow-on to r257345 to let the kernel support all valid SAM-5 LUN IDs. CAM_VERSION is bumped, as the CAM ABI (though not API) is changed. No behavior is changed relative to r257345 except that LUNs with non-zero high 32 bits will no longer be ignored during device enumeration for SIMs that have set PIM_EXTLUNS. Reviewed by: scottl END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-12-14T22:28:32.481332Z K 7 svn:log V 48 Avoid warning about insecure format with clang. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-12-14T22:39:01.685690Z K 7 svn:log V 280 MFC r256430: Reduce disc1.iso image size by installing the userland with the WITHOUT_PROFILE=1 option set, trimming 56MB from the image. This change was somehow lost during the 10.0-RELEASE cycle, and is intended for MFC to releng/10.0. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-12-14T22:41:17.222966Z K 7 svn:log V 176 Reduce disc1.iso size by 74MB by removing lib32 libraries, sendmail, and atf. MFC after: 3 days X-MFC-To-10: immediate (-RC2 requirement) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-12-14T22:43:30.009606Z K 7 svn:log V 133 MFC r259400: Reduce disc1.iso size by 74MB by removing lib32 libraries, sendmail, and atf. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-12-15T03:20:01.362108Z K 7 svn:log V 652 MFC r259113, r259115, r259144, r259148: r259113 (dteske): Fix failed attempt to send pkg(8) stderr to /dev/null r259115 (dteske): Prevent truncating /tmp/bsdinstall_log each time we exec a module. r259144 (dteske): Fix a regression after successfully installing to encrypted ZFS root, the passphrase is not accepted and a message about "incorrect key" is displayed. r259148 (dteske): Fix a regression resulting in mountroot prompt after attempting to install to encrypted ZFS root (caused by a typo in a variable name -- ZFSBOOT_BOOT_FSNAME -> ZFSBOOT_BOOTFS_NAME). Approved by: re (glebius) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-12-15T03:21:59.692572Z K 7 svn:log V 316 MFC r256430, r259400: r256430: Reduce disc1.iso image size by installing the userland with the WITHOUT_PROFILE=1 option set, trimming 56MB from the image. r259400: Reduce disc1.iso size by 74MB by removing lib32 libraries, sendmail, and atf. Approved by: re (glebius) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-12-15T03:31:36.753801Z K 7 svn:log V 127 Update releng/10.0 to -RC2 as part of the 10.0-RELEASE cycle. Approved by: re (implicit) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-15T03:47:31.683788Z K 7 svn:log V 2135 MFC rr258501, r258507; gcc: Bring updates from Google's enhanced gcc-4.2.1. Google released and enhanced version of gcc-4.2.1 plus their local patches for Android[1]. The patches are owned by Google and the license hasn't been changed from the original GPLv2. We are only bringing a subset of the available patches that may be helpful in FreeBSD, in other words, changes specific to android are not included. From the README.google file[1]. Patches applied to google_vendor_src_branch/gcc/gcc-4.2.1: gcc/Makefile.in gcc/c-common.c gcc/c-common.h gcc/c-opts.c gcc/c-typeck.c gcc/cp/typeck.c gcc/doc/invoke.texi gcc/flags.h gcc/opts.c gcc/tree-flow.h gcc/tree-ssa-alias-warnings.c gcc/tree-ssa-alias.c Backport of -Wstrict-aliasing from mainline. Silvius Rus gcc/coverage.c: Patch coverage_checksum_string for PR 25351. Seongbae Park Not yet submitted to FSF. gcc/c-opts.c gcc/c-ppoutput.c gcc/c.opt gcc/doc/cppopts.texi libcpp/Makefile.in libcpp/directives-only.c libcpp/directives.c libcpp/files.c libcpp/include/cpplib.h libcpp/init.c libcpp/internal.h libcpp/macro.c Support for -fdirectives-only. Ollie Wild . Submitted to FSF but not yet approved. libstdc++-v3/include/ext/hashtable.h http://b/742065 http://b/629994 Reduce min size of hashtable for hash_map, hash_set from 53 to 5 libstdc++-v3/include/ext/hashtable.h http://b/629994 Do not iterate over buckets if hashtable is empty. gcc/common.opt gcc/doc/invoke.texi gcc/flags.h gcc/gimplify.c gcc/opts.c Add Saito's patch for -finstrument-functions-exclude-* options. gcc/common.opt gcc/doc/invoke.texi gcc/final.c gcc/flags.h gcc/opts.c gcc/testsuite/gcc.dg/Wframe-larger-than.c Add a new flag -Wframe-larger-than- which enables a new warning when a frame size of a function is larger than specified. This patch hasn't been integrated into gcc mainline yet. gcc/tree-vrp.c Add a hack to avoid using ivopts information for pointers starting at constant values. Reference: [1] https://android.googlesource.com/toolchain/gcc/+/master/gcc-4.2.1/ Obtained from: Google Inc. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-15T03:48:54.906691Z K 7 svn:log V 2135 MFC rr258501, r258507; gcc: Bring updates from Google's enhanced gcc-4.2.1. Google released and enhanced version of gcc-4.2.1 plus their local patches for Android[1]. The patches are owned by Google and the license hasn't been changed from the original GPLv2. We are only bringing a subset of the available patches that may be helpful in FreeBSD, in other words, changes specific to android are not included. From the README.google file[1]. Patches applied to google_vendor_src_branch/gcc/gcc-4.2.1: gcc/Makefile.in gcc/c-common.c gcc/c-common.h gcc/c-opts.c gcc/c-typeck.c gcc/cp/typeck.c gcc/doc/invoke.texi gcc/flags.h gcc/opts.c gcc/tree-flow.h gcc/tree-ssa-alias-warnings.c gcc/tree-ssa-alias.c Backport of -Wstrict-aliasing from mainline. Silvius Rus gcc/coverage.c: Patch coverage_checksum_string for PR 25351. Seongbae Park Not yet submitted to FSF. gcc/c-opts.c gcc/c-ppoutput.c gcc/c.opt gcc/doc/cppopts.texi libcpp/Makefile.in libcpp/directives-only.c libcpp/directives.c libcpp/files.c libcpp/include/cpplib.h libcpp/init.c libcpp/internal.h libcpp/macro.c Support for -fdirectives-only. Ollie Wild . Submitted to FSF but not yet approved. libstdc++-v3/include/ext/hashtable.h http://b/742065 http://b/629994 Reduce min size of hashtable for hash_map, hash_set from 53 to 5 libstdc++-v3/include/ext/hashtable.h http://b/629994 Do not iterate over buckets if hashtable is empty. gcc/common.opt gcc/doc/invoke.texi gcc/flags.h gcc/gimplify.c gcc/opts.c Add Saito's patch for -finstrument-functions-exclude-* options. gcc/common.opt gcc/doc/invoke.texi gcc/final.c gcc/flags.h gcc/opts.c gcc/testsuite/gcc.dg/Wframe-larger-than.c Add a new flag -Wframe-larger-than- which enables a new warning when a frame size of a function is larger than specified. This patch hasn't been integrated into gcc mainline yet. gcc/tree-vrp.c Add a hack to avoid using ivopts information for pointers starting at constant values. Reference: [1] https://android.googlesource.com/toolchain/gcc/+/master/gcc-4.2.1/ Obtained from: Google Inc. END K 10 svn:author V 3 mjg K 8 svn:date V 27 2013-12-15T04:11:43.445938Z K 7 svn:log V 191 proc exit: don't take PROC_LOCK while freeing rlimits Code wishing to check rlimits of some process should check whether it is exiting first, which current consumers do. MFC after: 2 weeks END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-15T04:27:49.081272Z K 7 svn:log V 75 MFC r258530; libcpp: Keep a record of changes from upstream GCC (pre-43). END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-15T04:28:20.779751Z K 7 svn:log V 75 MFC r258530; libcpp: Keep a record of changes from upstream GCC (pre-43). END K 10 svn:author V 5 luigi K 8 svn:date V 27 2013-12-15T07:04:59.989882Z K 7 svn:log V 75 revise the helper functions to lookup binaries and their shared libraries. END K 10 svn:author V 6 alfred K 8 svn:date V 27 2013-12-15T07:07:13.075312Z K 7 svn:log V 313 Defer start/stop port to workqueues. We need to do this because the Linux compat layer uses sx(9) for mutex, however the lagg code uses rmlocks and calls into the mellanox driver. This causes deadlock due to sleeping while holding a rmlock. Submitted by: Shahar Klein (shahark mellanox.com) MFC After: 3 days. END K 10 svn:author V 5 luigi K 8 svn:date V 27 2013-12-15T08:37:24.185622Z K 7 svn:log V 289 split netmap code according to functions: - netmap.c base code - netmap_freebsd.c FreeBSD-specific code - netmap_generic.c emulate netmap over standard drivers - netmap_mbq.c simple mbuf tailq - netmap_mem2.c memory management - netmap_vale.c VALE switch simplify devce-specific code END K 10 svn:author V 4 joel K 8 svn:date V 27 2013-12-15T08:52:16.339265Z K 7 svn:log V 21 mdoc: sort SEE ALSO. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-12-15T13:15:38.737374Z K 7 svn:log V 295 Move _end back to the end of the kernel's bss and add an _ebss value to find the end of the bss to clear. Without this the kernel breaks when the size of the .text section is wrong by pushing the startup page table into the area allocated in initarm. It was only by luck this worked previously. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-12-15T15:37:07.269012Z K 7 svn:log V 101 Reorder pmap.h to check for a v6+ MMU first. We are unable to have both v4/5 and v6/7 in the kernel. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-12-15T15:51:05.574337Z K 7 svn:log V 76 Bump libcam shared library version forgotten in r259397. Submitted by: kib END K 10 svn:author V 3 hrs K 8 svn:date V 27 2013-12-15T16:17:00.304464Z K 7 svn:log V 209 Replace Sun RPC license for TI-RPC library with a 3-clause BSD license, with the explicit permission of Sun Microsystems in 2009. The code in question in this file was copied from lib/libc/rpc/pmap_getport.c. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-12-15T16:58:23.107582Z K 7 svn:log V 178 Set max_lun to zero. This field is ignored unless we are manually probing LUNs anyway, and we certainly don't want to probe 2^32 values by hand in that case. MFC after: 2 weeks END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-12-15T18:01:18.622921Z K 7 svn:log V 524 Bump BUS_SPACE_MAXADDR from 2^31-1 to 2^64-1. The bus_dma compat layer panics, because it checks that the maximum address passed to bus_dma_tag_create() matches BUS_SPACE_MAXADDR and finds that it doesn't for psycho(4). The psycho(4) driver passes ~0 and not BUS_SPACE_MAXADDR. sparc64 is a 64-bit archirecture, so why isn't BUS_SPACE_MAXADDR 2^61-1? I'm probably groing to regret this change, but so far it doesn't look like it's having any negative side-effects. While here, postfix U and UL to the BUS_SPACE constants. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-12-15T18:05:04.325853Z K 7 svn:log V 131 Add support for switching sparc64 to busdma/mi. The legacy bus_dma bits are conditionally compiled based on LEGACY_BUS_DMA option. END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2013-12-15T18:07:25.046857Z K 7 svn:log V 359 Save r3 before using it for the trap check, else we end up saving the new r3, containing the trap instruction encoding (0x7c810808), and restoring it back with the frame on return. This caused it to panic on my ppc32 machine, but somehow my ppc64 machine overlooked it, because I was using such a simple dtrace probe. X-MFC-with: r259245 MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-12-15T18:13:42.754368Z K 7 svn:log V 96 Revert r259045. It seems that clang miscompiles code related to UDP with -fno-strict-overflow. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-12-15T18:22:51.524449Z K 7 svn:log V 47 Put maxaddr in the panic string. It's helpful. END K 10 svn:author V 3 bjk K 8 svn:date V 27 2013-12-15T18:26:31.961572Z K 7 svn:log V 138 Increment __FreeBSD_version for the behavior change of gss_pseudo_random introduced in r259286. Approved by: hrs (mentor, src committer) END K 10 svn:author V 3 bjk K 8 svn:date V 27 2013-12-15T19:18:18.876878Z K 7 svn:log V 106 Add an UPDATING entry for the gss_pseudo_random behavior change Approved by: hrs (mentor, src committer) END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-12-15T20:38:07.546258Z K 7 svn:log V 278 Add a pkg(8) repository configuration file for cdrom-based package installation. As part of the 'pkg-stage' target, copy the configuration file to the 'packages/repos/' directory on the DVD filesystem. MFC after: 3 days X-MFC-Before: -RC3 Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-12-15T20:47:27.350759Z K 7 svn:log V 339 Export 'REPOS_DIR' when the selected source medium for package installation is cdrom. This enables bsdconfig(8) to make use of the on-disc pkg(8) repository configuration, which fixes package selection and installation from the dvd installer. MFC after: 3 days M-MFC-With: r259426 X-MFC-Before: -RC3 Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-12-15T22:51:26.715303Z K 7 svn:log V 113 Clear content of keyfiles loaded by the loader after processing them. Pointed out by: rwatson MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-12-15T22:52:18.446112Z K 7 svn:log V 75 Clear some more places with potentially sensitive data. MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-12-15T22:58:09.317319Z K 7 svn:log V 358 MFp4 @1189139: Get rid of the msg_peek() function, which has a problem. If there was less data in the socket buffer than requested by the caller, the function would busy loop, as select(2) will always return immediately. We can just receive nvlhdr now, because some time ago we splitted receive of data from the receive of descriptors. MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-12-15T22:59:34.124796Z K 7 svn:log V 74 MFp4 @1189141: Change casperd's zygote process title. MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-12-15T23:02:36.364080Z K 7 svn:log V 179 Make use of casperd's system.dns service when running without the -n option. Now tcpdump(8) is sandboxed even if DNS resolution is required. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-12-15T23:05:19.085836Z K 7 svn:log V 58 Add Casper support. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-12-15T23:09:05.769923Z K 7 svn:log V 289 Make use of Casper's system.pwd and system.grp services when the -r option is given to convert uids and gids to user names and group names even when running in capability mode sandbox. While here log on stderr when we successfully enter the sandbox. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-12-15T23:12:42.202375Z K 7 svn:log V 36 Forgot to regenerate after r257736. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-12-15T23:14:27.346805Z K 7 svn:log V 91 Allow for pselect(2) in capability mode. Noticed by: David Drysdale END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-12-15T23:15:12.825460Z K 7 svn:log V 26 Regenerate after r259436. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-12-15T23:19:42.966282Z K 7 svn:log V 183 Fix syscalls that can be loaded as kernel modules - they were not given the flag allowing to call them from capability mode sandbox. Noticed by: David Drysdale END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-12-15T23:20:26.375168Z K 7 svn:log V 26 Regenerate after r259438. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-12-15T23:49:42.040769Z K 7 svn:log V 67 Include bsd.own.mk for MK_CASPER to work. Reported by: nwhitehorn END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-12-16T00:50:14.793955Z K 7 svn:log V 1517 Properly drain the TTY when both revoke(2) and close(2) end up closing the TTY. In such a case, ttydev_close() is called multiple times and each time, t_revokecnt is incremented and cv_broadcast() is called for both the t_outwait and t_inwait condition variables. Let's say revoke(2) comes in first and gets to call tty_drain() from ttydev_leave(). Let's say that the revoke comes from init(8) as the result of running "shutdown -r now". Since shutdown prints various messages to the console before announing that the machine will reboot immediately, let's also say that the output queue is not empty and that tty_drain() has something to do. Let's assume this all happens on a 9600 baud serial console, so it takes a time to drain. The shutdown command will exit(2) and as such will end up closing stdout. Let's say this close will come in second, bump t_revokecnt and call tty_wakeup(). This has tty_wait() return prematurely and the next thing that will happen is that the thread doing revoke(2) will flush the TTY. Since the drain wasn't complete, the flush will effectively drop whatever is left in t_outq. This change takes into account that tty_drain() will return ERESTART due to the fact that t_revokecnt was bumped and in that case simply call tty_drain() again. The thread in question is already performing the close so it can safely finish draining the TTY before destroying the TTY structure. Now all messages from shutdown will be printed on the serial console. Obtained from: Juniper Networks, Inc. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-12-16T00:59:05.464823Z K 7 svn:log V 20 Merge ^/head@259441 END K 10 svn:author V 6 eadler K 8 svn:date V 27 2013-12-16T01:20:18.190056Z K 7 svn:log V 328 MFC r259132,r259133,r259143: Per the resolution of POSIX bug 0000779 (note 0002050) add support for using 'i' as a case insensitive flag. Add regression test for recently added 'i' flag in r259132. the i modifier was added in r259132 since POSIX recently agreed to add it. Switch uses of /I to /i. PR: standards/184641 END K 10 svn:author V 6 eadler K 8 svn:date V 27 2013-12-16T01:22:57.462383Z K 7 svn:log V 216 MFC r259132,r259133: Per the resolution of POSIX bug 0000779 (note 0002050) add support for using 'i' as a case insensitive flag. Add regression test for recently added 'i' flag in r259132. PR: standards/184641 END K 10 svn:author V 5 peter K 8 svn:date V 27 2013-12-16T01:47:52.067755Z K 7 svn:log V 42 Record r258428 and r258445 as not merged. END K 10 svn:author V 3 bjk K 8 svn:date V 27 2013-12-16T01:58:12.024463Z K 7 svn:log V 371 tzfile.5: catch up to r204333 The stdtime sources were moved from lib/libc to contrib/tzcode, and tzfile.h is not an installed header, so the man page refers to its location in the source tree. The documentation could be more clear about the internal nature of the header, but those changes should go through upstream tzcode. PR: docs/176864 Approved by: hrs (mentor) END K 10 svn:author V 3 bjk K 8 svn:date V 27 2013-12-16T02:04:28.453155Z K 7 svn:log V 1584 MFC r259286,259424,259425: Apply patch from upstream Heimdal for encoding fix RFC 4402 specifies the implementation of the gss_pseudo_random() function for the krb5 mechanism (and the C bindings therein). The implementation uses a PRF+ function that concatenates the output of individual krb5 pseudo-random operations produced with a counter and seed. The original implementation of this function in Heimdal incorrectly encoded the counter as a little-endian integer, but the RFC specifies the counter encoding as big-endian. The implementation initializes the counter to zero, so the first block of output (16 octets, for the modern AES enctypes 17 and 18) is unchanged. (RFC 4402 specifies that the counter should begin at 1, but both existing implementations begin with zero and it looks like the standard will be re-issued, with test vectors, to begin at zero.) This is upstream's commit f85652af868e64811f2b32b815d4198e7f9017f6, from 13 October, 2013: % Fix krb5's gss_pseudo_random() (n is big-endian) % % The first enctype RFC3961 prf output length's bytes are correct because % the little- and big-endian representations of unsigned zero are the % same. The second block of output was wrong because the counter was not % being encoded as big-endian. % % This change could break applications. But those applications would not % have been interoperating with other implementations anyways (in % particular: MIT's). Bump __FreeBSD_version accordingly and add a note in UPDATING. Approved by: hrs (mentor, src committer) END K 10 svn:author V 3 bjk K 8 svn:date V 27 2013-12-16T02:25:28.475823Z K 7 svn:log V 1584 MFC r259286,259424,259425: Apply patch from upstream Heimdal for encoding fix RFC 4402 specifies the implementation of the gss_pseudo_random() function for the krb5 mechanism (and the C bindings therein). The implementation uses a PRF+ function that concatenates the output of individual krb5 pseudo-random operations produced with a counter and seed. The original implementation of this function in Heimdal incorrectly encoded the counter as a little-endian integer, but the RFC specifies the counter encoding as big-endian. The implementation initializes the counter to zero, so the first block of output (16 octets, for the modern AES enctypes 17 and 18) is unchanged. (RFC 4402 specifies that the counter should begin at 1, but both existing implementations begin with zero and it looks like the standard will be re-issued, with test vectors, to begin at zero.) This is upstream's commit f85652af868e64811f2b32b815d4198e7f9017f6, from 13 October, 2013: % Fix krb5's gss_pseudo_random() (n is big-endian) % % The first enctype RFC3961 prf output length's bytes are correct because % the little- and big-endian representations of unsigned zero are the % same. The second block of output was wrong because the counter was not % being encoded as big-endian. % % This change could break applications. But those applications would not % have been interoperating with other implementations anyways (in % particular: MIT's). Bump __FreeBSD_version accordingly and add a note in UPDATING. Approved by: hrs (mentor, src committer) END K 10 svn:author V 3 bjk K 8 svn:date V 27 2013-12-16T02:30:56.878093Z K 7 svn:log V 1584 MFC r259286,259424,259425: Apply patch from upstream Heimdal for encoding fix RFC 4402 specifies the implementation of the gss_pseudo_random() function for the krb5 mechanism (and the C bindings therein). The implementation uses a PRF+ function that concatenates the output of individual krb5 pseudo-random operations produced with a counter and seed. The original implementation of this function in Heimdal incorrectly encoded the counter as a little-endian integer, but the RFC specifies the counter encoding as big-endian. The implementation initializes the counter to zero, so the first block of output (16 octets, for the modern AES enctypes 17 and 18) is unchanged. (RFC 4402 specifies that the counter should begin at 1, but both existing implementations begin with zero and it looks like the standard will be re-issued, with test vectors, to begin at zero.) This is upstream's commit f85652af868e64811f2b32b815d4198e7f9017f6, from 13 October, 2013: % Fix krb5's gss_pseudo_random() (n is big-endian) % % The first enctype RFC3961 prf output length's bytes are correct because % the little- and big-endian representations of unsigned zero are the % same. The second block of output was wrong because the counter was not % being encoded as big-endian. % % This change could break applications. But those applications would not % have been interoperating with other implementations anyways (in % particular: MIT's). Bump __FreeBSD_version accordingly and add a note in UPDATING. Approved by: hrs (mentor, src committer) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-12-16T06:41:31.663338Z K 7 svn:log V 54 MFC r258950: Enable Hyper-V support in i386 GENERIC. END K 10 svn:author V 3 bjk K 8 svn:date V 27 2013-12-16T06:52:30.898639Z K 7 svn:log V 75 Fix build breakage after r259448 Approved by: hrs (mentor, src committer) END K 10 svn:author V 3 bjk K 8 svn:date V 27 2013-12-16T06:56:38.702910Z K 7 svn:log V 75 Fix build breakage after r259449 Approved by: hrs (mentor, src committer) END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-12-16T08:10:38.657111Z K 7 svn:log V 400 MFC r238274, r246752, r256720, r256721, r256722, r256955, r257409 r257429, r257435, r257712, r257732, r257743, r257748, r257955 r257957, r257958, r258082, r258641, r258643, r258732, r258733, r258840, r258919, r258921, r259029, r259030, r259031, r259032 and r259046: - Add support for the MediaTek/Ralink RT5370/RT5372 chipset. - Various minor USB WLAN fixes and improvements. PR: usb/182936 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-12-16T08:51:58.048295Z K 7 svn:log V 257 MFC r244503 and r246565: Make sure all USB drivers allocate buffer memory through the USB API and/or busdma. The following assumptions have been made: umass - buffers passed from CAM/SCSI layer are OK network - mbufs are OK. Some other nits while at it. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-12-16T08:54:24.414967Z K 7 svn:log V 38 MFC r246765: Remove unused variable. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-12-16T08:56:45.940851Z K 7 svn:log V 327 MFC r246614: - Streamline detach logic in wlan drivers, so that freed memory cannot be used during detach. - Remove all panic() calls from the urtw driver because panic() is not appropriate here. - Remove redundant checks for device detached in device detach callbacks. - Use DEVMETHOD_END to mark end of device methods. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-12-16T09:07:09.524133Z K 7 svn:log V 400 MFC r238274, r246752, r256720, r256721, r256722, r256955, r257409 r257429, r257435, r257712, r257732, r257743, r257748, r257955 r257957, r257958, r258082, r258641, r258643, r258732, r258733, r258840, r258919, r258921, r259029, r259030, r259031, r259032 and r259046: - Add support for the MediaTek/Ralink RT5370/RT5372 chipset. - Various minor USB WLAN fixes and improvements. PR: usb/182936 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-12-16T09:23:21.724765Z K 7 svn:log V 47 MFC r258083: Remove a couple of unused macros. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-12-16T09:31:15.438215Z K 7 svn:log V 269 MFC r256718, r257410 and r257411: - Fix RF registers for RT3070. - Initialize BBP68 to improve RX sensitivity. - Add RT2860_BCN_OFFSET1 and RT2860_MAX_LEN_CFG register initialization to match with the vendor driver. While here, remove unused RT2860_DEF_MAC definition. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-12-16T09:34:01.140138Z K 7 svn:log V 152 MFC r253757: Fix alignment of USB WLAN radiotap headers. This makes USB WLAN adapters work on ARM, MIPS and similar platforms, where alignment matters. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-12-16T09:48:08.727000Z K 7 svn:log V 269 MFC r256718, r257410 and r257411: - Fix RF registers for RT3070. - Initialize BBP68 to improve RX sensitivity. - Add RT2860_BCN_OFFSET1 and RT2860_MAX_LEN_CFG register initialization to match with the vendor driver. While here, remove unused RT2860_DEF_MAC definition. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-12-16T10:50:13.610690Z K 7 svn:log V 207 Fix regression issue after r259248: Some Intel XHCI controlles timeout processing so-called "TRBs" when the final LINK TRB of a so-called "TD" has the CHAIN-BIT set. MFC after: 1 week Tested by: glebius @ END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-12-16T11:03:59.470677Z K 7 svn:log V 74 Start-up script for casperd daemon. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-12-16T13:52:18.784389Z K 7 svn:log V 83 Fix periodic per-CPU timers startup on boot. Reported by: neel MFC after: 2 weeks END