ƒ´ 150171 170 335 294 621 436 536 305 638 444 444 156 261 361 118 119 124 224 201 154 350 385 262 485 659 417 355 294 320 888 236 146 695 161 1246 319 357 234 339 282 292 130 242 126 302 299 151 372 180 128 333 148 404 653 1069 390 328 202 156 277 190 189 204 131 194 180 660 381 164 311 303 905 138 129 217 191 405 227 524 259 257 141 122 293 120 336 351 487 135 222 426 120 135 830 145 304 126 132 665 235 180 367 233 304 188 138 198 171 149 166 227 341 258 142 680 335 1366 394 273 373 130 297 220 210 128 406 235 860 289 253 163 1013 174 591 375 275 678 402 197 333 816 355 236 233 182 126 131 139 169 1196 187 130 104 209 239 806 221 139 120 137 186 172 249 292 273 163 1145 221 153 201 453 157 K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-15T17:12:29.000000Z K 7 svn:log V 242 - Fixup locking and mark MPSAFE. - Use callout_init_mtx() and static callouts rather than timeout(). - m_getcl() in one place to simplify the code. Tested by: Gavin Atkinson gavin dot atkinson at ury dot york dot ac dot uk MFC after: 1 week END K 10 svn:author V 4 ache K 8 svn:date V 27 2005-09-15T17:25:52.000000Z K 7 svn:log V 200 Cosmetic fixes to prev. commit. Change first MAXPATHLEN to more standard PATH_MAX Change second MAXPATHLEN to 1024 (it is temp buffer not related) Change comment to reflect that. Suggested by: bde END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-15T17:30:08.000000Z K 7 svn:log V 528 Explicitly switch to the new TSS by updating the current CPU's TSS selector and reloading it in i386_extend_pcb() rather than trying to force a context switch to reload the TSS via the TDF_NEEDRESCHED flag. Optimizations to avoid calling cpu_switch() when the new thread was identical to the old thread defeated the attempt to force a TSS reload. Explicitly loading the new TSS is what we really want to do anyway. PR: i386/84842 Reported by: Alexander Best arundel at h3c dot de MFC after: 1 week Reviewed by: bde (mostly) END K 10 svn:author V 8 keramida K 8 svn:date V 27 2005-09-15T17:51:39.000000Z K 7 svn:log V 338 When bus_alloc_resource_any() fails, dc_detach() is called and it attempts to deallocate busdma tags and resources that haven't been allocated yet, causing a panic every time a dc interface fails to attach. Fix by checking that we really have something to dealloc before calling bus_dma*() functions. Approved by: jhb MFC after: 1 week END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-15T18:59:34.000000Z K 7 svn:log V 444 re_detach() fixes: - Fixed if_free() logic screw-up that can either result in freeing a NULL pointer or leaking "struct ifnet". - Move if_free() after re_stop(); the latter accesses "struct ifnet". This bug was masked by a previous bug. - Restore the fix for a panic on detach caused by racing with BPF detach code by Bill by moving ether_ifdetach() after re_stop() and resetting IFF_UP; this got screwed up in revs. 1.30 and 1.36. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-15T19:02:01.000000Z K 7 svn:log V 212 - Adjust a comment, we do program the performance counter LVT entry now if hwpmc(4) is included. - Don't recursively panic if we are unable to send an IPI, just bail and hope for the best. MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-15T19:05:37.000000Z K 7 svn:log V 545 - Add a new simple facility for marking the current thread as being in a state where sleeping on a sleep queue is not allowed. The facility doesn't support recursion but uses a simple private per-thread flag (TDP_NOSLEEPING). The sleepq_add() function will panic if the flag is set and INVARIANTS is enabled. - Use this new facility to replace the g_xup and g_xdown mutexes that were (ab)used to achieve similar behavior. - Disallow sleeping in interrupt threads when invoking interrupt handlers. MFC after: 1 week Reviewed by: phk END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-15T19:07:10.000000Z K 7 svn:log V 352 Don't recommend re_detach() (like in vr(4)) as another possible method to prevent panicing in interrupt handler after re_shutdown(), sometimes seen on SMP systems. This would work here only because re_detach() clears IFF_UP (to prevent another race) and it was demonstrated that it's not enough to call vr_detach() in vr_shutdown() to prevent a panic. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-15T19:07:14.000000Z K 7 svn:log V 351 - Enforce an implicit lock order that Giant cannot be locked while holding any other non-sleepable lock. In plain English: Giant comes before all other mutexes. - Add some extra description to the lock order reversal printf's to indicate when a reversal is triggered by a hard-coded implicit rule. Requested by: truckman (2) MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-15T19:16:29.000000Z K 7 svn:log V 64 MFC: Fixup locking and mark MPSAFE. Approved by: re (kensmith) END K 10 svn:author V 3 kan K 8 svn:date V 27 2005-09-15T19:21:26.000000Z K 7 svn:log V 168 Handle a race condition where NULLFS vnode can be cleaned while threads can still be asleep waiting for lowervp lock. Tested by: kkenn Discussed with: ssouhlal, jeffr END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-15T19:31:22.000000Z K 7 svn:log V 268 Stop using the '+' constraint modifier with inline assembly. The '+' constraint is actually only allowed for register operands. Instead, use separate input and output memory constraints. Education from: alc Reviewed by: alc Tested on: i386, alpha MFC after: 1 week END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-15T19:34:12.000000Z K 7 svn:log V 27 Spell "destroy" correctly. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-15T19:41:03.000000Z K 7 svn:log V 28 Fixed a diagnostic message. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-15T20:06:44.000000Z K 7 svn:log V 33 Add two missing if_free() calls. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-15T20:08:21.000000Z K 7 svn:log V 131 Don't disallow sleeping for handlers on swi's since some swi handlers (like CAM) do sleep in their handlers. Requested by: scottl END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-15T20:09:08.000000Z K 7 svn:log V 108 Replace the dont_sleep_in_callout mutex hack (similar to g_x{up,down}) with the disallow sleeping facility. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-15T20:20:36.000000Z K 7 svn:log V 62 Oops, missed adding the required include. Pointy hat to: jhb END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-15T20:26:19.000000Z K 7 svn:log V 253 Merge fifo_vnops.c:1.114 from HEAD to RELENG_6: Rather than reaching into the internals of the UNIX domain socket code by calling uipc_connect2() to connect two socket endpoints to create a fifo, call soconnect2(). Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-15T20:27:25.000000Z K 7 svn:log V 288 Merge fifo_vnops.c:1.115 from HEAD to RELENG_6: Add an assertion that fifo_open() doesn't race against other threads while sleeping to allocate fifo state: due to using the vnode lock to serialize access to a fifo during open, it shouldn't happen (tm). Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-15T20:27:56.000000Z K 7 svn:log V 165 Merge fifo_vnops.c:1.116 from HEAD to RELENG_6: When a writer opens a fifo, wake up the read socket for read, not the write socket. Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-15T20:28:27.000000Z K 7 svn:log V 388 Merge fifo_vnops.c:1.117 from HEAD to RELENG_6: After going to some trouble to identify only the write-related events to poll the write socket for, the fifo polling code proceeded to poll for the complete set of events. Use 'levents' instead of 'events' as the argument to poll, and only poll the write socket if there is interest in write events. Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-15T20:28:56.000000Z K 7 svn:log V 562 Merge fifo_vnops.c:1.118 from HEAD to RELENG_6: Only poll the fifo for read events if the fifo is attached to a readable file descriptor. Otherwise, the read end of a fifo might return that it is writable (which it isn't). Only poll the fifo for write events if the fifo attached to a writable file descriptor. Otherwise, the write end of a fifo might return that it is readable (which it isn't). In the event that a file is FREAD|FWRITE (which is allowed by POSIX, but has undefined behavior), we poll for both. Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-15T20:50:04.000000Z K 7 svn:log V 320 Merge fifo_vnops.c:1.119 from HEAD to RELENG_6: Remove DFLAG_SEEKABLE from fifo file descriptors: fifos are not seekable according to POSIX, not to mention the fact that it doesn't make sense (and hence isn't really implemented). This causes the fifo_misc regression test to succeed. Approved by: re (scottl) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-15T20:50:31.000000Z K 7 svn:log V 258 Merge fifo_vnops.c:1.120 from HEAD to RELENG_6: When a request is made to register a filter on a fifo that doesn't apply to the fifo (i.e., not EVFILT_READ or EVFILT_WRITE), reject it as EINVAL, not by returning 1 (EPERM). Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-15T20:52:53.000000Z K 7 svn:log V 197 Merge vfs_subr.c:1.646 from HEAD to RELENG_6: In vfs_kqfilter(), return EINVAL instead of 1 (EPERM) when an unsupported kqueue filter type is requested on a vnode. Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-15T20:53:22.000000Z K 7 svn:log V 223 Merge if.c:1.246 from HEAD to RELENG_6: In netkqfilter(), return EINVAL instead of 1 (EPERM) when a filter type is requested on a network interface file descriptor that is non-applicable. Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-15T20:53:56.000000Z K 7 svn:log V 791 Merge fifo_vnops.c:1.121 from HEAD to RELENG_6: Introduce no-op nosup fifo kqueue filter and detach routine, which are used when a read filter is requested on a write-only fifo descriptor, or a write filter is requested on a read-only fifo descriptor. This permits the filters to be registered, but never raises the event, which causes kqueue behavior for fifos to more closely match similar semantics for poll and select, which permit testing for the condition even though the condition will never be raised, and is consistent with POSIX's notion that a fifo has identical semantics to a one-way IPC channel created using pipe() on most operating systems. The fifo regression test suite can now run to completion on HEAD without errors. Approved by: re (kensmith) END K 10 svn:author V 3 ups K 8 svn:date V 27 2005-09-15T21:10:12.000000Z K 7 svn:log V 143 Fix race condition that caused activation of an event to be ignored immediately after it was deactivated. Found by: Yahoo! MFC after: 3 days END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-15T21:16:43.000000Z K 7 svn:log V 54 Don't attempt to recurse lockmgr, it doesn't like it. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2005-09-16T01:26:17.000000Z K 7 svn:log V 599 Make the exploring of all luns supported by an HBA more of a tunable (until we get REPORT LUNS in place). If we're probing luns, and each probe succeeds, we keep going past lun 7 if we're a SCSI3 or better device (until we fail to probe). If we're probing luns, and a probe fails, we only keep going if we're quirked *for* it (CAM_QUIRK_HILUNS), and if we're not quirked *against* it (CAM_QUIRK_NOHILUNS), or we're a SCSI3 or better device and the tunable (kern.cam.cam_srch_hi) is set non-zero. Reviewed by: nate@rootlabs.org, gibbs@scsiguy.com, ken@kdm.com, scottl@samsco.org MFC after: 1 week END K 10 svn:author V 3 suz K 8 svn:date V 27 2005-09-16T01:42:50.000000Z K 7 svn:log V 69 plugged a possible memory leak Obtained from: KAME MFC after: 1 day END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-16T07:02:29.000000Z K 7 svn:log V 1152 Commit a workaround to a problem with resource allocation. This helps with some Dell servers that booted w/o a problem[*] on 5.4, but failed with 6.0-BETA. On the PCI bus, when we do lazy resource allocation, we narrow the range requested as we pass through bridges to reflect how the bridges are programmed and what addresses they pass. However, when we're doing an allocation on a bus that's directly connected to a host bridge, no such translation can take place. We already had a fallback range for memory requests, but none for ioports. As such, provide a fallback for I/O ports so we don't allocate location 0, which will have undesired side effects when the resources are actually used. This fixes a problem with booting a Dell server with usb in the kernel. However, it is an unsatisfying solution. I don't like the hard coded value, and I think we should start narrowing the resources returned to not be in the so-called isa alias area (where the ranage & 0x0300 must be 0 iirc). Doing such filtering will have to wait for another day. This may be a good 6 candidate, maybe after its had a chance to be refined. Tested by: glebius@ END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-16T09:00:58.000000Z K 7 svn:log V 222 Merge fifo_vnops.c:1.114 from HEAD to RELENG_5: Rather than reaching into the internals of the UNIX domain socket code by calling uipc_connect2() to connect two socket endpoints to create a fifo, call soconnect2(). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-16T09:01:50.000000Z K 7 svn:log V 260 Merge fifo_vnops.c:1.115 from HEAD to RELENG_5: Add an assertion that fifo_open() doesn't race against other threads while sleeping to allocate fifo state: due to using the vnode lock to serialize access to a fifo during open, it shouldn't happen (tm). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-16T09:02:25.000000Z K 7 svn:log V 137 Merge fifo_vnops.c:1.116 from HEAD to RELENG_5: When a writer opens a fifo, wake up the read socket for read, not the write socket. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-16T09:06:16.000000Z K 7 svn:log V 242 Merge fifo_vnops.c:1.120 (in spirit) from HEAD to RELENG_5: When a request is made to register a filter on a fifo that doesn't apply to the fifo (i.e., not EVFILT_READ or EVFILT_WRITE), reject it as EINVAL, not by returning 1 (EPERM). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-16T09:11:50.000000Z K 7 svn:log V 185 Merge vfs_subr.c:1.646 (in spirit) from HEAD to RELENG_5: In vfs_kqfilter(), return EINVAL instead of 1 (EPERM) when an unsupported kqueue filter type is requested on a vnode. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-16T09:12:36.000000Z K 7 svn:log V 195 Merge if.c:1.246 from HEAD to RELENG_5: In netkqfilter(), return EINVAL instead of 1 (EPERM) when a filter type is requested on a network interface file descriptor that is non-applicable. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-16T09:16:46.000000Z K 7 svn:log V 39 Add missing if_free() in rue_detach(). END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-16T09:20:58.000000Z K 7 svn:log V 150 Add missing mtx_destroy() when if_alloc() fails. Add missing if_free() when mii_phy_probe() fails. Put if_free() into the correct #ifdef in detach(). END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-16T10:09:23.000000Z K 7 svn:log V 35 Fix "struct ifnet" leak on detach. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-16T11:11:51.000000Z K 7 svn:log V 210 Fix "struct ifnet" leaks when attach() fails in the middle, e.g. when mii_phy_probe() or bus_setup_intr() fails. For drivers that call their detach() in this case, call if_free() there to cover this case too. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-09-16T11:24:28.000000Z K 7 svn:log V 206 Pidfiles should be created with permission preventing users from opening them for reading. When user can open file for reading, he can also flock(2) it, which can lead to confusions. Pointed out by: green END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-16T11:25:19.000000Z K 7 svn:log V 60 Fix "struct ifnet" leaks when attach() fails in the middle. END K 10 svn:author V 3 yar K 8 svn:date V 27 2005-09-16T11:44:43.000000Z K 7 svn:log V 279 Test the new M_VLANTAG packet flag before calling m_tag_locate(). This adds little overhead of a simple bitwise operation in case hardware VLAN acceleration is on, yet saves the more expensive function call if the acceleration is off. Reviewed by: ru, glebius X-MFC-after: 6.0 END K 10 svn:author V 3 yar K 8 svn:date V 27 2005-09-16T11:58:58.000000Z K 7 svn:log V 88 It's nice to have relevant comments both in if {} and else {}, not in just one of them. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-16T12:17:12.000000Z K 7 svn:log V 37 Avoid deferencing NULL in if_free(). END K 10 svn:author V 3 yar K 8 svn:date V 27 2005-09-16T12:24:28.000000Z K 7 svn:log V 240 Do assorted nitpicking in diagnostics while I'm here: - Use __func__ consistently instead of copying function name to message strings. Code tends to migrate around source files. - DIAGNOSTIC is for information, INVARIANTS is for panics. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-16T12:49:06.000000Z K 7 svn:log V 57 Fix "struct ifnet" leak if attach() fails in the middle. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-16T13:36:44.000000Z K 7 svn:log V 307 Merge fifo_vnops.c:1.123 from HEAD to RELENG_6: As a result of kqueue locking work, socket buffer locks will always be held when entering a kqueue filter for fifos via a socket buffer event: as such, assert the lock unconditionally rather than acquiring it conditionally. Approved by: re (scottl) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-16T14:03:10.000000Z K 7 svn:log V 556 Merge fifo_vnops.c:1.122 from HEAD to RELENG_6: Annotate two issues: 1) fifo_kqfilter() is not actually ever used, it likely should be GC'd. 2) fifo_kqfilter_f() doesn't implement EVFILT_VNODE, so detecting events on the underlying vnode for a fifo no longer works (it did in 4.x). Likely, fifo_kqfilter_f() should forward the request to the VFS using fp->f_vnode, which would work once fifo_kqfilter() was detached from the vnode operation vector (removing the fifo override). Discussed with: phk Approved by: re (scottl) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-16T14:03:57.000000Z K 7 svn:log V 972 Merge fifo_vnops.c:1.124 from HEAD to RELENG_6: Trim down now (believed to be) unused fifo_ioctl() and fifo_kqfilter() VOP implementations, since they in theory are used only on open file descriptors, in which case the ioctls are via fifo_ioctl_f() and kqueue requests are via fifo_kqfilter_f(). Generate warnings if they are entered for now. These printf() calls should become panic() calls. Annotate and re-implement fifo_ioctl_f(): don't arbitrarily forward ioctls to the socket layer, only forward the ones we explicitly support for fifos. In the case of FIONREAD, don't forward the request to the write socket on a read-write fifo, or the read result is overwritten. Annotate a nasty case for the undefined POSIX O_RDWR on fifos, in which failure of the second ioctl will result in the socket pair being in an inconsistent state. Assert copyright as I find myself rewriting non-trivial parts of fifofs. Approved by: re (scottl) END K 10 svn:author V 2 ps K 8 svn:date V 27 2005-09-16T17:58:06.000000Z K 7 svn:log V 298 MFC: rev 1.20 For FreeBSD 4 binaries, when trying to read from a device that does not exsist, do not have ioctl return an error, but instead set -1 in the data returned to the user. This allows the HP bios flash utilities to work without requiring changes to their code. Approved by: re (scottl) END K 10 svn:author V 2 ps K 8 svn:date V 27 2005-09-16T17:58:54.000000Z K 7 svn:log V 236 MFC: rev 1.283 Remove a KASSERT in the sack path that fails because of a interaction between sack and a bug in the "bad retransmit recovery" logic. This is a workaround, the underlying bug will be fixed later. Approved by: re (scottl) END K 10 svn:author V 2 ps K 8 svn:date V 27 2005-09-16T17:59:48.000000Z K 7 svn:log V 110 MFC: There's no reason to check the valence. This allows ciss to work on the P600. Approved by: re (scottl) END K 10 svn:author V 2 ps K 8 svn:date V 27 2005-09-16T18:00:59.000000Z K 7 svn:log V 65 MFC: Add support for HP branded 2610SA Approved by: re (scottl) END K 10 svn:author V 2 ps K 8 svn:date V 27 2005-09-16T18:01:55.000000Z K 7 svn:log V 185 MFC: Ignore mutex asserts when we're dumping as well. This allows me to panic a system from DDB when INVARIANTS is compiled into the kernel on a scsi system. Approved by: re (scottl) END K 10 svn:author V 2 ps K 8 svn:date V 27 2005-09-16T18:02:38.000000Z K 7 svn:log V 99 MFC: rev 1.67 Print the actual disk device we failed to complete i/o on. Approved by: re (scottl) END K 10 svn:author V 2 ps K 8 svn:date V 27 2005-09-16T18:04:10.000000Z K 7 svn:log V 98 MFC: rev 1.66 Don't allow ioctl commands to be interrupted by the user. Approved by: re (scottl) END K 10 svn:author V 5 tegge K 8 svn:date V 27 2005-09-16T18:28:12.000000Z K 7 svn:log V 109 Break out of loop if next buffer pointer has become invalid while flushing current buffer. Reviewed by: kan END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-16T20:38:33.000000Z K 7 svn:log V 40 The arguments to printf() were swapped. END K 10 svn:author V 3 kan K 8 svn:date V 27 2005-09-16T20:56:17.000000Z K 7 svn:log V 101 Do not expose vfwscanf, vswscanf, vwscanf and wcstof functions if they are not visible from wchar.h. END K 10 svn:author V 3 kan K 8 svn:date V 27 2005-09-16T21:24:10.000000Z K 7 svn:log V 88 Include to get __ISO_C_VISIBLE definition is one is not already available. END K 10 svn:author V 6 anholt K 8 svn:date V 27 2005-09-16T22:59:47.000000Z K 7 svn:log V 564 Fix agp_nvidia.c to behave more like the linux driver, fixing DRI on Radeon 9200 according to one responder. The primary issue was not setting some bits to say that the entries were active, but also fix one place where some memory wasn't being used as volatile as it should. While here, change some use of ffs to a relatively short case statement, to make it more obvious what's going on. PR: kern/71638, kern/72372, kern/71547? Submitted by: Andrew J. Caines , Robin Schoonover , Jason Henson END K 10 svn:author V 6 anholt K 8 svn:date V 27 2005-09-17T03:36:47.000000Z K 7 svn:log V 285 Add a new AGP driver for ATI IGP chipsets. The driver is based on reading of the Linux driver, since specs are unavailable. Many thanks to Adam Kirchhoff for multiple useful testing cycles, and Ralf Wostrack for the final fix to get it working. PR: i386/75251 Submitted by: anholt END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2005-09-17T03:36:48.000000Z K 7 svn:log V 68 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-17T04:01:05.000000Z K 7 svn:log V 218 MFC: pccard updates o New APIs to access CIS, attribute memory and pccard registers o Lock ed driver o Support more cards in ed, ep, sn, xe o Use new APIs to get MAC address right more often. Approved by: re (scottl) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2005-09-17T06:34:18.000000Z K 7 svn:log V 207 o Change the type of the ent_name field from short to uint16_t. UTF-16 characters are not negative. o Change the corresponding comment from UNICODE-16 to UTF-16. There's no such thing as UNICODE-16. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2005-09-17T07:05:17.000000Z K 7 svn:log V 809 Complete rewrite in preparation of adding support for control requests. The following features have been added: 1. Extensive checking and validation of both the primary and secondary headers to protect against corrupted data and to take advantage of the redundancy to allow the GPT to be used in the face of recoverable corruption. 2. Dynamic data-structures to avoid hardcoding gratuitous table limits so as to support the creation of GPT tables of (as of yet) unspecified size. 3. Only allow kernel dumps to swap partitions to provide the necessary anti-footshooting measures. Linux swap partitions are allowed. 4. Complete dump of the GPT configuration, including labels. 5. Supports Byte Order Mark (U+FEFF) handling for big-endian, little-endian and mixed-endian partition names. END K 10 svn:author V 4 joel K 8 svn:date V 27 2005-09-17T09:20:16.000000Z K 7 svn:log V 45 Add HARDWARE section. Reviewed by: brueffer END K 10 svn:author V 4 joel K 8 svn:date V 27 2005-09-17T09:35:56.000000Z K 7 svn:log V 36 Add cdce(4). Reviewed by: brueffer END K 10 svn:author V 5 brian K 8 svn:date V 27 2005-09-17T11:33:41.000000Z K 7 svn:log V 122 MFC: Add a -h option to tell cmp not to follow symbolic links. Approved by: re (scottl) Sponsored by: Sophos/ActiveState END K 10 svn:author V 5 brian K 8 svn:date V 27 2005-09-17T11:35:24.000000Z K 7 svn:log V 97 MFC: Add a -h option to tell cmp not to follow symbolic links. Sponsored by: Sophos/ActiveState END K 10 svn:author V 6 damien K 8 svn:date V 27 2005-09-17T12:41:05.000000Z K 7 svn:log V 309 o Add initial bits for IBSS support. o Allow association with APs that do not broadcast SSID (with hints from Nick Hudson and Hajimu Umemoto). o IFQ_DRV_PREPEND mbuf when h/w ring is full so it can be sent later. o Increment if_oerrors when appropriate. o Did some cleanup while I'm here. MFC after: 1 day END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-09-17T12:52:04.000000Z K 7 svn:log V 130 Fix so that color changes are not lost when the video mode changes. PR: bin/83553 Submitted by: Dan Lukes END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2005-09-17T13:04:10.000000Z K 7 svn:log V 428 MFC { r1.4, r1.5 "pmcstat_log.c" } - Determine where the runtime loader got mapped to when a dynamically linked process was exec()'ed, and map samples in that address range into the appropriate buckets in the runtime loader's profile. - Fix a bug that caused generated gmon.out profiles to be out of whack. Use saturating arithmetic when incrementing a bucket. - Improve a few comments. Approved by: re (scottl) END K 10 svn:author V 2 bz K 8 svn:date V 27 2005-09-17T13:43:36.000000Z K 7 svn:log V 167 MFC: rev. 1.111 Fix panic when kernel compiled without INET6 by rejecting IPv6 opcodes which are behind #if(n)def INET6 now. PR: kern/85826 Approved by: re (scottl) END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-09-17T14:56:10.000000Z K 7 svn:log V 160 Call gctl_free() to free resource allocated with gctl_get_handle(). PR: bin/84664 Submitted by: Daan Vreeken MFC after: 3 days END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-09-17T15:10:39.000000Z K 7 svn:log V 45 Clarify wording for -m flag. PR: docs/84704 END K 10 svn:author V 4 joel K 8 svn:date V 27 2005-09-17T15:13:22.000000Z K 7 svn:log V 29 Bump .Dd Reminded by: simon END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2005-09-17T15:19:38.000000Z K 7 svn:log V 197 MFC: if_pfsync.c, 1.23: Stop leaking a lock. This used to cause a propagate_priority() page fault when setting syncdev and syncpeer. Reported by: Dominic Marks Approved by: re (scottl) END K 10 svn:author V 5 garys K 8 svn:date V 27 2005-09-17T15:27:27.000000Z K 7 svn:log V 26 MFC 1.25 Approved by: re END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2005-09-17T15:30:16.000000Z K 7 svn:log V 238 Handle circular dependencies properly (via errx(3)) rather than dumping core. This bug was made visible by a recent change to the audio/timidity++ port, which now has itself as a run dependency. Reported by: Emil Mikulic, Andreas Klemm END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2005-09-17T15:43:40.000000Z K 7 svn:log V 253 MFC revision 1.3: Log: Handle circular dependencies properly (via errx(3)) rather than dumping core. This bug was made visible by a recent change to the audio/timidity++ port, which now has itself as a run dependency. Approved by: re (scottl) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2005-09-17T15:48:05.000000Z K 7 svn:log V 390 MFC 1.88 (by ssouhlal): Use vput() instead of vrele() in null_reclaim() since the lower vnode is locked. MFC 1.89 (by kan): Handle a race condition where NULLFS vnode can be cleaned while threads can still be asleep waiting for lowervp lock. Tested by: kkenn Discussed with: ssouhlal, jeffr (rev. 1.89 is an early MFC for inclusion in the upcoming 6.0-BETA5) Approved by: re (scottl) END K 10 svn:author V 5 garys K 8 svn:date V 27 2005-09-17T15:50:50.000000Z K 7 svn:log V 41 MFC 1.25 Approved by: keramida (mentor) END K 10 svn:author V 5 tegge K 8 svn:date V 27 2005-09-17T15:51:12.000000Z K 7 svn:log V 127 MFC: Break out of loop if next buffer pointer has become invalid while flushing current buffer. Approved by: re (scottl) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2005-09-17T15:51:41.000000Z K 7 svn:log V 329 Oops, actually MFC 1.89 (by kan) which was missed in previous commit: Handle a race condition where NULLFS vnode can be cleaned while threads can still be asleep waiting for lowervp lock. Tested by: kkenn Discussed with: ssouhlal, jeffr (this is an early MFC for inclusion in the upcoming 6.0-BETA5) Approved by: re (scottl) END K 10 svn:author V 5 garys K 8 svn:date V 27 2005-09-17T17:12:18.000000Z K 7 svn:log V 26 MFC 1.21 Approved by: re END K 10 svn:author V 5 garys K 8 svn:date V 27 2005-09-17T17:19:42.000000Z K 7 svn:log V 41 MFC 1.21 Approved by: keramida (mentor) END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-09-17T22:01:14.000000Z K 7 svn:log V 736 Implement new world order in VFS locking for ACLs. This will remove the unconditional acquisition of Giant for ACL related operations. If the file system is set as being MP safe and debug.mpsafevfs is 1, do not pickup giant. For any operations which require namei(9) lookups: __acl_get_file __acl_get_link __acl_set_file __acl_set_link __acl_delete_file __acl_delete_link __acl_aclcheck_file __acl_aclcheck_link -Set the MPSAFE flag in NDINIT -Initialize vfslocked variable using the NDHASGIANT macro For functions which operate on fds, make sure the operations are locked: __acl_get_fd __acl_set_fd __acl_delete_fd __acl_aclcheck_fd -Initialize vfslocked using VFS_LOCK_GIANT before we manipulate the vnode Discussed with: jeff END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-09-17T23:45:22.000000Z K 7 svn:log V 52 Remove reference to bpfstat, this no longer exists. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-17T23:57:53.000000Z K 7 svn:log V 211 Expose legacy_pcib_alloc_resource, and use it in the mptable pci bus implementation, like other routines in the legacy bus. This should fix problems with resource allocation on MP systems without ACPI enabled. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-18T01:32:09.000000Z K 7 svn:log V 34 MFp4: Expose device_probe_child() END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-18T01:42:43.000000Z K 7 svn:log V 40 MFi386: pci attribute allocation fixes. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2005-09-18T02:29:27.000000Z K 7 svn:log V 569 MFC 1.156 (mjacob). Original log: >Make the exploring of all luns supported by an HBA more of a >tunable (until we get REPORT LUNS in place). > >If we're probing luns, and each probe succeeds, we keep going past >lun 7 if we're a SCSI3 or better device (until we fail to probe). > >If we're probing luns, and a probe fails, we only keep going if >we're quirked *for* it (CAM_QUIRK_HILUNS), and if we're not quirked >*against* it (CAM_QUIRK_NOHILUNS), or we're a SCSI3 or better device >and the tunable (kern.cam.cam_srch_hi) is set non-zero. Approved by: re (scottl) END K 10 svn:author V 4 nyan K 8 svn:date V 27 2005-09-18T02:38:29.000000Z K 7 svn:log V 141 Merged from src/sbin/fdisk/fdisk.c revision 1.81. - Call gctl_free() to free resource allocated with gctl_get_handle(). MFC after: 3 days END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-18T02:55:10.000000Z K 7 svn:log V 88 MFC: Merge resource fixes for pci devices on pci0 for ioport. Approved by: re (scottl) END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-09-18T03:15:36.000000Z K 7 svn:log V 273 Introduce a kernel config for the Mandatory Access Control framework. This kernel config briefly describes some of the major MAC policies available on FreeBSD. The hope is that this will raise the awareness about MAC and get more people interested. Discussed with: scottl END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-09-18T03:31:35.000000Z K 7 svn:log V 139 MFC v1.163 src/sys/kern/imgact_elf.c MFC v1.82 src/sys/kern/vfs_lookup.c MFC v1.394 src/sys/kern/vfs_syscalls.c Approved by: re (scottl) END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-09-18T03:37:59.000000Z K 7 svn:log V 208 Now that our showstopper list has shrunk, take another step closer to the release and turn off kernel debugging. Also turn off SMP on i386 and amd64 and add an SMP kernel config. Approved by: re (implicit) END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-09-18T03:45:24.000000Z K 7 svn:log V 93 Take a step closer to the release and turn off malloc debugging. Approved by: re (implicit) END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-09-18T05:12:39.000000Z K 7 svn:log V 43 Switch over to 6.0-BETA5. Approved by: re END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-18T07:10:57.000000Z K 7 svn:log V 105 MFC: Various fixes for DEVFS, in particular "devfs ruleset already running". Approved by: re@ (scottl) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-18T07:23:53.000000Z K 7 svn:log V 74 Don't claim matcd(4) support, it was removed long ago. MFC after: 3 days END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-18T07:32:49.000000Z K 7 svn:log V 52 Sort list of supported hardware. MFC after: 3 days END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-18T07:46:05.000000Z K 7 svn:log V 69 Sort the list of ethernet devices by driver-name. MFC after: 3 days END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-18T08:14:16.000000Z K 7 svn:log V 129 Sort the list of disk controllers by driver-name. The notable exception is ata(4), which should stay on top. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-18T10:30:10.000000Z K 7 svn:log V 244 Re-comment sbcompress() to explain what it is it does; it took me quite a bit of reading to figure it out, and I want to avoid figuring it out again. Convert an if (foo) else printf("this is almost a panic") into a KASSERT. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-18T10:44:50.000000Z K 7 svn:log V 161 Assert that (vp) is locked in fifo_close(), since we rely on the exclusive vnode lock to synchronize the reference counts on struct fifoinfo. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-18T10:46:34.000000Z K 7 svn:log V 46 Fix spelling in a comment. MFC after: 3 days END K 10 svn:author V 8 netchild K 8 svn:date V 27 2005-09-18T11:45:39.000000Z K 7 svn:log V 582 ehcivar.h: Synchronise with NetBSD upto rev 1.19: - Allow 32 chars in the saved vendor string. - Some NetBSD-only changes. - Some missing parts (define, variable). ehci_pci.c: Add vendor ids for ATI and Philips. Add identification strings for the following: o ALi's M5239 o AMD 8111 o ATI SB200, SB400 o Intel 6300ESB, ICH4, ICH5, ICH7 o NVIDIA nForce 2, nForce 3, nForce 4 o Philips ISP156x ehcireg.h: We're at the same level as rev 1.18 from NetBSD. usb_port.h: NetBSD/OpenBSD specific things Obtained from: NetBSD via DragonFly No comment from: usb@ END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2005-09-18T12:19:32.000000Z K 7 svn:log V 237 Add a note pointing out that certain information (IP address, list of files fetched, FreeBSD release level) is transmitted to the portsnap server when portsnap is run, but that this information is only used anonymously and in aggregate. END K 10 svn:author V 6 marius K 8 svn:date V 27 2005-09-18T13:23:19.000000Z K 7 svn:log V 1269 - In gem_ioctl() move the call to ether_ioctl() to the default case of the switch statement in order to make this driver more like other Ethernet NIC drivers. - In gem_attach() call gem_stop() in addition to gem_reset() to make sure the chip actually is stopped and not just reset. - In gem_stop() also stop the gem_rint_timeout() callout in case the driver is compiled with GEM_RINT_TIMEOUT defined. Merge some locking improvements from hme(4): - Use callout_init_mtx() to close races between gem_stop() and gem_tick() as weel as gem_stop() and gem_rint() in case the driver is compiled with GEM_RINT_TIMEOUT defined. - Use the driver lock instead of Giant in a bus dma callback. - Lock the driver lock around mii operations. - Cleanup locking in gem_ioctl(). - Remove redundant assertions that the driver lock is not held in gem_attach() and gem_detach() since mtx_lock() will assert that already since the driver lock is not recursive. - Add callout_drain()'s to gem_detach() after calling gem_stop() to make sure that if softclock is running on another CPU and is blocked on our driver lock, we will wait until it has acquired the lock, seen that it was cancelled, dropped the lock, and awakened us so that we can safely destroy the mutex. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-18T13:42:19.000000Z K 7 svn:log V 297 Add a regression test for listen()'s backlog argument, both at time of creation and at time of update using an additional call to listen(). This test also exercises SO_LISTENQLIMIT, a forthcoming socket option that allows the retrieval (but not setting) of the queue limit. Discussed with: andre END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-09-18T15:03:31.000000Z K 7 svn:log V 177 MFC rev 1.94: Fix race condition that caused activation of an event to be ignored immediately after it was deactivated. Submitted by: Stephan Uphoff, Yahoo Approved by: re END K 10 svn:author V 8 netchild K 8 svn:date V 27 2005-09-18T15:13:06.000000Z K 7 svn:log V 275 Merge NetBSD fixes (except for 1.97 there should be no functional change): 1.94: ansify and KNF (NetBSD KNF). 1.95: Fix DPRINTF (bug from change in 1.94). 1.96: NetBSD specific. 1.97: Fix memory leak reported by Ted Unangst as bug #3 on tech-kern. Obtained from: NetBSD END K 10 svn:author V 8 netchild K 8 svn:date V 27 2005-09-18T15:38:40.000000Z K 7 svn:log V 33 Add the KLD to the sndstat info. END K 10 svn:author V 8 keramida K 8 svn:date V 27 2005-09-18T15:40:02.000000Z K 7 svn:log V 199 Explain the use of `*' in master.passwd and that it's slightly different from the use of `*' in /etc/passwd. PR: docs/86234 Submitted by: Paul Hoffman MFC after: 1 week END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-18T15:40:03.000000Z K 7 svn:log V 122 Use the correct function name as .Nm argument. PR: 86169 Submitted by: Toby Peterson MFC after: 3 days END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-18T16:20:38.000000Z K 7 svn:log V 112 Change the DESCRIPTION section into HARDWARE, since it already lists the supported hardware. MFC after: 3 days END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-18T16:22:20.000000Z K 7 svn:log V 31 Add esp(4). MFC after: 3 days END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-09-18T17:04:26.000000Z K 7 svn:log V 309 In mountd_precmd(), use rc_args, not mountd_args to override the value of mountd_args. This fixes the problem where mountd_args was not properly being set if weak_mountd_authentifcation="YES" was set in rc.conf. PR: conf/86260 Submitted by: Thierry Herbelot MFC after: 3 days END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-18T17:13:17.000000Z K 7 svn:log V 142 MFC: This bit missed out in the DEVFS MFC earlier today: SYSCTL debug.sizeof.cdev moved to relevant source file. Approved by: re@ (scottl) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-18T17:36:28.000000Z K 7 svn:log V 763 Take a first cut at cleaning up ifnet removal and multicast socket panics, which occur when stale ifnet pointers are left in struct moptions hung off of inpcbs: - Add in_ifdetach(), which matches in6_ifdetach(), and allows the protocol to perform early tear-down on the interface early in if_detach(). - Annotate that if_detach() needs careful consideration. - Remove calls to in_pcbpurgeif0() in the handling of SIOCDIFADDR -- this is not the place to detect interface removal! This also removes what is basically a nasty (and now unnecessary) hack. - Invoke in_pcbpurgeif0() from in_ifdetach(), in both raw and UDP IPv4 sockets. It is now possible to run the msocket_ifnet_remove regression test using HEAD without panicking. MFC after: 3 days END K 10 svn:author V 4 ache K 8 svn:date V 27 2005-09-18T17:50:58.000000Z K 7 svn:log V 195 Just by allocating size*2 bytes we can't be sure that new size will be enough, so change two if (size not enough) { reallocf(size*2); } into while (size not enough) { reallocf(size*2); } END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-09-18T19:23:35.000000Z K 7 svn:log V 157 Slightly change the API for the SNPSTTY ioctl so that the userland now provides a file descriptor instead of a dev_t. Discussed with: phk MFC after: 3 days END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-09-18T19:24:05.000000Z K 7 svn:log V 68 Open the tty device and pass the fd for SNPSTTY. MFC after: 3 days END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-18T20:51:34.000000Z K 7 svn:log V 920 MFp4: o eliminate the ED_NO_MIIBUS option. Now, you need miibus to use ed with pccard. If you have an old ISA or PCI card w/o a miibus, then you'll still be able to use the ed driver w/o miibus in the kernel. If you have pccard you'll need mii now. Most pccards these days have miibus, and many cards have ISSUES if you don't attach miibus. issues I don't want to constantly rediagnose. - Add new media_ioctl, mediachg and tick function pointers. The core driver will call these if they aren't NULL, or return an error if they are. - migrate remaining mii code into if_ed_pccard. o include some notes from my datasheet fishing. this may allow us to get media status from some pccards. o Fix one bug that's common to many drivers. call if_free(ifp) after we tear down the interrupt. ed_intr() depends on ifp being there and freeing it while interrupts can still happen is, ummm, bad. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-18T20:53:53.000000Z K 7 svn:log V 82 No ED_NO_MIIBUS no more. Not one more or the same number of non positive options END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-18T21:08:03.000000Z K 7 svn:log V 494 Add three new read-only socket options, which allow regression tests and other applications to query the state of the stack regarding the accept queue on a listen socket: SO_LISTENQLIMIT Return the value of so_qlimit (socket backlog) SO_LISTENQLEN Return the value of so_qlen (complete sockets) SO_LISTENINCQLEN Return the value of so_incqlen (incomplete sockets) Minor white space tweaks to existing socket options to make them consistent. Discussed with: andre MFC after: 1 week END K 10 svn:author V 6 marcel K 8 svn:date V 27 2005-09-18T21:40:15.000000Z K 7 svn:log V 279 Move the UUID generator into its own function, called kern_uuidgen(), so that UUIDs can be generated from within the kernel. The uuidgen(2) syscall now allocates kernel memory, calls the generator, and does a copyout() for the whole UUID store. This change is in support of GPT. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2005-09-18T23:54:40.000000Z K 7 svn:log V 179 o Don't cause a panic when the control request lacks a verb. o Don't set the error twice when the named class does not exist. It causes ioctl(2) to return with error EEXIST. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2005-09-19T02:59:09.000000Z K 7 svn:log V 582 Add the beginnings of a testsuite for testing GPT control requests. The testsuite is based on a simple driver program that builds a request from the arguments passed to it and issues the request to Geom. The driver emits FAIL with the error string or PASS depending on whether the request completed with an error or not. A -v option has been added to the driver and causes the request to be dumped. The -v option to prove(1) controls the -v option to the driver. The testsuite itself contains a hash of which the key constitutes the arguments and the value is the expected result. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-19T03:10:21.000000Z K 7 svn:log V 309 Make sure that we call if_free(ifp) after bus_teardown_intr. Since we could get an interrupt after we free the ifp, and the interrupt handler depended on the ifp being still alive, this could, in theory, cause a crash. Eliminate this possibility by moving the if_free to after the bus_teardown_intr() call. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-19T03:35:32.000000Z K 7 svn:log V 104 Last change to this file actually removed the oldcard compat code. This change removes one last K&Rism. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2005-09-19T06:51:57.000000Z K 7 svn:log V 237 o Extend the suite to run more than just the driver. We need to run mdconfig(8), because we need a disk to work on. o Extend the number of tests now that we have a disk. o Simplify the driver. All parameters are ASCII strings now. END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-19T06:55:27.000000Z K 7 svn:log V 723 Fix configuration locking in MD. Remove md_mtx. Remove GIANT from the mdctl device driver and avoid DROP_GIANT, PICKUP_GIANT and geom events since we can call into GEOM directly now. Pick up Giant around vn_close(). Apply an exclusive sx around mdctls ioctl and preloading to protect lists etc.. Don't initialize our lock (md_mtx or md_sx) from a SYSINIT when there is a perfectly good pair of _fini/_init functions to do it from. Prune any final fractional sector from the mediasize to keep GEOM happy. Cleanups: Unify MDIOVERSION check in (x)mdctlioctl() Add pointer to start() routine to softc to eliminate a switch{} Inline guts of mddetach(). Always pass error pointer to mdnew(), simplify implementation. END K 10 svn:author V 6 philip K 8 svn:date V 27 2005-09-19T06:58:39.000000Z K 7 svn:log V 259 Add an option to stop 'mouse drift' in some defective/cheap mice. This stops the pointer slowly wandering away on its own in an annoying way when the mouse isn't physically moved. PR: bin/83970 Submitted by: Lena -at- lena.kiev.ua X-MFC after: 6.0-RELEASE END K 10 svn:author V 3 sos K 8 svn:date V 27 2005-09-19T07:35:42.000000Z K 7 svn:log V 143 Dont wait for READY on ATAPI_IDENTIFY. Fixes the losage of some ATAPI device that reported failed probing with "timeout waiting for read DRQ". END K 10 svn:author V 5 imura K 8 svn:date V 27 2005-09-19T08:07:18.000000Z K 7 svn:log V 138 Remove macros htole{s,l,q}, letoh{s,l,q}, htobe{s,l,q}, betoh{s,l,q} and replace it with more standard byteorder macros in our system. END K 10 svn:author V 5 imura K 8 svn:date V 27 2005-09-19T08:11:04.000000Z K 7 svn:log V 88 Fix get{w,d}{l,b}e, set{w,d}{l,b}e macros on big endian systems. Obtained from: NetBSD END K 10 svn:author V 5 imura K 8 svn:date V 27 2005-09-19T08:13:43.000000Z K 7 svn:log V 32 Connect smbfs build on powerpc. END K 10 svn:author V 6 philip K 8 svn:date V 27 2005-09-19T09:29:59.000000Z K 7 svn:log V 36 Fix a small typo. Spotted by: ceri END K 10 svn:author V 3 dds K 8 svn:date V 27 2005-09-19T10:11:47.000000Z K 7 svn:log V 47 Setting .nofinger will not hide you from root. END K 10 svn:author V 3 mux K 8 svn:date V 27 2005-09-19T10:14:05.000000Z K 7 svn:log V 77 Fix the module build for snp(4). Submitted by: cognet Pointy hat to: cognet END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-09-19T11:28:19.000000Z K 7 svn:log V 1102 Fixed aliasing bugs in TRUNC() by using the fdlibm macros for access to doubles as bits. fdlibm-1.1 had similar aliasing bugs, but these were fixed by NetBSD or Cygnus before a modified version of fdlibm was imported in 1994. TRUNC() is only used by tgamma() and some implementation-detail functions. The aliasing bugs were detected by compiling with gcc -O2 but don't seem to have broken tgamma() on i386's or amd64's. They broke my modified version of tgamma(). Moved the definition of TRUNC() to mathimpl.h so that it can be fixed in one place, although the general version is even slower than necessary because it has to operate on pointers to volatiles to handle its arg sometimes being volatile. Inefficiency of the fdlibm macros slows down libm generally, and tgamma() is a relatively unimportant part of libm. The macros act as if on 32-bit words in memory, so they are hard to optimize to direct actions on 64-bit double registers for (non-i386) machines where this is possible. The optimization is too hard for gcc on amd64's, and declaring variables as volatile makes it impossible. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-19T11:49:54.000000Z K 7 svn:log V 91 Dej'a vu of revision 1.35 PR: kern/86258 Submitted by: Hiroshi Oota END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-19T12:09:33.000000Z K 7 svn:log V 38 sample.c needs ath magic include path END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-19T12:12:07.000000Z K 7 svn:log V 12 Missing ')' END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-19T13:48:45.000000Z K 7 svn:log V 117 Restore the ability to detach from a tty via SIOCSTTY and document recent changes in a manpage. Reviewed by: cognet END K 10 svn:author V 5 ticso K 8 svn:date V 27 2005-09-19T13:50:07.000000Z K 7 svn:log V 144 Relocate direct map specs into struct alpha_chipset. Prepare for PCI Scatter-Gather map. Panic if driver tries alpha_XXX_dmamap() out of range. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-19T13:59:57.000000Z K 7 svn:log V 709 Remove mac_create_root_mount() and mpo_create_root_mount(), which provided access to the root file system before the start of the init process. This was used briefly by SEBSD before it knew about preloading data in the loader, and using that method to gain access to data earlier results in fewer inconsistencies in the approach. Policy modules still have access to the root file system creation event through the mac_create_mount() entry point. Removed now, and will be removed from RELENG_6, in order to gain third party policy dependencies on the entry point for the lifetime of the 6.x branch. MFC after: 3 days Submitted by: Chris Vance Sponsored by: SPARTA END K 10 svn:author V 6 marcus K 8 svn:date V 27 2005-09-19T14:22:57.000000Z K 7 svn:log V 125 MFC: Correct a mis-merge from HEAD, and make sure the socket permissions are set to 0666. Reported by: rwatson via delphij END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-19T14:44:11.000000Z K 7 svn:log V 47 Remove duplicate if_free(). Submitted by: ru@ END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-19T15:13:33.000000Z K 7 svn:log V 29 Fix genassym.o dependencies. END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-19T15:41:08.000000Z K 7 svn:log V 45 Create fstab before linking stuff into /conf END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2005-09-19T15:53:22.000000Z K 7 svn:log V 91 Properly initialize src-nodes limits. Reported by: Andre END K 10 svn:author V 6 damien K 8 svn:date V 27 2005-09-19T16:26:52.000000Z K 7 svn:log V 77 It's safe to wait for command completion in iwi_config(). MFC after: 5 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-19T16:27:22.000000Z K 7 svn:log V 152 Drop current rtentry lock before calling rt_getifa(). This fixes a LOR and a possible recursive use of rtentry mutex. PR: kern/69356 Reviewed by: sam END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-19T16:29:36.000000Z K 7 svn:log V 195 Small regression test tool to generate two forms of ENOSPC on a file system: out of blocks, and out of inodes. Useful for exercising the uprintf(9) calls in UFS/ext2fs in order to detect races. END K 10 svn:author V 8 keramida K 8 svn:date V 27 2005-09-19T16:32:27.000000Z K 7 svn:log V 175 A single `*' character doesn't disable *ANY* form of authentication. Make sure that this is clearly stated. Prodded by: simon, Gavin Atkinson END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-19T16:51:10.000000Z K 7 svn:log V 66 MFC: Manpage for the acpi_sony(4) driver. Approved by: re (hrs) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-19T16:51:43.000000Z K 7 svn:log V 1047 Add GIANT_REQUIRED and WITNESS sleep warnings to uprintf() and tprintf(), as they both interact with the tty code (!MPSAFE) and may sleep if the tty buffer is full (per comment). Modify all consumers of uprintf() and tprintf() to hold Giant around calls into these functions. In most cases, this means adding an acquisition of Giant immediately around the function. In some cases (nfs_timer()), it means acquiring Giant higher up in the callout. With these changes, UFS no longer panics on SMP when either blocks are exhausted or inodes are exhausted under load due to races in the tty code when running without Giant. NB: Some reduction in calls to uprintf() in the svr4 code is probably desirable. NB: In the case of nfs_timer(), calling uprintf() while holding a mutex, or even in a callout at all, is a bad idea, and will generate warnings and potential upset. This needs to be fixed, but was a problem before this change. NB: uprintf()/tprintf() sleeping is generally a bad ideas, as is having non-MPSAFE tty code. MFC after: 1 week END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-19T16:53:59.000000Z K 7 svn:log V 123 MFC: - ed(4) MPSAFE - acpi_ibm.4 and acpi_sony.4 manpages added While here, correct two entities. Approved by: re (hrs) END K 10 svn:author V 6 damien K 8 svn:date V 27 2005-09-19T18:16:29.000000Z K 7 svn:log V 58 Update the list of supported hardware. MFC after: 5 days END K 10 svn:author V 6 damien K 8 svn:date V 27 2005-09-19T18:19:22.000000Z K 7 svn:log V 105 The "SMC EZ Connect SMC2862W-G" product is not based on the Ralink RT2500USB chipset. MFC after: 5 days END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2005-09-19T18:43:11.000000Z K 7 svn:log V 355 When (re)allocating space for an array of pointers to char, use sizeof(*list), not sizeof(**list). (i.e., sizeof(pointer) rather than sizeof(char)). It is possible that this buffer overflow is exploitable, but it was added after RELENG_5 forked and hasn't been MFCed, so this will not receive an advisory. Submitted by: Vitezslav Novy MFC after: 1 day END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-19T18:52:51.000000Z K 7 svn:log V 65 Add #include , devfs is going to require this shortly. END