ƒ¸!171336 148 205 199 441 538 202 239 245 2459 184 190 221 842 223 196 697 155 246 204 243 114 763 115 159 667 241 157 257 265 253 239 123 237 181 167 139 466 348 308 342 376 373 560 425 347 293 352 237 273 138 264 216 210 195 330 429 749 289 202 476 422 194 249 135 291 659 182 338 293 320 210 2315 663 1168 244 694 402 432 357 322 354 435 136 274 198 160 1045 166 206 175 517 337 194 198 400 325 341 235 1202 166 120 120 228 279 268 1324 164 206 345 302 190 211 216 104 627 276 444 197 788 118 128 146 329 162 213 406 355 386 894 455 2265 236 228 235 220 152 359 186 248 214 142 212 1354 165 379 294 404 1068 220 K 10 svn:author V 6 mjacob K 8 svn:date V 27 2007-07-10T07:55:04.000000Z K 7 svn:log V 109 Be more conservative- turn off fast posting and RIO for 22XX cards. Approved by: re (ken) MFC after: 3 days END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2007-07-10T07:55:59.000000Z K 7 svn:log V 103 Get rid of a couple of Coverity found sign comparison errors. Approved by: re (Ken) MFC after: 3 days END K 10 svn:author V 6 avatar K 8 svn:date V 27 2007-07-10T09:23:10.000000Z K 7 svn:log V 345 Fixing the mount_smbfs(8) hanging by utilising the destroy_dev_sched() KPI. Relevant threads: http://lists.freebsd.org/pipermail/freebsd-current/2007-June/074329.html Reviewed by: kib, bp (slightly different version) Tested by: Yuri Pankov , Jiawei Ye Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-07-10T09:30:46.000000Z K 7 svn:log V 441 Further cleanup of UDPv4: - Move udp_sendspace and udp_recvspace global variables and associated sysctls to the top of the file where most other such things are present. - Rename static variable 'blackhole' to 'udp_blackhole' and unstaticize so that we can add blackhole support for UDPv6 using the same MIB variable. - Move udp_append() above udp_input() to match the function order in udp6_usrreq.c. Approved by: re (kensmith) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-10T10:17:32.000000Z K 7 svn:log V 105 Add sed(1) to cross tools. We do want newly built version during buildworld. Approved by: re (rwatson) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-10T10:19:45.000000Z K 7 svn:log V 142 Forced commit to say that the previous changeset was: Submitted by: YAMAMOTO Shigeru Approved by: re (rwatson, implicit) END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2007-07-10T10:27:12.000000Z K 7 svn:log V 149 MFC, rev 1.18: Fix hardware checksum verification on fragments. Reported/tested by: Hugo Koji Kobayashi, Vadym Chepkov Reviewed/help by: yongari END K 10 svn:author V 3 bde K 8 svn:date V 27 2007-07-10T13:20:24.000000Z K 7 svn:log V 2365 Don't use almost perfectly pessimal cluster allocation. Allocation of the the first cluster in a file (and, if the allocation cannot be continued contiguously, for subsequent clusters in a file) was randomized in an attempt to leave space for contiguous allocation of subsequent clusters in each file when there are multiple writers. This reduced internal fragmentation by a few percent, but it increased external fragmentation by up to a few thousand percent. Use simple sequential allocation instead. Actually maintain the fsinfo sequence index for this. The read and write of this index from/to disk still have many non-critical bugs, but we now write an index that has something to do with our allocations instead of being modified garbage. If there is no fsinfo on the disk, then we maintain the index internally and don't go near the bugs for writing it. Allocating the first free cluster gives a layout that is almost as good (better in some cases), but takes too much CPU if the FAT is large and the first free cluster is not near the beginning. The effect of this change for untar and tar of a slightly reduced copy of /usr/src on a new file system was: Before (msdosfs 4K-clusters): untar: 459.57 real untar from cached file (actually a pipe) tar: 342.50 real tar from uncached tree to /dev/zero Before (ffs2 soft updates 4K-blocks 4K-frags) untar: 39.18 real tar: 29.94 real Before (ffs2 soft updates 16K-blocks 2K-frags) untar: 31.35 real tar: 18.30 real After (msdosfs 4K-clusters): untar 54.83 real tar 16.18 real All of these times can be improved further. With multiple concurrent writers or readers (especially readers), the improvement is smaller, but I couldn't find any case where it is negative. 342 seconds for tarring up about 342 MB on a ~47MB/S partition is just hard to unimprove on. (This operation would take about 7.3 seconds with reasonably localized allocation and perfect read-ahead.) However, for active file systems, 342 seconds is closer to normal than the 16+ seconds above or the 11 seconds with other changes (best I've measured -- won easily by msdosfs!). E.g., my active /usr/src on ffs1 is quite old and fragmented, so reading to prepare for the above benchmark takes about 6 times longer than reading back the fresh copies of it. Approved by: re (kensmith) END K 10 svn:author V 3 flz K 8 svn:date V 27 2007-07-10T15:30:15.000000Z K 7 svn:log V 92 Fix commit mail retrieval when using message-id. Submitted by: novel Approved by: re (hrs) END K 10 svn:author V 4 emax K 8 svn:date V 27 2007-07-10T16:38:43.000000Z K 7 svn:log V 97 Mark ng_h4(4) as not MPSAFE and disconnect it from the build for now. Approved by: re (rwatson) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2007-07-10T17:13:31.000000Z K 7 svn:log V 123 MFC: rev. 1.4 The driver will also first appear in 6.3. While here, fix some grammar issues and capitalize Jumbo Frames. END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-07-10T18:41:34.000000Z K 7 svn:log V 749 Correct a problem in the ZERO_COPY_SOCKETS option, specifically, in vm_page_cowfault(). Initially, if vm_page_cowfault() sleeps, the given page is wired, preventing it from being recycled. However, when transmission of the page completes, the page is unwired and returned to the page queues. At that point, the page is not in any special state that prevents it from being recycled. Consequently, vm_page_cowfault() should verify that the page is still held by the same vm object before retrying the replacement of the page. Note: The containing object is, however, safe from being recycled by virtue of having a non-zero paging-in-progress count. While I'm here, add some assertions and comments. Approved by: re (rwatson) MFC After: 3 weeks END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-07-10T21:00:10.000000Z K 7 svn:log V 130 Add additional product id and quirks entry for MetaGeek Wi-Spy Submitted by: Robert Noland PR: 114481 Approved by: re@ (blanket) END K 10 svn:author V 4 emax K 8 svn:date V 27 2007-07-11T00:15:31.000000Z K 7 svn:log V 102 Mark ng_h4(4) as not MPSAFE and disconnect it from the LINT build for now. Approved by: re (rwatson) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2007-07-11T01:20:37.000000Z K 7 svn:log V 601 Add --no-warn-mismatch to ld(1) when linking binary files into ELF files. On ia64 the ELF header contains information about characteristics of the machine code and ld(1) needs that to determine whether input files are compatible for linking. To this end non-ELF files are not supported by binutils on ia64. However, the resulting ELF file seems to be correct despite the warnings and the non-supportedness of non-ELF files and it appears enough to unbreak the build of firmware(9) files on ia64 by simply supressing the warning. Ran into by: gallatin@ Approved by: re (hrs) Looks good to me: mlaier@ END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2007-07-11T02:13:50.000000Z K 7 svn:log V 58 MFC rev. 1.98: Fix a bug of retrieving configuration ROM. END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-07-11T04:14:41.000000Z K 7 svn:log V 153 Add Micro Research PCMCIA LAN Adapter MR10TPC support. Patch slightly reworked by me. Submitted by: Osamu Hasegawa-san PR: 93393 Approved by: re (hrs) END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-07-11T04:17:02.000000Z K 7 svn:log V 111 Add another SMC device. Submitted by: ken wongk at abo dot dnsalias stop org PR: 66343 Approved by: re@ (hrs) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-11T05:01:14.000000Z K 7 svn:log V 146 - Chase for crypto_if.m -> crytpodev_if.m rename in order to fix doxygen generation. - Add some missing *_if.m files. Approved by: re (hrs) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-11T07:04:07.000000Z K 7 svn:log V 18 MFC: bzip2 1.0.4. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2007-07-11T07:08:23.000000Z K 7 svn:log V 668 MFC of the work committed on 2007-06-18 to improve the default named.conf. This brings us in line with BCP, and makes our installed configuration usable as a local resolver right out of the box. This includes: 1.359 of etc/Makefile 1.5 of etc/namedb/Makefile 1.1 of etc/namedb/master/Makefile all for the new files in etc/namedb/master, 1.23 and 1.24 of etc/namedb/named.conf to bring in the new configuration options, The new files in etc/namedb/master to support those options, And deletion of the old *localhost*.rev files. See the commit message to HEAD and the comments in the new named.conf file for more details about the changes and the reasons for them. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-11T07:16:56.000000Z K 7 svn:log V 19 Reflect bzip2 MFC. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2007-07-11T07:23:39.000000Z K 7 svn:log V 65 Record the removal of the PROTO.localhost* stuff from etc/namedb END K 10 svn:author V 5 novel K 8 svn:date V 27 2007-07-11T10:49:06.000000Z K 7 svn:log V 572 MFC command.c 1.307, radius.h 1.22, radius.c 1.54, ppp.8.m4 1.326: Add a new option for ppp.conf: rad_port_id. It allows to change the way of what ppp submits to the RADIUS server as NAS-Port-Id. Possible options are: the PID of the process owning the corresponding interface, tun(4) interface number, interface index (as it would get returned by if_nametoindex(3)), or it's possible to keep the default behavior. Check the ppp(8) manual page for details. MFC ppp.8.m4 1.327: Cleanup after previous commit. PR: bin/112764 Submitted by: novel (myself) Approved by: flz END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-07-11T12:14:37.000000Z K 7 svn:log V 144 Remove now-stale 00READ file in the Coda tree; rvb isn't the current contact for the Coda kernel module in FreeBSD. Approved by: re (kensmith) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-11T13:19:20.000000Z K 7 svn:log V 61 Mention that BZIP2 1.0.4 was MFC'ed. Approved by: re (bmah) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-11T14:26:27.000000Z K 7 svn:log V 160 MFp4: Make use of the kernel unit number allocation facility for tmpfs nodes. Submitted by: Mingyan Guo Approved by: re (tmpfs blanket) END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-07-11T14:27:45.000000Z K 7 svn:log V 170 Protect against divide by zero while calculating bus speed due to possible broken kernel timecounter. Reported/Tested by: silby Approved by: re (hrs) MFC after: 1 day END K 10 svn:author V 5 harti K 8 svn:date V 27 2007-07-11T14:41:54.000000Z K 7 svn:log V 158 Vendor patch to remove some __inline qualifiers on non-static functions because they seem to cause warnings in gcc-4.2. Submitted by: mjacob Approved by: re END K 10 svn:author V 5 harti K 8 svn:date V 27 2007-07-11T14:41:54.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r171364, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 3 sam K 8 svn:date V 27 2007-07-11T15:48:36.000000Z K 7 svn:log V 31 Import of WPA supplicant 0.5.8 END K 10 svn:author V 3 sam K 8 svn:date V 27 2007-07-11T15:48:36.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r171366, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2007-07-11T15:48:37.000000Z K 7 svn:log V 85 This commit was manufactured by cvs2svn to create tag 'wpa_supplicant-vendor-v0_5_8'. END K 10 svn:author V 3 sam K 8 svn:date V 27 2007-07-11T15:58:52.000000Z K 7 svn:log V 75 resolve merge conflicts Reviewed by: thompsa, sephe Approved by: re (hrs) END K 10 svn:author V 3 sam K 8 svn:date V 27 2007-07-11T15:59:42.000000Z K 7 svn:log V 47 update for 0.5.8 import Approved by: re (hrs) END K 10 svn:author V 3 sam K 8 svn:date V 27 2007-07-11T16:04:08.000000Z K 7 svn:log V 373 update for wpa_supplicant 0.5.8 import: o unix domain socket to wpa_cli is configured w/ CONFIG_CTRL_IFACE_UNIX o terminate on last interface option is configured w/ CONFIG_TERMINATE_ONLASTIF o ndis/Packet32.c fixups to force roaming mode to manual o document new mixed_cell config knob Submitted by: thompsa (Packet32.c) Reviewed by: thompsa, sephe Approved by: re (hrs) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2007-07-11T18:51:31.000000Z K 7 svn:log V 251 Fix userland applications compilation by using correct KPI protection macros for lock_profiling. Reported by: Tom McLaughlin Tested by: Tom McLaughlin Approved by: jeff (mentor) Approved by: re END K 10 svn:author V 4 emax K 8 svn:date V 27 2007-07-11T18:57:15.000000Z K 7 svn:log V 214 Fix kbdmux(4) issue with backslash/underscore key not working on Japanese 106/109 keyboard. PR: kern/112214, kern/99090 Submitted by: TOMITA Yoshinori, TAKAHASHI Yoshihiro Approved by: re (hrs) MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-07-11T20:39:53.000000Z K 7 svn:log V 245 Avoid crash when opening Coda device: when allocating coda_mntinfo, we need to initialize dev so that we can actually find the allocated coda_mntinfo structure later on. Submitted by: Jan Harkes Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-07-11T21:21:55.000000Z K 7 svn:log V 279 Resolve Coda mount failing because Coda failed to match the device operations. But we don't have to, if we find the coda_mntinfo structure for this device in our linked list, we know the device is good. Submitted by: Jan Harkes Approved by: re (kensmith) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-07-11T21:25:48.000000Z K 7 svn:log V 276 Now that wicontrol has been removed from the base system the corresponding ioctls can be removed. These have been #ifdef'd out and left as a reference in case any of the RIDs need to be turned into sysctls at a later date. Reviewed by: sam, avatar Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-07-11T21:32:08.000000Z K 7 svn:log V 463 Replace CODA_OPEN with CODA_OPEN_BY_FD: coda_open was disabled because we can't open container files by device/inode number pair anymore. Replace the CODA_OPEN upcall with CODA_OPEN_BY_FD, where venus returns an open file descriptor for the container file. We can then grab a reference on the vnode coda_psdev.c:vc_nb_write and use this vnode for further accesses to the container file. Submitted by: Jan Harkes Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-07-11T21:33:46.000000Z K 7 svn:log V 328 Avoid a panic in insmntque when we pass a NULL mount: this reenables some previously disabled code which according to the comment caused a problem during shutdown. But even that is still better than triggering a kernel panic whenever venus is started. Submitted by: Jan Harkes Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-07-11T21:34:41.000000Z K 7 svn:log V 250 Fix ioctls on the control vnode: ioctls on a character device fail with ENOTTY. Make the control vnode a regular file so that ioctls are passed through to our kernel module. Submitted by: Jan Harkes Approved by: re (kensmith) END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2007-07-11T22:25:38.000000Z K 7 svn:log V 197 In the function pc98_check_if_type for the non-8251 case make sure we initialize fileds in the iod that otherwise would have been initialized. Reviewed by: nate, ken, warner Approved by: re (ken) END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2007-07-11T22:30:13.000000Z K 7 svn:log V 256 Forced commit for a minor correction: In the function pc98_check_if_type for the non-8251 case make sure we initialize fileds in the iod that otherwise would have been initialized. Reviewed by: nate, ken, warner, *and* robert Approved by: re (ken) END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2007-07-11T22:34:34.000000Z K 7 svn:log V 141 Remove the internal use of __packed and put it on the structures themselves. Reviewed by: nate, peter, warner, robert Approved by: re (ken) END K 10 svn:author V 3 jfv K 8 svn:date V 27 2007-07-11T22:59:57.000000Z K 7 svn:log V 180 New driver for Intel 10G PCI-Express adapter (82598), driver is still in Beta, but we want early users to have access to it in 7.0, Feedback welcome. Enjoy. -Jack Approved by: re END K 10 svn:author V 3 jfv K 8 svn:date V 27 2007-07-11T23:03:16.000000Z K 7 svn:log V 46 Add the actual source too :) Approved by: re END K 10 svn:author V 3 kan K 8 svn:date V 27 2007-07-11T23:07:37.000000Z K 7 svn:log V 171 Add r_debug_state to the list of symbols exported from rtld. GDB needs to be able to find it in order to trap shared library events from rtld. Approved by: re (rwatson) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2007-07-11T23:59:41.000000Z K 7 svn:log V 121 Comment out the BIND 9.4.x-only disable-emtpy-zone options. Pointed out by: A cast of thousands Pointy hat to: Just me END K 10 svn:author V 3 jfv K 8 svn:date V 27 2007-07-12T00:01:53.000000Z K 7 svn:log V 117 Removed unnecessary global includes for ixgbe, and em. Both have been determined to be unnecessary. Approved by: re END K 10 svn:author V 5 dougb K 8 svn:date V 27 2007-07-12T00:02:12.000000Z K 7 svn:log V 100 Belatedly add the PROTO.localhost* files that were removed on 2007-06-18 Approved by: re (rwatson) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-12T01:17:14.000000Z K 7 svn:log V 233 - Simulate GNU gzip(1) behavior where full filename is being output in verbose mode when doing recursive[1]. - Use better representation of S: PR: bin/114470 Submitted by: Ighighi [1] Approved by: re (hrs) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-07-12T02:54:05.000000Z K 7 svn:log V 332 Improve the net80211 handling within ndis - use net80211 for scanning and pass the results back to the scan cache - use ieee80211_init_channels to fill our channel list - fix up state transitions - depreciate the old wicontrol ioctls - add some debugging lines (#define NDIS_DEBUG) Reviewed by: sam Approved by: re (kensmith) END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-07-12T06:39:08.000000Z K 7 svn:log V 654 MFC: Revisions: 1.44 src/sys/dev/sound/pci/hda/hdac.c 1.8 src/sys/dev/sound/pci/hda/hdac_private.h - Add codec id for Realtek ALC268. - Add controller id for Intel 82801I (ICH9). PR: kern/114399 Submitted by: Michael Fuckner - MSI support. Disable by default due to various issues with too many broken hardwares. MSI can be enabled through device.hints(5) or kenv(8) by setting "hint.pcm.%d.msi=1" (for RELENG_6, you need to set/enable hw.pci.enable_msi=1). Partially submitted by: kevlo YAMAMOTO Taku Tested by: joel, kevlo, YAMAMOTO Taku END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-07-12T06:39:38.000000Z K 7 svn:log V 194 MFC (revision: 1.78): - malloc M_NOWAIT -> M_WAITOK. - Protect against divide by zero while calculating bus speed due to possible broken kernel timecounter. Reported/Tested by: silby END K 10 svn:author V 5 brian K 8 svn:date V 27 2007-07-12T07:05:43.000000Z K 7 svn:log V 107 MFC: Speaker durations are specified in 1/100ths of a second according to spkr(4). PR: 70610, 67995 END K 10 svn:author V 3 kib K 8 svn:date V 27 2007-07-12T09:02:31.000000Z K 7 svn:log V 383 bus_dma_tag_create() and bus_dma_mem_alloc() shall not be called with a non-sleepable lock held. drm_pci_alloc() calls them, thus drm mutex shall not be held during the call. Move the drm_pci_alloc() to the start of the i915_initialize() and drop the the drm mutex around it. Reported by: Ganbold Reviewed by: anholt Approved by: re (hrs) MFC after: 1 week END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-07-12T10:03:29.000000Z K 7 svn:log V 325 Directly initialize nxge's ifaddrp pointer to ifnetp->if_addr rather than indirecting through ifaddr_byindex, which makes things easier with respect to virtualized network stacks. Submitted by: Marko Zec Reviewed by: Leonid Grossman Approved by: re (kensmith) END K 10 svn:author V 3 yar K 8 svn:date V 27 2007-07-12T12:56:54.000000Z K 7 svn:log V 101 MFC rev. 1.76: Thoroughly handle error conditions when processing an interpreted script as $command. END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2007-07-12T13:08:00.000000Z K 7 svn:log V 151 Set the default escape character as described in the manpage of dconschat(8). Fix a cut-and-paste error. Spotted by: avatar Approved by: re (rwatson) END K 10 svn:author V 3 yar K 8 svn:date V 27 2007-07-12T13:11:00.000000Z K 7 svn:log V 43 MFC revs. 1.19-1.22: Assorted small fixes. END K 10 svn:author V 3 yar K 8 svn:date V 27 2007-07-12T13:25:55.000000Z K 7 svn:log V 198 MFC login_cap.3 1.35-1.37, login_cap.c 1.34: - Finally document the LOGIN_MECLASS hack in the manpage and comments. - Fix login_getcaplist() prototype in the manpage. - Improve the manpage markup. END K 10 svn:author V 3 yar K 8 svn:date V 27 2007-07-12T14:11:57.000000Z K 7 svn:log V 566 MFC: Use the current user's login class for the decisions about where the nologin(5) file is located and whether the user may bypass its restriction. Add some error checks. Revision Changes Path 1.7 +16 -15 src/lib/libpam/modules/pam_nologin/pam_nologin.8 1.13 +42 -29 src/lib/libpam/modules/pam_nologin/pam_nologin.c Note: To avoid POLA violation, the merged module still lets root in irrespective of login.conf settings. In HEAD, root has to have an explicit "ignorenologin" capability to bypass nologin(5). PR: bin/107612 END K 10 svn:author V 3 yar K 8 svn:date V 27 2007-07-12T14:16:01.000000Z K 7 svn:log V 90 MFC rev. 1.15: Update nologin(5) to match the modern reality of login.conf(5) and PAM. END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2007-07-12T15:00:28.000000Z K 7 svn:log V 240 Correct multiple security issues in how libarchive handles corrupt tar archives, including a potentially exploitable buffer overflow. Approved by: re (kensmith, security blanket) Reviewed by: kientzle Security: FreeBSD-SA-07:05.libarchive END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2007-07-12T15:00:44.000000Z K 7 svn:log V 195 Correct multiple security issues in how libarchive handles corrupt tar archives, including a potentially exploitable buffer overflow. Reviewed by: kientzle Security: FreeBSD-SA-07:05.libarchive END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2007-07-12T15:01:56.000000Z K 7 svn:log V 222 Correct multiple security issues in how libarchive handles corrupt tar archives, including a potentially exploitable buffer overflow. Approved by: so (cperciva) Reviewed by: kientzle Security: FreeBSD-SA-07:05.libarchive END K 10 svn:author V 8 gallatin K 8 svn:date V 27 2007-07-12T16:04:55.000000Z K 7 svn:log V 112 Update the mxge(4) driver's copyright to 2007, and drop the binary distribution clause. Approved by: re (bmah) END K 10 svn:author V 3 bde K 8 svn:date V 27 2007-07-12T16:09:07.000000Z K 7 svn:log V 2221 Fix some bugs involving the fsinfo block (many remain unfixed). This is part of fixing msdosfs for large sector sizes. One of the fixed bugs was fatal for large sector sizes. 1. The fsinfo block has size 512, but it was misunderstood and declared as having size 1024, with nothing in the second 512 bytes except a signature at the end. The second 512 bytes actually normally (if the file system was created by Windows) consist of a second boot sector which is normally (in WinXP) empty except for a signature -- the normal layout is one boot sector, one fsinfo sector, another boot sector, then these 3 sectors duplicated. However, other layouts are valid. newfs_msdos produces a valid layout with one boot sector, one fsinfo sector, then these 2 sectors duplicated. The signature check for the extra part of the fsinfo was thus normally checking the signature in either the second boot sector or the first boot sector in the copy, and thus accidentally succeeding. The extra signature check would just fail for weirder layouts with 512-byte sectors, and for normal layouts with any other sector size. Remove the extra bytes and the extra signature check. 2. Old versions did i/o to the fsinfo block using size 1024, with the second half only used for the extra signature check on read. This was harmless for sector size 512, and worked accidentally for sector size 1024. The i/o just failed for larger sector sizes. The version being fixed did i/o to the fsinfo block using size fsi_size(pmp) = (1024 << ((pmp)->pm_BlkPerSec >> 2)). This expression makes no sense. It happens to work for sector small sector sizes, but for sector size 32K it gives the preposterous value of 64M and thus causes panics. A sector size of 32768 is necessary for at least some DVD-RW's (where the minimum write size is 32768 although the minimum read size is 2048). Now that the size of the fsinfo block is 512, it always fits in one sector so there is no need for a macro to express it. Just use the sector size where the old code uses 1024. Approved by: re (kensmith) Approved by: nyan (several years ago for a different version of (2)) END K 10 svn:author V 3 njl K 8 svn:date V 27 2007-07-12T17:00:51.000000Z K 7 svn:log V 570 Fix a bug where the callout might not be initialized before being used. Rev 1.9 introduced another path where machclk_freq would be initialized before the rest of setup was done (i.e. initializing the callout). Make the one-time initialization a separate function and make init_machclk() able to be called multiple times, any time. We depend on tsc_freq first being updated from the highest priority eventhandler, thus we run last and call init_machclk() to set machclk_freq. Also, don't initialize static variables to 0. Tested by: Eygene Ryabinkin Approved by: re END K 10 svn:author V 3 bde K 8 svn:date V 27 2007-07-12T17:17:47.000000Z K 7 svn:log V 1074 Round up the FAT block size to a multiple of the sector size so that i/o to the FAT is possible. Make the FAT block size less arbitrary before it is rounded up: - for FAT12, default to 3*512 instead of to 3 sectors. The magic 3 is the default number of 512-byte FAT sectors on a floppy drive. That many sectors is too many if the sector size is larger. - for !FAT12, default to PAGE_SIZE instead of to 4096. Remove MSDOSFS_DFLTBSIZE since it only obfuscated this 4096. For reading the BPB, use a block size of 8192 instead of 2048 so that sector sizes up to 8192 can work. We should try several sizes, or just try the maximum supported size (MAXBSIZE = 64K). I use 8192 because that is enough for DVD-RW's (even 2048 is enough) and 8192 has been tested a lot in use by ffs. This completes fixing msdosfs for some large sector sizes (up to 8K for read and 64K for write). Microsoft documents support for sector sizes up to 4K in mdosfs. ffs is currently limited to 8K for both read and write. Approved by: re (kensmith) Approved by: nyan (several years ago) END K 10 svn:author V 3 sam K 8 svn:date V 27 2007-07-12T17:22:43.000000Z K 7 svn:log V 151 revert handling of ssid and bssid to be manadatory instead of advisory Prodded by: Kevin Gerry Reviewed by: thompsa, sephe Approved by: re (kensmith) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-07-12T18:01:31.000000Z K 7 svn:log V 601 Fix a couple of issues with the stack limit for 32-bit processes on 64-bit kernels exposed by the recent fixes to resource limits for 32-bit processes on 64-bit kernels: - Let ABIs expose their maximum stack size via a new pointer in sysentvec and use that in preference to maxssiz during exec() rather than always using maxssiz for all processses. - Apply the ABI's limit fixup to the previous stack size when adjusting RLIMIT_STACK to determine if the existing mapping for the stack needs to be grown or shrunk (as well as how much it should be grown or shrunk). Approved by: re (kensmith) END K 10 svn:author V 3 jfv K 8 svn:date V 27 2007-07-12T18:49:01.000000Z K 7 svn:log V 309 New Driver for Intel 10G PCI-Express Dual Port Network adapter (82598) - ixgbe.c, ixgbe.h, and ixgbe_osdep.h make the core OS driver. - Others are OS independent shared code. - This is still a Beta driver, the Intel ship is a month or so off, so I welcome any feedback from early users. Approved by: re END K 10 svn:author V 3 jfv K 8 svn:date V 27 2007-07-12T19:04:11.000000Z K 7 svn:log V 339 A couple late breaking bugs that testing have turned up. - change include style so build in kernel try OR standalone work. - Limit HWCSUM - I was led to believe that it would work with RSS, but our testing had odd issues which suggests this is false. - A fatfinger error in the ioctl code made ifconfig up not work. Approved by: re END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-07-12T20:40:25.000000Z K 7 svn:log V 260 Sync lagg to HEAD - Implement the Marker Protocol for lacp - Export the actor and partner peer info and show in ifconfig verbose - Compare the partner system priority when choosing the aggregator. - Cleanup whitespace, variable names and gc unused defines END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-07-12T20:40:38.000000Z K 7 svn:log V 225 Forced commit to recognize repo-copy of Coda files from src/sys/coda to src/sys/fs/coda. Discussed with: anderson, Jan Harkes Approved by: re (kensmith) Repo-copy madness: simon END K 10 svn:author V 3 yar K 8 svn:date V 27 2007-07-12T20:50:06.000000Z K 7 svn:log V 261 MFC revs. 1.15, 1.16: Add a sysctl for the purge run interval so that it can be tuned along with the rest of hostcache parameters. The new sysctl name is `net.inet.tcp.hostcache.prune'. Replace a constant with an already defined symbolic name for it. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-07-12T21:04:58.000000Z K 7 svn:log V 338 Complete repo-copy and move of Coda from src/sys/coda to src/sys/fs/coda by removing files from src/sys/coda, and updating include paths in the new location, kernel configuration, and Makefiles. In one case add $FreeBSD$. Discussed with: anderson, Jan Harkes Approved by: re (kensmith) Repo-copy madness: simon END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-07-12T22:23:28.000000Z K 7 svn:log V 44 Eliminate dead code. Approved by: re (hrs) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-07-13T01:26:44.000000Z K 7 svn:log V 177 Move the IFT_IEEE8023ADLAG case above the copy to IFP2ENADDR(ifp). This chunk of code has a slightly different layout to HEAD had was mismerged. This fixes lagg(4) on RELENG_6. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-07-13T01:27:45.000000Z K 7 svn:log V 101 MFC r1.99 The mac address must be written a word length at a time, it was having no effect before. END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-07-13T04:42:20.000000Z K 7 svn:log V 68 Update a comment describing the page queues. Approved by: re (hrs) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2007-07-13T04:46:34.000000Z K 7 svn:log V 948 MFC if_re.c rev. 1.91, if_rlreg.h rev. 1.66 to RELENG_6. re(4) devices requires an external EEPROM. Depending on models it would be 93C46(1Kbit) or 93C56(2Kbit). One of differences between them is number of address lines required to access the EEPROM. For example, 93C56 EEPROM needs 8 address lines to read/write data. If 93C56 recevied premature end of required number of serial clock(CLK) to set OP code/address of EEPROM, the result would be unexpected behavior. Previously it tried to detect 93C46, which requires 6 address lines, and then assumed it would be 93C56 if read data was not expected value. However, this approach didn't work in some models/situations as 93C56 requries 8 address lines to access its data. In order to fix it, change EEPROM probing order such that 93C56 is detected reliably. While I'm here change hard-coded address line numbers with defined constant to enhance readability. PR: 112710 END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2007-07-13T04:46:35.000000Z K 7 svn:log V 70 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2007-07-13T04:55:52.000000Z K 7 svn:log V 109 MFC if_txp.c rev 1.45, 1.46 to RELENG_6. Add checks for contigmalloc(9) failure. Nuke duplicated __FBSDID. END K 10 svn:author V 3 phk K 8 svn:date V 27 2007-07-13T08:24:04.000000Z K 7 svn:log V 83 Update with Bulletin C 34 from IERS: Still no leap second. Approved by: re (hrs) END K 10 svn:author V 7 roberto K 8 svn:date V 27 2007-07-13T08:29:24.000000Z K 7 svn:log V 420 Add a Macbook/Macbook Pro compatible keyboard layout for French keyboards. It is a latin9/ISO_8859-15 and features dead keys for ^/uml/`, Euro, oe/OE support and a few additional characters like copyright/trademark. It is probably Powerbook/iBook compatible but I don't have a machine to test it with and the primary objective was to have a correct keyboard for within Parallels (for IntelMacs). Approved by: re (hrs) END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-07-13T14:27:05.000000Z K 7 svn:log V 244 MFp4: Add support for the CENTIPAD board (http://www.harerod.de/centipad/index.html) (which is a very cool, very small ARM board) Add support for KB9202B (it has different memory) Make BOOT_FLAVOR settable Minor cleanup nits Approved by: re@ END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-07-13T14:28:10.000000Z K 7 svn:log V 101 Arm doesn't have GENERIC.hints, so don't install it if it doesn't exist. Approved by: re (kensmith) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-13T15:09:07.000000Z K 7 svn:log V 100 Fix running individual tests via "libarchive_test ..." Approved by: re (blanket) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-13T15:12:52.000000Z K 7 svn:log V 302 New file "read_open_memory.c" is a custom variant of archive_read_open_memory.c that tries to test border cases. In particular, it copies over each returned block so that formats or decompressors that read past the end of a returned block will break. Approved by: re (blanket, libarchive test suite) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-13T15:14:35.000000Z K 7 svn:log V 227 New test suite test_read_pax_truncated probes libarchive behavior with truncated or damaged pax archives. This tests most of the cases covered by the recent security advisory. Approved by: re (blanket, libarchive test suite) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-13T15:16:26.000000Z K 7 svn:log V 243 Make the test for reading gtar sparse entries more robust; it now verifies that the returned blocks have the correct data at the correct file offsets, ignoring any null padding that may exist. Approved by: re (blanket, libarchive test suite) END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-07-13T16:18:43.000000Z K 7 svn:log V 137 Cache does not serve any purpose when rtld is relocating itself, do not bother allocating one. Submitted by: kan Approved by: re (bmah) END K 10 svn:author V 6 anholt K 8 svn:date V 27 2007-07-13T16:28:12.000000Z K 7 svn:log V 1105 Add support for G965/Q965/GM965/GME965/GME945 AGP. This adds a function to agp.c to set the aperture resource ID if it's not the usual AGP_APBASE. Previously, agp.c had been assuming AGP_APBASE, which resulted in incorrect agp_info, and contortions by agp_i810.c to work around it. This also adds functions to agp.c for default AGP_GET_APERTURE() and AGP_SET_APERTURE(), which return the aperture resource size and disallow aperture size changes. Moving to these for our AGP drivers will likely result in stability improvements. This should fix 855-class aperture size detection. Additionally, refuse to attach agp_i810 when some RAM is above 4GB and the GART can't reference memory that high. This should be very rare. The correct solution would be bus_dma conversion for agp, which is beyond the scope of this change. Other AGP drivers could likely use this change as well. G33/Q35/Q33 AGP support is also included, but disconnected by default due to lack of testing. PR: kern/109724 (855 aperture issue) Submitted by: FUJIMOTO Kou Approved by: re (hrs) END K 10 svn:author V 4 bmah K 8 svn:date V 27 2007-07-13T17:31:32.000000Z K 7 svn:log V 73 New release note: SA-07:05.libarchive. Approved by: re (implicitly) END K 10 svn:author V 4 bmah K 8 svn:date V 27 2007-07-13T17:43:49.000000Z K 7 svn:log V 27 MFC: SA-07:05.libarchive. END K 10 svn:author V 4 bmah K 8 svn:date V 27 2007-07-13T17:50:25.000000Z K 7 svn:log V 27 MFC: SA-07:05.libarchive. END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2007-07-13T18:51:08.000000Z K 7 svn:log V 131 Perform range check before allocating memory when reading extended attributes. Reviewed by: kib Approved by: re (hrs) PR: 114389 END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-14T05:35:17.000000Z K 7 svn:log V 181 Extend the basic tar reading test to exercise most types of entries. This doesn't cover everything yet, but it's a big improvement. Approved by: re (blanket, libarchive testing) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-14T05:53:51.000000Z K 7 svn:log V 170 Restore the 'break' that was inadvertently removed in 1.57 of this file. Without this, hardlinks get returned as symlinks. Approved by: re (Ken Smith) MFC after: 2 days END K 10 svn:author V 3 rrs K 8 svn:date V 27 2007-07-14T09:36:28.000000Z K 7 svn:log V 1230 - Modular congestion control, with RFC2581 being the default. - CMT_PF states added (w/sysctl to turn the PF version on) - sctp_input.c had a missing incr of cookie case when the auth was bad. This meant a free was called without an increment to refcnt, added increment like rest of code. - There was a case, unlikely, when the scope of the destination changed (this is a TSNH case). In that case, it would not free the alloc'ed asoc (in sctp_input.c). - When listed addresses found a colliding cookie/Init, then the collided upon tcb was not unlocked in sctp_pcb.c - Add error checking on arguments of sctp_sendx(3) to prevent it from referencing a NULL pointer. - Fix an error return of sctp_sendx(3), it was returing ENOMEM not -1. - Get assoc id was changed to use the sanctified socket api method for getting a assoc id (PEER_ADDR_INFO instead of PEER_ADDR_PARAMS). - Fix it so a peeled off socket will get a proper error return if it trys to send to a different address then it is connected to. - Fix so that select_a_stream can avoid an endless loop that could hang a caller. - time_entered (state set time) was not being set in all cases to the time we went established. Approved by: re(ken smith) END K 10 svn:author V 4 joel K 8 svn:date V 27 2007-07-14T12:35:29.000000Z K 7 svn:log V 71 Document support for Intel 82801I and Realtek ALC268. Approved by: re END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-07-14T15:35:45.000000Z K 7 svn:log V 109 Remove "options SCTP_HIGH_SPEED" from NOTES as it has now been removed from options. Approved by: re (bmah) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-14T17:52:01.000000Z K 7 svn:log V 247 Report each failed test once, but keep a count and report that count if there was more than one. In particular, this simplifies test_tar_filenames.c, which has a tendency to be very noisy otherwise. Approved by: re (blanket, libarchive testing) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-14T17:54:14.000000Z K 7 svn:log V 204 Use an uncompressed test archive for gtar sparse format 1.0 format, as that better exercises some internal read-combining logic than the compressed archive. Approved by: re (blanket, libarchive testing) END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-07-14T19:00:44.000000Z K 7 svn:log V 98 Eliminate dead code, specifically, an unused sysctl: "vm.idlezero_maxrun". Approved by: re (hrs) END K 10 svn:author V 4 csjp K 8 svn:date V 27 2007-07-14T19:04:00.000000Z K 7 svn:log V 117 MFC rtld.c revision 1.124 Unset potentially harmful environment variables. Discussed on: seacteam PR: kern/109836 END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2007-07-14T19:23:29.000000Z K 7 svn:log V 118 Take a sentence into the present by removing a reference to FreeBSD 3.0. Approved by: re (blanket) MFC after: 3 days END K 10 svn:author V 4 csjp K 8 svn:date V 27 2007-07-14T20:22:17.000000Z K 7 svn:log V 11 commit.log END K 10 svn:author V 4 csjp K 8 svn:date V 27 2007-07-14T20:25:20.000000Z K 7 svn:log V 533 Doh.. This is a forced commit to note the actual commit for the previous commits: MFC 1.29 +1 -1 src/sys/dev/bce/if_bce.c MFC 1.22 +1 -1 src/sys/dev/ixgb/if_ixgb.c MFC 1.91 +1 -1 src/sys/dev/nge/if_nge.c MFC 1.87 +1 -1 src/sys/dev/re/if_re.c MFC 1.6 +1 -1 src/sys/dev/stge/if_stge.c MFC 1.44 +1 -1 src/sys/dev/txp/if_txp.c MFC 1.31 +1 -1 src/sys/dev/vge/if_vge.c Un-break processing of 802.1Q VLAN tags in the presence of hardware offload of VLAN tags. END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2007-07-14T21:18:19.000000Z K 7 svn:log V 179 The last entry in the ext2_opts array must be NULL, otherwise the kernel with crash in vfs_filteropt() if an invalid mount option is passed to ext2fs. Approved by: re (kensmith) END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-07-14T21:21:17.000000Z K 7 svn:log V 351 Eliminate two unused functions: vm_phys_alloc_pages() and vm_phys_free_pages(). Rename vm_phys_alloc_pages_locked() to vm_phys_alloc_pages() and vm_phys_free_pages_locked() to vm_phys_free_pages(). Add comments regarding the need for the free page queues lock to be held by callers to these functions. No functional changes. Approved by: re (hrs) END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2007-07-14T21:23:31.000000Z K 7 svn:log V 100 Revert previous commits which I committed by mistake. Approved by: re (implicit) Pointy hat to: me END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-07-14T21:49:24.000000Z K 7 svn:log V 691 Disconnect netatm from the build as it is not MPSAFE and relies on NET_NEEDS_GIANT, which will shortly be removed. This is done in a away that it may be easily reattached to the build before 7.1 if appropriate locking is added. Specifics: - Don't install netatm include files - Disconnect netatm command line management tools - Don't build libatm - Don't include ATM parts in rescue or sysinstall - Don't install sample configuration files and documents - Don't build kernel support as a module or in NOTES - Don't build netgraph wrapper nodes for netatm This removes the last remaining consumer of NET_NEEDS_GIANT. Reviewed by: harti Discussed with: bz, bms Approved by: re (kensmith) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-15T01:24:46.000000Z K 7 svn:log V 22 MFC: diffutils 2.8.7. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-15T01:28:18.000000Z K 7 svn:log V 32 Note diffutils 2.7 -> 2.8.7 MFC END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-15T01:59:35.000000Z K 7 svn:log V 50 Note diffutils 2.8.7 MFC. Approved by: re (bmah) END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2007-07-15T13:00:29.000000Z K 7 svn:log V 231 Improve acquisition of transaction labels. - Keep last transaction label for each destination. - If the next label is not free, just give up. - This should reduce CPU load for TX on if_fwip under heavy load. Approved by: re (hrs) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-15T17:16:42.000000Z K 7 svn:log V 65 Clarify one test. Approved by: re (blanket, libarchive testing) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-15T19:10:34.000000Z K 7 svn:log V 115 Add archive_entry_copy_gname() and archive_entry_copy_uname() functions. Approved by: re (bmah) MFC after: 3 days END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-15T19:13:59.000000Z K 7 svn:log V 308 archive_string_ensure() used to call exit(3) if it couldn't allocate more memory for a string. Change this so it returns NULL in that case, and update all of its callers to handle the error. Some of those callers can now return errors back to the client instead of calling exit(3). Approved by: re (bmah) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-07-15T22:47:33.000000Z K 7 svn:log V 258 Add ObsoleteFiles.inc entries for netatm, which has been disconnected from the build. Suggested by: bz, Dmitry Morozovsky , Niclas Zeising Tested by: Dmitry Morozovsky Approved by: re (kensmith) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2007-07-15T22:52:15.000000Z K 7 svn:log V 290 Unbreak the dynamic linker by not creating a cache for rtld-elf itself. It needs mmap(2), which now needs getosreldate(3) and which in turn uses a global variable to cache the result. This cannot be done before linking is done. See also: ../sparc64/reloc.c:1.15 Approved by: re (kensmith) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2007-07-16T16:47:35.000000Z K 7 svn:log V 798 Restore the value of ar.rnat after the assignment to ar.bspstore. The SDM states that writing to ar.bspstore invalidates the ar.rnat register as a side-effect. This was interpreted as "bits in the ar.rnat register that correspond to registers whose value is on the stack are undefined'. Since we keep the kernel stack NaT- aligned with the user stack (i.e. the lower 9 bits of the backing store pointer remain unchanged when we switch to the kernel stack) bits that need preserving would be preserved. That interpretation is questionable. So, now, the interpretation is more absolute: ar.rnat is undefined after writing to ar.bspstore. As such, we write the saved value of ar.rnat back to ar.rnat after writing to ar.bspstore. Discussed with: christian.kandeler@hob.de Approved by: re (kensmith) END K 10 svn:author V 8 ambrisko K 8 svn:date V 27 2007-07-16T17:03:48.000000Z K 7 svn:log V 357 Add support to the ipmi, isa attachment to attempt to read ipmi config info. from device.hints. Some machines have ipmi controllers that do not have attachment info in either PCI, SMBIOS or ACPI. This idea was hacked together by me and then done properly by jhb. Submitted by: jhb Reviewed by: jhb (man page) Approved by: re (Ken Smith) MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-07-16T17:15:55.000000Z K 7 svn:log V 2171 Restore netstat -M functionality for most statistics on core dumps. In general, when support was added to netstat for fetching data using sysctl, no provision was left for fetching equivalent data from a core dump, and in fact, netstat would _always_ fetch data from the live kernel using sysctl even when -M was specified resulting in the user believing they were getting data from coredumps when they actually weren't. Some specific changes: - Add a global 'live' variable that is true if netstat is running against the live kernel and false if -M has been specified. - Stop abusing the sysctl flag in the protocol tables to hold the protocol number. Instead, the protocol is now its own field in the tables, and it is passed as a separate parameter to the PCB and stat routines rather than overloading the KVM offset parameter. - Don't run PCB or stats functions who don't have a namelist offset if we are being run against a crash dump (!live). - For the inet and unix PCB routines, we generate the same buffer from KVM that the sysctl usually generates complete with the header and trailer. - Don't run bpf stats for !live (before it would just silently always run live). - kread() no longer trashes memory when opening the buffer if there is an error on open and the passed in buffer is smaller than _POSIX2_LINE_MAX. - The multicast routing code doesn't fallback to kvm on live kernels if the sysctl fails. Keeping this made the code rather hairy, and netstat is already tied to the kernel ABI anyway (even when using sysctl's since things like xinpcb contain an inpcb) so any kernels this is run against that have the multicast routing stuff should have the sysctls. - Don't try to dig around in the kernel linker in the netgraph PCB routine for core dumps. Other notes: - sctp's PCB routine only works on live kernels, it looked rather complicated to generate all the same stuff via KVM. Someone can always add it later if desired though. - Fix the ipsec removal bug where N_xxx for IPSEC stats weren't renumbered. - Use sysctlbyname() everywhere rather than hardcoded mib values. MFC after: 1 week Approved by: re (rwatson) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-07-16T18:13:12.000000Z K 7 svn:log V 143 Bah, fix a cosmetic nit and remove a debugging aid missed in the previous fixes for netstat -M. Pointy hat to: jhb Approved by: re (kensmith) END K 10 svn:author V 3 pav K 8 svn:date V 27 2007-07-16T22:52:39.000000Z K 7 svn:log V 135 - Update portaudit location Submitted by: Dominique Goncalves MFC after: 3 days Approved by: re (hrs) END K 10 svn:author V 4 jeff K 8 svn:date V 27 2007-07-17T01:08:09.000000Z K 7 svn:log V 141 - Use ruxagg() in calcru() to make sure we have current tick information from all threads. Discussed with: bde, attilio Approved by: re END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2007-07-17T06:12:22.000000Z K 7 svn:log V 125 - Increase descriptors per call to start - enqueue per-txq task - fix per-txq task initialization Approved by: re (blanket) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-17T06:22:37.000000Z K 7 svn:log V 56 MFC: Update for bzip2 1.0.4 import: bzip2.info.gz gone. END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2007-07-17T06:50:35.000000Z K 7 svn:log V 264 - integrate most recent changes from vendor branch and upgrade to firmware revision 4.5.5 - add filter support - further improvements for T304 - recover gracefully from spurious immediate packets Approved by: re(blanket) Supported by: Chelsio MFC after: 3 days END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2007-07-17T08:34:34.000000Z K 7 svn:log V 89 MFC: rev. 1.28 Take a sentence into the present by removing a reference to FreeBSD 3.0. END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-17T09:37:51.000000Z K 7 svn:log V 153 Remove archive_entry_set_devmajor.3 and archive_entry_set_devminor.3 man pages from the OLD_FILES list. libarchive currently installs them on RELENG_6. END K 10 svn:author V 5 sephe K 8 svn:date V 27 2007-07-17T11:27:57.000000Z K 7 svn:log V 119 Correct RSSI calculation. Noticed by: Hans Petter Selasky Approved by: re (kensmith), sam (mentor) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-07-17T14:43:11.000000Z K 7 svn:log V 50 MFC 1.37: Fix alignment of context switch traces. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-17T17:28:59.000000Z K 7 svn:log V 115 MFp4: Remove files that are removed during gcc 4.2 upgrade, as well as IPX over IP tunnel. Approved by: re (bmah) END K 10 svn:author V 3 rrs K 8 svn:date V 27 2007-07-17T20:58:26.000000Z K 7 svn:log V 1260 - added pre-checks to the bindx call. - use proper tick gathering macro instead of ticks directly. - Placed reasonable boundaries on sets that a user can do that are converted to ticks from ms. - Fix CMT_PF to always check to be sure CMT is on. - Fix ticks use of CMT_PF. - put back code to allow asconfs to be queued while INITs are in flight and before the assoc is established. - During window probes, an ack'd packet might be left with the window probe mark on it causing it to be retransmitted. Change so that the flight decrease macro clears the window_probe mark. - Additional logging flight size/reading and ASOC LOG. This is only enabled if you manually insert things into opt_sctp.h since its a set of debug code only. - Found an interesting SMP race in the way data was appended which could cause a reader to lose a part of a message, had to reorder when we marked the message was complete to after the data was appended. - bug in ADD-IP for the subset bound socket case when the peer has only one address - fix ASCONF implicit success/error handling case - proper support of jails in Freebsd 6> - copy out the timeval for the 64 bit sparc world on cookie-echo alignment error crashes without this). Approved by: re(Ken Smith) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-07-17T21:02:08.000000Z K 7 svn:log V 73 MFC 1.164: Fix up NFS client write error handling. Submitted by: mohans END K 10 svn:author V 5 simon K 8 svn:date V 27 2007-07-17T22:28:51.000000Z K 7 svn:log V 284 The wpa_passphrase(8) manual page states that it first appeared in FreeBSD 6.2, but it didn't make it into RELENG_6_2. Update the manual page to say "FreeBSD 6.3". PR: docs/114429 Submitted by: Henrik Brix Andersen MFC after: 3 days Approved by: re (bmah) END K 10 svn:author V 4 jeff K 8 svn:date V 27 2007-07-17T22:34:14.000000Z K 7 svn:log V 200 - Add support for blocking and releasing threads to i386 cpu_switch(). This is required for per-cpu scheduler lock support. Obtained from: attilio Tested by: current@ many users Approved by: re END K 10 svn:author V 4 jeff K 8 svn:date V 27 2007-07-17T22:36:56.000000Z K 7 svn:log V 310 - Optimize the amd64 cpu_switch() TD_LOCK blocking and releasing to require fewer blocking loops. - Don't use atomic ops with 4BSD or on UP. - Only use the blocking loop if ULE is compiled in. - Use the correct memory barrier. Discussed with: attilio, jhb, ssouhlal Tested by: current@ Approved by: re END K 10 svn:author V 4 jeff K 8 svn:date V 27 2007-07-17T22:53:23.000000Z K 7 svn:log V 974 ULE 3.0: Fine grain scheduler locking and affinity improvements. This has been in development for over 6 months as SCHED_SMP. - Implement one spin lock per thread-queue. Threads assigned to a run-queue point to this lock via td_lock. - Improve the facility for assigning threads to CPUs now that sched_lock contention no longer dominates scheduling decisions on larger SMP machines. - Re-write idle time stealing in an attempt to make it less damaging to general performance. This is still disabled by default. See kern.sched.steal_idle. - Call the long-term load balancer from a callout rather than sched_clock() so there are no locks held. This is disabled by default. See kern.sched.balance. - Parameterize many scheduling decisions via sysctls. Try to document these via sysctl descriptions. - General structural and naming cleanups. - Document each function with comments. Tested by: current@ amd64, x86, UP, SMP. Approved by: re END K 10 svn:author V 4 jeff K 8 svn:date V 27 2007-07-18T02:51:21.000000Z K 7 svn:log V 126 - Update ULE note to remove warnings against production use. Suggested by: Ben Kaduk Approved by: re END