ƒ´6195631 163 756 439 449 508 582 257 338 212 507 251 284 312 476 145 142 112 115 112 2024 120 213 428 225 635 1133 178 545 134 240 363 170 192 225 434 199 206 696 199 181 206 254 208 131 108 219 238 380 168 256 256 172 170 215 303 355 245 364 254 437 236 174 166 529 247 134 131 636 134 2157 319 331 446 389 401 198 403 396 392 193 1324 573 159 122 650 115 123 147 123 191 104 161 104 141 310 177 263 318 108 233 329 145 165 133 167 120 109 129 585 129 678 252 210 1038 401 210 153 573 219 652 225 218 476 174 185 359 330 292 224 201 941 390 1080 190 344 124 135 336 303 229 288 377 287 412 786 510 145 129 297 684 129 142 652 779 426 829 138 289 359 257 205 420 252 113 K 10 svn:author V 6 marcel K 8 svn:date V 27 2009-07-12T03:53:52.152911Z K 7 svn:log V 660 Revert rev 192323 (nfs_common.c only): The D-cache flushing added here was to deal with I-cache incoherency observed on ia64. However, the problem was in the implementation of pmap_enter_object() for ia64: it was missing I-cache coherency logic for prefaulted pages. After this got added in rev 195625, testing showed that no D-cache flushing was required. The SIGILL that was observed on Book-E (see commit log for rev 192323) ended up not being related to I-cache incoherency, but was found to be caused by bad memory. This discovery further undermined the need for D-cache flushing in the NFS I/O code, triggering the reversal. Approved by: re (kensmith) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2009-07-12T04:07:52.556709Z K 7 svn:log V 338 Increase the size of the page table on 64-bit PowerPC machines as a bandaid to prevent exhaustion of the primary and secondary hash groups in the event of extreme stress on the PMAP layer (e.g. a forkbomb). This wastes memory, and should be revised to properly handle PTEG spills instead. Suggested by: grehan Approved by: re (kensmith) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2009-07-12T04:48:47.325860Z K 7 svn:log V 353 Rename option USBVERBOSE to USB_VERBOSE for 2 reasons: 1. USB_VERBOSE is more consistent with USB_DEBUG, 2. sys/dev/usb/usb_device.c uses option USB_VERBOSE and not USBVERBOSE. POLA with the USBVERBOSE option as it's found in 7-STABLE has been considered but found insignificant in the face of the USB stack overhaul. Approved by: re (kensmith) END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-07-12T09:14:28.528424Z K 7 svn:log V 410 Pad the following TCP related structs to allow MFCs of upcoming features/fixes back to the 8 branch: tcp_var.h - struct sackhint - struct tcpcb - struct tcpstat The patch breaks the ABI. Bump __FreeBSD_version to 800102 accordingly. User space tools that rely on the size of any of these structs (e.g. sockstat) need to be recompiled. Reviewed by: rpaulo, sam, andre, rwatson Approved by: re & mentor (gnn) END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-07-12T12:37:38.269054Z K 7 svn:log V 489 When VM_MAP_WIRE_HOLESOK is not specified and vm_map_wire(9) encounters non-readable and non-executable map entry, the entry is skipped from wiring and loop is aborted. But, since MAP_ENTRY_WIRE_SKIPPED was not set for the map entry, its wired_count is later erronously decremented. vm_map_delete(9) for such map entry stuck in "vmmaps". Properly set MAP_ENTRY_WIRE_SKIPPED when aborting the loop. Reported by: John Marshall Approved by: re (kensmith) END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-07-12T12:50:43.949697Z K 7 svn:log V 164 Test suite for the poll(2)/select(2) on fifos, pipes and sockets, and recorded results for several operating systems. Submitted by: bde Approved by: re (kensmith) END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-07-12T13:09:43.835982Z K 7 svn:log V 246 Fix fwrite() to return 0 when size or nmemb are zero. Right now nmemb is returned when size is 0. In newer versions of the standards, it is explicitly required that fwrite() should return 0. Submitted by: Christoph Mallon Approved by: re (kib) END K 10 svn:author V 4 lulf K 8 svn:date V 27 2009-07-12T16:04:12.426169Z K 7 svn:log V 118 - Add kinfo_getproc and kinfo_getallproc as wrappers for sysctls which can save some work common to many utilities. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2009-07-12T16:46:43.150900Z K 7 svn:log V 411 MFp4: USB CORE: busdma improvement For single segment allocations the boundary field of the BUSDMA tag should be zero. Currently all single segment allocations are less than or equal to 4096 bytes, so the limit does not kick in. If any single segment USB allocations would be greater than 4K, then it would be a problem. Approved by: re (kensmith) Obtained from: HPS END K 10 svn:author V 6 marcel K 8 svn:date V 27 2009-07-12T16:50:32.937203Z K 7 svn:log V 155 Isochronous transfers only have 1 frame buffer, but multiple frame lengths. The frame buffer is at index 0. Approved by: re (kensmith) Obtained from: HPS END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2009-07-12T17:02:17.998235Z K 7 svn:log V 186 Fix the handling of dotdot in lookup for the experimental nfs client in a manner analagous to the change in r195294 for the regular nfs client. Approved by: re (kensmith), kib (mentor) END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2009-07-12T17:07:35.306949Z K 7 svn:log V 214 Add calls to the experimental nfs client for the case of an "intr" mount, so that signals that aren't supposed to terminate RPCs in progress are masked off during the RPC. Approved by: re (kensmith), kib (mentor) END K 10 svn:author V 6 qingli K 8 svn:date V 27 2009-07-12T19:20:55.598270Z K 7 svn:log V 380 This patch adds a host route to an interface address (that is assigned to a non loopback/ppp link type) through the loopback interface. Prior to the new L2/L3 rewrite, this host route was explicitly created when processing the IPv6 address assignment. This loopback host route is deleted when that IPv6 address is removed from the interface. Reviewed by: bz, gnn Approved by: re END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-07-12T19:58:52.887690Z K 7 svn:log V 53 fix Jouni's email address Approved by: re (blanket) END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-07-12T20:17:31.636802Z K 7 svn:log V 50 add IEEE80211_SCAN_REQ Approved by: re (blanket) END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-07-12T21:48:06.192939Z K 7 svn:log V 18 fix GRE2IFP macro END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-07-12T22:01:09.892107Z K 7 svn:log V 21 reduce modules built END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-07-12T22:19:50.881343Z K 7 svn:log V 18 add debugging foo END K 10 svn:author V 3 alc K 8 svn:date V 27 2009-07-12T23:31:20.926543Z K 7 svn:log V 1930 Add support to the virtual memory system for configuring machine- dependent memory attributes: Rename vm_cache_mode_t to vm_memattr_t. The new name reflects the fact that there are machine-dependent memory attributes that have nothing to do with controlling the cache's behavior. Introduce vm_object_set_memattr() for setting the default memory attributes that will be given to an object's pages. Introduce and use pmap_page_{get,set}_memattr() for getting and setting a page's machine-dependent memory attributes. Add full support for these functions on amd64 and i386 and stubs for them on the other architectures. The function pmap_page_set_memattr() is also responsible for any other machine-dependent aspects of changing a page's memory attributes, such as flushing the cache or updating the direct map. The uses include kmem_alloc_contig(), vm_page_alloc(), and the device pager: kmem_alloc_contig() can now be used to allocate kernel memory with non-default memory attributes on amd64 and i386. vm_page_alloc() and the device pager will set the memory attributes for the real or fictitious page according to the object's default memory attributes. Update the various pmap functions on amd64 and i386 that map pages to incorporate each page's memory attributes in the mapping. Notes: (1) Inherent to this design are safety features that prevent the specification of inconsistent memory attributes by different mappings on amd64 and i386. In addition, the device pager provides a warning when a device driver creates a fictitious page with memory attributes that are inconsistent with the real page that the fictitious page is an alias for. (2) Storing the machine-dependent memory attributes for amd64 and i386 as a dedicated "int" in "struct md_page" represents a compromise between space efficiency and the ease of MFCing these changes to RELENG_7. In collaboration with: jhb Approved by: re (kib) END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-07-13T01:02:36.514811Z K 7 svn:log V 26 don't RTFREE null rtentry END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2009-07-13T01:37:48.321026Z K 7 svn:log V 112 Branch head for developing a 64-bit PowerPC port. This follows initial work in the now-broken P4 ppc-g5 branch. END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2009-07-13T05:51:33.964306Z K 7 svn:log V 330 1) Use our vendor domain at the pool. 2) Point people at the pool website and encourage people to provide a server in the pool (as a courtesy to the pool guys). 3) Fix a spelling. 4) Comment out the local clock and include a link to documentation for use of the local clock on the ntp.org site. Approved by: re (kib) END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-07-13T06:12:21.485672Z K 7 svn:log V 132 Rename ATA probe driver to "aprobe" to resolve name conflict with SCSI and fix loading cam as module. Approved by: re (implicitly) END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-07-13T11:51:02.959807Z K 7 svn:log V 537 Replace struct tcpopt with a proxy toeopt struct in the TOE driver interface to the TCP syncache. This returns struct tcpopt to being private within the TCP implementation, thus allowing it to be modified without ABI concerns. The patch breaks the ABI. Bump __FreeBSD_version to 800103 accordingly. The cxgb driver is the only TOE consumer affected by this change, and needs to be recompiled along with the kernel. Suggested by: rwatson Reviewed by: rwatson, kmacy Approved by: re (kensmith), kensmith (mentor temporarily unavailable) END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-07-13T11:59:38.176224Z K 7 svn:log V 1034 Fix a race in the manipulation of the V_tcp_sack_globalholes global variable, which is currently not protected by any type of lock. When triggered, the bug would sometimes cause a panic when the TCP activity to an affected machine eventually slowed during a lull. The panic only occurs if INVARIANTS is compiled into the kernel, and has laid dormant for some time as a result of INVARIANTS being off by default except in FreeBSD-CURRENT. Switch to atomic operations in the locations where the variable is changed. Reads have not been updated to be protected by atomics, so there is a possibility of accounting errors in any given calculation where the variable is read. This is considered unlikely to occur in the wild, and will not cause serious harm on rare occasions where it does. Thanks to Robert Watson for debugging help. Reported by: Kamigishi Rei Tested by: Kamigishi Rei Reviewed by: silby Approved by: re (rwatson), kensmith (mentor temporarily unavailable) END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-07-13T12:53:43.077505Z K 7 svn:log V 84 Move msg{snd,recv,get,ctl} manual pages from section 3 to 2. Approved by: re (kib) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-07-13T16:36:04.615755Z K 7 svn:log V 449 MFC r195045: On special systems where the MBR and the GPT are in sync (up to the 4th slicei, Apple EFI hardware), the bootloader will fail to recognize the GPT if it finds anything else but the EFI partition. Change the check to continue detecting the GPT by looking at the EFI partition on the MBR but stopping successfuly after finding it. PR: kern/134590 Submitted by: Christoph Langguth Reviewed by: jhb END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-07-13T17:46:17.277375Z K 7 svn:log V 42 Move the mergeinfo for 195617 up to sys/. END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-07-13T18:01:49.681499Z K 7 svn:log V 147 Fix Marvel SATA controllers operation, broken by rev. 188765, by using uninitialized variable. Tested by: Chris Hedley Approved by: re (kensmith) END K 10 svn:author V 3 alc K 8 svn:date V 27 2009-07-13T18:11:59.655837Z K 7 svn:log V 270 Correct an error of omission in r195649 ("Add support to the virtual memory system for configuring machine-dependent memory attributes: ..."). In r195649, the "vm_cache_mode_t/vm_memattr_t" parameter was removed from vm_phys_alloc_contig(). Approved by: re (kensmith) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-07-13T18:23:58.397400Z K 7 svn:log V 75 Fix inline function declaration and prototype. Approved by: re (kensmith) END K 10 svn:author V 4 joel K 8 svn:date V 27 2009-07-13T18:55:46.572565Z K 7 svn:log V 99 Fix a few language nits. Submitted by: Ben Kaduk Approved by: re (blanket) END K 10 svn:author V 6 scottl K 8 svn:date V 27 2009-07-13T20:19:29.969246Z K 7 svn:log V 129 Revert the CISS driver to 64K i/o, the previous change was in error and missing a lot of needed infrastructure. Approved by: re END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-07-13T21:18:54.654824Z K 7 svn:log V 340 - Work-in-progress work on separating access-independent fstat code from data access routines and attempt to create a generic transparent interface to kernel structures supporting both KVM and sysctl interfaces. This is still very dirty and current fstat is broken in a number of ways (and only ordinary vnodes are supported now). END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-07-13T21:21:30.211435Z K 7 svn:log V 106 Fix copy-paste bug, enabling SIM PMP support, when it was not really found. Approved by: re (implicitly) END K 10 svn:author V 4 jkim K 8 svn:date V 27 2009-07-13T21:36:31.050948Z K 7 svn:log V 112 Match PCI Express root bridge _HID directly instead of relying on _CID. Reviewed by: jhb Approved by: re (kib) END K 10 svn:author V 4 jkim K 8 svn:date V 27 2009-07-13T22:13:13.579687Z K 7 svn:log V 602 MFC: Replace remaining cpu_vendor with cpu_vendor_id and add basic VIA Nano processor support for amd64 and i386. r186797 - Add Centaur/IDT/VIA vendor ID for Nano family. r187101 - Allow VIA Nano processors to boot FreeBSD/amd64. r187117 - Replace more cpu_vendor with cpu_vendor_id. r187118 - Add basic i386 support for VIA Nano processors. r187157 - Enable MSI support for VIA Nano processors on i386. r187594 - Replace more cpu_vendor with cpu_vendor_id. r187597 - Include a missing header file. r187598 - VIA Nano processor has P-state invariant TSC. r187633 - Add more VIA bridges to agp_via.c. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2009-07-13T23:01:12.042748Z K 7 svn:log V 104 - Get rid of ugly TARGET_CPU_DEFAULT default. 16 is MASK_DSP and was set there due to my ignroance. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2009-07-13T23:03:44.688335Z K 7 svn:log V 87 - Remove -mno-dsp from CFLAGS. MIPS DSP ASE is off by default now (as it should be) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2009-07-14T01:56:18.225905Z K 7 svn:log V 105 Get the toolchain able to build 64-bit PowerPC FreeBSD binaries. Obtained from: \\depot\projects\ppc-g5 END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2009-07-14T02:19:09.713522Z K 7 svn:log V 153 Set INLINE_LIMIT for ppc64. Now, with some symlink hackery, a kernel build for TARGET_ARCH=ppc64 will actually start. Of course, it will not complete... END K 10 svn:author V 2 jb K 8 svn:date V 27 2009-07-14T02:50:29.000301Z K 7 svn:log V 116 - Don't ignore dependencies when bsd.dirdep.mk is included. - Declare the shell to jcommit. - Bump the port number. END K 10 svn:author V 2 jb K 8 svn:date V 27 2009-07-14T03:22:06.800049Z K 7 svn:log V 40 Add a JBUILD_VERSION variable to jbuild END K 10 svn:author V 2 jb K 8 svn:date V 27 2009-07-14T03:25:10.932448Z K 7 svn:log V 17 Fix the .include END K 10 svn:author V 6 avatar K 8 svn:date V 27 2009-07-14T04:35:13.801409Z K 7 svn:log V 123 Adding hardware ID for RTL810x PCIe found on HP Pavilion DV2-1022AX. Reviewed by: yongari Approved by: re (kib, kensmith) END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-07-14T09:19:33.588584Z K 7 svn:log V 146 Make mklocale work again, now that fwrite()'s return codes are different. Submitted by: Navdeep Parhar Approved by: re (kib) END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-07-14T11:53:21.774724Z K 7 svn:log V 282 Fix a buglet that slipped into r195654. My buildworld/buildkernel sanity check missed this because cxgb's TOM is currently commented out of the build system. Submitted by: Navdeep Parhar Approved by: re (kensmith), kensmith (mentor temporarily unavailable) END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-07-14T14:41:48.154145Z K 7 svn:log V 71 Cleanup CUBIC code to prepare for a standalone initial public release. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-07-14T14:56:01.795041Z K 7 svn:log V 163 MFC: Enable MSI in the MSI capability registers any time that the first message in an MSI group is enabled, not just if the address/data pair are not initialized. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-07-14T15:06:58.998318Z K 7 svn:log V 163 MFC: Enable MSI in the MSI capability registers any time that the first message in an MSI group is enabled, not just if the address/data pair are not initialized. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-07-14T15:16:39.652761Z K 7 svn:log V 80 MFC: Return errors from intr_event_bind() to the caller of intr_set_affinity(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-07-14T15:30:59.918674Z K 7 svn:log V 78 MFC: Raise the default size of the EFI partition on ia64 from 100MB to 400MB. END K 10 svn:author V 8 keramida K 8 svn:date V 27 2009-07-14T15:42:13.957303Z K 7 svn:log V 117 Please welcome back Matthew Jacob (mjacob) who is interested in doing some mass storage support. Approved by: core@ END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-07-14T17:11:06.508158Z K 7 svn:log V 210 Updates, mostly to add 802.11s support: o add missing Status and Reason codes o parse/display Action frames o parse/display Mesh data frames o parse/display BA frames Reviewed by: rpaulo Approved by: re (kib) END K 10 svn:author V 6 emaste K 8 svn:date V 27 2009-07-14T17:26:37.616956Z K 7 svn:log V 259 Fix leaks in probestart, probedone, and scsi_scan_bus. Also free page_list using the matching malloc type for the allocation. Approved by: re Reviewed by: scottl [1] MFC after: 1 week [1] Original patch was against xpt_cam.c, prior to the cam refactoring. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2009-07-14T17:37:59.367497Z K 7 svn:log V 151 MFC: r187109, r187112 r187109 - Add basic amd64 support for VIA Nano processors. r187112 - Connect padlock(4) to amd64 build for VIA Nano processors. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2009-07-14T18:40:31.208092Z K 7 svn:log V 270 MFC: r191788 Unlock the largest standard CPUID on Intel CPUs for both amd64 and i386. On i386, we extend it to cover Core, Core 2, and Core i7 processors, not just Pentium 4 family, and move it to better place. On amd64, all supported Intel CPUs should have this MSR. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2009-07-14T18:44:17.831904Z K 7 svn:log V 158 Change xpt_scan_bus to scsi_scan_bus and xpt_scan_lun to scsi_scan_lun in comments and printfs to match new function names after refacoring. Approved by: re END K 10 svn:author V 5 ariff K 8 svn:date V 27 2009-07-14T18:53:34.477940Z K 7 svn:log V 342 - Do aggresive saturation on various polynomial interpolators. This dramatically pushing 99.9% interpolations and quantizations error _below_ -180dB on 32bit dynamic range, resulting extremely high quality conversion. - Use BSPLINE interpolator for filter oversampling factor greater or equal than 64 (log2 6). Approved by: re (kib) END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-07-14T19:18:31.828760Z K 7 svn:log V 143 Disable MSI by default for nVidia MCP55 chipset. It is reported to be broken in the same way as MCP51. PR: kern/136429 Approved by: re (kib) END K 10 svn:author V 2 bz K 8 svn:date V 27 2009-07-14T19:32:36.453577Z K 7 svn:log V 83 Re-add opt_inet.h, as we did in r193862 and lost yet again. Approved by: re (kib) END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-07-14T19:37:53.152989Z K 7 svn:log V 72 Add missing MLINKS for acl_{get,set}_link_fd(3). Approved by: re (kib) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-07-14T19:45:36.830649Z K 7 svn:log V 436 - Change mmap() to fail requests with EINVAL that pass a length of 0. This behavior is mandated by POSIX. - Do not fail requests that pass a length greater than SSIZE_MAX (such as > 2GB on 32-bit platforms). The 'len' parameter is actually an unsigned 'size_t' so negative values don't really make sense. Submitted by: Alexander Best alexbestms at math.uni-muenster.de Reviewed by: alc Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-07-14T19:48:31.606929Z K 7 svn:log V 154 MFC: Add a new 'void closefrom(int lowfd)' system call. When called, it closes any open file descriptors >= 'lowfd'. Bump __FreeBSD_version to 702104. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-07-14T19:50:46.324700Z K 7 svn:log V 42 Regenerate after addition of closefrom(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-07-14T20:46:19.079761Z K 7 svn:log V 39 MFC: Use the closefrom(2) system call. END K 10 svn:author V 3 kan K 8 svn:date V 27 2009-07-14T21:19:13.238347Z K 7 svn:log V 543 Second attempt at eliminating .text relocations in shared libraries compiled with stack protector. Use libssp_nonshared library to pull __stack_chk_fail_local symbol into each library that needs it instead of pulling it from libc. GCC generates local calls to this function which result in absolute relocations put into position-independent code segment, making dynamic loader do extra work every time given shared library is being relocated and making affected text pages non-shareable. Reviewed by: kib Approved by: re (kib) END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2009-07-14T22:16:32.198220Z K 7 svn:log V 38 Set executable. Change repo location. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-07-14T22:48:30.260005Z K 7 svn:log V 2059 Build on Jeff Roberson's linker-set based dynamic per-CPU allocator (DPCPU), as suggested by Peter Wemm, and implement a new per-virtual network stack memory allocator. Modify vnet to use the allocator instead of monolithic global container structures (vinet, ...). This change solves many binary compatibility problems associated with VIMAGE, and restores ELF symbols for virtualized global variables. Each virtualized global variable exists as a "reference copy", and also once per virtual network stack. Virtualized global variables are tagged at compile-time, placing the in a special linker set, which is loaded into a contiguous region of kernel memory. Virtualized global variables in the base kernel are linked as normal, but those in modules are copied and relocated to a reserved portion of the kernel's vnet region with the help of a the kernel linker. Virtualized global variables exist in per-vnet memory set up when the network stack instance is created, and are initialized statically from the reference copy. Run-time access occurs via an accessor macro, which converts from the current vnet and requested symbol to a per-vnet address. When "options VIMAGE" is not compiled into the kernel, normal global ELF symbols will be used instead and indirection is avoided. This change restores static initialization for network stack global variables, restores support for non-global symbols and types, eliminates the need for many subsystem constructors, eliminates large per-subsystem structures that caused many binary compatibility issues both for monitoring applications (netstat) and kernel modules, removes the per-function INIT_VNET_*() macros throughout the stack, eliminates the need for vnet_symmap ksym(2) munging, and eliminates duplicate definitions of virtualized globals under VIMAGE_GLOBALS. Bump __FreeBSD_version and update UPDATING. Portions submitted by: bz Reviewed by: bz, zec Discussed with: gnn, jamie, jeff, jhb, julian, sam Suggested by: peter Approved by: re (kensmith) END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-07-14T22:50:41.759554Z K 7 svn:log V 226 When wakeup(9) is going to notify swapper, assert that wait channel is not equal to &proc0. It shall be not, since proc0 stack is not swappable, and kick_proc0() is wakeup(&proc0). Reviewed by: jhb Approved by: re (kensmith) END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-07-14T22:51:31.268938Z K 7 svn:log V 238 Move the repeated code to calculate the number of the threads in the process that still need to be suspended or exited from thread_single into the new function calc_remaining(). Tested by: pho Reviewed by: jhb Approved by: re (kensmith) END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-07-14T22:52:46.507132Z K 7 svn:log V 353 Add new msleep(9) flag PBDY that shall be specified together with PCATCH, to indicate that thread shall not be stopped upon receipt of SIGSTOP until it reaches the kernel->usermode boundary. Also change thread_single(SINGLE_NO_EXIT) to only stop threads at the user boundary unconditionally. Tested by: pho Reviewed by: jhb Approved by: re (kensmith) END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-07-14T22:54:29.549181Z K 7 svn:log V 296 Use PBDRY flag for msleep(9) in NFS and NLM when sleeping thread owns kernel resources that block other threads, like vnode locks. The SIGSTOP sent to such thread (process, rather) shall not stop it until thread releases the resources. Tested by: pho Reviewed by: jhb Approved by: re (kensmith) END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2009-07-14T23:10:23.805738Z K 7 svn:log V 303 Fix the experimental nfs client so that it does not cause a "share->excl" panic when doing a lookup of dotdot at the root of a server's file system. The patch avoids calling vn_lock() for that case, since nfscl_nget() has already acquired a lock for the vnode. Approved by: re (kensmith), kib (mentor) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-07-15T00:56:15.923947Z K 7 svn:log V 101 Add missing license line for vnet.h, correct white space nit. Approved by: re (kensmith) (implicit) END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-07-15T08:32:19.338634Z K 7 svn:log V 311 MFC r195295: Enable POSIX semaphores on all non-embedded architectures by default. More applications (including Firefox) seem to depend on this nowadays, so not having this enabled by default is a bad idea. Proposed by: miwi Patch by: Florian Smeets Approved by: re (kib) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-07-15T09:19:01.357249Z K 7 svn:log V 299 r195699 introduced an assertion regarding when progbits data in kernel modules was present, which turns out to be false in some situations. Back out the assertion. Reported by: Luiz Otavio O Souza , Florian Smeets Approved by: re (kensmith) (implicit) END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-07-15T10:08:19.633410Z K 7 svn:log V 299 MFC r188656, r189086, r189127, r190630, r193228, r193642, r194177, r194861, r195690. Sync snd_hda driver with HEAD, except latest "Sound Mega-commit" r193640. Except some fixes, this commit also enables MSI interrupts usage by default, when supported, except some reported to be broken chips. END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-07-15T13:50:06.595635Z K 7 svn:log V 100 correct IEEE80211_RADIOTAP_XCHANNEL to match system Submitted by: Guy Harris Approved by: re (kib) END K 10 svn:author V 3 avg K 8 svn:date V 27 2009-07-15T17:07:39.078004Z K 7 svn:log V 1230 dtrace_gethrtime: improve scaling of TSC ticks to nanoseconds Currently dtrace_gethrtime uses formula similar to the following for converting TSC ticks to nanoseconds: rdtsc() * 10^9 / tsc_freq The dividend overflows 64-bit type and wraps-around every 2^64/10^9 = 18446744073 ticks which is just a few seconds on modern machines. Now we instead use precalculated scaling factor of 10^9*2^N/tsc_freq < 2^32 and perform TSC value multiplication separately for each 32-bit half. This allows to avoid overflow of the dividend described above. The idea is taken from OpenSolaris. This has an added feature of always scaling TSC with invariant value regardless of TSC frequency changes. Thus the timestamps will not be accurate if TSC actually changes, but they are always proportional to TSC ticks and thus monotonic. This should be much better than current formula which produces wildly different non-monotonic results on when tsc_freq changes. Also drop write-only 'cp' variable from amd64 dtrace_gethrtime_init() to make it identical to the i386 twin. PR: kern/127441 Tested by: Thomas Backman Reviewed by: jhb Discussed with: current@, bde, gnn Silence from: jb Approved by: re (gnn) MFC after: 1 week END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-07-15T17:24:03.819788Z K 7 svn:log V 479 - A second (hopefully more successfull attempt) to get a clean separation of fstat code to data retrieval and representation parts. I added a number of independent structural parts (filestat, vnstat, pipestat, ptsstat) which is used to return information about appropiate file descriptors and is supposed to be independent of the access method that was used. Method-specific that can be used to obtain further information later is stored in opaque field of filestat structure. END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2009-07-15T17:29:05.218713Z K 7 svn:log V 62 Prepare for the 8.0-BETA2 builds. Approved by: re (implicit) END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-07-15T22:27:36.140381Z K 7 svn:log V 29 - Fix file flags processing. END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-07-16T08:27:12.011165Z K 7 svn:log V 557 MFC rev. 191760, 191763, 191764. Avoid comparing negative signed to positive unsignad values. It was leading to a bug, when C-state does not decrease on sleep shorter then declared transition latency. Fixing this deprecates workaround for broken C-states on some hardware. By the way, change state selecting logic a bit. Instead of last sleep time use short-time average of it. Global interrupts rate in system is a quite random value, to corellate subsequent sleeps so directly. Make dev.cpu.X.cx_usage sysctl also report current average of sleep time. END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-07-16T09:00:41.198539Z K 7 svn:log V 22 - Add socket support. END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-07-16T09:01:37.794818Z K 7 svn:log V 30 - Properly handle bad vnodes. END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-07-16T13:03:05.522707Z K 7 svn:log V 54 - Do not try to obtain device id for ordinary vnodes. END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-07-16T13:26:03.983893Z K 7 svn:log V 30 - Add device name extraction. END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-07-16T14:24:06.729112Z K 7 svn:log V 98 - When retrieving special node data, check if the vnode is actually VCHR/VBLK. Suggested by: kib END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-07-16T15:39:54.746756Z K 7 svn:log V 11 - Cleanup. END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-07-16T16:38:41.063191Z K 7 svn:log V 68 - Move libprocstat structures definition to the appropriate header. END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-07-16T16:55:08.113623Z K 7 svn:log V 11 - Cleanup. END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-07-16T17:31:23.423094Z K 7 svn:log V 48 - Add mmapped files display support. - Cleanup. END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-07-16T19:48:39.395926Z K 7 svn:log V 217 Limit IOCATAREQUEST ioctl data size to controller's maximum I/O size. It fixes kernel panic when requested size is too large (0xffffffff), PR: kern/136726 Approved by: re (kib) MFC after: 2 weeks END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2009-07-16T20:19:36.720717Z K 7 svn:log V 80 Correct the name of the Mongolian Documentation package. Approved by: re (kib) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2009-07-16T20:29:36.645784Z K 7 svn:log V 168 Fix several instances of spaces before commas, and one of a space before a ). PR: docs/136723 Submitted by: Ulrich Sporlein Approved by: re (kib) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-07-16T21:13:04.898262Z K 7 svn:log V 221 Remove unused VNET_SET() and related macros; only VNET_GET() is ever actually used. Rename VNET_GET() to VNET() to shorten variable references. Discussed with: bz, julian Reviewed by: bz Approved by: re (kensmith, kib) END K 10 svn:author V 3 des K 8 svn:date V 27 2009-07-16T21:54:41.086984Z K 7 svn:log V 16 Fix arg parsing END K 10 svn:author V 5 edwin K 8 svn:date V 27 2009-07-16T22:24:57.515065Z K 7 svn:log V 138 See how good we can merge the data from the CLDR Project (http://cldr.unicode.org/) and the data in src/share/{monet|numeric|msg|time}def END K 10 svn:author V 5 edwin K 8 svn:date V 27 2009-07-16T22:30:11.966706Z K 7 svn:log V 234 For in src/tools/tools/locale: tools/charmaps.xml - datafile with the languages, countries and encodings. tools/cldr2def.pl - convertor from the CLDR data. tools/charmaps.pm - interface between the XML data file and the perl script. END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-07-16T22:33:21.431451Z K 7 svn:log V 52 - Cleanup. - Do not report about unknow file types. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2009-07-17T02:28:27.145362Z K 7 svn:log V 71 - Add DES and Blowfish implementstions to build. Required by crypto(4) END K 10 svn:author V 3 des K 8 svn:date V 27 2009-07-17T07:07:38.172683Z K 7 svn:log V 41 merge r181967: delete duplicate ichwd(4) END K 10 svn:author V 3 des K 8 svn:date V 27 2009-07-17T07:24:34.826769Z K 7 svn:log V 75 Collapse ranges, eliminate duplicates, improve handling of reverse merges. END K 10 svn:author V 3 des K 8 svn:date V 27 2009-07-17T07:31:29.228837Z K 7 svn:log V 28 Improve debugging messages. END K 10 svn:author V 3 des K 8 svn:date V 27 2009-07-17T07:32:22.608459Z K 7 svn:log V 17 Expand $FreeBSD$ END K 10 svn:author V 3 des K 8 svn:date V 27 2009-07-17T07:47:58.519952Z K 7 svn:log V 37 Rework handling of svn subprocesses. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-07-17T12:18:39.469536Z K 7 svn:log V 488 Vendor import of OpenBSM 1.1p1, which incorporates the following changes since the last imported OpenBSM release: OpenBSM 1.1p1 - Fixes to AUT_SOCKUNIX token parsing. - IPv6 support for au_to_me(3). - Improved robustness in the parsing of audit_control, especially long flags/naflags strings and whitespace in all fields. - Add missing conversion of a number of FreeBSD/Mac OS X errnos to/from BSM error number space. Obtained from: TrustedBSD Project Sponsored by: Apple, Inc. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-07-17T12:36:29.521806Z K 7 svn:log V 33 Tag OpenBSM 1.1p1 vendor import. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-07-17T14:02:20.823750Z K 7 svn:log V 581 Import OpenBSM 1.1p1 from vendor branch to 8-CURRENT, populating contrib/openbsm and a subset also imported into sys/security/audit. This patch release addresses several minor issues: - Fixes to AUT_SOCKUNIX token parsing. - IPv6 support for au_to_me(3). - Improved robustness in the parsing of audit_control, especially long flags/naflags strings and whitespace in all fields. - Add missing conversion of a number of FreeBSD/Mac OS X errnos to/from BSM error number space. MFC after: 3 weeks Obtained from: TrustedBSD Project Sponsored by: Apple, Inc. Approved by: re (kib) END K 10 svn:author V 5 jamie K 8 svn:date V 27 2009-07-17T14:48:21.107193Z K 7 svn:log V 157 Remove the interim vimage containers, struct vimage and struct procg, and the ioctl-based interface that supported them. Approved by: re (kib), bz (mentor) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-07-17T18:35:45.106268Z K 7 svn:log V 114 Add IEEE80211_SUPPORT_MESH, following similar change to nanobsd and other GENERIC kernels. Approved by: re (kib) END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-07-17T19:32:04.585299Z K 7 svn:log V 945 Only perform .bss mapping and cleaning operations when segment file size is not equal to its memory size. This eliminates unneeded clearing of the text segment that often happens due to text end not being page-aligned. For instance, $ readelf -l /lib/libedit.so.6 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x000000 0x00000000 0x00000000 0x139e1 0x139e1 R E 0x1000 LOAD 0x014000 0x00014000 0x00014000 0x00f04 0x00f14 RW 0x1000 DYNAMIC 0x014cc4 0x00014cc4 0x00014cc4 0x000d0 0x000d0 RW 0x4 $ procstat -v $$ (for /bin/sh) 68585 0x28097000 0x280aa000 r-x 6 0 21 14 CN vn /lib/libedit.so.6 68585 0x280aa000 0x280ab000 r-x 1 0 1 0 CN vn /lib/libedit.so.6 <== 68585 0x280ab000 0x280ac000 rwx 1 0 1 0 CN vn /lib/libedit.so.6 Note the splitted map entry marked by '<=='. Reviewed by: kan Approved by: re (kensmith) MFC after: 1 month END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2009-07-17T19:38:07.450298Z K 7 svn:log V 303 Patch the regular nfs client in a manner analagous to r195704 for the experimental client. The patch avoids calling vn_lock() for the case where nfs_nget() has acquired the same vnode as dvp, since nfs_nget() has already locked the vnode. Reviewed by: kib, jhb Approved by: re (kensmith), kib (mentor) END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-07-17T19:45:42.496533Z K 7 svn:log V 117 Implement RTLD_NOLOAD flag for dlopen(3). Requested and tested by: jkim Reviewed by: kan Approved by: re (kensmith) END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-07-17T21:11:08.748822Z K 7 svn:log V 61 add mesh support Submitted by: rpaulo Approved by: re (kib) END K 10 svn:author V 2 np K 8 svn:date V 27 2009-07-17T21:15:09.847818Z K 7 svn:log V 481 Store accurate offset information in CTF data. A large number of structs had incorrect member offsets, limiting dtrace's usefulness when working with them. An example of incorrect info (struct rtentry) from before this fix: <1738> STRUCT rtentry (200 bytes) rt_nodes type=1731 off=0 rt_gateway type=849 off=65280 <== WRONG, should be 8 * 96 rt_flags type=3 off=65344 <== wrong again, and so on.. ... Approved by: re (kib), gnn (mentor) MFC after: 2 weeks END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-07-17T21:48:08.257185Z K 7 svn:log V 126 Fix copy-paste bug. Use regular non-polled mode for executing FLUSHCACHE command on disk close. Approved by: re (implicitly) END K 10 svn:author V 3 alc K 8 svn:date V 27 2009-07-18T01:50:05.266545Z K 7 svn:log V 559 An addendum to r195649, "Add support to the virtual memory system for configuring machine-dependent memory attributes...": Don't set the memory attribute for a "real" page that is allocated to a device object in vm_page_alloc(). It is a pointless act, because the device pager replaces this "real" page with a "fake" page and sets the memory attribute on that "fake" page. Eliminate pointless code from pmap_cache_bits() on amd64. Employ the "Self Snoop" feature supported by some x86 processors to avoid cache flushes in the pmap. Approved by: re (kib) END K 10 svn:author V 6 marcus K 8 svn:date V 27 2009-07-18T06:08:21.070303Z K 7 svn:log V 129 Remove this file. It is no longer needed as x11/gdm provides its own version under /usr/local/etc/pam.d. Approved by: re (kib) END K 10 svn:author V 2 bz K 8 svn:date V 27 2009-07-18T10:36:18.150048Z K 7 svn:log V 126 Remove no longer needed #include after removing the legacy vimage API in r195741. Reviewed by: rwatson Approved by: re (kib) END K 10 svn:author V 4 lulf K 8 svn:date V 27 2009-07-18T11:12:48.580271Z K 7 svn:log V 382 - Fix the issue with read access count modification on RAID-5 plexes properly. If the access counts were not increased and decreased in equal numbers by gvinum consumers, the read access count would be inconsistent with the write access count. Instead, modify the read access count with the write access count directly to prevent any inconsistencies. Approved by: re (kib) END K 10 svn:author V 6 marcus K 8 svn:date V 27 2009-07-18T16:29:40.661756Z K 7 svn:log V 79 Remove gdm as it is no longer needed. Approved by: re (kib) Reminded by: nork END K 10 svn:author V 6 marcus K 8 svn:date V 27 2009-07-18T16:33:27.745899Z K 7 svn:log V 90 Add an entry for etc/pam.d/gdm as this file is no longer required. Approved by: re (kib) END K 10 svn:author V 3 bms K 8 svn:date V 27 2009-07-18T17:38:18.094118Z K 7 svn:log V 266 Fix a problem, whereby misbehaving IPv6 applications, which don't include a valid zone ID or interface identifier in a v6 multicast leave, would trigger a fairly paranoid KASSERT(). Observed with Boost++ regression tests on ref8.freebsd.org. Approved by: re (kib) END K 10 svn:author V 5 brian K 8 svn:date V 27 2009-07-18T20:19:25.713225Z K 7 svn:log V 235 MFC: Support shadow.byname and shadow.byuid maps, protecting them by insisting on privileged port access. Include /var/yp/Makefile.local if it exists and suggest using it to override /var/yp/Makefile behaviour. END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-07-18T20:19:53.490588Z K 7 svn:log V 199 Move code that does payload realigment to a new routine, ieee80211_realign, so it can be reused. While here rewrite the logic to always use a single mbuf. Reviewed by: rpaulo Approved by: re (kib) END K 10 svn:author V 5 brian K 8 svn:date V 27 2009-07-18T21:50:53.044574Z K 7 svn:log V 129 Fix some typos. The changes only apply to UPDATING in stable/7. PR: 133110 Submitted by: Glen Barber - glen.j.barber at gmail END K 10 svn:author V 4 lulf K 8 svn:date V 27 2009-07-19T12:57:10.651094Z K 7 svn:log V 107 MFC r194924: - Apply the same naming rules of LVM names as done in the LVM code itself. PR: kern/135874 END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-07-19T14:20:53.725912Z K 7 svn:log V 844 Reimplement and/or implement vnet list locking by replacing a mostly unused custom mutex/condvar-based sleep locks with two locks: an rwlock (for non-sleeping use) and sxlock (for sleeping use). Either acquired for read is sufficient to stabilize the vnet list, but both must be acquired for write to modify the list. Replace previous no-op read locking macros, used in various places in the stack, with actual locking to prevent race conditions. Callers must declare when they may perform unbounded sleeps or not when selecting how to lock. Refactor vnet sysinits so that the vnet list and locks are initialized before kernel modules are linked, as the kernel linker will use them for modules loaded by the boot loader. Update various consumers of these KPIs based on whether they may sleep or not. Reviewed by: bz Approved by: re (kib) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-07-19T15:21:42.544421Z K 7 svn:log V 293 Expose the definitions of 'struct vnet' and 'VNET_MAGIC_N' to userspace if _WANT_VNET is defined. This is required so that libkvm can locate virtual network stack instances in order to reach their global variables for monitoring and crashdump analysis. Reviewed by: bz Approved by: re (kib) END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2009-07-19T16:44:26.682744Z K 7 svn:log V 982 Fix two bugs in the experimental nfs client: - When the root vnode was acquired during mounting, mnt_stat.f_iosize was still set to 0, so getnewvnode() would set bo_bsize == 0. This would confuse getblk(), so that it always returned the first block causing the problem when the root directory of the mount point was greater than one block in size. It was fixed by setting mnt_stat.f_iosize to NFS_DIRBLKSIZ before calling ncl_nget() to acquire the root vnode. - NFSMNT_INT was being set temporarily while the initial connect to a server was being done. This erroneously configured the krpc for interruptible RPCs, which caused problems because signals weren't being masked off as they would have been for interruptible mounts. This code was deleted to fix the problem. Since mount_nfs does an NFS null RPC before the mount system call, connections to the server should work ok. Tested by: swell dot k at gmail dot com Approved by: re (kensmith), kib (mentor) END K 10 svn:author V 6 jilles K 8 svn:date V 27 2009-07-19T16:48:25.187990Z K 7 svn:log V 95 Correct AT_SYMLINK_FOLLOW flag name in linkat(2) man page. Approved by: re (kib), ed (mentor) END K 10 svn:author V 3 bms K 8 svn:date V 27 2009-07-19T16:50:48.863741Z K 7 svn:log V 251 Output debug information for global 'using' declarations, instead of just blowing up. A very similar change to this exists which is GPLv3 licensed, this is my own change. See also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31899 Reviewed by: luigi END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-07-19T16:54:24.358050Z K 7 svn:log V 32 add urtw Approved by: re (kib) END K 10 svn:author V 3 bms K 8 svn:date V 27 2009-07-19T17:13:16.655292Z K 7 svn:log V 43 Revert previous change. Requested by: kib END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2009-07-19T17:25:24.703896Z K 7 svn:log V 238 Bump the version of all non-symbol-versioned shared libraries in preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version. Reviewed by: kib Approved by: re (rwatson) END K 10 svn:author V 6 jilles K 8 svn:date V 27 2009-07-19T17:35:23.772868Z K 7 svn:log V 207 Allow creating hard links to symlinks using ln(1). This implements the POSIX.1-2008 -L and -P flags. The default remains to create hard links to the target of symlinks. Approved by: re (kib), ed (mentor) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-07-19T17:40:45.334660Z K 7 svn:log V 132 Normalize field naming for struct vnet, fix two debugging printfs that print them. Reviewed by: bz Approved by: re (kensmith, kib) END K 10 svn:author V 3 bms K 8 svn:date V 27 2009-07-19T18:36:54.675289Z K 7 svn:log V 195 Fix two typos in sctp_send_initiate(); these corrupt the INIT chunk on 64-bit platforms, in the 7.x SCTP stack. Observed on 7.2-STABLE/amd64. Submitted by: Michael Tuexen Reviewed by: rrs END K 10 svn:author V 3 bms K 8 svn:date V 27 2009-07-19T18:37:20.769738Z K 7 svn:log V 284 When moving an SCTP association from one hash table to another, make sure the association's link entry in the hash table is updated. This fixes a panic on closing an association in the 7.x SCTP stack. Observed on 7.2-STABLE/amd64. Submitted by: Michael Tuexen Reviewed by: rrs END K 10 svn:author V 5 brian K 8 svn:date V 27 2009-07-19T19:01:30.680389Z K 7 svn:log V 192 Don't get stuck in an infinite loop comparing (short++ <= maxshort) PR: 136893 Submitted by: Aragon Gouveia - aragon at phat dot za dot net (mostly) Approved by: re (kib) MFC after: 3 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-07-19T20:25:59.495573Z K 7 svn:log V 319 When buffer write is failed, it is wrong for brelse() to invalidate portion of the page that was written. Among other problems, this page might be picked up by pagedaemon, with failed assertion in vm_pageout_flush() about validity of the page. Reported and tested by: pho Approved by: re (kensmith) MFC after: 3 weeks END K 10 svn:author V 3 alc K 8 svn:date V 27 2009-07-19T21:40:19.441013Z K 7 svn:log V 693 Change the handling of fictitious pages by pmap_page_set_memattr() on amd64 and i386. Essentially, fictitious pages provide a mechanism for creating aliases for either normal or device-backed pages. Therefore, pmap_page_set_memattr() on a fictitious page needn't update the direct map or flush the cache. Such actions are the responsibility of the "primary" instance of the page or the device driver that "owns" the physical address. For example, these actions are already performed by pmap_mapdev(). The device pager needn't restore the memory attributes on a fictitious page before releasing it. It's now pointless. Add pmap_page_set_memattr() to the Xen pmap. Approved by: re (kib) END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-07-19T23:11:08.981696Z K 7 svn:log V 416 - Fix fuser to use libprocstat instead of relying on its own kvm-only functionality. - Add new 'fs_uflags' field to filestat struct to indicate how the file is used by the process (root dir, cwd, etc). Previously these flags have been encoded as the 'special' descriptor numbers and it was impossible to indicate multiple usage cases (e.g. root dir and cwd simultaneously) which is important to fuser(8). END K 10 svn:author V 6 scottl K 8 svn:date V 27 2009-07-20T03:59:00.106665Z K 7 svn:log V 50 Fix an apparently harmless typo. Approved by: re END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-07-20T06:12:23.063590Z K 7 svn:log V 36 - Drop old-style line continuation. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-07-20T07:50:50.504370Z K 7 svn:log V 200 Add macros VNET_SETNAME and VNET_SYMPREFIX, and expose to userspace if _WANT_VNET is defined. This way we don't need separate definitions in libkvm. Reviewed by: bz Approved by: re (vimage blanket) END K 10 svn:author V 3 raj K 8 svn:date V 27 2009-07-20T07:53:07.518296Z K 7 svn:log V 591 ARM pmap fixes. a) nocache-remap problem When a page is remapped into a non-cacheable virtual memory region there was no associated write-back invalidate operation performed. We remove writeback of the original buffer size from bus_dmamem_alloc() and add appropriate L1/L2 flush operation. b) missing write-back invalidate operation In pmap_kremove a page is removed so we must do a write-back invalidate operation aligned to the page virtual address. Submitted by: Michal Hajduk Reviewed by: Mark Tinguely, rpaulo, stas Approved by: re (kib) Obtained from: Semihalf END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-07-20T10:27:47.403399Z K 7 svn:log V 32 Merge r194850:195779 from head. END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-07-20T11:17:54.676034Z K 7 svn:log V 49 - Add sysctl-based access routines (unfinished). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-07-20T13:55:33.402038Z K 7 svn:log V 555 Garbage collect vnet module registrations that have neither constructors nor destructors, as there's no actual work to do. In most cases, the constructors weren't needed because of the existing protocol initialization functions run by net_init_domain() as part of VNET_MOD_NET, or they were eliminated when support for static initialization of virtualized globals was added. Garbage collect dependency references to modules without constructors or destructors, notably VNET_MOD_INET and VNET_MOD_INET6. Reviewed by: bz Approved by: re (vimage blanket) END K 10 svn:author V 3 snb K 8 svn:date V 27 2009-07-20T16:19:42.579753Z K 7 svn:log V 686 MFC r195003: Fix a bug reported by pho@ where one can induce a panic by decreasing vfs.ufs.dirhash_maxmem below the current amount of memory used by dirhash. When ufsdirhash_build() is called with the memory in use greater than dirhash_maxmem, it attempts to free up memory by calling ufsdirhash_recycle(). If successful in freeing enough memory, ufsdirhash_recycle() leaves the dirhash list locked. But at this point in ufsdirhash_build(), the list is not explicitly unlocked after the call(s) to ufsdirhash_recycle(). When we next attempt to lock the dirhash list, we will get a "panic: _mtx_lock_sleep: recursed on non-recursive mutex dirhash list". Approved by: dwmalone (mentor) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-07-20T19:12:08.405638Z K 7 svn:log V 330 More mesh bits, namely: * bridge support (sam) * handling of errors (sam) * deletion of inactive routing entries * more debug msgs (sam) * fixed some inconsistencies with the spec. * decap is now specific to mesh (sam) * print mesh seq. no. on ifconfig list mesh * small perf. improvements Reviewed by: sam Approved by: re (kib) END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-07-20T19:16:42.908747Z K 7 svn:log V 734 Fix permission handling for extended attributes in ZFS. Without this change, ZFS uses SunOS Alternate Data Streams semantics - each EA has its own permissions, which are set at EA creation time and - unlike SunOS - invisible to the user and impossible to change. From the user point of view, it's just broken: sometimes access is granted when it shouldn't be, sometimes it's denied when it shouldn't be. This patch makes it behave just like UFS, i.e. depend on current file permissions. Also, it fixes returned error codes (ENOATTR instead of ENOENT) and makes listextattr(2) return 0 instead of EPERM where there is no EA directory (i.e. the file never had any EA). Reviewed by: pjd (idea, not actual code) Approved by: re (kib) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2009-07-20T19:20:37.135961Z K 7 svn:log V 44 MFC 195726: spaces before commas and one ). END K 10 svn:author V 5 dougb K 8 svn:date V 27 2009-07-20T19:33:22.593897Z K 7 svn:log V 194 MFC 195726: spaces before commas and one ). (Note, the change to fortunes2-o is applied by hand from HEAD/*/fortunes-o.real since the fortunes2-o file was consolidated into it as of RELENG_7.) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-07-20T19:40:09.352596Z K 7 svn:log V 262 Back out the moving in r195782 of V_ip_id's initialization from the top back to the bottom of ip_init() as found in 7.x. I missed the fact that the bottom half of the init routine only runs in the !VNET case. Submitted by: zec Approved by: re (vimage blanket) END K 10 svn:author V 7 antoine K 8 svn:date V 27 2009-07-20T19:51:47.083761Z K 7 svn:log V 160 Update ObsoleteFiles.inc - Remove some USB headers that were resurrected recently - Add new obsolete files (2 man pages and libvgl.so.5) Approved by: re (kib) END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-07-20T21:45:44.039753Z K 7 svn:log V 110 Don't export AT_FDCWD to user as some ports erroneously conclude from its definition that openat is supported END K 10 svn:author V 6 cokane K 8 svn:date V 27 2009-07-20T23:21:19.319293Z K 7 svn:log V 324 Fix regression in last set of commits. Submitted via e-mail and then nagged again via PR. Thank Paul for his persistence and contributions. PR: 136895 Submitted by: Paul B. Mahol Reviewed by: sam (timeout, 10 days), weongyo (timeout, 10 days), me Approved by: re (Kostik Belousov ) END K 10 svn:author V 5 edwin K 8 svn:date V 27 2009-07-21T01:59:52.474958Z K 7 svn:log V 157 Vendor import of tzdata2009k - Changes in Mauritius and Bangladesh - No leapsecond at the end of December 2009 Obtained from: ftp://elsie.nci.nih.gov/pub/ END K 10 svn:author V 5 edwin K 8 svn:date V 27 2009-07-21T02:00:43.243846Z K 7 svn:log V 19 Tag of tzdata2009k END