J189000 187 189 315 178 128 293 134 123 110 170 170 167 167 148 172 218 380 142 1299 124 137 154 1298 487 319 366 132 2060 133 105 638 319 369 1105 301 311 813 198 389 241 339 259 291 413 301 1181 158 241 184 268 290 211 159 255 136 186 315 188 129 188 116 320 157 205 505 214 205 284 452 326 282 188 184 157 283 895 348 347 301 800 133 234 158 730 158 208 150 295 414 230 337 220 528 577 193 202 227 399 102 102 190 795 181 313 143 383 160 633 330 197 178 576 290 419 132 127 168 317 254 111 155 314 448 111 283 183 327 366 131 193 115 653 244 114 267 135 171 479 159 160 131 142 244 114 425 445 629 276 226 281 428 192 379 268 273 261 257 268 276 277 273 235 250 441 292 184 171 581 295 313 326 563 283 299 217 94 94 94 94 94 94 94 94 94 94 94 94 94 K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-24T16:47:59.433850Z K 7 svn:log V 93 delete-old does not recursively delete dirs so list all its contents too. Spotted by: naddy END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-24T17:10:43.801427Z K 7 svn:log V 223 Use my address of the FreeBSD project in the copyright statement in USB2. If I remember correctly, our policy was to use FreeBSD with proper capitalisation in our email addresses. Fix this in Nick Hibma's address as well. END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-24T17:15:29.625006Z K 7 svn:log V 87 Also use proper capitalisation of FreeBSD in other source files. Approved by: thompsa END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-24T17:26:37.027853Z K 7 svn:log V 32 This copy of usbdevs is unused. END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2009-02-24T18:09:31.992066Z K 7 svn:log V 195 Change the functions to ANSI in those cases where it breaks promotion to int rule. See ISO C Standard: SS6.7.5.3:15. Approved by: kib (mentor) Reviewed by: warner Tested by: silence on -current END K 10 svn:author V 3 des K 8 svn:date V 27 2009-02-24T18:48:10.313019Z K 7 svn:log V 42 svn:eol-style is missing from these files END K 10 svn:author V 3 des K 8 svn:date V 27 2009-02-24T18:49:27.090564Z K 7 svn:log V 31 Vendor import of OpenSSH 5.2p1 END K 10 svn:author V 3 des K 8 svn:date V 27 2009-02-24T18:53:07.936980Z K 7 svn:log V 18 Tag OpenSSH 5.2p1 END K 10 svn:author V 8 gallatin K 8 svn:date V 27 2009-02-24T19:41:23.885411Z K 7 svn:log V 73 MFH r186260: Additional 10GbE media types (10Gbase-LRM, 10Gbase-Twinax*) END K 10 svn:author V 8 gallatin K 8 svn:date V 27 2009-02-24T19:42:49.369527Z K 7 svn:log V 73 MFH r186260: Additional 10GbE media types (10Gbase-LRM, 10Gbase-Twinax*) END K 10 svn:author V 8 gallatin K 8 svn:date V 27 2009-02-24T20:16:34.521834Z K 7 svn:log V 70 MFH r188736 and r188737: Better support for recent Myricom 10GbE NICs END K 10 svn:author V 8 gallatin K 8 svn:date V 27 2009-02-24T20:16:52.870075Z K 7 svn:log V 70 MFH r188736 and r188737: Better support for recent Myricom 10GbE NICs END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-02-24T20:23:16.261838Z K 7 svn:log V 56 Update the comment after the r188334. Reviewed by: alc END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-02-24T20:27:48.021317Z K 7 svn:log V 80 Use vm_map_entry_t instead of explicit struct vm_map_entry *. Reviewed by: alc END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-02-24T20:43:29.471039Z K 7 svn:log V 125 Add the assertion macros for the map locks. Use them in several map manipulation functions. Tested by: pho Reviewed by: alc END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-02-24T20:57:43.353234Z K 7 svn:log V 287 Revert the addition of the freelist argument for the vm_map_delete() function, done in r188334. Instead, collect the entries that shall be freed, in the deferred_freelist member of the map. Automatically purge the deferred freelist when map is unlocked. Tested by: pho Reviewed by: alc END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-02-24T22:25:08.210930Z K 7 svn:log V 48 remove releng 7 branch for networking speed ups END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-24T23:11:15.233701Z K 7 svn:log V 1205 Fix some more issues with the real mode BTX. The old BTX passed the general purpose registers from the 32-bit client to the routines called via virtual 86 mode. The new BTX did the same thing. However, it turns out that some instructions behave differently in virtual 86 mode and real mode (even though this is under-documented). For example, the LEAVE instruction will cause an exception in real mode if any of the upper 16-bits of %ebp are non-zero after it executes. In virtual 8086 mode the upper 16-bits are simply ignored. This could cause faults in hardware interrupt handlers that inherited an %ebp larger than 0xffff from the 32-bit client (loader, boot2, etc.) while running in real mode. To fix, when executing hardware interrupt handlers provide an explicit clean state where all the general purpose and segment registers are zero upon entry to the interrupt handler. While here, I attempted to simplify the control flow in the 'intusr' code that sets up the various stack frames and exits protected mode to invoke the requested routine via real mode. A huge thanks to Tor Egge (tegge@) for debugging this issue. Submitted by: tegge Reviewed by: tegge Tested by: bz MFC after: 1 week END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-24T23:27:59.514074Z K 7 svn:log V 28 These are no longer needed. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-24T23:30:52.205778Z K 7 svn:log V 41 Fix path and config name for ehci_mbus.c END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-24T23:34:02.961062Z K 7 svn:log V 58 Update paths for ehci_ixp4xx.c in the old and new stacks. END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-25T00:58:08.323231Z K 7 svn:log V 1204 Checkpoint support for the optional GPS chip: o the Trimble part has a TL16C752B uart through which NMEA data comes; add it to the config+hints (rclk 1843200) o map the i/o region associated with the uart o rewrite the ixp bus memory resource allocation to handle two uarts with different bus tag requirements (need to completely rewrite this stuff to hide the A4 crap and/or overhaul uart to eliminate the need for the A4 hack) o add a rwdelay parameter/hack to uart to handle TL16C752B brain-damage: back-to-back read/writes must have a min 2usec delay between or data will be corrupted (again this would be better hidden behind bus space hacks but uart needs re-architecting); thanks to Chris Lang for the tip o force GPIO pin 3 irq to be output+edge-rising (yet another hack as we need to redesign how bus_setup_intr works so we can handle this stuff in one spot instead of in every driver) o add a ddb "show gpio" command to dump GPIO configuration o add a temporary ddb "show istat" command to dump uart stats+registers The GPS part seems to work but the host is hammered by interrupts on GPIO 3; still trying to figure out why. Sponsored by: Gateworks (2358 board w/ GPS chip) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-02-25T01:12:56.015694Z K 7 svn:log V 390 Update to latest 3Com firmware image. The latest fimware is required to make 3CR990 familiy controllers run on NV flash firmware version 03.001.008. The latest firmware added HMAC digest information so teach txp(4) to pass them to sleep image before downloading is started. While I'm here restore previous IMR/IER register if firmware downloading have failed. PR: kern/89876, kern/132047 END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2009-02-25T01:49:01.894027Z K 7 svn:log V 222 Make machdep.hyperthreading_enabled tunable working with the SCHED_ULE. Unlike with SCHED_BSD, however, it can only be set to 0 at boot time, it's not possible to change it at runtime. Reviewed by: jhb MFC after: 1 month END K 10 svn:author V 3 alc K 8 svn:date V 27 2009-02-25T07:52:53.995952Z K 7 svn:log V 273 Prior to r188331 a map entry's last read offset was only updated by a hard fault. In r188331 this update was relocated because of synchronization changes to a place where it would occur on both hard and soft faults. This change again restricts the update to hard faults. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2009-02-25T10:52:09.704346Z K 7 svn:log V 40 Add a sample kernel config for Xen HVM. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-25T10:59:56.898449Z K 7 svn:log V 1962 Merge r185747, r185774, r185807, r185849, r185964, r185965, r186051, r186052 from head to stable/7; note that only the locking fixes and invariants checking are added from r185747, but not the move to an rwlock which would modify the kernel binary interface, nor the move to a non-recursible lock, which is still seeing problem reports in head. This corrects, among other things, a deadlock that may occur when processing incoming ICMP redirects. r185747: - convert radix node head lock from mutex to rwlock - make radix node head lock not recursive - fix LOR in rtexpunge - fix LOR in rtredirect Reviewed by: sam r185774: - avoid recursively locking the radix node head lock - assert that it is held if RTF_RNH_LOCKED is not passed r185807: Fix a bug introduced in r185747: rather than dereferencing an uninitialized *rt to something undefined, use the fibnum that came in as function argument. Found with: Coverity Prevent(tm) CID: 4168 r185849: fix a reported panic when adding a route and one hit here when deleting a route - pass RTF_RNH_LOCKED to rtalloc1_fib in 2 cases where the lock is held - make sure the rnh lock is held across rt_setgate and rt_getifa_fib r185964: Pass RTF_RNH_LOCKED to rtalloc1 sunce the node head is locked, this avoids a recursive lock panic on inet6 detach. Reviewed by: kmacy r185965: RTF_RNH_LOCKED needs to be passed in the flags arg not report, apologies to thompsa r186051: in6_addroute is called through rnh_addadr which is always called with the radix node head lock held exclusively. Pass RTF_RNH_LOCKED to rtalloc so that rtalloc1_fib will not try to re-acquire the lock. r186052: don't acquire lock recursively Oiginal commits to head were by kmacy, except r185964 by thompsa and r185807 by bz. A subset of this is a potential errata patch candidate. Reviewed by: bz, kmacy Tested by: Pete French Reviewed by: bz Tested by: Pete French END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-25T11:37:19.023818Z K 7 svn:log V 222 Merge r179458 from head to stable/7: Import rewritten nve device id's, which brings this more inline with if_nfe. PR: 110883 Submitted by: Claudel Approved by: imp (mentor, implicit) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-25T11:44:03.283839Z K 7 svn:log V 272 Merge r186825 from head to stable/7: Do a lockless read of the audit pipe list before grabbing the audit pipe lock in order to avoid the lock acquire hit if the pipe list is very likely empty. Obtained from: TrustedBSD Project Sponsored by: Apple, Inc. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-25T12:00:15.599514Z K 7 svn:log V 1007 Merge r184508 from head to stable/7: Historically, /dev/auditpipe has allows only whole records to be read via read(2), which meant that records longer than the buffer passed to read(2) were dropped. Instead take the approach of allowing partial reads to be continued across multiple system calls more in the style of streaming character device. This means retaining a record on the per-pipe queue in a partially read state, so maintain a current offset into the record. Keep the record on the queue during a read, so add a new lock, ap_sx, to serialize removal of records from the queue by either read(2) or ioctl(2) requesting a pipe flush. Modify the kqueue handler to return bytes left in the current record rather than simply the size of the current record. It is now possible to use praudit, which used the standard FILE * buffer sizes, to track much larger record sizes from /dev/auditpipe, such as very long command lines to execve(2). Sponsored by: Apple, Inc. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-25T12:32:15.659105Z K 7 svn:log V 204 Merge 3184510 from head to stable/7: Since there is no longer the opportunity for record truncation, just return 0 if the truncation counter is queried on an audit pipe. Sponsored by: Apple, Inc. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-25T13:17:46.590613Z K 7 svn:log V 214 Merge r184534 from head to stable/7: Allow a single read(2) system call on an audit pipe to retrieve data from more than one audit record at a time in order to improve efficiency. Sponsored by: Apple, Inc. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-25T13:21:28.057486Z K 7 svn:log V 716 Merge r184536 from head to stable/7: We only allow a partial read of the first record in an audit pipe record queue, so move the offset field from the per-record audit_pipe_entry structure to the audit_pipe structure. Now that we support reading more than one record at a time, add a new summary field to audit_pipe, ap_qbyteslen, which tracks the total number of bytes present in a pipe, and return that (minus the current offset) via FIONREAD and kqueue's data variable for the pending byte count rather than the number of bytes remaining in only the first record. Add a number of asserts to confirm that these counts and offsets following the expected rules. Sponsored by: Apple, Inc. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-25T13:26:30.112525Z K 7 svn:log V 101 Merge r184540 from head to stable/7: Add comment for per-pipe stats. Sponsored by: Apple, Inc. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-25T13:30:17.209325Z K 7 svn:log V 292 Merge r184544 and r184545 from head to stable/7: Remove stale comment about filtering in audit pipe ioctl routine: we do support filtering now, although we may want to make it more interesting in the future. Update introductory comment for audit pipes. Sponsored by: Apple, Inc. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-25T13:42:38.737938Z K 7 svn:log V 144 Merge r184825 from head to stable/7: Wrap sx locking of the audit worker sleep lock in macros, update comments. Sponsored by: Apple, Inc. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-25T13:47:09.783381Z K 7 svn:log V 242 Merge r188122 from head to stable/7: Eliminate the local variable 'ape' in audit_pipe_kqread(), as it's only used for an assertion that we don't really need anymore. Reported by: Christoph Mallon END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-25T14:08:28.447662Z K 7 svn:log V 162 Merge r183689 from head to stable/7: Differentiate pr_usrreqs for stream and datagram UNIX domain sockets, and employ soreceive_dgram for the datagram case. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-25T14:26:16.205749Z K 7 svn:log V 194 Merge r188123 from head to stable/7: Remove written-to but never read local variable 'offset' from soreceive_dgram(). Submitted by: Christoph Mallon END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-25T14:48:13.073414Z K 7 svn:log V 316 Merge 3188124 from head to stable/7: Remove local variable 'ddp' from DDP's attach and detach routines; they were used only for assertions, and rather than ifdef'ing them INVARIANTS and using local variables, just directly access so_pcb. Submitted by: Christoph Mallon END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-25T15:01:26.791454Z K 7 svn:log V 204 Merge r188312 from head to stable/7: Audit AUE_MAC_EXECVE; currently just the standard AUE_EXECVE arguments and not the label. Obtained from: TrustedBSD Project Sponsored by: Apple, Inc. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-25T15:04:30.396469Z K 7 svn:log V 1083 Merge r188485 from head to stable/7: Modify fdcopy() so that, during fork(2), it won't copy file descriptors from the parent to the child process if they have an operation vector of &badfileops. This narrows a set of races involving system calls that allocate a new file descriptor, potentially block for some extended period, and then return the file descriptor, when invoked by a threaded program that concurrently invokes fork(2). Similar approches are used in both Solaris and Linux, and the wideness of this race was introduced in FreeBSD when we moved to a more optimistic implementation of accept(2) in order to simplify locking. A small race necessarily remains because the fork(2) might occur after the finit() in accept(2) but before the system call has returned, but that appears unavoidable using current APIs. However, this race is vastly narrower. The fix can be validated using the newfileops_on_fork regression test. PR: kern/130348 Reported by: Ivan Shcheklein Reviewed by: jhb, kib END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-02-25T18:16:50.207806Z K 7 svn:log V 62 Remove the PZERO priority from mtx_sleep. MFC after: 2 weeks END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-02-25T18:19:16.682568Z K 7 svn:log V 144 There is no reason to hold the lock here. When I was LOCK_PROFILING this was pretty high up and there is no reason for it. MFC after: 2 weeks END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-02-25T18:22:57.193320Z K 7 svn:log V 88 The vblank_swap ioctl was fundamentally race prone. Get rid of it. MFC after: 2 weeks END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-02-25T18:25:47.187713Z K 7 svn:log V 171 The i915 driver was the only consumer of locked task support. Now that it doesn't use it anymore, get right of the taskqueue and locked task support. MFC after: 2 weeks END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-02-25T18:44:50.853544Z K 7 svn:log V 193 This was part of a sync to the code that Intel is shipping in linux. - Remove the old TTM interface - Move register definitions to i915_reg.h - Overhaul the irq handler MFC after: 2 weeks END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-02-25T18:48:33.537869Z K 7 svn:log V 114 Add some vblank related debugging and replace the DRM_WAIT_ON macro with a localized version. MFC after: 2 weeks END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-02-25T18:50:35.648885Z K 7 svn:log V 63 Prepare the radeon driver for MSI support. MFC after: 2 weeks END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-02-25T18:54:35.195683Z K 7 svn:log V 158 Turn on MSI if the card supports it. There is a blacklist for chips which report that they are capable of MSI, but don't work correctly. MFC after: 2 weeks END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-02-25T18:56:49.397473Z K 7 svn:log V 40 Remove D_NEEDGIANT. MFC after: 2 weeks END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-02-25T20:24:13.049456Z K 7 svn:log V 90 The GM45 handles vblank differently. Pull the changes from Intel in. MFC after: 2 Weeks END K 10 svn:author V 4 jkim K 8 svn:date V 27 2009-02-25T20:26:48.906643Z K 7 svn:log V 221 Enable support for PAT_WRITE_PROTECTED and PAT_UNCACHED cache modes unconditionally on amd64. On i386, we assume PAT is usable if the CPU vendor is not Intel or CPU model is newer than Pentium IV. Reviewed by: alc, jhb END K 10 svn:author V 6 emaste K 8 svn:date V 27 2009-02-25T20:56:27.653256Z K 7 svn:log V 93 MFC r177490 - diff reduction w/ head. Use linker set to collection all target operations. END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2009-02-25T22:24:56.331568Z K 7 svn:log V 33 Fix typo in comments in r189023. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2009-02-26T03:36:10.834716Z K 7 svn:log V 93 MFC r177490 - diff reduction w/ head. Use linker set to collection all target operations. END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-26T06:16:15.273232Z K 7 svn:log V 24 add more gpio registers END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-26T10:14:10.022838Z K 7 svn:log V 228 Don't use PTY name as format string, even though it isn't insecure here. It's guaranteed that the `name' variable always contains a string of the form pty[l‐sL‐S][0‐9a‐v], but I'd rather keep the compiler happy (LLVM). END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-26T10:28:32.372149Z K 7 svn:log V 66 Use unsigned longs for the TTY's sysctl stats. Spotted by: clang END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-26T10:38:19.546874Z K 7 svn:log V 113 Silence compiler warning inside our ^T handler. It turns out we're casting fixpt_t* to int*. Spotted by: clang END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-26T10:56:13.786305Z K 7 svn:log V 408 Add static tracing for privilege checking: priv:kernel:priv_check:priv_ok fires for granted privileges priv:kernel:priv_check:priv_errr fires for denied privileges The first argument is the requested privilege number. The naming convention is a little different from the OpenSolaris equivilent because we can't have '-' in probefunc names, and our privilege namespace is different. MFC after: 1 week END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-26T12:02:38.811641Z K 7 svn:log V 122 Remove unneeded variable assignment. The ts variable is always initialized a few lines below. Found by: LLVM scan-build END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-26T12:06:46.616209Z K 7 svn:log V 113 Remove redundant assignment of `s'. The variable is already initialized to `nptr'. Found by: LLVM's scan-build END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-26T12:12:34.118347Z K 7 svn:log V 192 Remove redundant assignment of `p'. `p' is already initialized with `td->td_proc'. Because td is always curthread, it is safe to initialize it without any locks. Found by: LLVM's scan-build END K 10 svn:author V 3 avg K 8 svn:date V 27 2009-02-26T12:33:02.547379Z K 7 svn:log V 359 udf_strategy: tiny optimization of logic, calculations; extra diagnostics Use bit-shift instead of division/multiplication. Act on error as soon as it is detected. Report attempt to read data embedded in file entry via regular way. While there, fix lblktosize macro and make use of it. No functionality should change as a result. Approved by: jhb (mentor) END K 10 svn:author V 3 avg K 8 svn:date V 27 2009-02-26T12:33:12.240434Z K 7 svn:log V 233 udf_read: correctly read data from files with data embedded into fentry, ... as opposed to files with data in extents. Some UDF authoring tools produce this type of file for sufficiently small data files. Approved by: jhb (mentor) END K 10 svn:author V 3 avg K 8 svn:date V 27 2009-02-26T12:33:17.276045Z K 7 svn:log V 189 udf_map: return proper error code instead of leaking an internal one Incidentally this also allows for small files with data embedded into fentry to be mmap-ed. Approved by: jhb (mentor) END K 10 svn:author V 3 avg K 8 svn:date V 27 2009-02-26T12:33:22.838530Z K 7 svn:log V 96 udf: add read-ahead support modeled after cd9660 Reviewed by: scottl Approved by: jhb (mentor) END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-26T13:00:13.707607Z K 7 svn:log V 93 Remove unused variables `p' and unneeded assignments of `rval'. Found by: LLVM's scan-build END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-26T13:01:45.451833Z K 7 svn:log V 66 Remove unneeded variable `ocn_mute'. Found by: LLVM's scan-build END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-26T14:32:14.341378Z K 7 svn:log V 190 Don't throw away upper 32-bits of the HT MSI address window. In practice this is harmless since the address window for MSI on x86 is in the lower 4 GB. Submitted by: mav MFC after: 1 week END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-26T15:51:54.433552Z K 7 svn:log V 803 Remove even more unneeded variable assignments. kern_time.c: - Unused variable `p'. kern_thr.c: - Variable `error' is always caught immediately, so no reason to initialize it. There is no way that error != 0 at the end of create_thread(). kern_sig.c: - Unused variable `code'. kern_synch.c: - `rval' is always assigned in all different cases. kern_rwlock.c: - `v' is always overwritten with RW_UNLOCKED further on. kern_malloc.c: - `size' is always initialized with the proper value before being used. kern_exit.c: - `error' is always caught and returned immediately. abort2() never returns a non-zero value. kern_exec.c: - `len' is always assigned inside the if-statement right below it. tty_info.c: - `td' is always overwritten by FOREACH_THREAD_IN_PROC(). Found by: LLVM's scan-build END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-26T15:59:22.217587Z K 7 svn:log V 255 MFC: Add support for "superpages" on amd64 and i386. This includes adding the superpage reservation system to the machine-independent VM system as well as changes to the pmap code for amd64 and i386 to support superpages. Reviewed by: alc Tested by: ps END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-26T16:32:48.961480Z K 7 svn:log V 255 Remove unneeded pointer `ndp'. Inside do_execve(), we have a pointer `ndp', which always points to `&nd'. I can imagine a primitive (non-optimizing) compiler to really reserve space for such a pointer, so just remove the variable and use `&nd' directly. END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2009-02-26T17:46:54.450446Z K 7 svn:log V 203 Add a missing parameter to ruserpass(). According to C99 6.9.1p7 K&R function is not a prototype but this is a bad style. GCC accepts this other compilers warn or reject this. Approved by: kib (mentor) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2009-02-26T18:01:07.209240Z K 7 svn:log V 703 [1] When showing threads, the thread name just appears if the comm label is choosen as last printout (ucomm suffers of this such bug too). That bug is caused by the fact that the fixed size of printout doesn't leave enough space for them to be printed out. Implement ucomm and comm commands with a dynamic size lenght for buffers. [2] On AMD64 architecture pointers don't have enough chars space to be shown (8 chars while they need 16). Fix them by providing a variadic space so that it fits well on both 64 and 32 bits architectures. [3] Check a return value of malloc() that wasn't checked before. PR: bin/128841, bin/128842 Reviewed by: jhb, emaste Sponsored by: Sandvine Incorporated END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-26T18:46:22.018936Z K 7 svn:log V 41 MFC: Sort getopt options alphabetically. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-26T18:54:24.837645Z K 7 svn:log V 141 MFC: Add a new ioctl to fetch details about an individual BAR of a device and add support for displaying BAR details via a new pciconf flag. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-26T18:55:55.443335Z K 7 svn:log V 66 MFC: Don't clear the attribute cache of a file when it is closed. END K 10 svn:author V 3 avg K 8 svn:date V 27 2009-02-26T18:58:41.093244Z K 7 svn:log V 637 udf_readatoffset: read through directory vnode, do not read > MAXBSIZE Currently bread()-ing through device vnode with (1) VMIO enabled, (2) bo_bsize != DEV_BSIZE (3) more than 1 block results in data being incorrectly cached. So instead a more common approach of using a vnode belonging to fs is now employed. Also, prevent attempt to bread more than MAXBSIZE bytes because of adjustments made to account for offset that doesn't start on block boundary. Add expanded comments to explain the calculations. Also drop unused inline function while here. PR: kern/120967 PR: kern/129084 Reviewed by: scottl, kib Approved by: jhb (mentor) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-26T19:08:24.859717Z K 7 svn:log V 66 MFC: Don't clear the attribute cache of a file when it is closed. END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-26T19:44:52.051354Z K 7 svn:log V 115 add updatep[12] that grok the partitioning we use and use gpart instead of boot0cfg to switch the active partition END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-26T19:47:11.295144Z K 7 svn:log V 58 use mii instead of miibus to not pull in useless phy code END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-02-26T20:00:14.707327Z K 7 svn:log V 202 Add MSI blacklisting support. Disable MSI for nVidia MCP51 controller. Enabling MSI there leads to unexpected errors and timeouts, that should not happen even if interrupts are not working completely. END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-26T20:32:11.944666Z K 7 svn:log V 322 Use ANSI function declarations in librpcsvc. When compiling librpcsvc with LLVM, we get a compiler error, because hexval() uses an ANSI prototype, but a K&R declaration. I could have just changed hexval(), but I'd rather keep this consistent. It's not that much code. Submitted by: Pawel Worach END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-26T20:38:37.505062Z K 7 svn:log V 137 MFC: Add a stub for pmap_align_superpage() on machines that don't (yet) implement pmap-level support for superpages. Pointy hat to: jhb END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-26T20:54:43.425811Z K 7 svn:log V 240 Allow the old usb stack to compile by adding the appropriate -I foo, this must go before the standard -I$S to have the search happen before /sys/. Make this conditional on 'makeoptions WITH_LEGACY=1' in the kernel config. Prodded by: sam END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-26T20:59:05.814762Z K 7 svn:log V 128 Fix LLVM compiler errors related to K&R declarations with ANSI prototypes. Submitted by: Pawel Worach END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-02-26T21:33:48.962825Z K 7 svn:log V 435 Remove direct ata_completed() call options from ata_finish(), except for the kernel dumping case. ata_completed() may initiate ata_reinit() on error, that may lead to drives attach or detach. Attach and detach are sending requests to drives and sleep waiting for results. But ata_finish() can be called directly from interrupt handler where sleeping is prohibited, so we must break this chain somewhere. This place seems to fit best. END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-26T21:43:15.363933Z K 7 svn:log V 485 Rename all symbols in libmp(3) to mp_*, just like Solaris. The function pow() in libmp(3) clashes with pow(3) in libm. We could rename this single function, but we can just take the same approach as the Solaris folks did, which is to prefix all function names with mp_. libmp(3) isn't really popular nowadays. I suspect not a single application in ports depends on it. There's still a chance, so I've increased the SHLIB_MAJOR and __FreeBSD_version. Reviewed by: deischen, rdivacky END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-02-26T22:26:07.453703Z K 7 svn:log V 100 Restore mtx_lock() call on ata_timeout(), dropped (I think accidentally) during commit 3 years ago. END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-02-26T23:07:40.928585Z K 7 svn:log V 109 Unhide IDENTIFY command timeouts when verbose messages enabled. I think it should be suitable for debugging. END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-02-26T23:21:32.456945Z K 7 svn:log V 134 Rollback rev. 189093. mtx_lock() is not needed there as callout initialized with callout_init_mtx(). Sorry. Submitted by: Ian Dowse END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-02-27T00:31:34.169201Z K 7 svn:log V 303 Replace clone_setcallback() with a new function clone_setdefcallback() that selects a callback from an interface prefix name. This allows us to report a meaningful error when the user types 'ifconfig wlan0 create', for example, and also kills some redundant code. Reviewed by: sam (earlier version) END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-27T05:22:00.595051Z K 7 svn:log V 10 fix build END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-27T05:22:11.345029Z K 7 svn:log V 10 fix build END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-02-27T06:01:42.937114Z K 7 svn:log V 94 Fix up some ioctl permissions issues long overlooked. Submitted by: jkim@ MFC after: 2 weeks END K 10 svn:author V 3 raj K 8 svn:date V 27 2009-02-27T12:08:24.819879Z K 7 svn:log V 702 Make Book-E debug register state part of the PCB context. Previously, DBCR0 flags were set "globally", but this leads to problems because Book-E fine grained debug settings work only in conjuction with the debug master enable bit in MSR: in scenarios when the DBCR0 was set with intention to debug one process, but another one with MSR[DE] set got scheduled, the latter would immediately cause debug exceptions to occur upon execution of its own code instructions (and not the one intended for debugging). To avoid such problems and properly handle debugging context, DBCR0 state should be managed individually per process. Submitted by: Grzegorz Bernacki gjb ! semihalf dot com Reviewed by: marcel END K 10 svn:author V 3 raj K 8 svn:date V 27 2009-02-27T12:18:17.461164Z K 7 svn:log V 89 Prefer register usage style to be more consistent with the rest of the trap_subr.S code. END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-27T12:50:25.931002Z K 7 svn:log V 221 Revert previous commit to subr_prf.c and make it more tidy. As mentioned by bz and bde, the change I made wasn't the proper way to fix. Inspired by bde's patch, perform some small cleanups to uprintf(). Reviewed by: bz END K 10 svn:author V 2 bz K 8 svn:date V 27 2009-02-27T13:22:26.371510Z K 7 svn:log V 52 Shuffle the vimage.h includes or add where missing. END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-27T13:28:54.610728Z K 7 svn:log V 291 Remove redundant code in printf() and vprintf(). printf() and vprintf() are exactly the same, except the way arguments are passed. Just like we see in other pieces of code (i.e. libc's printf()), implement printf() using vprintf(). Submitted by: Christoph Mallon END K 10 svn:author V 2 bz K 8 svn:date V 27 2009-02-27T13:29:18.125842Z K 7 svn:log V 69 Move the include of vinet.h further up before the ipfilter includes. END K 10 svn:author V 2 bz K 8 svn:date V 27 2009-02-27T14:12:05.093339Z K 7 svn:log V 541 For all files including net/vnet.h directly include opt_route.h and net/route.h. Remove the hidden include of opt_route.h and net/route.h from net/vnet.h. We need to make sure that both opt_route.h and net/route.h are included before net/vnet.h because of the way MRT figures out the number of FIBs from the kernel option. If we do not, we end up with the default number of 1 when including net/vnet.h and array sizes are wrong. This does not change the list of files which depend on opt_route.h but we can identify them now more easily. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-27T15:25:47.515306Z K 7 svn:log V 237 Catch up to the 6GB KVA changes. The original superpages patches on 7 were tested prior to the MFC of the 6GB KVA changes, and I failed to do an extra sanity check yesterday. This should fix the pmap_init() panics. Pointy hat to: jhb END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-27T15:30:42.628568Z K 7 svn:log V 100 Fix HID_COMPAT7 handling around the USB_GET_REPORT_DESC ioctl. Submitted by: daichi Pointy hat: me END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-27T16:01:40.278729Z K 7 svn:log V 87 Remove empty directory structure. Submitted by: Pawel Worach END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-27T17:27:16.044818Z K 7 svn:log V 479 Change USB over to make_dev() for all device nodes, previously it hooked into the devfs clone handler to open the (invisible) devices on the fly. The /dev entries are layed out as follows, /dev/usbctl = master device /dev/usb/0.1.0.5 = usb device, (...) /dev/ugen0.1 -> usb/0.1.0.0 = ugen link to ctrl endpoint This also removes the custom permissions model from USB. Bump __FreeBSD_version to 800066. Submitted by: rink (earlier version) END K 10 svn:author V 3 avg K 8 svn:date V 27 2009-02-27T17:29:31.366921Z K 7 svn:log V 197 udf_readatoffset: return correct size and data pointer for data in fentry This should help correct reading of directories with data located in fentry. Submitted by: bde Approved by: jhb (mentor) END K 10 svn:author V 3 avg K 8 svn:date V 27 2009-02-27T17:29:48.538555Z K 7 svn:log V 326 newfs_msdos: allow to work with media that doesn't have any CHS params Either use parameters provided by user or make them up. The code for faking CHS params is borrowed from disklabel code. The logic for using user-provided and auto-guessed parameters is not perfect, so to speak. PR: bin/121182 Approved by: jhb (mentor) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-27T17:32:49.935886Z K 7 svn:log V 36 Make a note about USB /dev changes. END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-27T19:20:57.527887Z K 7 svn:log V 35 add -HEAD to avoid build conflicts END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-27T19:21:35.197976Z K 7 svn:log V 76 o add -HEAD to avoid build conflicts o switch to a more common flash config END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-27T19:23:55.944702Z K 7 svn:log V 224 o enable PREEMPTION o turn off a bunch of stuff that's unlikely to be used o add flash support o use mii instead of miibus to save space o enable tdma support o configure legacy usb as usb2 works only on 2348 w/ 64M configs END K 10 svn:author V 7 davidch K 8 svn:date V 27 2009-02-27T19:25:06.794918Z K 7 svn:log V 157 - Update copyright to 2009. - Only enable split header operation when ZERO_COPY_SOCKETS is enabled in the kernel. Submitted by: davidch MFC after: 1 week END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-27T19:26:23.113111Z K 7 svn:log V 19 really enable usb1 END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-02-27T19:27:33.228673Z K 7 svn:log V 63 Merge rev. 188615, 188812 changes from old-USB to USB2 driver. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-27T20:00:15.176227Z K 7 svn:log V 221 - Hold a reference on the cdev a filesystem is mounted from in the mount. - Remove the cdev pointers from the denode and instead use the mountpoint's reference to call dev2udev() in getattr(). Reviewed by: kib, julian END K 10 svn:author V 3 rrs K 8 svn:date V 27 2009-02-27T20:54:45.899420Z K 7 svn:log V 355 Fix the add stream feature of strm-reset to really work: - Fix the copy, we can't do a blind copy but must transfer the data from the old to the new. - Fix the ACK processing so we properly stop retransmitting the thing. - Fix it so if we get a retran we will properly reply with the saved response without doing anything. MFC after: 1 month END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-27T21:00:24.944459Z K 7 svn:log V 19 sample 2348 config END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-27T21:14:29.502321Z K 7 svn:log V 186 Partial sync to //depot/projects/usb - Reissue the ctrl request on failure - Ensure Tx and ctrl requests are not interleaved - Add promisc callbacks Obtained from: Hans Petter Selasky END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-27T21:50:15.859451Z K 7 svn:log V 87 Remove ic_update_mcast calls that are not implemented. Spotted by: sam Pointy hat: me END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-27T22:12:15.162505Z K 7 svn:log V 230 Change the last references to PRIV_ROOT. /dev/usb used to be world writable so further root checks were needed, this isnt the case anymore but just change it to PRIV_DRIVER until it can be investigated later. Spotted by: rwatson END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-02-27T23:12:28.292619Z K 7 svn:log V 273 Move to new usb stack that puts the front-end bus attachments with the usb stack rather than with the rest of the processor support code. Not sure that's a good idea, as we were moving away from it, but this fixes the build in the mean time so we can have that discussion. END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-02-27T23:49:26.543446Z K 7 svn:log V 39 Copy/paste bug fix for previos commit. END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-02-27T23:50:55.932631Z K 7 svn:log V 97 Add a tuneable to allow disabling msi on drm at runtime. Suggested by: jhb@ MFC after: 2 weeks END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-28T01:05:18.476480Z K 7 svn:log V 19 MFH r187542-189128 END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-02-28T02:37:55.863555Z K 7 svn:log V 556 Initialize the vblank structures at load time. Previously we did this at irq install/uninstall time, but when we vt switch, we uninstall the irq handler. When the irq handler is reinstalled, the modeset ioctl happens first. The modeset ioctl is supposed to tell us that we can disable vblank interrupts if there are no active consumers. This will fail after a vt switch until another modeset ioctl is called via dpms or xrandr. Leading to cases where either interrupts are on and can't be disabled, or worse, no interrupts at all. MFC after: 2 weeks END K 10 svn:author V 3 das K 8 svn:date V 27 2009-02-28T04:58:18.611176Z K 7 svn:log V 151 Make sure %zd treats negative arguments properly on 32-bit platforms. Fix harmless but related bugs in %_$zd and %_$tu. PR: 131880 MFC after: 1 week END K 10 svn:author V 3 das K 8 svn:date V 27 2009-02-28T05:08:35.157351Z K 7 svn:log V 22 Mark memmem() __pure. END K 10 svn:author V 3 das K 8 svn:date V 27 2009-02-28T05:15:02.877835Z K 7 svn:log V 174 Add restrict qualifiers to the parameters to strlcpy() and strlcat(). The annotation mainly just serves as a hint that they're not intended for use with overlapping strings. END K 10 svn:author V 3 das K 8 svn:date V 27 2009-02-28T05:24:05.678848Z K 7 svn:log V 43 Add visibility constants for POSIX.1-2008. END K 10 svn:author V 3 das K 8 svn:date V 27 2009-02-28T05:47:41.701119Z K 7 svn:log V 79 Define a macro for POSIX.1-2008 here until a future groff import includes one. END K 10 svn:author V 3 das K 8 svn:date V 27 2009-02-28T06:00:58.694221Z K 7 svn:log V 386 - Add getdelim(), getline(), stpncpy(), strnlen(), wcsnlen(), wcscasecmp(), and wcsncasecmp(). - Make some previously non-standard extensions visible if POSIX_VISIBLE >= 200809. - Use restrict qualifiers in stpcpy(). - Declare off_t and size_t in stdio.h. - Bump __FreeBSD_version in case the new symbols (particularly getline()) cause issues with ports. Reviewed by: standards@ END K 10 svn:author V 3 das K 8 svn:date V 27 2009-02-28T06:05:37.713222Z K 7 svn:log V 67 Add restrict qualifiers. I missed this file in my previous commit. END K 10 svn:author V 3 das K 8 svn:date V 27 2009-02-28T06:06:57.660273Z K 7 svn:log V 68 Replace a dozen lines of code with a call to strnlen() / wcsnlen(). END K 10 svn:author V 3 das K 8 svn:date V 27 2009-02-28T06:27:23.673106Z K 7 svn:log V 39 Make `less -R' not crash all the time. END K 10 svn:author V 3 das K 8 svn:date V 27 2009-02-28T06:34:04.608022Z K 7 svn:log V 50 Tests for wcscasecmp(), wcsnlen(), and stpncpy(). END K 10 svn:author V 3 das K 8 svn:date V 27 2009-02-28T06:37:10.304039Z K 7 svn:log V 151 Add a file containing tests for simple format specifiers. Currently it only has tests for a few sign issues with integer formats, including PR 131880. END K 10 svn:author V 3 das K 8 svn:date V 27 2009-02-28T06:39:39.936667Z K 7 svn:log V 22 Tests for getdelim(). END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-28T10:10:30.034471Z K 7 svn:log V 333 Add missing POSIX 1003.1-2008 open(2) flag; O_TTY_INIT. On FreeBSD, this is the default behaviour. According to the spec, we may give this flag a value of zero, but I'd rather not do this. If we define it to a non-zero value, we can always change default behaviour without changing the ABI. This is very unlikely to happen, though. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T10:24:57.593550Z K 7 svn:log V 350 MFC r186184: Get rid of dead_sim. There is no way to make it work - any attempt to actually use it would panic on mtx operation, as dead_sim doesn't have a proper mutex. Even if it had a properly initialized mutex, it wouldn't have properly locked and owned one. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T10:27:46.538669Z K 7 svn:log V 534 MFC r186185: Add SIM refcounting. This is slightly different from what DragonFly does - in DragonFly, it's cam_sim_release() what actually frees the SIM; cam_sim_free does nothing more than calling cam_sim_release(). Here, we drain in cam_sim_free, waiting for refcount to drop to zero. We cannot do the same think DragonFly does, because after cam_sim_free returns, client would destroy the sim->mtx, and CAM would trip over an initialized mutex. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T10:29:55.357295Z K 7 svn:log V 181 MFC r186318: Move mtx_assert lower, when we can be sure that the pointer to the mutex is valid. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T10:33:00.198096Z K 7 svn:log V 131 MFC r186319: Periph driver fixes, second try. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T10:35:30.161786Z K 7 svn:log V 186 MFC r186320: Fix cam_sim_free() wakeup condition and add mtx_asserts. Submitted by: Christoph Mallon Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T10:38:32.336869Z K 7 svn:log V 333 MFC r186905: Make "kldunload atapicam" return EBUSY instead of deadlocking when a device created by atapicam is being kept opened or mounted. This is probably just a temporary solution until we invent something better. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Reported by: Jaakko Heinonen END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-28T10:40:37.766583Z K 7 svn:log V 100 Fix compilation of fstat. The udev should now be obtained from the dosmount instead of the denode. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T10:40:52.869100Z K 7 svn:log V 284 MFC r187028: Don't call destroy_dev(9) with a mutex held. While here, shuffle things around so the periph destructors look alike. Based on a patch by Jaakko Heinonen. Submitted by: Jaakko Heinonen Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T10:43:10.653461Z K 7 svn:log V 173 MFC r187243: Add missing 'break' statement. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 3927 END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-28T10:44:39.487315Z K 7 svn:log V 176 Remove PRIV_ROOT -- all system privileges must now be explicitly named in support of forthcoming work on a fine-grained privilege mechanism. Facilitated by: bz, thompsa, rink END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T10:45:31.904204Z K 7 svn:log V 166 MFC r187244: Remove unused variable. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 3665 END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T10:48:11.119321Z K 7 svn:log V 162 MFC r187245: Fix use after free. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 3712 END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T10:50:59.373463Z K 7 svn:log V 173 MFC r187247. Add missing 'break' statement. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 3667 END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T10:53:20.132044Z K 7 svn:log V 181 MFC r187649: Guard against NULL pointer dereference. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 130 END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T10:59:48.726063Z K 7 svn:log V 182 MFC r187650: Guard against NULL pointer dereference. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 1847 END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T11:03:24.049193Z K 7 svn:log V 178 MFC r187651: Don't leak memory when alloc fails. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 2908 END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T11:09:27.646253Z K 7 svn:log V 140 MFC r187652: Protect against NULL pointer dereference. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T11:11:38.450817Z K 7 svn:log V 155 MFC r188345: Remove an overzealous check. Submitted by: das Reviewed by: scottl Approved by: rwatson (mentor, implicit) Sponsored by: FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T11:16:57.754526Z K 7 svn:log V 346 MFC r186188: Implement g_vfs_orphan(). Without it, the filesystem never closes the device, which means refcount on periph drivers never drops, which means cam_sim_free() never returns, which results in umass sleeping there ad infinitum. Submitted by: pjd Reviewed by: scottl, pjd Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T11:19:02.607034Z K 7 svn:log V 197 MFC r187053: Prevent a panic that happens on SMP machines when removing a disk with many writes queued up. Reviewed by: phk, scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T11:20:37.510091Z K 7 svn:log V 90 MFC r188916: Fix a typo and add manpage links to geom(4). Approved by: rwatson (mentor) END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-02-28T11:22:09.510866Z K 7 svn:log V 77 MFC r188917: Mention disk_gone() in disk(9). Approved by: rwatson (mentor) END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-02-28T11:25:05.737539Z K 7 svn:log V 488 Rework device probing by moving ata_getparam() call from ata_identify() to drivers' probe routines. It allows not to sleep and so not drop Giant inside ata_identify() critical section and so avoid crash if it reentered on request timeout. Reentering of probe call checked inside of it. Give device own knowledge about it's type (ata/atapi/atapicam). It is not a good idea to ask channel status for device type inside ata_getparam(). Add softc memory deallocation on device destruction. END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-28T14:20:26.279182Z K 7 svn:log V 203 Replace bcopy() calls inside the TTY layer with memcpy()/strlcpy(). In all these cases the buffers never overlap. Program names are also likely to be shorter, so use a regular strlcpy() to copy p_comm. END K 10 svn:author V 3 das K 8 svn:date V 27 2009-02-28T15:53:36.931020Z K 7 svn:log V 220 Use getline() instead of fgets(). This enables nl(1) to handle arbitrarily long lines and embedded NULs. The new functionality is nugatory, but adding it is a simple way to improve the exposure of getline() in -CURRENT. END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-28T16:16:37.623670Z K 7 svn:log V 234 Fix compilation of newkey(8) with WITHOUT_NIS=yes. Increasing WARNS seems to have broken compilation of this utility. Instead of lowering WARNS, just fix to code to compile properly. Submitted by: Tested by: bms END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-28T16:21:25.334059Z K 7 svn:log V 471 Add memmove() to the kernel, making the kernel compile with Clang. When copying big structures, LLVM generates calls to memmove(), because it may not be able to figure out whether structures overlap. This caused linker errors to occur. memmove() is now implemented using bcopy(). Ideally it would be the other way around, but that can be solved in the future. On ARM we don't do add anything, because it already has memmove(). Discussed on: arch@ Reviewed by: rdivacky END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-28T17:01:55.957392Z K 7 svn:log V 191 As discussed with kib, make myself rdivacky's co-mentor. Roman is one of the LLVM guys, so I guess it would speed up the procedurs if I could just approve his work, to save some roundtrips. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-28T17:14:03.533742Z K 7 svn:log V 202 - Remove the usb interface number from the device nodes as it is not needed. - Do not recreate the device nodes in set_alt_interface as the endpoints do not change. Submitted by: Hans Petter Selasky END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-28T17:20:00.623772Z K 7 svn:log V 120 A couple of style nits in the last commit - unwrap short lines - move variable initialisation out of the declaration. END K 10 svn:author V 2 jb K 8 svn:date V 27 2009-02-28T17:53:23.358566Z K 7 svn:log V 4 MFC END K 10 svn:author V 2 jb K 8 svn:date V 27 2009-02-28T17:53:55.069569Z K 7 svn:log V 4 MFC END K 10 svn:author V 2 jb K 8 svn:date V 27 2009-02-28T17:54:25.888879Z K 7 svn:log V 4 MFC END K 10 svn:author V 2 jb K 8 svn:date V 27 2009-02-28T17:54:49.146732Z K 7 svn:log V 4 MFC END K 10 svn:author V 2 jb K 8 svn:date V 27 2009-02-28T17:54:59.368086Z K 7 svn:log V 4 MFC END K 10 svn:author V 2 jb K 8 svn:date V 27 2009-02-28T17:55:32.226077Z K 7 svn:log V 4 MFC END K 10 svn:author V 2 jb K 8 svn:date V 27 2009-02-28T17:56:11.321375Z K 7 svn:log V 4 MFC END K 10 svn:author V 2 jb K 8 svn:date V 27 2009-02-28T17:56:25.863057Z K 7 svn:log V 4 MFC END K 10 svn:author V 2 jb K 8 svn:date V 27 2009-02-28T17:57:08.953219Z K 7 svn:log V 4 MFC END K 10 svn:author V 2 jb K 8 svn:date V 27 2009-02-28T17:57:21.513901Z K 7 svn:log V 4 MFC END K 10 svn:author V 2 jb K 8 svn:date V 27 2009-02-28T17:57:45.740662Z K 7 svn:log V 4 MFC END K 10 svn:author V 2 jb K 8 svn:date V 27 2009-02-28T17:58:14.400669Z K 7 svn:log V 4 MFC END K 10 svn:author V 2 jb K 8 svn:date V 27 2009-02-28T17:58:25.138484Z K 7 svn:log V 4 MFC END