ĵ174785 173 232 184 373 127 365 368 365 368 363 202 177 204 156 98 306 134 253 330 188 270 148 152 145 239 384 202 140 174 213 135 178 291 130 377 179 294 487 140 124 215 145 324 268 271 438 441 433 128 237 185 110 237 122 574 452 1071 483 423 261 198 267 217 206 182 435 438 387 390 307 166 412 149 329 313 215 162 148 171 155 186 574 452 587 457 408 147 408 418 418 243 271 161 169 284 115 158 519 860 190 219 219 507 202 695 294 322 830 747 250 237 164 318 114 439 208 211 158 219 148 183 322 207 130 194 220 524 148 224 368 1083 378 227 179 145 159 448 2126 407 230 242 212 490 123 142 136 212 144 746 200 326 483 539 1183 214 128 446 135 183 407 500 204 185 661 556 134 914 571 350 172 888 141 434 142 K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-12-19T20:37:53.000000Z K 7 svn:log V 139 MFC: Move several data structure definitions out of freebsd32_misc.c and into freebsd32.h and freebsd32_ipc.h. Approved by: re (kensmith) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-12-19T20:43:41.000000Z K 7 svn:log V 92 MFC: Add freebsd32 compat wrappers for msgctl() and __semctl(). Approved by: re (kensmith) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2007-12-19T20:47:44.000000Z K 7 svn:log V 277 MFC revision 1.662 and 1.663: Disallow the legacy USB circuit to generate an SMI# via an ICH register (MacBooks only). This allows MacBooks to boot in SMP mode without any trick and solves the timer problems with HZ=1000. Approved by: re (kensmith), njl (mentor) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-12-19T20:48:53.000000Z K 7 svn:log V 35 Regen. Approved by: re (kensmith) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2007-12-19T20:52:37.000000Z K 7 svn:log V 269 MFC revision 1.679: Disallow the legacy USB circuit to generate an SMI# via an ICH register (MacBooks only). This allows MacBooks to boot in SMP mode without any trick and solves the timer problems with HZ=1000. Approved by: re (kensmith), njl (mentor) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2007-12-19T20:59:46.000000Z K 7 svn:log V 272 MFC revision 1.662 and 1.663: Disallow the legacy USB circuit to generate an SMI# via an ICH register (MacBooks only). This allows MacBooks to boot in SMP mode without any trick and solves the timer problems with HZ=1000. Approved by: re (kensmith), njl (mentor) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2007-12-19T21:01:35.000000Z K 7 svn:log V 269 MFC revision 1.679: Disallow the legacy USB circuit to generate an SMI# via an ICH register (MacBooks only). This allows MacBooks to boot in SMP mode without any trick and solves the timer problems with HZ=1000. Approved by: re (kensmith), njl (mentor) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2007-12-19T21:05:43.000000Z K 7 svn:log V 272 MFC revision 1.662 and 1.663: Disallow the legacy USB circuit to generate an SMI# via an ICH register (MacBooks only). This allows MacBooks to boot in SMP mode without any trick and solves the timer problems with HZ=1000. Approved by: re (kensmith), njl (mentor) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2007-12-19T21:08:33.000000Z K 7 svn:log V 267 MFC revision 1.679: Disallow the legacy USB circuit to generate an SMI# via an ICH register (MacBooks only). This allows MacBooks to boot in SMP mode without any trick and solves the timer problems with HZ=1000. Approved by: re (kensmith), njl (mentor) END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-12-19T22:05:07.000000Z K 7 svn:log V 109 When devclass_get_maxunit is passed a NULL, return -1 to indicate that there's nothing allocated at all yet. END K 10 svn:author V 3 mav K 8 svn:date V 27 2007-12-19T22:50:14.000000Z K 7 svn:log V 85 Add option to set packets per second limits instead of default bits per second ones. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-12-19T23:03:02.000000Z K 7 svn:log V 111 MFC: Move several data structure definitions out of freebsd32_misc.c and into freebsd32.h and freebsd32_ipc.h. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-12-19T23:03:50.000000Z K 7 svn:log V 64 MFC: Add freebsd32 compat wrappers for msgctl() and __semctl(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-12-19T23:04:12.000000Z K 7 svn:log V 7 Regen. END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-12-19T23:09:45.000000Z K 7 svn:log V 213 Correct one half of a loop continuation condition in vm_phys_unfree_page(). At present, this error is inconsequential; the other half of the loop continuation condition is sufficient to achieve correct execution. END K 10 svn:author V 3 mav K 8 svn:date V 27 2007-12-19T23:12:37.000000Z K 7 svn:log V 42 Describe new NG_CAR_COUNT_PACKETS option. END K 10 svn:author V 3 das K 8 svn:date V 27 2007-12-20T00:06:33.000000Z K 7 svn:log V 160 Remove the declaration of logl(). The relevant bits haven't been committed yet, but the declaration leaked in when I added nan() and friends. Reported by: pav END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-12-20T00:31:04.000000Z K 7 svn:log V 234 In openprom_ioctl() ensure appropriate permissions and that data isn't NULL and doesn't point to a NULL pointer before dereferencing it. This fixes a panic triggered by Xorg 7.3. Reported and tested by: Bill Green MFC after: 3 days END K 10 svn:author V 3 sam K 8 svn:date V 27 2007-12-20T00:52:02.000000Z K 7 svn:log V 96 enable wired driver support Submitted by: "Paul B. Mahol" MFC after: 1 week END K 10 svn:author V 3 das K 8 svn:date V 27 2007-12-20T03:16:55.000000Z K 7 svn:log V 177 Grumble. DO declare logbl(), DON'T declare logl() just yet. bde is going to commit logl() Real Soon Now. I'm just trying to slow him down with merge conflicts. Noticed by: bde END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2007-12-20T04:32:28.000000Z K 7 svn:log V 52 Remove vfork() overloading, it is no longer needed. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2007-12-20T04:40:12.000000Z K 7 svn:log V 56 call underscore version of pthread_cleanup_pop instead. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2007-12-20T07:02:48.000000Z K 7 svn:log V 50 MF6: gdbserver is back. Approved by: re(kensmith) END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2007-12-20T07:15:40.000000Z K 7 svn:log V 142 MFC: Fix LOR of thread lock and umtx's priority propagation mutex due to the reworking of scheduler lock. Approved by: re (kensmith) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2007-12-20T07:26:20.000000Z K 7 svn:log V 287 By definition promiscuous mode should see all unicast frames as well as multicast/broadcast frames. Previously re(4) ignored multicast frames in promiscuous mode. The RTL8169 datasheet was not clear how it handles multicast frames in promiscuous mode. PR: kern/118572 MFC after: 3 days END K 10 svn:author V 3 phk K 8 svn:date V 27 2007-12-20T10:17:07.000000Z K 7 svn:log V 109 Pull ministat into the installed system and write it a man-page. (Repocopied from src/tools/tools/ministat) END K 10 svn:author V 3 phk K 8 svn:date V 27 2007-12-20T10:18:15.000000Z K 7 svn:log V 48 Ministat was repocopied to src/usr.bin/ministat END K 10 svn:author V 2 ru K 8 svn:date V 27 2007-12-20T12:34:32.000000Z K 7 svn:log V 83 MFC: 1.141: Fix bugs in the TCP syncache timeout code. Approved by: re (kensmith) END K 10 svn:author V 2 ru K 8 svn:date V 27 2007-12-20T12:52:06.000000Z K 7 svn:log V 121 MFC: 1.4: The default of 3 retransmits corresponds to a timeout value of 45 seconds, not 15. Approved by: re (kensmith) END K 10 svn:author V 2 ru K 8 svn:date V 27 2007-12-20T16:40:25.000000Z K 7 svn:log V 44 Fix disorder introduced in previous commit. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-12-20T19:43:55.000000Z K 7 svn:log V 86 MFC: Remove redundant checks for msgsnd(3) and msgrcv(3). Approved by: re (kensmith) END K 10 svn:author V 5 gabor K 8 svn:date V 27 2007-12-20T20:02:16.000000Z K 7 svn:log V 196 - Adjust INDEX file name to INDEX-8 so that it matches the major FreeBSD version number, as it is named after that PR: docs/118053 Submitted by: Michael Plass END K 10 svn:author V 5 dougb K 8 svn:date V 27 2007-12-20T20:37:22.000000Z K 7 svn:log V 36 Update pkg_version_index to INDEX-8 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-12-20T21:10:06.000000Z K 7 svn:log V 284 Invoke revoke(2) on the slave pty in the pts(4) case (new_openpty()) to kick off any other users on the device line before using it since openpty(3) is documented to do this. Note that grantpt(3) does not call revoke(2), it only adjusts permissions and ownership. MFC after: 3 days END K 10 svn:author V 6 emaste K 8 svn:date V 27 2007-12-20T21:13:58.000000Z K 7 svn:log V 84 Avoid holding the aac_io_lock over copyout. Submitted by: Achim Leubner @ Adaptec. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-12-20T21:42:43.000000Z K 7 svn:log V 201 MFamd64/ia64/i386: Only set the rman bus tags and handles in bus_activate_resource() methods instead of splitting it up between bus_alloc_resource() and bus_activate_resource(). Glanced at by: marcel END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-12-20T22:45:54.000000Z K 7 svn:log V 394 Modify vm_phys_unfree_page() so that it no longer requires the given page to be in the free lists. Instead, it now returns TRUE if it removed the page from the free lists and FALSE if the page was not in the free lists. This change is required to support superpage reservations. Specifically, once reservations are introduced, a cached page can either be in the free lists or a reservation. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2007-12-21T00:23:23.000000Z K 7 svn:log V 45 Apply missing s/rv/res/g in previous commit. END K 10 svn:author V 6 julian K 8 svn:date V 27 2007-12-21T00:56:16.000000Z K 7 svn:log V 29 Warner lets a good one out.. END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-12-21T01:00:04.000000Z K 7 svn:log V 122 Minor initialization change to not trigger bogus gcc warning about passing literal strings to the constructors of string. END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-12-21T02:44:31.000000Z K 7 svn:log V 53 Update the comment describing vm_phys_unfree_page(). END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-12-21T03:40:36.000000Z K 7 svn:log V 231 usbhidctl appears to not report features and write size correctly This turns out to be due to an argument botch for hid_report_size. The PR contained patches to fix the argument botch. Submitted by: Maurice Castro PR: usb/118915 END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-12-21T05:29:15.000000Z K 7 svn:log V 171 MFC r1.108 When the bridge has an address and a packet comes in for it then drop it if the link has been marked discarding by Spanning Tree. Approved by: re (kensmith) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-12-21T05:30:47.000000Z K 7 svn:log V 174 MFC r1.108 When the bridge has an address and a packet comes in for it then drop it if the link has been marked discarding by Spanning Tree. Approved by: re (kensmith) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-12-21T05:33:48.000000Z K 7 svn:log V 341 MFC r1.25 - Use the macro to check the port status has it will also test if its administratively down (!IFF_UP) - Use the same parameters to lagg_link_active() to get the backup port as in the output path, this didnt actually matter in practice as sc_primary is always the first on the port list. Approved by: re (kensmith) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-12-21T05:34:35.000000Z K 7 svn:log V 344 MFC r1.25 - Use the macro to check the port status has it will also test if its administratively down (!IFF_UP) - Use the same parameters to lagg_link_active() to get the backup port as in the output path, this didnt actually matter in practice as sc_primary is always the first on the port list. Approved by: re (kensmith) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-12-21T05:35:29.000000Z K 7 svn:log V 336 MFC r1.25 - Use the macro to check the port status has it will also test if its administratively down (!IFF_UP) - Use the same parameters to lagg_link_active() to get the backup port as in the output path, this didnt actually matter in practice as sc_primary is always the first on the port list. Approved by: re (kensmith) END K 10 svn:author V 3 des K 8 svn:date V 27 2007-12-21T11:49:29.000000Z K 7 svn:log V 36 Vendor import of OpenPAM Hydrangea. END K 10 svn:author V 3 des K 8 svn:date V 27 2007-12-21T11:49:29.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r174832, 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-12-21T11:49:30.000000Z K 7 svn:log V 89 This commit was manufactured by cvs2svn to create tag 'openpam-vendor-OPENPAM_HYDRANGEA'. END K 10 svn:author V 3 des K 8 svn:date V 27 2007-12-21T11:56:21.000000Z K 7 svn:log V 18 Remove dead files END K 10 svn:author V 3 des K 8 svn:date V 27 2007-12-21T11:56:21.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r174835, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 3 des K 8 svn:date V 27 2007-12-21T12:00:16.000000Z K 7 svn:log V 30 Adjust for OpenPAM Hydrangea. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-21T14:25:43.000000Z K 7 svn:log V 477 Merge in6_pcb.c:1.86 from HEAD to RELENG_7: Fix leaking MAC labels for IPv6 inpcbs by adding missing MAC label destroy call; this transpired because the inpcb alloc path for IPv4/IPv6 is the same code, but IPv6 has a separate free path. The results was that as new IPv6 TCP connections were created, kernel memory would gradually leak. Reported by: tanyong , zhouzhouyi Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-21T14:32:04.000000Z K 7 svn:log V 355 Merge mac_posix_sem.c:1.12 from HEAD to RELENG_7: Fix a MAC label leak for POSIX semaphores, in which per-policy labels would be properly disposed of, but the global label structure for the semaphore wouldn't be freed. Reported by: tanyong , zhouzhouyi Approved by: re (kensmith) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-12-21T16:53:27.000000Z K 7 svn:log V 978 More properly handle links who only have 1 valid IRQ in their bitmask. The old code special cased them too early which caused a few differences for these sort of links relative to other PCI links: - They were always re-routed via the BIOS call instead of assuming that they were already routed if the BIOS had programmed the IRQ into a matching device during POST. - If the BIOS did route that link to a different IRQ that was marked as invalid, we trusted the $PIR table rather than the BIOS IRQ. This change moves the special casing for "unique IRQ" links to only take that into account when picking an IRQ for an unrouted link so that these links will now not be routed if the BIOS appears to have routed it already (some BIOSen have problems with that) and so that if the BIOS uses a different IRQ than the $PIR, we trust the BIOS routing instead (this is what we do for all other links as well). Reported by: Bruce Walter walter of fortean com MFC after: 1 week END K 10 svn:author V 5 dougb K 8 svn:date V 27 2007-12-21T19:34:26.000000Z K 7 svn:log V 388 In the following scenario: 1. Start mergemaster 2. Interrupt it 3. < Somehow the temproot directory disappears > 4. mergemaster -r Many bad things can happen, especially if the -i option is in use. Therefore, add a check to make sure it still exists before we start comparing files. Brought to my attention by: PR: bin/40538 Submitted by: Cyrille Lefevre END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-12-21T21:26:08.000000Z K 7 svn:log V 330 Clean up some of the pts(4) vs pty(4) stuff in grantpt(3) and friends: - Use PTY* for all pty(4) related constants. - Use PTMX* for all pts(4) related constants. - Consistently use _PATH_DEV PTMX rather than "/dev/ptmx". - Revert 1.7 and properly fix it by using the correct prefix string for pts(4) masters. MFC after: 3 days END K 10 svn:author V 5 gabor K 8 svn:date V 27 2007-12-21T21:32:12.000000Z K 7 svn:log V 166 - Document icase variable of make search, which can be used to control case-sensitivity PR: docs/117593 Submitted by: Nikolay Bachiyski END K 10 svn:author V 5 gabor K 8 svn:date V 27 2007-12-21T21:44:33.000000Z K 7 svn:log V 103 - Document PORT_DBDIR PR: docs/114731 Submitted by: Matthew Seaman END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2007-12-21T21:47:19.000000Z K 7 svn:log V 172 Fix/workaround build breakage caused by PAM import struct pam_conv takes a void * for the appdata_ptr but is being passed a const char * - explicitly cast away the const END K 10 svn:author V 5 gabor K 8 svn:date V 27 2007-12-21T21:48:54.000000Z K 7 svn:log V 122 - Remove incomplete sentence fragment PR: docs/117451 Submitted by: Warren Block MFC after: 3 days END K 10 svn:author V 7 wkoszek K 8 svn:date V 27 2007-12-21T23:30:18.000000Z K 7 svn:log V 109 Make SCHED_ULE buildable with gcc3. Reviewed by: cognet (mentor), jeffr Approved by: cognet (mentor), jeffr END K 10 svn:author V 6 julian K 8 svn:date V 27 2007-12-22T04:56:48.000000Z K 7 svn:log V 87 give thread0 the tid 100000 and bumpt the others to start at 100001 MFC after: 1 week END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-12-22T06:25:49.000000Z K 7 svn:log V 337 MFC v1.253 of dist.c and v1.71 of dist.h: > A few more adjustments needed because of changes in xorg. Just installing > xorg-server doesn't include any video drivers so install xorg-drivers as > well. And if font-alias isn't installed the X server won't start, > complaining it can't find the font "fixed". Approved by: re (rwatson) END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-12-22T06:26:54.000000Z K 7 svn:log V 340 MFC v1.253 of dist.c and v1.71 of dist.h: > A few more adjustments needed because of changes in xorg. Just installing > xorg-server doesn't include any video drivers so install xorg-drivers as > well. And if font-alias isn't installed the X server won't start, > complaining it can't find the font "fixed". Approved by: re (rwatson) END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-12-22T06:29:13.000000Z K 7 svn:log V 289 MFC v1.887.2.22: > Add support for disc3. Depending on architecture the combination of > kde3 and gnome2 is at least 670Mb which would mean if we stick with > just disc1/disc2 the only packages we could provide on the iso's > would be X11, kde3, and gnome2... Approved by: re (rwatson) END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-12-22T06:30:01.000000Z K 7 svn:log V 292 MFC v1.887.2.22: > Add support for disc3. Depending on architecture the combination of > kde3 and gnome2 is at least 670Mb which would mean if we stick with > just disc1/disc2 the only packages we could provide on the iso's > would be X11, kde3, and gnome2... Approved by: re (rwatson) END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-12-22T06:32:45.000000Z K 7 svn:log V 209 Adjust to shift some packages onto disc3. Strictly speaking not an MFC since packages are decided on a release-by-release basis but for now this is the same package set as for 6.3. Approved by: re (rwatson) END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2007-12-22T06:32:46.000000Z K 7 svn:log V 70 This commit was manufactured by cvs2svn to create branch 'RELENG_7_0'. END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-12-22T06:33:58.000000Z K 7 svn:log V 314 MFS of v1.6.2.10: > Initial pass at shifting packages around for 6.3-REL layout. There > is a lot of space left on disc3 that we can put to use by adding back > in lots of the packages we've been slowly ejecting through the years. > We'll decide exactly which ones a little bit later. Approved by: re (rwatson) END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-12-22T06:52:56.000000Z K 7 svn:log V 52 Prepare for RC2 builds. Approved by: re (implicit) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-22T10:06:11.000000Z K 7 svn:log V 232 When IPSEC fails to allocate policy state for an inpcb, and MAC is in use, free the MAC label on the inpcb before freeing the inpcb. MFC after: 3 days Submitted by: tanyong , zhouzhouyi END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-12-22T11:28:40.000000Z K 7 svn:log V 215 Technically speaking RELENG_7 becomes 7.0-STABLE once RELENG_7_0 gets created but that confuses too many people who think that means the release happened. So call it PRERELEASE for now. Approved by: re (implicit) END K 10 svn:author V 3 mav K 8 svn:date V 27 2007-12-22T13:31:01.000000Z K 7 svn:log V 122 Add usage example: Limit outgoing data rate over fxp0 Ethernet interface to 20Mbit/s and incoming packet rate to 5000pps. END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-12-22T13:34:43.000000Z K 7 svn:log V 65 Update branch tag for 'make update'. Approved by: re (implicit) END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-12-22T13:39:03.000000Z K 7 svn:log V 51 Update src branch tag. Approved by: re (implicit) END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-12-22T13:45:15.000000Z K 7 svn:log V 74 Update directories to search for packages in. Approved by: re (implicit) END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-12-22T13:46:15.000000Z K 7 svn:log V 58 Get ready for 7.0-RC1 builds. Approved by: re (implicit) END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-12-22T13:48:44.000000Z K 7 svn:log V 89 Bump __FreeBSD_version now that RELENG_7_0 has been created. Approved by: re (implicit) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-22T15:06:51.000000Z K 7 svn:log V 477 Merge in6_pcb.c:1.86 from HEAD to RELENG_6: Fix leaking MAC labels for IPv6 inpcbs by adding missing MAC label destroy call; this transpired because the inpcb alloc path for IPv4/IPv6 is the same code, but IPv6 has a separate free path. The results was that as new IPv6 TCP connections were created, kernel memory would gradually leak. Reported by: tanyong , zhouzhouyi Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-22T15:08:09.000000Z K 7 svn:log V 355 Merge mac_posix_sem.c:1.12 from HEAD to RELENG_6: Fix a MAC label leak for POSIX semaphores, in which per-policy labels would be properly disposed of, but the global label structure for the semaphore wouldn't be freed. Reported by: tanyong , zhouzhouyi Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-22T16:49:20.000000Z K 7 svn:log V 490 Merge in6_pcb.c:1.62.2.6 from RELENG_6 to RELENG_6_3: Fix leaking MAC labels for IPv6 inpcbs by adding missing MAC label destroy call; this transpired because the inpcb alloc path for IPv4/IPv6 is the same code, but IPv6 has a separate free path. The results was that as new IPv6 TCP connections were created, kernel memory would gradually leak. Reported by: tanyong , zhouzhouyi Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-22T17:04:16.000000Z K 7 svn:log V 360 Merge mac_posix_sem.c:1.1.2.1 from HEAD to RELENG_6_3: Fix a MAC label leak for POSIX semaphores, in which per-policy labels would be properly disposed of, but the global label structure for the semaphore wouldn't be freed. Reported by: tanyong , zhouzhouyi Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-22T19:04:14.000000Z K 7 svn:log V 311 Merge in_pcb.c:1.198 from HEAD to RELENG_7: When IPSEC fails to allocate policy state for an inpcb, and MAC is in use, free the MAC label on the inpcb before freeing the inpcb. Submitted by: tanyong , zhouzhouyi Approved by: re (kensmith) END K 10 svn:author V 3 des K 8 svn:date V 27 2007-12-22T19:29:32.000000Z K 7 svn:log V 55 Revert previous commit and fix OpenPAM issue properly. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-22T20:06:54.000000Z K 7 svn:log V 311 Merge in_pcb.c:1.198 from HEAD to RELENG_6: When IPSEC fails to allocate policy state for an inpcb, and MAC is in use, free the MAC label on the inpcb before freeing the inpcb. Submitted by: tanyong , zhouzhouyi Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-22T20:54:46.000000Z K 7 svn:log V 321 Merge in_pcb.c:1.196.2.1 from RELENG_7 to RELENG_7_0: When IPSEC fails to allocate policy state for an inpcb, and MAC is in use, free the MAC label on the inpcb before freeing the inpcb. Submitted by: tanyong , zhouzhouyi Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-22T21:01:53.000000Z K 7 svn:log V 321 Merge in_pcb.c:1.165.2.7 from RELENG_6 to RELENG_6_3: When IPSEC fails to allocate policy state for an inpcb, and MAC is in use, free the MAC label on the inpcb before freeing the inpcb. Submitted by: tanyong , zhouzhouyi Approved by: re (kensmith) END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-12-23T11:28:59.000000Z K 7 svn:log V 147 MFC: 1.8 In openprom_ioctl() ensure appropriate permissions and that data isn't NULL and doesn't point to a NULL pointer before dereferencing it. END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-12-23T11:31:24.000000Z K 7 svn:log V 175 MFC: 1.8 In openprom_ioctl() ensure appropriate permissions and that data isn't NULL and doesn't point to a NULL pointer before dereferencing it. Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-23T14:10:33.000000Z K 7 svn:log V 65 Remove trailing whitespace from lines in BPF. MFC after: 3 days END K 10 svn:author V 5 ticso K 8 svn:date V 27 2007-12-23T14:46:30.000000Z K 7 svn:log V 75 BWCT boards uses two different SPI flash chips check for both status codes END K 10 svn:author V 5 ticso K 8 svn:date V 27 2007-12-23T14:57:35.000000Z K 7 svn:log V 189 - remove code from oroginal file, which is not required on BWCT boards - Be more chatty on startup, since we have enough code space on AT91RM9200 - init DS1672 charging - init USART GPIO END K 10 svn:author V 5 wilko K 8 svn:date V 27 2007-12-23T16:31:05.000000Z K 7 svn:log V 21 On Christmas lights. END K 10 svn:author V 4 stas K 8 svn:date V 27 2007-12-23T23:31:27.000000Z K 7 svn:log V 65 - Fix a typo in comments. MFC after: 1 week Approved by: cognet END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-12-24T00:43:11.000000Z K 7 svn:log V 421 For the INDEX file to be used on disc1 of the 7.0-RELEASE the longest "build dependencies" field is 5,108 characters which overflows the length of the junk buffer by a teeny bit. This whole section needs much more error checking but for now just completely ignore stuff we have no interest in instead of copying it to someplace we don't use in the process. Insta-MFC probably coming since this is holding up 7.0-RC1... END K 10 svn:author V 6 marcel K 8 svn:date V 27 2007-12-24T01:01:59.000000Z K 7 svn:log V 764 Various fixes: o BSD disklabels have relative offsets. Even for the BSD in MBR slice setup, except when the mbroffset ioctl is supported. Since we don't support that ioctl, bsdlabel(8) expects relative offsets. So, when reading an existing disklabel, correct for disklabels that mistakenly have the mbroffset offsets. o Don't take the geometry seriously, because it's untrustworthy. We do expect the numbers to be within range. This means that the secperunit field will not be computed from secpercyl and ncyls, but simply is the mediasize in sectors. o Don't enforce partitions to be aligned to track boundaries. The default label, constructed by bsdlabel(8), puts partition a at offset BBSIZE bytes, which commonly means sector 16. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2007-12-24T05:50:46.000000Z K 7 svn:log V 96 MFC version 1.55, safety belt for the (unlikely) disappearance of the temproot before a -r run. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2007-12-24T05:51:45.000000Z K 7 svn:log V 124 MFC version 1.55, safety belt for the (unlikely) disappearance of the temproot before a -r run. Approved by: re (kensmith) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2007-12-24T06:33:22.000000Z K 7 svn:log V 124 MFC version 1.55, safety belt for the (unlikely) disappearance of the temproot before a -r run. Approved by: re (kensmith) END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-12-24T06:42:35.000000Z K 7 svn:log V 409 MFC v1.116: > For the INDEX file to be used on disc1 of the 7.0-RELEASE the longest > "build dependencies" field is 5,108 characters which overflows the > length of the junk buffer by a teeny bit. This whole section needs > much more error checking but for now just completely ignore stuff > we have no interest in instead of copying it to someplace we don't > use in the process. Approved by: re (bmah) END K 10 svn:author V 4 ache K 8 svn:date V 27 2007-12-24T10:30:09.000000Z K 7 svn:log V 108 Add Turkish collate PR: 118976 Submitted by: Ismail YENIGUL END K 10 svn:author V 3 kib K 8 svn:date V 27 2007-12-24T13:47:16.000000Z K 7 svn:log V 602 Move the check for the snp device being already attached after the fget() call, that is sleeping point, and possibly dropping Giant. The snp_target == NULL implies the snp_tty == NULL. Remove the code that is put under snp_target == NULL and snp_tty != NULL clause. In snpclose(), do the snp_detach() before scheduling the snp device destruction. Otherwise, after the return from snpclose(), the snp device is already removed from the snp_list, but tty is still in snooped state. Any attempt to do i/o on such tty cause panic because ttytosnp() returns NULL. Tested by: Peter Holm MFC after: 1 week END K 10 svn:author V 3 ume K 8 svn:date V 27 2007-12-24T16:32:14.000000Z K 7 svn:log V 201 Add sysctl mibs for _TSP, _TC1 and _TC2 which is user overridable but is blocked on user_override mib. Not a few people want to use a passive cooling without their ACPI BIOS support. Reviewed by: njl END K 10 svn:author V 5 edwin K 8 svn:date V 27 2007-12-25T00:40:32.000000Z K 7 svn:log V 227 When copying multiple files to a directory, make sure that a proper warning is given when the directory doesn't exist. PR: bin/50656 Submitted by: Edwin Groothuis Approved by: grog@ Not reviewed by: grog@ END K 10 svn:author V 5 edwin K 8 svn:date V 27 2007-12-25T00:52:24.000000Z K 7 svn:log V 735 Add the ability to clean up all shared memory segments which are unused in one go. From the original PR: I've observed that linux apps running under the linuxulator have a habit of leaving behind shared memory segments which are unused, but which eventually cause the system to run out of free segments and these apps will stop working. ipcrm(1) currently only allows removal of unused message queues, shared memory segments and semaphores on an individual basis, or those having a matching (non-zero) key. However it would often be convenient to just do a complete cleanup of everything, usually as root. PR: bin/118292 Submitted by: Callum Gibson Not reviewed by: grog@ Approved by: grog@ END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-12-25T06:22:33.000000Z K 7 svn:log V 654 Spring forward into the late 1970's by following item 5 in the yacc manual's Appendix D ("Old Features Supported but not Encouraged") in the Seventh Edition Unix Programmer's Manual (January, 1979) by retiring the " = {" method of of action specification in favor of a plain "{". It is no longer necessary for this bootstrap program to be compatible with 6th Edition systems. Some yaccs in the wild do not support this old syntax any more, and compatibility with those systems is more important these days (as there are easily 7 orders of magnitude more of them than real v6 systems today). Reviewed by: jhb@ and dds@ (the latter gave the reference). END K 10 svn:author V 4 oleg K 8 svn:date V 27 2007-12-25T09:36:51.000000Z K 7 svn:log V 156 Workaround p->numbytes overflow, which can result in infinite loop inside dummynet module (prerequisite is using queues with "fat" pipe). PR: kern/113548 END K 10 svn:author V 7 wkoszek K 8 svn:date V 27 2007-12-25T13:23:19.000000Z K 7 svn:log V 140 Change "audit_pipe_preselect" to "audit_pipe_presel" to make it print with proper alignment in ddb(4) and vmstat(8). Reviewed by: rwatson@ END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-25T13:24:02.000000Z K 7 svn:log V 68 Use __FBSDID() in the kernel BPF implementation. MFC after: 3 days END K 10 svn:author V 7 wkoszek K 8 svn:date V 27 2007-12-25T14:17:16.000000Z K 7 svn:log V 221 Rename "mbuf_jumbo_pagesize" to "mbuf_jumbo_page". It makes it aligned correctly within ddb(4) and in the vmstat(8) output. This change requires netstat(8) to be recompiled. Reviewed by: rwatson@ Tested by: make LINT END K 10 svn:author V 8 schweikh K 8 svn:date V 27 2007-12-25T16:36:52.000000Z K 7 svn:log V 17 Typos corrected. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-25T17:52:02.000000Z K 7 svn:log V 342 Add a new 'why' argument to kdb_enter(), and a set of constants to use for that argument. This will allow DDB to detect the broad category of reason why the debugger has been entered, which it can use for the purposes of deciding which DDB script to run. Assign approximate why values to all current consumers of the kdb_enter() interface. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-25T18:36:12.000000Z K 7 svn:log V 111 Add a new privilage category for DDB(4), and add PRIV_DDB_CAPTURE to control access to the DDB capture buffer. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-25T18:36:43.000000Z K 7 svn:log V 114 Add a new kernel startup event for DDB services, which will include DDB output capture, scripting, and textdumps. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-25T18:40:05.000000Z K 7 svn:log V 62 Bump __FreeBSD_version to 800007 to reflect kdb_enter change. END K 10 svn:author V 5 remko K 8 svn:date V 27 2007-12-25T19:51:18.000000Z K 7 svn:log V 124 Add support for the BMC5722. Reported by: Chris Shenton on current@ Approved by: imp (mentor) END K 10 svn:author V 5 remko K 8 svn:date V 27 2007-12-25T19:53:26.000000Z K 7 svn:log V 54 Mention support for the 5722 driver in bge.4 as well. END K 10 svn:author V 4 ache K 8 svn:date V 27 2007-12-25T20:30:36.000000Z K 7 svn:log V 90 Implement Turkish locale Submitted by: Ismail YENIGUL END K 10 svn:author V 7 wkoszek K 8 svn:date V 27 2007-12-25T21:17:34.000000Z K 7 svn:log V 225 Rewrite kern.console handling in sbuf(9). My intention is to leave kern.console format as is. Thus, no difference in output format should appear after this commit. Reviewed by: cognet@ (mentor) Approved by: cognet@ (mentor) END K 10 svn:author V 4 ache K 8 svn:date V 27 2007-12-25T21:19:09.000000Z K 7 svn:log V 113 Just copy long months names to (alternative). Alternative means another form and not ASCIIsizing of month names. END K 10 svn:author V 4 ache K 8 svn:date V 27 2007-12-25T21:21:26.000000Z K 7 svn:log V 37 Add reference to mnemonic char names END K 10 svn:author V 4 ache K 8 svn:date V 27 2007-12-25T21:24:18.000000Z K 7 svn:log V 100 Just copy long months names to alternative. Alternative does not means ASCIIsizing of months names. END K 10 svn:author V 7 wkoszek K 8 svn:date V 27 2007-12-25T22:41:29.000000Z K 7 svn:log V 123 "vt" doesn't refer to any existing device anymore. Remove it. Reviewed by: cognet@ (mentor) Approved by: cognet@ (mentor) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-25T23:06:51.000000Z K 7 svn:log V 427 Add a new DDB(4) facility, output capture. Input and output from DDB may be captured to a memory buffer for later inspection using sysctl(8), or in the future, to a textdump. A new DDB command, "capture", is added, which accepts arguments "on", "off", "reset", and "status". A new DDB sysctl tree, debug.ddb.capture, is added, which can be used to resize the capture buffer and extract buffer contents. MFC after: 3 months END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-25T23:25:04.000000Z K 7 svn:log V 52 Document DDB capture facility. MFC after: 3 months END K 10 svn:author V 5 edwin K 8 svn:date V 27 2007-12-26T08:32:20.000000Z K 7 svn:log V 129 As suggested, replace earlier changed warnx() / exit() with an errx() Submitted by: Peter Jeremy END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-12-26T08:41:58.000000Z K 7 svn:log V 271 Fix a panic where if the mbuf was consumed by the filter for requeueing (dummynet), ipsec_filter() would return the empty error code and the ipsec code would continue to forward/deference the null mbuf. Found by: m0n0wall Reviewed by: bz MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-26T09:33:19.000000Z K 7 svn:log V 986 Add a simple scripting facility to DDB(4), allowing the user to define a set of named scripts. Each script consists of a list of DDB commands separated by ";"s that will be executed verbatim. No higher level language constructs, such as branching, are provided for: scripts are executed by sequentially injecting commands into the DDB input buffer. Four new commands are present in DDB: "run" to run a specific script, "script" to define or print a script, "scripts" to list currently defined scripts, and "unscript" to delete a script, modeled on shell alias commands. Scripts may also be manipulated using sysctls in the debug.ddb.scripting MIB space, although users will prefer to use the soon-to-be-added ddb(8) tool for usability reasons. Scripts with certain names are automatically executed on various DDB events, such as entering the debugger via a panic, a witness error, watchdog, breakpoint, sysctl, serial break, etc, allowing customized handling. MFC after: 3 months END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-26T09:38:22.000000Z K 7 svn:log V 281 Add command-line tool ddb(8), which allows DDB(4) scripts to be managed from userspace. It is largely a wrapper for sysctl() calls, but because the sysctls for adding and removing scripts are awkward to use directly, this provides an easier-to-use interface. MFC after: 3 months END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-26T09:45:34.000000Z K 7 svn:log V 130 Add description of 'debug.ddb.capture.data' sysctl to DBD output capture section, missed in previous commit. MFC after: 3 months END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-26T09:51:37.000000Z K 7 svn:log V 83 Add SCRIPTING section to describe new DDB scripting facilities. Update copyright. END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2007-12-26T10:34:27.000000Z K 7 svn:log V 49 MFC: properly handle BZ_STREAM_END/Z_STREAM_END. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-26T10:51:07.000000Z K 7 svn:log V 63 Remove duplicate $FreeBSD$ that snuck in. MFC after: 3 months END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-26T10:57:35.000000Z K 7 svn:log V 351 Define a new kernel dump "architecture", TEXTDUMPMAGIC, which is used to identify textdumps in the swap/dump partition. While textdumps aren't really an architecture, they are architecture-neutral and so don't really correspond to any existing architecture. Define a version number for textdumps, KERNELDUMP_TEXT_VERSION, of 1. MFC after: 3 months END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-26T11:32:33.000000Z K 7 svn:log V 2028 Add textdump(4) facility, which provides an alternative form of kernel dump using mechanically generated/extracted debugging output rather than a simple memory dump. Current sources of debugging output are: - DDB output capture buffer, if there is captured output to save - Kernel message buffer - Kernel configuration, if included in kernel - Kernel version string - Panic message Textdumps are stored in swap/dump partitions as with regular dumps, but are laid out as ustar files in order to allow multiple parts to be stored as a stream of sequentially written blocks. Blocks are written out in reverse order, as the size of a textdump isn't known a priori. As with regular dumps, they will be extracted using savecore(8). One new DDB(4) command is added, "textdump", which accepts "set", "unset", and "status" arguments. By default, normal kernel dumps are generated unless "textdump set" is run in order to schedule a textdump. It can be canceled using "textdump unset" to restore generation of a normal kernel dump. Several sysctls exist to configure aspects of textdumps; debug.ddb.textdump.pending can be set to check whether a textdump is pending, or set/unset in order to control whether the next kernel dump will be a textdump from userspace. While textdumps don't have to be generated as a result of a DDB script run automatically as part of a kernel panic, this is a particular useful way to use them, as instead of generating a complete memory dump, a simple transcript of an automated DDB session can be captured using the DDB output capture and textdump facilities. This can be used to generate quite brief kernel bug reports rich in debugging information but not dependent on kernel symbol tables or precisely synchronized source code. Most textdumps I generate are less than 100k including the full message buffer. Using textdumps with an interactive debugging session is also useful, with capture being enabled/disabled in order to record some but not all of the DDB session. MFC after: 3 months END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-26T11:35:07.000000Z K 7 svn:log V 310 Add textdump(4) man page to describe the textdump facility and provide some stock formulas for use. Update ddb(4) to reference the textdump(4) page, list the textdump commands, and suggest using them with scripts and output capture. Update HISTORY section. Hook up textdump(4) to build. MFC after: 3 months END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-26T11:42:10.000000Z K 7 svn:log V 133 Teach savecore(8) how to extract textdump(4) dumps. Update savecore(8) man page to reflect textdump additions. MFC after: 3 months END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-26T12:18:21.000000Z K 7 svn:log V 145 Minor formatting tweaks; recommend "call doadump; reset" over "panic" from a script as the DDB panic command is unreliable. MFC after: 3 months END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-26T12:20:19.000000Z K 7 svn:log V 115 Minor formatting tweaks. Point at ddb(4) and textdump(4) man pages for more script examples. MFC after: 3 months END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2007-12-26T14:31:16.000000Z K 7 svn:log V 394 Sync with rev 1.63 of NetBSD's ums.c: If a mouse has both a wheel and a Z direction we report both. XXX Due to tradition the wheel is reported as the Z direction (and the Z direction as W). Now Apple's Mighty Mouse is fully supported, except the X11 mouse driver doesn't know what to do with the new coordinate. MFC after: 3 months Approved by: njl (mentor), imp END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-12-26T16:45:35.000000Z K 7 svn:log V 31 Update to 2008. MFC After: 1s END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-12-26T16:49:12.000000Z K 7 svn:log V 50 MFC: Update to 2008. Approved by: re@ (kensmith) END K 10 svn:author V 3 mav K 8 svn:date V 27 2007-12-26T19:15:07.000000Z K 7 svn:log V 44 Remove some prehistoric never used defines. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2007-12-26T19:15:58.000000Z K 7 svn:log V 116 "FreeBSD/Open Firmware/PowerPC ..." is confusing and non-standard. Use "FreeBSD/powerpc Open Firmware ..." instead. END K 10 svn:author V 3 mav K 8 svn:date V 27 2007-12-26T19:33:53.000000Z K 7 svn:log V 52 Fix incorrectly placed bracket in pppoe_find_svc(). END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-12-26T21:50:59.000000Z K 7 svn:log V 650 Fix some bugs in the FreeBSD 4/5/6 pci(4) IOCTLs compatibility code: - Use the correct offsets when copying out the results of PCIOCGETCONF_OLD. This happened to not affect the 64-bit architectures because there the addition of pc_domain to struct pcisel didn't change the overall size of struct pci_conf. [1] - Always copy the name and unit information to conf_old so it's also part of the output once this information is cached in dinfo. - Use the correct type for flags in struct pci_match_conf_old. This change is more or less cosmetic though. Reported and tested by: bde [1] Reviewed by: imp MFC after: 3 days Committed from: 24C3 END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-12-27T03:52:14.000000Z K 7 svn:log V 107 Update two tracepoints, i.e., CTRx() invocations, to reflect the demise of page coloring a few months ago. END K 10 svn:author V 3 mux K 8 svn:date V 27 2007-12-27T10:00:57.000000Z K 7 svn:log V 233 Add a workaround for a deadlock between the rt_setgate() and rt_check() functions. It is easily triggered by running routed, and, I expect, by running any other daemon that uses routing sockets. Reviewed by: net@ MFC after: 1 week END K 10 svn:author V 3 dds K 8 svn:date V 27 2007-12-27T11:33:42.000000Z K 7 svn:log V 390 - Roll-back attempts to mimic rename(2) atomicity introduced in 1.47, and follow the letter of the POSIX specification. - Moving a directory to an existing non-empty directory will now fail, as required. - Improve consistency and remove some style bugs of earlier versions. This version passes all tests of tools/regression/bin/mv/regress.sh 1.6 Reviewed by: bde MFC after: 1 month END K 10 svn:author V 5 simon K 8 svn:date V 27 2007-12-27T12:17:45.000000Z K 7 svn:log V 444 - Fix calculation of data slice size when NANO_DATASIZE=-1. Due to a typo, setting NANO_DATASIZE=-1 resulted in the data slice being the same size as entire image instead of the size of the remaining space on the image. - Fix detection of overcommit of the slices. This fix mainly result in a nicer error than when newfs etc. tries to write beyond the end of the disk image. MFC after: 2 weeks X-MFC after: RELENG_7 is open again END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-12-27T16:38:28.000000Z K 7 svn:log V 1089 A partial solution to some of the 'pull the umass device with a mounted FS' problems. These are more along the lines of 'avoiding an avoidable panic' than a complete solution to removable devices. We now close the barn door after the horse has gotten lose and has been hit by a truck, as it were. The barn no longer catches fire in this case, but the horse is still dead :-). The vfs_bio.c fix causes us not to put a failed write back into the dirty pool if the error returned was ENXIO. In that case, the buffer is treated like any other clean buffer that's being retured. ENXIO means the device isn't there anymore and will never be there again in the future, so retrying is futile. The vfs_mount.c fix treats 'ENXIO' as success for unmounting a file system. If the device is gone, retrying later won't help and we'll never be able to unmount the device. These two are part of a larger patch set submitted by the author. The other patches will be forth coming. I added comments to these two patches. Submitted by: Henrik Gulbrandsen Reviewed by: phk@ PR: usb/46176 (partial) END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-12-27T16:45:39.000000Z K 7 svn:log V 121 Add configuration knobs for the superpage reservation system. Initially, the reservation will only be enabled on amd64. END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-12-27T17:08:11.000000Z K 7 svn:log V 36 Add the superpage reservation type. END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-12-27T17:56:35.000000Z K 7 svn:log V 353 Add a list of reservations to the vm object structure. Recycle the vm object's "pg_color" field to represent the color of the first virtual page address at which the object is mapped instead of the color of the object's first physical page. Since an object may not be mapped, introduce a flag "OBJ_COLORED" that indicates whether "pg_color" is valid. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2007-12-27T18:26:48.000000Z K 7 svn:log V 40 Add asmc(4). Approved by: njl (mentor) END K 10 svn:author V 4 bmah K 8 svn:date V 27 2007-12-27T19:34:32.000000Z K 7 svn:log V 90 Version number bumps for 7.0-RELEASE release documentation. Approved by: re (implicitly) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2007-12-27T20:52:05.000000Z K 7 svn:log V 310 As LK_EXCLUPGRADE is used in conjuction with LK_NOWAIT, LK_UPGRADE becames equivalent with this and so operate the switch. That call is the only one remaining LK_EXCLUPGRADE consumer and removing it will prepare the ground for LK_EXCLUPGRADE axing and further lockmgr improvements. Discussed with: jeff, ups END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-27T21:28:48.000000Z K 7 svn:log V 403 Compare kernel dump header magic with textdump magic using strncmp() rather than the memcmp() which is used for regular dumps: the textdump string is one character shorter, so we need to stop comparing at the end of the string. Use independent version checking logic for architecture-specific version number vs. textdump version number, as the version sequences may (someday) differ. Run into by: rrs END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-12-27T21:55:49.000000Z K 7 svn:log V 111 Fix a typo in regards to the ENOENT error. PR: docs/118929 Submitted by: mymtom of hotmail MFC after: 3 days END K 10 svn:author V 7 attilio K 8 svn:date V 27 2007-12-27T22:33:30.000000Z K 7 svn:log V 89 Garbage-collect following nomore existing options: - LK_REENABLE - LK_NOPAUSE - LK_NOOBJ END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-27T22:44:01.000000Z K 7 svn:log V 564 Return ESRCH when a kernel stack is queried on a process in execve() -- p_candebug() will return EAGAIN which, if the other process never leaves execve(), will result in the sysctl spinning and never returning to userspace. Processes should always eventually leave execve(), but spinning in kernel while we wait is bad for countless reasons, and particularly harmful if execve() itself is deadlocked. Possibly we should return another error, or return a marker indicating the thread is in execve() so it can be reported that way in userspace. Reported by: kris END K 10 svn:author V 7 attilio K 8 svn:date V 27 2007-12-27T22:56:57.000000Z K 7 svn:log V 459 In order to avoid a huge class of deadlocks (in particular in interactions with the interlock), owner of the lock should be only curthread or at least, for its limited usage, NULL which identifies LK_KERNPROC. The thread "extra argument" for the lockmgr interface is going to be removed in the near future, but for the moment, just let kernel run for some days with this check on in order to find potential deadlocking places around the kernel and fix them. END K 10 svn:author V 3 des K 8 svn:date V 27 2007-12-27T23:19:03.000000Z K 7 svn:log V 42 Unbreak LINT on non-i386/amd64 platforms. END K 10 svn:author V 6 jasone K 8 svn:date V 27 2007-12-27T23:29:44.000000Z K 7 svn:log V 818 Add the 'D' and 'M' run time options, and use them to control whether memory is acquired from the system via sbrk(2) and/or mmap(2). By default, use sbrk(2) only, in order to support traditional use of resource limits. Additionally, when both options are enabled, prefer the data segment to anonymous mappings, in order to coexist better with large file mappings in applications on 32-bit platforms. This change has the potential to increase memory fragmentation due to the linear nature of the data segment, but from a performance perspective this is mitigated by the use of madvise(2). [1] Add the ability to interpret integer prefixes in MALLOC_OPTIONS processing. For example, MALLOC_OPTIONS=lllllllll can now be specified as MALLOC_OPTIONS=9l. Reported by: [1] rwatson Design review: [1] alc, peter, rwatson END K 10 svn:author V 7 attilio K 8 svn:date V 27 2007-12-28T00:38:13.000000Z K 7 svn:log V 474 Trimm out now unused option LK_EXCLUPGRADE from the lockmgr namespace. This option just adds complexity and the new implementation no longer will support it, so axing it now that it is unused is probabilly the better idea. FreeBSD version is bumped in order to reflect the KPI breakage introduced by this patch. In the ports tree, kris found that only old OSKit code uses it, but as it is thought to work only on 2.x kernels serie, version bumping will solve any problem. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-12-28T00:47:31.000000Z K 7 svn:log V 253 In "show lockedvnods" DDB command, use db_printf() rather than printf() so that the results end up in the DDB output stream rather than the console output stream. This should likely also be done for the vprint() function it calls. MFC after: 3 months END K 10 svn:author V 6 jasone K 8 svn:date V 27 2007-12-28T02:15:08.000000Z K 7 svn:log V 77 Release chunks_mtx for all paths through chunk_dealloc(). Reported by: kris END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-12-28T05:08:54.000000Z K 7 svn:log V 790 The limit on datasize in the install environment is 128M. That's a bit too small for today's standards. While loading packages sysinstall blows past this by a LOT but I think (hope...) that's caused by other bugs. I'll look more into why sysinstall's memory use has gotten so out of control as it loads packages but independent of that there really is no reason to leave the limits on datasize and stacksize in place. And they can cause problems for some of the things "modern packages" might be doing via pkg_add which gets run by sysinstall and would inherit the limits. Another insta-MFC probably coming, this is holding up 6.3-RC2. Sysinstall's memory use is so out of control it blows past the current limit before it finishes loading either of the meta-packages kde or gnome... END K 10 svn:author V 6 jasone K 8 svn:date V 27 2007-12-28T07:03:26.000000Z K 7 svn:log V 46 Implement RB_PREV() AND RB_FOREACH_REVERSE(). END K 10 svn:author V 6 jasone K 8 svn:date V 27 2007-12-28T07:24:19.000000Z K 7 svn:log V 338 Maintain two trees instead of one (old_chunks --> old_chunks_{ad,szad}) in order to support re-use of multi-chunk unused regions within the DSS for huge allocations. This generalization is important to correct function when mmap-based allocation is disabled. Avoid zeroing re-used memory in the DSS unless it really needs to be zeroed. END K 10 svn:author V 6 jasone K 8 svn:date V 27 2007-12-28T09:21:12.000000Z K 7 svn:log V 47 Back out premature commit of previous version. END