ƒ´&159000 182 332 278 318 262 166 259 208 1196 229 211 264 286 304 961 197 319 321 273 271 300 162 233 127 442 501 253 154 402 406 107 151 346 216 194 150 159 126 147 201 126 214 143 115 393 109 950 130 186 474 134 429 2051 141 164 700 130 590 529 231 196 353 154 495 285 239 190 317 481 236 128 153 103 329 216 183 188 233 337 113 451 305 236 269 185 203 158 462 298 168 210 183 259 296 219 295 318 382 171 126 146 186 149 454 183 294 164 130 385 243 156 194 902 360 177 177 217 253 371 398 251 278 322 269 119 246 157 666 188 614 126 702 206 136 298 231 118 113 231 437 282 254 186 325 298 542 228 374 282 141 359 460 156 484 152 179 732 388 323 349 233 196 238 239 166 521 132 212 165 848 231 209 238 252 164 234 167 144 139 310 144 2359 327 K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-05-28T06:51:57.000000Z K 7 svn:log V 235 Clear high 16 bits of mxcsr register, according to Intel document, if the high 16 bits is non-zero, fxrstor instruction will generate GP fault, resulting kernel crash, this bug can be triggered by setcontext and ptrace(PT_SETXMMREGS). END K 10 svn:author V 3 jmg K 8 svn:date V 27 2006-05-28T07:15:35.000000Z K 7 svn:log V 185 document that even if magic is newer than magic.mgc, it isn't used compiling mgc on a big endian system (specificly tested sparc64) breaks, using one from a little endian system works END K 10 svn:author V 3 dds K 8 svn:date V 27 2006-05-28T07:24:12.000000Z K 7 svn:log V 225 Add missing % signs in the lock annotations of the functions: lookup, rename, strategy, islocked The missing % sign meant that the lines were processed as plain comments and the corresponding assertions were never generated. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-05-28T08:28:47.000000Z K 7 svn:log V 165 In execve(), audit the path name being executed. In the future, it would also be good to audit the interpreter pathname, if any. Obtained from: TrustedBSD Project END K 10 svn:author V 6 matteo K 8 svn:date V 27 2006-05-28T08:29:49.000000Z K 7 svn:log V 71 Mention ruleset #4 (devfsrules_jail) in jail's man page. MFC after: 3 END K 10 svn:author V 5 simon K 8 svn:date V 27 2006-05-28T09:44:13.000000Z K 7 svn:log V 164 Revert 1.73, since mounting devfs without a devfs ruleset inside a jail is a very bad idea security wise. Approved by: trhodes (jcamou mentor) No response: jcamou END K 10 svn:author V 5 simon K 8 svn:date V 27 2006-05-28T09:49:42.000000Z K 7 svn:log V 113 Revert MFC of 1.73, since mounting devfs without a devfs ruleset inside a jail is a very bad idea security wise. END K 10 svn:author V 5 wilko K 8 svn:date V 27 2006-05-28T11:15:16.000000Z K 7 svn:log V 1100 Remove GEOM_GPT. I encountered repeatable Unaligned access panics similar to: fatal kernel trap: trap entry = 0x4 (unaligned access fault) cpuid = 0 faulting va = 0xfffffc0000fae1c2 opcode = 0x28 register = 0x1 pc = 0xfffffc00004d07dc ra = 0xfffffc00004d0a1c sp = 0xfffffe0031875bc0 curthread = 0xfffffc007da237a0 pid = 2, comm = g_event These occur when a floppy or a CD (the 6.1R install CD will do in most cases) is in the drive during boot. A floppy or CD inserted *after* the system was booted did not give me this problem. Interestingly enough booting from the 6.1-R install CD sometimes caused the crash, sometimes it did not. When it did not panic an installation of 6.1-R was possible without any incidents. A subsequent boot from HD with the CD still present sometimes(...) worked fine, sometimes paniced. Taking GEOM_GPT out of the kernel config file allows booting without incidents. We do not need GPT on Alpha, so this is the easy way out. Discussed with: phk END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-05-28T12:32:30.000000Z K 7 svn:log V 132 Print the euid after the gid as demanded by POSIX. Submitted by: Martin Nagy PR: 96239 MFC after: 2 weeks END K 10 svn:author V 8 netchild K 8 svn:date V 27 2006-05-28T14:07:47.000000Z K 7 svn:log V 113 Use a more appropriate printf format for size_t. This should unbreak the tinderbox build (64bit architectures). END K 10 svn:author V 8 netchild K 8 svn:date V 27 2006-05-28T15:25:18.000000Z K 7 svn:log V 166 Add a disclaimer regarding public/internal functions to every subsystem for now. Discussed on: cvs-all Helped with the wording: "Ben Kaduk" END K 10 svn:author V 5 silby K 8 svn:date V 27 2006-05-28T18:30:36.000000Z K 7 svn:log V 191 Add a quick hack to ensure that bus_dmamem_alloc properly aligns small allocations with large alignment requirements. Add a panic to detect cases where we've still failed to properly align. END K 10 svn:author V 5 silby K 8 svn:date V 27 2006-05-28T18:31:32.000000Z K 7 svn:log V 209 MFi386 rev 1.78: Add a quick hack to ensure that bus_dmamem_alloc properly aligns small allocations with large alignment requirements. Add a panic to detect cases where we've still failed to properly align. END K 10 svn:author V 5 silby K 8 svn:date V 27 2006-05-28T18:41:47.000000Z K 7 svn:log V 866 1. Make sure that the TX and RX descriptor rings are 4096 byte aligned. Also use BUS_DMA_ALLOCNOW to be on the safe side. 2. Look for the Descriptor Error, and Descriptor Protocol Error flags from the card, and down the interface if we detect either. #1 (along with fixes to busdma) makes sure that this card works in all memory situations. Prior to this change, it was just luck that 512 count RX/TX lists were properly aligned. Now we can use any size of RX/TX lists and still have them properly aligned. #2 ensures that we don't get into an endless interrupt storm if busdma fails us. Descriptor Protocol Error would occur if we misaligned the TX/RX rings, and Descriptor Error would occur if we tried to give the card descriptors or rings with addresses > 1G. Trying to reinitialize the card isn't going to fix these errors, hence we don't try. END K 10 svn:author V 3 jmg K 8 svn:date V 27 2006-05-28T18:42:59.000000Z K 7 svn:log V 104 document that I'm still maintaining kqueue and want to review commits to it before they hit the tree... END K 10 svn:author V 5 silby K 8 svn:date V 27 2006-05-28T18:44:39.000000Z K 7 svn:log V 224 Re-revert back to rev 1.8: - Reduce the number of RX and TX buffers bfe uses so that it does not use more bounce buffers than busdma is willing to allow it to use See if_bfe.c for comments on why this is now safe to do. END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2006-05-28T18:44:47.000000Z K 7 svn:log V 224 MFC: 1.208 In devfs_first(), set mp->mnt_opt to a valid empty list of mount options instead of leaving it NULL. This eliminates a kernel panic when trying to do a mount -o update of /dev. Noticed by: cjsp Reviewed by: phk END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2006-05-28T18:59:28.000000Z K 7 svn:log V 176 Do not log "can't delete export" messages if nmount() returns ENOTSUP. This eliminates spurious log entries for trying to delete exports for filesystems like devfs and procfs. END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2006-05-28T20:00:02.000000Z K 7 svn:log V 173 Avoid unwanted sign extension of indexed byte load in bpf code. PR: 89748 Submitted by: Guy Harris Obtained from: NetBSD via OpenBSD MFC after: 2 weeks END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2006-05-28T20:09:18.000000Z K 7 svn:log V 203 Modify MNT_UPDATE behavior for nullfs so that it does not return EOPNOTSUPP if an "export" parameter was passed in. This should allow nullfs mounts to be NFS exported. PR: kern/87906 MFC after: 1 week END K 10 svn:author V 5 wilko K 8 svn:date V 27 2006-05-28T20:26:57.000000Z K 7 svn:log V 68 Add pointer to historical overview of the various Alpha CPU models. END K 10 svn:author V 5 silby K 8 svn:date V 27 2006-05-28T20:35:39.000000Z K 7 svn:log V 138 Back out the BUS_DMA_ALLOCNOW change from rev 1.39. Scottl informed me that it's unnecessary, as the TX/RX lists are static allocations. END K 10 svn:author V 4 kris K 8 svn:date V 27 2006-05-28T22:15:28.000000Z K 7 svn:log V 34 Correct typos MFC after: 2 weeks END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2006-05-28T22:45:52.000000Z K 7 svn:log V 345 Remove incorrect null_checkexp() routine. This will allow the NFS server to call vfs_stdcheckexp() on the exported nullfs filesystem, not the underlying filesystem being nullfs mounted. If the lower filesystem was not NFS exported, then the NFS exported null filesystem would not work. Pointed out by: scottl PR: kern/87906 MFC after: 1 week END K 10 svn:author V 7 iedowse K 8 svn:date V 27 2006-05-28T23:37:04.000000Z K 7 svn:log V 404 If a zero-length bulk or interrupt transfer is requested then assume USBD_FORCE_SHORT_XFER to ensure that we actually build and execute a transfer. This means that the various alloc_sqtd_chain functions will always construct a transfer, so it is safe to modify the allocated descriptors on return. Previously there were cases where a zero length transfer would cause a NULL dereference. Reported by: bp END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-05-29T00:36:27.000000Z K 7 svn:log V 156 MFC r1.59, 1.60 - Add support for fragmenting ipv4 packets - Recalculate the IP checksum after pfil(9) Together these allow NFS to work over the bridge END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-05-29T00:40:16.000000Z K 7 svn:log V 58 MFC r1.61: Fix style(9) nits, whitespace and parentheses. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-05-29T02:58:37.000000Z K 7 svn:log V 305 Backout changes trying to inherit floating-point environment, although POSIX (susv3) requires this, but it is unclear what should be inherited, duplicating whole 387 stack for new thread seems to be unnecessary and dangerous. Revert to previous code, force a new thread to be started with clean FP state. END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2006-05-29T03:04:49.000000Z K 7 svn:log V 309 Convert mountd to use nmount(). Remove hardcoded dependencies on ufs, cd9660, msdosfs, and ntfs. MFC: mountd.c 1.84, 1.85, 1.86 - exclude changes to pass in errmsg mount option, because errmsg is not in RELENG_6's vfs_mount.c as a default mount option. Makefile 1.17 PR: bin/97642 END K 10 svn:author V 3 hrs K 8 svn:date V 27 2006-05-29T03:16:13.000000Z K 7 svn:log V 15 Unbreak build. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2006-05-29T05:43:26.000000Z K 7 svn:log V 55 Unexpand TAILQ_FIRST(foo) == NULL to TAILQ_EMPTY(foo). END K 10 svn:author V 3 alc K 8 svn:date V 27 2006-05-29T06:12:01.000000Z K 7 svn:log V 253 MFalpha/amd64/arm/ia64 Retire pmap_track_modified(). We no longer need it because we do not create managed mappings within the clean submap. To prevent regressions, add assertions blocking the creation of managed mappings within the clean submap. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-05-29T10:56:27.000000Z K 7 svn:log V 121 o Test truncate(2) on fifo: it should ignore the request and return success. PR: kern/98064 Submitted by: Kirk Russell END K 10 svn:author V 3 jmg K 8 svn:date V 27 2006-05-29T10:57:13.000000Z K 7 svn:log V 101 remove comment about systems, I got confused which arch one of my systems was... Pointed out by: ru END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-05-29T11:00:10.000000Z K 7 svn:log V 56 MFC revs. 1.104, 1.105: add FreeBSD 5.5, correct dates. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-05-29T11:06:26.000000Z K 7 svn:log V 65 MFC rev. 1.21 strtol.3 and rev. 1.22 strtoul.3: .Xr strtonum(3). END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-05-29T11:08:14.000000Z K 7 svn:log V 32 MFC rev. 1.9: correct comments. END K 10 svn:author V 4 nyan K 8 svn:date V 27 2006-05-29T12:55:36.000000Z K 7 svn:log V 54 Remove the telnet command because of filesystem full. END K 10 svn:author V 6 matteo K 8 svn:date V 27 2006-05-29T14:43:05.000000Z K 7 svn:log V 105 MFC rev 1.10: Correctly set moused_$2_enable when moused_nondefault_enable is set to NO PR: conf/92654 END K 10 svn:author V 3 des K 8 svn:date V 27 2006-05-29T14:51:52.000000Z K 7 svn:log V 34 Add RELENG_5_5 to the 5.x lineup. END K 10 svn:author V 6 matteo K 8 svn:date V 27 2006-05-29T15:25:49.000000Z K 7 svn:log V 118 MFC rev 1.15-1.16 Update README.examples according to the current state of the examples/etc directory PR: conf/97232 END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-05-29T16:59:38.000000Z K 7 svn:log V 48 When setting verbose, *set* it, don't *add* it. END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-05-29T17:37:41.000000Z K 7 svn:log V 24 Fix build with -Wundef. END K 10 svn:author V 3 flz K 8 svn:date V 27 2006-05-29T17:54:57.000000Z K 7 svn:log V 300 MFC: - Add support for the Acer Acerscan 640BT. - Add documentation bits. src/sys/dev/usb/usbdevs: rev 1.256 -> 1.257 src/sys/dev/usb/uscanner.c: rev 1.69 -> 1.70 src/share/man/man4/uscanner.4: rev 1.23 -> 1.24 PR: usb/95616 Submitted by: Matthieu Guegan END K 10 svn:author V 6 scottl K 8 svn:date V 27 2006-05-29T18:05:26.000000Z K 7 svn:log V 14 Remove cruft. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-05-29T18:40:55.000000Z K 7 svn:log V 855 o Add a collection of regression tests for ancillary (control) data passing for unix domain sockets, stream and datagram. There are 15 tests: Test/Type of socket STREAM DGRAM ---------------------------------------------------------------------- Sending, receiving cmsgcred 1 6 Receiving sockcred (listening socket has LOCAL_CREDS) 2 n/a Receiving sockcred (accepted socket has LOCAL_CREDS) 3 n/a Receiving sockcred n/a 7 Sending cmsgcred, receiving sockcred 4 8 Sending, receiving timestamp 5 9 Sending, receiving cmsgcred (no control data) 10 13 Sending cmsgcred, receiving sockcred (no control data) 11 14 Sending, receiving timestamp (no control data) 12 15 Currently we pass 8 tests. All the rest marked as TODO. PR: kern/90800 Submitted by: Andrey Simonenko END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-05-29T19:29:41.000000Z K 7 svn:log V 36 o Add net80211/ to cscope dir list. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-05-29T19:32:32.000000Z K 7 svn:log V 91 Nuke sa11x0_attach_args. It's a NetBSDIsm, and we have no use for it. Submitted by: kevlo END K 10 svn:author V 3 cel K 8 svn:date V 27 2006-05-29T20:07:40.000000Z K 7 svn:log V 381 Add better sanity checking to the logic that handles ioctl processing for nfsclient and nfs4client in order to prevent local root users from panicing the system. MFC of nfs4client/nfs4_dev.c revision 1.9. PR: kern/77463 Submitted by: Wojciech A. Koszek Reviewed by: cel, rees Security: Local root users can panic the system at will Sponsored by: Network Appliance, Incorporated END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-05-29T20:15:29.000000Z K 7 svn:log V 39 Add a MPT_PRT_NEGOTIATION print level. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-05-29T20:20:45.000000Z K 7 svn:log V 333 Add a mpt_is_raid_volume function which will tell you whether the passed target id is one of the RAID VolumeID. This result is used to decide whether to try and do actual SPI negotiations on the real side of the raid/passthru bus pair. The reason we check this is that we can have both RAID volumes and real devices on the same bus. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-05-29T20:30:40.000000Z K 7 svn:log V 1954 + Change some debug messages to MPT_PRT_NEGOTIATE level (so we can see the results of SPI negotiation w/o being overwhelmed with other crap). + For U320 devices, check against both Settings *and* DV flags before deciding whether we need to skip actual SPI settings for a device. + Go back to creating a 'physical disk' side of a raid/passthru bus that is limited to the number of maximum physical disks. Actually, this isn't probably *quite* right yet for one RAID volume, and if we ever end up with finding a device that supports more than one RAID volume (not likely), it probably won't quite be right either. The problem here is that the creating of this 'physical' passthru sim is just a cheap way to leverage off the CAM midlayer to do our negotiation for us on the subentities that make up a RAID volume. It almost causes more trouble than it is worth because we have to remember which side we're talking to in terms of forming commands and which target ids are real and so on. Bleah. + Skip trying to actually do SPI settings for the RAID volumes on the real side of the raid/passthru bus pair- this just confuses the issue. The underlying real physical devices will have the negotiation performed and the Raid volume will inherit the resultant settings. At the sime time, non-RAID devices can be on the same real bus, so *do* perform negotiations with them. + At the end of doing all of the settings twiddling, *ahem*, remember to go update the settings on the card itself (dunno how this got nuked). At this point, negotiations *seem* to be being done (again) correctly for both RAID volumes and their subentities. And they seem to be *mostly* now right for other non-RAID entities on the same bus (I ended up with 3 out of 8 other disks still at narror/async- haven't the slightest idea why yes). Finally, negotiations on a normal bus seem to work (again). There's still more work coming into this area, but we're in the final stretch. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-05-29T20:34:28.000000Z K 7 svn:log V 46 Add acknowledgements to LSI-Logic for support END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2006-05-29T20:34:29.000000Z K 7 svn:log V 68 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. END K 10 svn:author V 5 tegge K 8 svn:date V 27 2006-05-29T21:28:56.000000Z K 7 svn:log V 605 Close race between vmspace_exitfree() and exit1() and races between vmspace_exitfree() and vmspace_free() which could result in the same vmspace being freed twice. Factor out part of exit1() into new function vmspace_exit(). Attach to vmspace0 to allow old vmspace to be freed earlier. Add new function, vmspace_acquire_ref(), for obtaining a vmspace reference for a vmspace belonging to another process. Avoid changing vmspace refcount from 0 to 1 since that could also lead to the same vmspace being freed twice. Change vmtotal() and swapout_procs() to use vmspace_acquire_ref(). Reviewed by: alc END K 10 svn:author V 3 njl K 8 svn:date V 27 2006-05-29T22:40:03.000000Z K 7 svn:log V 38 MFC: newer Intel and VIA C7-M support END K 10 svn:author V 3 cel K 8 svn:date V 27 2006-05-30T00:43:07.000000Z K 7 svn:log V 497 Refactor the NFS over UDP retransmit timeout estimation logic to allow the estimator to be more easily tuned and maintained. There should be no functional change except there is now a lower limit on the retransmit timeout to prevent the client from retransmitting faster than the server's disks can fill requests, and an upper limit to prevent the estimator from taking too long to retransmit during a server outage. Reviewed by: mohan, kris, silby Sponsored by: Network Appliance, Incorporated END K 10 svn:author V 3 cel K 8 svn:date V 27 2006-05-30T01:52:59.000000Z K 7 svn:log V 436 NFS over TCP retransmit behavior should default to a 60 second time out, mimicing the NFS reference implementation. NFS over TCP does not need fast retransmit timeouts, since network loss and congestion are managed by the transport (TCP), unlike with NFS over UDP. A long timeout prevents the unnecessary retransmission of non- idempotent NFS requests. Reviewed by: mohans, silby, rees? Sponsored by: Network Appliance, Incorporated END K 10 svn:author V 6 brooks K 8 svn:date V 27 2006-05-30T02:10:01.000000Z K 7 svn:log V 135 Remove reference to no longer existant /etc/rc.d/pccard. PR: conf/98055 Submitted by: thierry herbelot END K 10 svn:author V 2 ps K 8 svn:date V 27 2006-05-30T02:58:36.000000Z K 7 svn:log V 104 MFC: Allow concurrent read(2)/readv(2) access to a file. Lock file offset against multiple read calls. END K 10 svn:author V 4 grog K 8 svn:date V 27 2006-05-30T04:00:23.000000Z K 7 svn:log V 259 Don't go past the end of the month with a repetitive entry of the style "every Monday": mon * Do Foo. Previously, at the end of the month, this could cause a printout of the following nature when invoked with -A 7: 36 May* Do Foo MFC after: 2 weeks END K 10 svn:author V 2 ps K 8 svn:date V 27 2006-05-30T06:42:02.000000Z K 7 svn:log V 63 Spin until a request structure is available in the ioctl path. END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2006-05-30T07:08:41.000000Z K 7 svn:log V 397 Use some features of sh(1) which I didn't know about until today ("read" can read two variables at once; and suffix pattern deletion) to make the extract command fork fewer processes. With the portsnap snapshot and the ports tree in swap-backed memory disks on my 1.4GHz laptop, this reduces 178800 processes and 195/56/126 seconds of real/user/sys time to 44600 processes and 103/34/60 seconds. END K 10 svn:author V 5 harti K 8 svn:date V 27 2006-05-30T07:46:52.000000Z K 7 svn:log V 190 Vendor patch: add support for the BITS construct and enumerations in both gensnmpdef and gensnmptree. Add include and typedef directives to gensnmptree. Submitted by: soc-sheryana (partly) END K 10 svn:author V 5 harti K 8 svn:date V 27 2006-05-30T07:46:52.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r159063, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 3 phk K 8 svn:date V 27 2006-05-30T07:56:57.000000Z K 7 svn:log V 98 Fix various typos and brainos in last commit. Submmited by: Andrew Turner END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-05-30T09:38:54.000000Z K 7 svn:log V 225 Dike out WARNS from kernel module makefiles. Kernels and modules use a different mechanism for setting warning flags, and using WARNS here only has null or negative effects. Submitted by: bde (I think it means "submitted") END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-05-30T11:51:58.000000Z K 7 svn:log V 385 Uncomment the call to cpu_idcache_wbinv_all() after the MMU has been enabled. It has been commented out for a reason I forgot but I suspect does not apply anymore. Technically speaking it's not required to do it, has the data and the instruction cache have been disabled in _start(). However, it may change in the future, so I don't want to rely on this behavior. Submitted by: kevlo END K 10 svn:author V 5 benno K 8 svn:date V 27 2006-05-30T14:21:09.000000Z K 7 svn:log V 141 In pmap_mapdev we correctly round the address off to the nearest page boundary, but we must also add the offset back on to the va we return. END K 10 svn:author V 3 des K 8 svn:date V 27 2006-05-30T14:31:09.000000Z K 7 svn:log V 36 The tinderbox has moved to projcvs. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-05-30T15:47:55.000000Z K 7 svn:log V 58 The Assabet has 32MB of RAM, not 16. Submitted by: kevlo END K 10 svn:author V 6 matteo K 8 svn:date V 27 2006-05-30T16:07:59.000000Z K 7 svn:log V 9 style(9) END K 10 svn:author V 6 matteo K 8 svn:date V 27 2006-05-30T16:20:48.000000Z K 7 svn:log V 233 Add jail__exec_afterstart rc.conf variable, where is 1,2 and so on. It specifies the command to be run as Nth after jail startup. sh(1)-fu by: Dario Freni PR: conf/97697 MFC after: 2 weeks Reviewed by: ru@ (man page) END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-05-30T16:55:38.000000Z K 7 svn:log V 120 In pmap_is_prefaultable(), assert that the pte isn't NULL if pmap_get_pde_pte() returns TRUE. Suggested by: ssouhlal END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-05-30T17:43:04.000000Z K 7 svn:log V 88 Don't set CAM_DEV_QFRZN when we get an ABORT_TASK. Just by itself, this makes no sense. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2006-05-30T18:41:26.000000Z K 7 svn:log V 95 Move SiS 760 to where it belongs. PR: 98094 Submitted by: Mike M < mmcgus at yahoo dot com > END K 10 svn:author V 6 matteo K 8 svn:date V 27 2006-05-30T19:10:18.000000Z K 7 svn:log V 137 Make recoverdisk compile on amd64 and possibly other 64bit archs. Bump WARNS to 6. PR: amd64/97566 Reviewed by: phk@ MFC after: 3 days END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-05-30T19:18:01.000000Z K 7 svn:log V 245 Enable -Wundef warnings for kernel/module compiles. From cpp.info: `-Wundef' Warn whenever an identifier which is not a macro is encountered in an `#if' directive, outside of `defined'. Such identifiers are replaced with zero. END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-05-30T19:24:01.000000Z K 7 svn:log V 22 Fix -Wundef warnings. END K 10 svn:author V 6 marius K 8 svn:date V 27 2006-05-30T20:08:12.000000Z K 7 svn:log V 355 Revert the (int *) -> (intptr_t *) conversion done as part of rev. 1.59 for IOCTLs where casting data to intptr_t * isn't the right thing to do as _IO() isn't used for them but _IOR(..., int)/_IOW(..., int) are (i.e. for all IOCTLs except VMIO_SIOCSIFFLAGS), fixing tap(4) on big-endian LP64 machines. PR: sparc64/98084 OK'ed by: emax MFC after: 1 week END K 10 svn:author V 3 dds K 8 svn:date V 27 2006-05-30T20:21:51.000000Z K 7 svn:log V 212 Remove incorrect lock validation specifications that caused failed assertions with DEBUG_VFS_LOCKS. We should reinstate them with correct specifications, possibly after extendng vnode_if.awk Noted by: truckman@ END K 10 svn:author V 6 mohans K 8 svn:date V 27 2006-05-30T20:32:44.000000Z K 7 svn:log V 140 Kris Kennaway found that for '/' NFS mounts, the MPSAFE mount flag was not being set, which means Giant would be acquired for these mounts. END K 10 svn:author V 3 dds K 8 svn:date V 27 2006-05-30T20:49:54.000000Z K 7 svn:log V 176 Assertion code specifications are introduced using special character sequences that are distinct from comments. %% is used for argument locks; %! for pre- and post-conditions. END K 10 svn:author V 3 dds K 8 svn:date V 27 2006-05-30T21:13:28.000000Z K 7 svn:log V 93 - Add two checks for syntax errors - Improve error reporting - Remove redundant conditionals END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-05-30T21:13:47.000000Z K 7 svn:log V 107 To avoid problems, invalidate the data cache and disable the MMU once we're done uncompressing the kernel. END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-05-30T21:36:12.000000Z K 7 svn:log V 66 Add a define for the Standard SD Host Controller Base Peripheral. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-05-30T22:44:00.000000Z K 7 svn:log V 366 Handle some of the inquiry flags that have come into usage as of SPC2r20. Specifically, handle the BQueue flag which will indicate that a device supports the Basic Queueing model (no Head of Queue or Ordered tags). When this flag is set, SID_CmdQueue is clear. This has causes FreeBSD to assume that the device did not support tagged operations. MFC after: 1 month END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-05-30T23:44:21.000000Z K 7 svn:log V 201 Use the method described in IA-32 Intel Architecture Software Developer's Manual chapter 11.6.6 to get valid mxcsr bits, use the mxcsr mask to clear invalid bits passed by user code. Reviewed by: bde END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-05-30T23:50:45.000000Z K 7 svn:log V 73 Protect the mapping used for pmap_copy_page/pmap_zero_page with a mutex. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-05-31T00:17:29.000000Z K 7 svn:log V 113 Clear invalid bits only if CPU supports SSE, otherwise, some fields in struct save87 will be cleared unexpectly. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2006-05-31T00:31:38.000000Z K 7 svn:log V 87 Explicitly request pre-zeroed memory instead of memset'ing our own. Ok'ed by: davidxu END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-05-31T00:35:44.000000Z K 7 svn:log V 163 Pick reasonable alignment constraints so that we don't ask too much of bus_dmamem_alloc/malloc. Replace the device_printf calls in the memalloc function mpt_prt. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-05-31T00:37:56.000000Z K 7 svn:log V 200 Turn the panic on not being able to meet alignment constraints in bus_dmamem_alloc into the more reasonable EINVAL return. Also, reclaim memory allocated but then not used if we had an error return. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-05-31T00:38:53.000000Z K 7 svn:log V 123 Since it's to all intents and purposes identical code to amd64 && i386, match the recent changes to bus_dmamem_alloc here. END K 10 svn:author V 4 grog K 8 svn:date V 27 2006-05-31T01:30:50.000000Z K 7 svn:log V 201 Correct previous commit. We don't want to suppress an entry because it runs into the following month. Instead adjust month and day, wrapping round into next year where necessary. MFC after: 14 days END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-05-31T08:10:34.000000Z K 7 svn:log V 223 o Let getopt(3) report errors in command line arguments. o If something is wrong with options, then output short usage help message. o Output errstr returned from strtonum(3). PR: bin/98141 Submitted by: Andrey Simonenko END K 10 svn:author V 7 iedowse K 8 svn:date V 27 2006-05-31T09:05:49.000000Z K 7 svn:log V 285 Increment the disk block offset after writing, not before. This fixes filesystem corruption when nextboot.conf is located after cylinder 1023. The bug appears to have been introduced at the time bd_read was copied to create bd_write. PR: bin/98005 Reported by: yar MFC after: 1 week END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-05-31T11:13:10.000000Z K 7 svn:log V 77 o Add various regression tests for execve(2) syscall. Obtained from: NetBSD END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-05-31T11:15:16.000000Z K 7 svn:log V 32 Fix test for empty interpreter. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-05-31T11:22:15.000000Z K 7 svn:log V 52 Output directory has gone, remove it from Makefile. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-05-31T11:57:37.000000Z K 7 svn:log V 91 Include machine/cpuconf.h in pmap.h in order to get ARM_NMMUS defined, to appease -Wundef. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-05-31T13:06:08.000000Z K 7 svn:log V 54 Ooops arm10 is armv5, not armv4. Submitted by: kevlo END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-05-31T13:15:29.000000Z K 7 svn:log V 359 o According to POSIX, the result of ftruncate(2) is unspecified for file types other than VREG, VDIR and shared memory objects. We already handle VREG, VLNK and VDIR cases. Silently ignore truncate requests for all the rest. Adjust comments. PR: kern/98064 Submitted by: bde Security: local DoS Regress. test: regression/fifo/fifo_misc MFC after: 2 weeks END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-05-31T13:47:32.000000Z K 7 svn:log V 89 o Correct URL to ELF header documantation. PR: kern/98213 Submitted by: Robert Gogolok END K 10 svn:author V 3 dds K 8 svn:date V 27 2006-05-31T14:06:06.000000Z K 7 svn:log V 201 Remove two locking assertion entries that: a) were incorrectly written and therefore never compiled into assertions, and b) were incorrectly specified and when compiled resulted in a failed assertion. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-05-31T14:33:23.000000Z K 7 svn:log V 69 Fix missing update to reflect change in scsi_inquiry data structure. END K 10 svn:author V 4 bmah K 8 svn:date V 27 2006-05-31T15:34:39.000000Z K 7 svn:log V 37 New errata: Torrents are available. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-05-31T15:50:33.000000Z K 7 svn:log V 289 If our buffer is not aligned on the cache line size, write back/invalidate the first and last cache line in PREREAD, and just invalidate the cache lines in POSTREAD, instead of write-back/invalidating in POSTREAD, which could lead to stale data overriding what has been transfered by DMA. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-05-31T15:52:11.000000Z K 7 svn:log V 147 Avoid a LOR by unlocking the vm_page_queue_mtx before calling uma_zalloc, and freeing the allocated memory if another thread already did the same. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-05-31T15:55:52.000000Z K 7 svn:log V 62 o Rearrange and remove incorrect comments. Requested by: bde END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-05-31T18:49:51.000000Z K 7 svn:log V 99 MFC 1.117: Don't set CAM_DEV_QFRZN when we get an ABORT_TASK. Just by itself, this makes no sense. END K 10 svn:author V 4 ceri K 8 svn:date V 27 2006-05-31T19:11:59.000000Z K 7 svn:log V 808 MFC crunchgen.1 revisions 1.29 - 1.30 and crunchgen.c revision 1.36: Commands like gmirror, graid3, ... and others which use dlopen() to load classes from say, /lib/geom, cannot be statically linked completely. Moreover, those shared objects may require other shared objects (i.e. for geom, libraries like -lmd, -lcrypto). The libs_so extension to crunchgen fixes this by allowing some libraries to be linked in dynamically. This requires that a copy of rtld and the shared libraries be made available to the crunched binary, and so is not suitable for all environments. Crunchgen configurations which do not use the 'libs_so' keyword are unaffected and produce identical binaries with and without this commit. Approved by: jhb In collaboration with: Adrian Steinmann END K 10 svn:author V 4 ceri K 8 svn:date V 27 2006-05-31T19:15:20.000000Z K 7 svn:log V 266 Update the location of the kernel for upgrades. I considered leaving /boot/kernel out of the chflags noschg line, but I seem to remember that there was a period where /boot/kernel was schg, so have left it in for safety's sake. Approved by: jhb MFC after: 1 month END K 10 svn:author V 4 ceri K 8 svn:date V 27 2006-05-31T19:16:34.000000Z K 7 svn:log V 84 Bring the "just copy" hit list closer to date. Approved by: jhb MFC after: 1 month END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-05-31T21:32:24.000000Z K 7 svn:log V 85 MFC: Restore the pre-5.x behavior of only beeping if the user makes a bad selection. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-05-31T21:37:11.000000Z K 7 svn:log V 124 MFC: Workaround a hang on some nForce2 systems that can happen if the CPU goes into and out of the halt state very quickly. END K 10 svn:author V 5 wilko K 8 svn:date V 27 2006-05-31T21:42:11.000000Z K 7 svn:log V 158 add re(4) to GENERIC. The RL8169s worked just fine for me on my release building DS20E with the CVS repo mounted via NFS. For EUR 10 that is not too bad :) END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2006-05-31T22:32:22.000000Z K 7 svn:log V 273 Enable inadvertantly disabled "securenet" access controls in ypserv. [1] Correct a bug in the handling of backslash characters in smbfs which can allow an attacker to escape from a chroot(2). [2] Security: FreeBSD-SA-06:15.ypserv [1] Security: FreeBSD-SA-06:16.smbfs [2] END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2006-05-31T22:33:41.000000Z K 7 svn:log V 300 Enable inadvertantly disabled "securenet" access controls in ypserv. [1] Correct a bug in the handling of backslash characters in smbfs which can allow an attacker to escape from a chroot(2). [2] Approved by: so (cperciva) Security: FreeBSD-SA-06:15.ypserv [1] Security: FreeBSD-SA-06:16.smbfs [2] END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2006-05-31T22:34:32.000000Z K 7 svn:log V 153 Correct a bug in the handling of backslash characters in smbfs which can allow an attacker to escape from a chroot(2). Security: FreeBSD-SA-06:16.smbfs END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2006-05-31T22:35:32.000000Z K 7 svn:log V 180 Correct a bug in the handling of backslash characters in smbfs which can allow an attacker to escape from a chroot(2). Approved by: so (cperciva) Security: FreeBSD-SA-06:16.smbfs END K 10 svn:author V 2 ps K 8 svn:date V 27 2006-05-31T22:55:23.000000Z K 7 svn:log V 230 Fix minidumps to include pages allocated via pmap_map on amd64. These pages are allocated from the direct map, and were not previous tracked. This included the vm_page_array and the early UMA bootstrap pages. Reviewed by: peter END K 10 svn:author V 4 bmah K 8 svn:date V 27 2006-05-31T23:36:15.000000Z K 7 svn:log V 175 New release notes: SA-06:15, SA-06:16. Note: We should swing the URLs for all the older security advisories mentioned here over to the new location on security.FreeBSD.org. END K 10 svn:author V 4 bmah K 8 svn:date V 27 2006-05-31T23:41:37.000000Z K 7 svn:log V 26 MFC: SA-06:15, SA-06:16. END K 10 svn:author V 4 bmah K 8 svn:date V 27 2006-05-31T23:44:25.000000Z K 7 svn:log V 152 MFC: SA-06:16. Note: We should swing the URLs for all the older security advisories mentioned here over to the new location on security.FreeBSD.org. END K 10 svn:author V 4 bmah K 8 svn:date V 27 2006-05-31T23:49:51.000000Z K 7 svn:log V 64 Swing URLs to security advisories over to security.FreeBSD.org. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-06-01T00:41:07.000000Z K 7 svn:log V 569 Announce all interfaces to devd on attach/detach. This adds a new devctl notification so all interfaces including pseudo are reported. When netif creates the clones at startup devctl_disable has not been turned off yet so the interfaces will not be initialised twice, enforce this by adding an explicit order between rc.d/netif and rc.d/devd. This change allows actions to taken in userland when an interface is cloned and the pseudo interface will be automatically configured if a ifconfig_="" line exists in rc.conf. Reviewed by: brooks No objections on: net END K 10 svn:author V 3 alc K 8 svn:date V 27 2006-06-01T01:31:07.000000Z K 7 svn:log V 96 Introduce pmap_enter_locked() and use it to reimplement pmap_enter_quick(). Tested by: cognet@ END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2006-06-01T02:25:00.000000Z K 7 svn:log V 517 mount_msdosfs.c: - remove call to getmntopts(), and just pass -o options to nmount(). This removes some confusion as to what options msdosfs can parse, by pushing the responsibility of option parsing to the VFS and FS specific code in the kernel. msdosfs_vfsops.c: - add "force" and "sync" to msdosfs_opts. They used to be specified in mount_msdosfs.c, so move them here. It's not clear whethere these options should be placed into global_opts in vfs_mount.c or not. Motivated by: marcus END K 10 svn:author V 4 bmah K 8 svn:date V 27 2006-06-01T04:49:01.000000Z K 7 svn:log V 33 New errata: SA-06:15, SA-06:16. END K 10 svn:author V 5 silby K 8 svn:date V 27 2006-06-01T04:49:29.000000Z K 7 svn:log V 607 After much discussion with mjacob and scottl, change bus_dmamem_alloc so that it just warns the user with a printf when it misaligns a piece of memory that was requested through a busdma tag. Some drivers (such as mpt, and probably others) were asking for alignments that could not be satisfied, but as far as driver operation was concerned, that did not matter. In the theory that other drivers will fall into this same category, we agreed that panicing or making the allocation fail will cause more hardship than is necessary. The printf should be sufficient motivation to get the driver glitch fixed. END K 10 svn:author V 4 bmah K 8 svn:date V 27 2006-06-01T04:56:53.000000Z K 7 svn:log V 112 New errata: SA-06:16. While here, retarget advisory URLs (and one or two others) to use security.FreeBSD.org. END K 10 svn:author V 4 bmah K 8 svn:date V 27 2006-06-01T04:58:07.000000Z K 7 svn:log V 43 Add SA- prefix to security advisory names. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-06-01T05:06:54.000000Z K 7 svn:log V 202 Add scottl to maintainers to ask for Pre-commit review on all busdma changes. I was unaware of Scott's claim in this area and was abruptly so informed. Let's put such an interest in some visible place. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-06-01T06:58:39.000000Z K 7 svn:log V 135 MFC: current state in RELENG_6 && -current as of 5/31/06. Lots of formatting changes and type rototilling. Some genuine bug fixes tho. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-06-01T07:04:23.000000Z K 7 svn:log V 23 MFC: new 2300 firmware END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-06-01T07:18:26.000000Z K 7 svn:log V 18 MFC 2300 firmware END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-06-01T07:31:44.000000Z K 7 svn:log V 135 MFC: current state in RELENG_6 && -current as of 5/31/06. Lots of formatting changes and type rototilling. Some genuine bug fixes tho. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-06-01T11:01:54.000000Z K 7 svn:log V 340 Add rc.d/bridge which is invoked when a new interface arrives and can automaticly add it to an Ethernet bridge. This is intended for applications such as qemu, vmware, openvpn, ... which open tap interfaces and need them bridged with the hosts network adapter, the user can set up a glob for interfaces to be automatically added (eg tap*). END K 10 svn:author V 3 dds K 8 svn:date V 27 2006-06-01T14:06:32.000000Z K 7 svn:log V 189 Move conditional preprocessing out from the IEEE80211_DPRINTF macro invocation. Per C99 6.10.3 paragraph 11 preprocessing directives appearing as macro arguments yield undefined behavior. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2006-06-01T14:14:58.000000Z K 7 svn:log V 160 Since NIS is an RPC based service, add a note that when adjusting access controls in NIS, similar access controls should be considered for the rpcbind as well. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-06-01T14:20:43.000000Z K 7 svn:log V 92 o Document the fact truncate(2) has no effect for !VDIR or !VREG files. Submitted by: ceri END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-06-01T15:03:06.000000Z K 7 svn:log V 230 o Better be safe than sorry: check return code from setuid(2), setgid(2), setlogin(2) and initgroups(3). In theory they could fail for root with some third party mac(4) policies. Submitted by: Kostik Belousov MFC after: 1 month END K 10 svn:author V 4 csjp K 8 svn:date V 27 2006-06-01T15:38:30.000000Z K 7 svn:log V 204 Check to see if the rootdir is the same as the current working directory. If it is, and the pathname was relative, do not separate the componenets with a '/' character. Obtained from: TrustedBSD Project END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-06-01T15:45:06.000000Z K 7 svn:log V 447 o Record a file offset for a last successfully parsed group file line. If the initial buffer size (1KB) for the given group line is not big enough, reset the offset. It helps to do not miss this line when getrg() reallocates the larger buffer and tries to parse the line again. PR: bin/52433, kern/55031, bin/83696, misc/97640, misc/98111 Submitted by: bsw71@mail.ru, Philip M. Gollucci, Justin Erenkrantz Glanced at: nectar MFC after: 1 month END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-06-01T16:17:44.000000Z K 7 svn:log V 132 Don't enable the FIQ in enable_interrupts() if F32_bit is not specified. This has been committed by mistake. Reported by: ssouhlal END K 10 svn:author V 4 bmah K 8 svn:date V 27 2006-06-01T17:49:26.000000Z K 7 svn:log V 280 New errata: rc.d/jail problems, snapshot/quota deadlock, NDP regression, multi-CDROM package loading problems, mbufs denied bug, i386/nextboot problem. These items will be updated as necessary to reflect reality. Edited alpha sysinstall(8) item for markup and punctuation nits. END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-06-01T19:01:47.000000Z K 7 svn:log V 189 Cope with -Wundef. This means including xfs_macros.h early in a few more files and changing #if XXXKAN -> #ifdef XXXKAN. # this is just compile tested, since I don't have xfs partitions. END K 10 svn:author V 3 alc K 8 svn:date V 27 2006-06-01T19:23:45.000000Z K 7 svn:log V 49 Correct a syntax error in the previous revision. END K 10 svn:author V 5 krion K 8 svn:date V 27 2006-06-01T19:58:01.000000Z K 7 svn:log V 264 MFC: function.c: 1.57 date: 2006/05/25 21:20:43; author: krion; state: Exp; lines: +12 -4 Enable numeric arguments and +/- prefixes with -user (-group) options. PR: bin/71513 Submitted by: Andre Albsmeier END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-06-01T20:18:36.000000Z K 7 svn:log V 367 MFC: Improve reliability of nforce4 adapters: - When setting up a packet for transmit, if we the tx ring is over half full, kick the binary blob to force it to complete any pending tx completions. - In the watchdog routine, poke the binary blob to force it to flush any pending tx completions and only reset the chip if the blob doesn't complete any of them. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-06-01T20:20:15.000000Z K 7 svn:log V 64 MFC: Only reference the firmware module once rather than twice. END K 10 svn:author V 5 krion K 8 svn:date V 27 2006-06-01T20:35:20.000000Z K 7 svn:log V 389 MFC: function.c: 1.58; find.1: 1.77 date: 2006/05/27 18:27:41; author: krion; state: Exp; lines: +35 -3 Add the capability for a trailing scale indicator to cause the specified size to be read in the more familiar units of kilobytes, megabytes, gigabytes, terabytes and petabytes. PR: bin/50988 Submitted by: Matthew Seaman END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2006-06-01T20:51:59.000000Z K 7 svn:log V 56 Include "xfs_macros.h" to fix tinderbox build breakage. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-06-01T22:45:56.000000Z K 7 svn:log V 84 sched_rem() already sets ke->ke_state to KES_THREAD, so there's no need to redo it. END K 10 svn:author V 5 tegge K 8 svn:date V 27 2006-06-02T00:26:27.000000Z K 7 svn:log V 637 MFC: Close race between vmspace_exitfree() and exit1() and races between vmspace_exitfree() and vmspace_free() which could result in the same vmspace being freed twice. Factor out part of exit1() into new function vmspace_exit(). Attach to vmspace0 to allow old vmspace to be freed earlier. Add new function, vmspace_acquire_ref(), for obtaining a vmspace reference for a vmspace belonging to another process. Avoid changing vmspace refcount from 0 to 1 since that could also lead to the same vmspace being freed twice. Change vmtotal() and swapout_procs() to use vmspace_acquire_ref(). END K 10 svn:author V 6 markus K 8 svn:date V 27 2006-06-02T00:29:01.000000Z K 7 svn:log V 292 - Only print a clarifying message about which HCI node has been used if there is more than one HCI node present - Use errx(3) instead of err(3) if there is no HCI node present as errno is 0 in this case and the resulting error message wouldn't make much sense Approved by: emax (mentor) END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2006-06-02T01:20:58.000000Z K 7 svn:log V 226 MFC: 1.19 Move call to ignore SIGPIPE signals before calling fork(), so that both parent and child processes ignore this signal. PR: bin/97768 Submitted by: Gea-Suan Lin END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2006-06-02T04:02:06.000000Z K 7 svn:log V 253 MFC rev. 1.131: Use only lower 64bit of src/dest (and src/dest port) for hashing of IPv6 connections and get rid of the flow_id as it is not guaranteed to be stable some (most?) current implementations seem to just zero it out. PR: kern/88664 END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-06-02T04:46:26.000000Z K 7 svn:log V 140 EISA bus ia64 systems don't exist in reality. I'm told they may exist in theory, but that it was OK to remove from NOTES. OK'd by: marcel END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2006-06-02T05:17:17.000000Z K 7 svn:log V 100 Print dynamic rules for IPv6 as well. PR: bin/98349 Submitted by: Mark Andrews MFC after: 2 weeks END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-06-02T06:33:35.000000Z K 7 svn:log V 145 Zero out the devices when they are deleted. We can access the pointer after the bus detaches which can lead to core dumps. This is quite rare. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-06-02T07:50:58.000000Z K 7 svn:log V 142 - Add definition for IFM_10G_CX4. - Put IFM_10G_CX4 and IFM_10G_SR into IFMEDIA_BAUDRATE array. Requested by: Jack Vogel END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-06-02T08:18:27.000000Z K 7 svn:log V 70 Minor restyling and cleanup around ipport_tick(). MFC after: 1 month END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-06-02T08:27:15.000000Z K 7 svn:log V 424 raw_disconnect() now disconnects but does not detach the raw pcb. As a result, raw_uabort() now needs to call raw_detach() directly. As raw_uabort() is never called, and raw_disconnect() is probably not ever actually called in practice, this is likely not a functional change, but improves congruence between protocols, and avoids a NULL raw cb pointer after disconnect, which could result in a panic. MFC after: 1 month END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-06-02T08:37:01.000000Z K 7 svn:log V 36 Remove unused member field m_queue. END K 10 svn:author V 3 dds K 8 svn:date V 27 2006-06-02T09:08:51.000000Z K 7 svn:log V 119 Replace the array initialization using the gcc-specific format [constant] value with the C99 format [constant] = value END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-06-02T09:39:06.000000Z K 7 svn:log V 70 Don't #error if no CPU is defined but we're not compiling the kernel. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-06-02T09:56:27.000000Z K 7 svn:log V 751 Merge uma_core.c:1.137 from HEAD to RELENG_6: When allocating a bucket to hold a free'd item in UMA fails, don't report this as an allocation failure for the item type. The failure will be separately recorded with the bucket type. This may eliminate high mbuf allocation failure counts under some circumstances, which can be alarming in appearance, but not actually a problem in practice. Reported by: ps, Peter J. Blok , OxY , Gabor MICSKO This is a RELENG_6_1 merge candidate. Tested by: Peter J. Blok , OxY , Michael Butler END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-06-02T12:55:26.000000Z K 7 svn:log V 136 o Implement findblk command: find the inode(s) owning the specified disk block(s) number(s). Obtained from: NetBSD MFC after: 2 months END K 10 svn:author V 3 des K 8 svn:date V 27 2006-06-02T13:01:25.000000Z K 7 svn:log V 116 As far as I can tell, the correct CPU family for amd64 (which Linux calls x86_64) is 15, not 6. MFC after: 3 weeks END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-06-02T13:18:59.000000Z K 7 svn:log V 145 Use SLIST_FOREACH_SAFE() macro, because knote_drop() can free an element which can be then used to find next element in the list. OK'ed by: jmg END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-06-02T13:21:21.000000Z K 7 svn:log V 159 Remove confusing done_noglobal label. The KQ_GLOBAL_UNLOCK() macro know how to handle both situations - when kq_global lock is and is not held. OK'ed by: jmg END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-06-02T13:23:39.000000Z K 7 svn:log V 72 Don't forget to unlock kq lock in low memory situations. OK'ed by: jmg END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-06-02T14:10:52.000000Z K 7 svn:log V 137 Fix gif_output() so that GIF_UNLOCK() is performed only in case we have locked the softc. PR: kern/98298 Submitted by: Eugene Grosbein END K 10 svn:author V 8 motoyuki K 8 svn:date V 27 2006-06-02T15:01:11.000000Z K 7 svn:log V 70 doc fix: option MFS is obsolete. use MD_ROOT instead. PR: conf/93878 END K 10 svn:author V 8 ambrisko K 8 svn:date V 27 2006-06-02T17:45:48.000000Z K 7 svn:log V 47 Make lio ident more consistant with aio ident. END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2006-06-02T17:53:46.000000Z K 7 svn:log V 43 Fix "mount -u -o ro". Requested by: maxim END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-06-02T18:50:39.000000Z K 7 svn:log V 214 More checkpointing on the way toward really (finally) fixing speed negotiation. Also fix the mpt_execute_req function to actually match mpt_execute_req_a64. This may explain why i386 users were having more grief. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-06-02T19:23:12.000000Z K 7 svn:log V 49 Make the code able to compile again in RELENG_4. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2006-06-02T19:59:33.000000Z K 7 svn:log V 2264 Fix the following bpf(4) race condition which can result in a panic: (1) bpf peer attaches to interface netif0 (2) Packet is received by netif0 (3) ifp->if_bpf pointer is checked and handed off to bpf (4) bpf peer detaches from netif0 resulting in ifp->if_bpf being initialized to NULL. (5) ifp->if_bpf is dereferenced by bpf machinery (6) Kaboom This race condition likely explains the various different kernel panics reported around sending SIGINT to tcpdump or dhclient processes. But really this race can result in kernel panics anywhere you have frequent bpf attach and detach operations with high packet per second load. Summary of changes: - Remove the bpf interface's "driverp" member - When we attach bpf interfaces, we now set the ifp->if_bpf member to the bpf interface structure. Once this is done, ifp->if_bpf should never be NULL. [1] - Introduce bpf_peers_present function, an inline operation which will do a lockless read bpf peer list associated with the interface. It should be noted that the bpf code will pickup the bpf_interface lock before adding or removing bpf peers. This should serialize the access to the bpf descriptor list, removing the race. - Expose the bpf_if structure in bpf.h so that the bpf_peers_present function can use it. This also removes the struct bpf_if; hack that was there. - Adjust all consumers of the raw if_bpf structure to use bpf_peers_present Now what happens is: (1) Packet is received by netif0 (2) Check to see if bpf descriptor list is empty (3) Pickup the bpf interface lock (4) Hand packet off to process From the attach/detach side: (1) Pickup the bpf interface lock (2) Add/remove from bpf descriptor list Now that we are storing the bpf interface structure with the ifnet, there is is no need to walk the bpf interface list to locate the correct bpf interface. We now simply look up the interface, and initialize the pointer. This has a nice side effect of changing a bpf interface attach operation from O(N) (where N is the number of bpf interfaces), to O(1). [1] From now on, we can no longer check ifp->if_bpf to tell us whether or not we have any bpf peers that might be interested in receiving packets. In collaboration with: sam@ MFC after: 1 month END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-06-02T20:29:02.000000Z K 7 svn:log V 234 Fix a problem introduced in revision 1.220. On mount(2) failure, don't forget to unbusy file system before its destruction. This fixes the following warning on mount failure: Mount point had 1 dangling refs Tested by: wkoszek END