ƒ´^191231 177 1228 164 133 251 233 122 229 206 422 174 281 151 134 184 184 127 699 344 298 134 150 213 229 187 706 461 320 111 196 554 471 418 258 294 135 287 385 317 570 681 1236 127 1265 309 174 494 420 198 271 132 287 216 216 214 282 269 219 303 391 148 309 172 188 198 223 359 331 469 287 1226 649 499 216 353 508 662 168 230 487 145 235 220 625 338 793 394 180 174 136 168 204 279 250 175 512 181 512 181 186 380 167 167 155 176 292 311 247 221 184 189 325 247 227 515 409 132 122 115 158 158 315 292 315 173 209 460 150 215 246 168 177 554 226 464 268 858 2055 215 342 257 148 560 561 295 252 202 205 121 208 134 448 155 148 154 200 176 168 330 171 124 115 149 160 160 329 327 189 245 186 237 250 302 233 316 601 319 209 K 10 svn:author V 6 marius K 8 svn:date V 27 2009-04-17T23:22:06.629834Z K 7 svn:log V 1131 MFC: r191076 - Remove the second license as I'm also fine with the first one. - Remove redundant softc members for RIDs. - Change some softc members to be unsigned where more appropriate. - Add some missing const. - Remove support for mmap(2)'ing VGA I/O as it was broken [1] and not required by X.Org anyway. - Fix some confusion between bus, physical and virtual addresses which mostly consisted in using members of struct video_adapter inappropriately but wasn't fatal except for the regular framebuffer mmap(2)'ing. - Remove redundant bzero(9)'ing of the softc. - Don't map the framebuffer twice in case the firmware has already mapped it as besides wasting resources this isn't possible with all MMUs. This is a bit tricky as a) just because the firmware provides a property with a virtual address doesn't mean it's actually mapped (but typically is when the framebuffer is the console) and b) the firmware doesn't necessarily map it with the same byteorder as we do. This makes machfb(4) work on machines with cheetah-class MMUs (including X.Org). Reported by: Michael Plass [1] Approved by: re (kib) END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-04-17T23:33:30.018004Z K 7 svn:log V 71 Fix bug in event timeout handling Submitted by: mav MFC after: 3 days END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-04-18T03:02:44.667865Z K 7 svn:log V 41 Remove debug write accidentally left in. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-04-18T03:10:28.610500Z K 7 svn:log V 158 Establish the interrupt handler AFTER we successfully attach. We need to do this in case we have a shared interrupt that fires during the attach process.... END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2009-04-18T03:47:29.164754Z K 7 svn:log V 135 Correct and update the manpage to include more details about some of the formats and to briefly describe the mtree writing capability. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-04-18T04:21:04.568498Z K 7 svn:log V 30 This turns out to be wrong... END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-04-18T04:37:53.994365Z K 7 svn:log V 136 Add GVP NIC 2000P and New Media Livewire. Also New Media LanSurfer doesn't have a function type of network, so add a quirk for that... END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-04-18T04:45:02.939262Z K 7 svn:log V 113 Make sure that the data in the ROM with a valid signature isn't all 0's. At least one PC Card ASIC does this... END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2009-04-18T06:01:55.608276Z K 7 svn:log V 324 Libarchive is sprouting dependencies on libmd and libcrypto. Because crunchgen drops any repeated library (keeping only the first), the -lcrypto reference must be moved to after -larchive, not merely duplicated. I'm considering changing crunchgen's handling of duplicate libraries, but that's a rather more delicate issue. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2009-04-18T06:03:09.911370Z K 7 svn:log V 77 Make -lcrypto usage dependent on whether or not we're building with OpenSSL. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2009-04-18T06:06:47.055120Z K 7 svn:log V 183 Rely on OpenSSL bits only if we're building a system with OpenSSL. Also, adjust the MD5 calls to rely on libmd instead of libcrypto, so we keep MD5 support even in the !OpenSSL case. END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-04-18T07:36:38.076539Z K 7 svn:log V 60 Convert mlx(4) and mly(4) to si_drv1 instead of dev2unit(). END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-04-18T07:39:11.246871Z K 7 svn:log V 43 Remove unused SESUNIT() macro from ses(4). END K 10 svn:author V 5 edwin K 8 svn:date V 27 2009-04-18T11:50:11.695258Z K 7 svn:log V 90 MFC of tzdata2009f Correct DST information for Pakistan for 2009. Approved by: re (kip) END K 10 svn:author V 5 edwin K 8 svn:date V 27 2009-04-18T12:16:33.554936Z K 7 svn:log V 90 MFC of tzdata2009f Correct DST information for Pakistan for 2009. Approved by: re (kip) END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-04-18T15:59:09.810683Z K 7 svn:log V 35 allow NANO_CFGDIR to be overridden END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-04-18T16:14:03.124459Z K 7 svn:log V 606 Cleanups to prepare this code for wider use (likely merged into hostapd): o add (required) cmd line args to specify the set of ifnet's to monitor for WDS discovery msgs; "any" is a wildcard o change the default script run on wds vap create to the "null script" o auto-daemonize; add -f option to force foreground operation o add -P option for integration with rc.d (implementation missing, tba) o use syslog; default to log up to LOG_INFO, -t (terse) gives you up to LOG_ERR, and -v (verbose) gives you up to LOG_DEBUG o scan for existing vaps on startup to recover existing state o correct some types END K 10 svn:author V 4 lulf K 8 svn:date V 27 2009-04-18T16:36:27.985767Z K 7 svn:log V 250 - Remove assertion of topology lock remaining from 7.x gvinum. It is not needed, as the renaming only changes internal gvinum names and will not alter the geom topology. - The topology lock was not held when calling g_wither_geom after renaming. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-04-18T16:47:33.508021Z K 7 svn:log V 203 Use acl_alloc() and acl_free() instead of using uma(9) directly. This will make switching to malloc(9) easier; also, it would be neccessary to add these routines if/when we implement variable-size ACLs. END K 10 svn:author V 7 antoine K 8 svn:date V 27 2009-04-18T18:21:42.789530Z K 7 svn:log V 38 Add more obsolete files, usb related. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-18T20:09:43.068078Z K 7 svn:log V 54 Garbage collect man page reference to IFF_NEEDSGIANT. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-18T20:10:39.178764Z K 7 svn:log V 116 ifconfig(8) no longer needs to know how to print the IFF_NEEDSGIANT flag, since it shortly won't be defined at all. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-18T20:39:17.942773Z K 7 svn:log V 132 Remove IFF_NEEDSGIANT interface flag: we no longer provide ifnet-layer infrastructure to support non-MPSAFE network device drivers. END K 10 svn:author V 7 antoine K 8 svn:date V 27 2009-04-18T22:16:46.403753Z K 7 svn:log V 91 usbdevs(8) is not obsoleted, just temporarily disconnected from the build Noticed by: ru@ END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-04-19T00:16:04.277288Z K 7 svn:log V 611 - Import infrastructure for caching flows as a means of accelerating L3 and L2 lookups as well as providing stateful load balancing when used with RADIX_MPATH. - Currently compiled in to i386 and amd64 but disabled by default, it can be enabled at runtime with 'sysctl net.inet.flowtable.enable=1'. - Embedded users can remove it entirely from the kernel by adding 'nooption FLOWTABLE' to their kernel config files. - A minimal hookup will be added to ip_output in a subsequent commit. I would like to see more review before bringing in changes that require more churn. Supported by: Bitgravity Inc. END K 10 svn:author V 3 alc K 8 svn:date V 27 2009-04-19T00:34:34.696961Z K 7 svn:log V 368 Allow valid pages to be mapped for read access when they have a non-zero busy count. Only mappings that allow write access should be prevented by a non-zero busy count. (The prohibition on mapping pages for read access when they have a non- zero busy count originated in revision 1.202 of i386/i386/pmap.c when this code was a part of the pmap.) Reviewed by: tegge END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-04-19T04:24:56.958531Z K 7 svn:log V 225 - put larger flowtable members at the end - fix bug where tail pointer of the free list would not get advanced - clear entry's next pointer when it is added to the freelist to avoid freeing an entry that it still points to END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-04-19T04:39:42.542340Z K 7 svn:log V 17 update TODO list END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-04-19T04:44:05.780245Z K 7 svn:log V 101 - Allocate a small flowtable in ip_input.c (changeable by tuneable) - Use for accelerating ip_output END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-04-19T05:34:07.359625Z K 7 svn:log V 461 When verifying '..' after VFS_VGET() in ufs_lookup(), do not return error if '..' is still there but changed between lookup and check. Start relookup instead. Rename is supposed to change '..' reference atomically, so transient failures introduced by r191137 are wrong. While rearranging the code to allow lookup restart in ufs_lookup(), remove the comment that only distracts the reader. Noted and reviewed by: tegge Also reported by: pho MFC after: 1 month END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2009-04-19T06:30:00.944983Z K 7 svn:log V 370 Fix a typo in the SRR1 comparison for program exceptions. While here, replace magic numbers with constants to keep this from happening again. Without this fix, some programs would occasionally get SIGTRAP instead of SIGILL on an illegal instruction. This affected Altivec detection in pixman, and possibly other software. Reported by: Andreas Tobler MFC after: 1 week END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2009-04-19T06:59:12.626818Z K 7 svn:log V 320 When compiled for the release crunches, be a bit more selective about what libarchive features we pull in: * No compression support * Only cpio and ustar writing * Only cpio and tar/pax readers This reduces a statically linked, stripped binary from 900k to 680k and completely eliminates the dependency on libcrypto. END K 10 svn:author V 3 alc K 8 svn:date V 27 2009-04-19T07:18:08.409430Z K 7 svn:log V 165 Calling pmap_clear_modify() after calling pmap_remove_write() is pointless. The latter function already clears the modified status from each of the page's mappings. END K 10 svn:author V 3 bms K 8 svn:date V 27 2009-04-19T08:14:21.219978Z K 7 svn:log V 201 Now that IFF_NEEDSGIANT has been removed from the network stack, catch up with this in IGMPv3 and remove dead code. This has the side-effect of not being back-portable to RELENG_7 w/o further changes. END K 10 svn:author V 8 blackend K 8 svn:date V 27 2009-04-19T08:31:55.158104Z K 7 svn:log V 38 Add docs category. MFC after: 3 days END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-04-19T09:56:30.807624Z K 7 svn:log V 192 When allocating 'struct acl' instances, use malloc(9) instead of uma(9). This struct will get much bigger soon, and we don't want to waste too much memory on UMA caches. Reviewed by: rwatson END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T11:20:57.337053Z K 7 svn:log V 288 Garbage collect now-unused struct malloc_type fields, bump __FreeBSD_version as kernel modules will need to be rebuilt. These fields existed to support binary compatibility with kernel modules from before the introduction of libmemstat(3) in FreeBSD 6.x, so they are no longer required. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T12:41:37.502183Z K 7 svn:log V 220 struct malloc_type has had a 'magic' field statically initialized to M_MAGIC by MALLOC_DEFINE() for a long time; add assertions that malloc_type's passed to malloc(), free(), etc have that magic set. MFC after: 2 weeks END K 10 svn:author V 7 dchagin K 8 svn:date V 27 2009-04-19T13:48:42.957487Z K 7 svn:log V 473 Remove support for FUTEX_REQUEUE operation. Glibc does not use this operation since 2.3.3 version (Jun 2004), as it is racy and replaced by FUTEX_CMP_REQUEUE operation. Glibc versions prior to 2.3.3 fall back to FUTEX_WAKE when FUTEX_REQUEUE returned EINVAL. Any application directly using FUTEX_REQUEUE without return value checking are definitely broken. Limit quantity of messages per process about unsupported operation. Approved by: kib (mentor) MFC after: 1 month END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T14:53:17.325786Z K 7 svn:log V 584 Merge OpenBSM 1.1 changes to the FreeBSD 8.x kernel: - Add and use mapping of fcntl(2) commands to new BSM constant space. - Adopt (int) rather than (long) arguments to a number of auditon(2) commands, as has happened in Solaris, and add compatibility code to handle the old comments. Note that BSM_PF_IEEE80211 is partially but not fully removed, as the userspace OpenBSM 1.1alpha5 code still depends on it. Once userspace is updated, I'll GCC the kernel constant. MFC after: 2 weeks Sponsored by: Apple, Inc. Obtained from: TrustedBSD Project Portions submitted by: sson END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T15:18:16.567893Z K 7 svn:log V 1138 Vendor import of OpenBSM 1.1, which incorporates the following changes since the last imported OpenBSM release: OpenBSM 1.1 - Change auditon(2) parameters and data structures to be 32/64-bit architecture independent. Add more information to man page about auditon(2) parameters. - Add wrapper functions for auditon(2) to use legacy commands when the new commands are not supported. - Add default for 'expire-after' in audit_control to expire trail files when the audit directory is more than 10 megabytes ('10M'). - Interface to convert between local and BSM fcntl(2) command values has been added: au_bsm_to_fcntl_cmd(3) and au_fcntl_cmd_to_bsm(3), along with definitions of constants in audit_fcntl.h. - A bug, introduced in OpenBSM 1.1 alpha 4, in which AUT_RETURN32 tokens generated by audit_submit(3) were improperly encoded has been fixed. - Fix example in audit_submit(3) man page. Also, make it clear that we want the audit ID as the argument. - A new audit event class 'aa', for post-login authentication and authorization events, has been added. Obtained from: TrustedBSD Project Sponsored by: Apple, Inc. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T15:19:26.981494Z K 7 svn:log V 31 Tag OpenBSM 1.1 vendor import. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T16:17:13.332719Z K 7 svn:log V 1167 Merge OpenBSM 1.1 from OpenBSM vendor branch to head. OpenBSM history for imported revision below for reference. MFC after: 2 weeks Sponsored by: Apple, Inc. Obtained from: TrustedBSD Project OpenBSM 1.1 - Change auditon(2) parameters and data structures to be 32/64-bit architecture independent. Add more information to man page about auditon(2) parameters. - Add wrapper functions for auditon(2) to use legacy commands when the new commands are not supported. - Add default for 'expire-after' in audit_control to expire trail files when the audit directory is more than 10 megabytes ('10M'). - Interface to convert between local and BSM fcntl(2) command values has been added: au_bsm_to_fcntl_cmd(3) and au_fcntl_cmd_to_bsm(3), along with definitions of constants in audit_fcntl.h. - A bug, introduced in OpenBSM 1.1 alpha 4, in which AUT_RETURN32 tokens generated by audit_submit(3) were improperly encoded has been fixed. - Fix example in audit_submit(3) man page. Also, make it clear that we want the audit ID as the argument. - A new audit event class 'aa', for post-login authentication and authorization events, has been added. END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-04-19T16:54:33.318782Z K 7 svn:log V 212 Don't try to setup interrupts for drivers that don't support them. This causes sis and probably a couple of other driver to panic and fail. Tested by: cpghost PR: 133554 MFC after: 3 days END K 10 svn:author V 3 phk K 8 svn:date V 27 2009-04-19T18:23:23.531368Z K 7 svn:log V 82 A script for plucking packages and their runtime dependencies for nanobsd images. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T20:19:13.615419Z K 7 svn:log V 397 For each architecture, define CACHE_LINE_SHIFT and a derived CACHE_LINE_SIZE constant. These constants are intended to over-estimate the cache line size, and be used at compile-time when a run-time tuning alternative isn't appropriate or available. Defaults for all architectures are 64 bytes, except powerpc where it is 128 bytes (used on G5 systems). MFC after: 2 weeks Discussed on: arch@ END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-04-19T20:53:47.499866Z K 7 svn:log V 327 In both pageout oom handler and vm_daemon, acquire the reference to the vmspace of the examined process instead of directly accessing its vmspace, that may change. Also, as an optimization, check for P_INEXEC flag before examining the process. Reported and tested by: pho (previous version) Reviewed by: alc MFC after: 3 week END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T21:26:36.829074Z K 7 svn:log V 101 Add description and cautionary note regarding CACHE_LINE_SIZE. MFC after: 2 weeks Suggested by: alc END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T21:36:18.619981Z K 7 svn:log V 174 Lock the interface address list while iterating a network interface's address list when searching for a link-layer address to use during uuid generation. MFC after: 2 weeks END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2009-04-19T21:37:45.295498Z K 7 svn:log V 32 Build sound modules on PowerPC. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T22:01:38.066897Z K 7 svn:log V 190 Lock interface address list lock around ifaddr inserts and deletes in at_control(). This locking is not yet complete but should prevent some classes of race conditions. MFC after: 2 weeks END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2009-04-19T22:02:14.928628Z K 7 svn:log V 121 - Make mips_bus_space_generic be of type bus_space_tag_t instead of struct bus_space and update all relevant places. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T22:04:29.365162Z K 7 svn:log V 119 Lock interface address list when building a reply to NGM_EIFACE_GET_IFADDRS messages in ng_eiface. MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T22:05:39.429234Z K 7 svn:log V 117 Lock the interface address list while building replies to NGM_CISCO_COOKIE messages in ng_iface. MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T22:16:19.284168Z K 7 svn:log V 185 Protect against some writer-writer races in in_control() by acquiring the interface address list lock around interface address list modifications. More to do here. MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T22:25:09.680213Z K 7 svn:log V 172 Lock interface address lists in in_pcbladdr() when searching for a source address for a connection and there's no route or now interface for the route. MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T22:29:16.527884Z K 7 svn:log V 122 In divert_packet(), lock the interface address list before iterating over it in search of an address. MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T22:34:35.451006Z K 7 svn:log V 206 Lock the interface address list when searching for a matching interface by address, or when implementing 'me' rules on IPv6. Prefer the field name if_addrhead to the macro if_addrlist. MFC after: 2 weeks END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2009-04-19T22:56:35.130029Z K 7 svn:log V 296 - Handle byte-order issue for non-word accesses to memory mapped registers with ar71xx_bus_space_reversed. Note, that byte order of values is handled by drivers. bus_spaces fixes only position of register in word. - Replace .hints hack for AR71XX UART with ar71xx_bus_space_reversed. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2009-04-19T22:58:36.876620Z K 7 svn:log V 54 - Add EHCI controller driver for AR71XX-based boards. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T23:02:50.287437Z K 7 svn:log V 212 Now that the kernel defines CACHE_LINE_SIZE in machine/param.h, use that definition in the custom locking code for the run-time linker rather than local definitions. Pointed out by: tinderbox MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T23:03:57.590285Z K 7 svn:log V 76 Explicitly include machine/param.h for CACHE_LINE_SIZE. MFC after: 2 weeks END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2009-04-19T23:06:15.623905Z K 7 svn:log V 94 - Remove garbage debug output - ar71xx_bus_space_reversed is bus_space_tag_t, use it this way END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2009-04-19T23:08:23.561572Z K 7 svn:log V 103 - Expand memory window for apb to include OHCI memory region - Add hints for EHCI and OHCI controllers END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2009-04-19T23:15:04.932393Z K 7 svn:log V 128 - Enable USB and EHCI - Include if_arge to build - Add NFS root options - Disable pci ATM and add stubs for wifi adapter config END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T23:28:08.319663Z K 7 svn:log V 262 Temporarily relax the constraints on argument size checking for A_GETCOND; login(1) isn't quite ready for them yet on 64-bit systems as it continues to use the conventions of the old version of the API. Reported by: stas, Jakub Lach END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-19T23:34:22.108350Z K 7 svn:log V 234 Pass int arguments to auditon(2)'s A_GETCOND API rather than long arguments. This change should be MFC'd with OpenBSM 1.1 since they are interdependent. MFC after: 2 weeks Obtained from: TrustedBSD Project Sponsored by: Apple, Inc. END K 10 svn:author V 7 roberto K 8 svn:date V 27 2009-04-19T23:34:52.183489Z K 7 svn:log V 372 Prevent a buffer overflow in ntpq. Patch taken from the PR database after being committed to the official ntp tree and present in 4.2.4p7-rc2. It will be MFH to the upcoming 7.2 pending re approval. Obtained from: https://support.ntp.org/bugs/show_bug.cgi?id=1144 MFC after: 3 days Security: http://www.securityfocus.com/bid/34481 CVE-2009-0159 END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-04-20T01:19:59.253291Z K 7 svn:log V 194 Cleanup resource allocation code a bit. Store the rids on the resources rather than on the softc. When we allocate resources for PC Card, if we only get 16 ports, try again to get the others. END K 10 svn:author V 3 alc K 8 svn:date V 27 2009-04-20T03:44:54.841799Z K 7 svn:log V 1132 MFamd64/i386 Introduce pmap_try_insert_pv_entry(), a function that conditionally creates a pv entry if the number of entries is below the high water mark for pv entries. Introduce pmap_enter_quick_locked() and use it to reimplement pmap_enter_object(). The old implementation was broken. For example, it could block while holding a mutex lock. Change pmap_enter_quick_locked() to fail rather than wait if it is unable to allocate a page table page. This prevents a race between pmap_enter_object() and the page daemon. Specifically, an inactive page that is a successor to the page that was given to pmap_enter_quick_locked() might become a cache page while pmap_enter_quick_locked() waits and later pmap_enter_object() maps the cache page violating the invariant that cache pages are never mapped. Similarly, change pmap_enter_quick_locked() to call pmap_try_insert_pv_entry() rather than pmap_insert_entry(). Generally speaking, pmap_enter_quick_locked() is used to create speculative mappings. So, it should not try hard to allocate memory if free memory is scarce. Tested by: gonzo END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-04-20T07:13:04.546162Z K 7 svn:log V 552 For RTL8139C+ controllers, have controller handle padding short checksum offload frames. Software workaround used for broken controllers(RTL8169, RTL8168, RTL8168B) seem to cause watchdog timeouts on RTL8139C+. Introduce a new flag RL_FLAG_AUTOPAD to mark automatic padding feature of controller and set it for RTL8139C+ and controllers that use new descriptor format. This fixes watchdog timeouts seen on RTL8139C+. Reported by: Dimitri Rodis < DimitriR <> integritasystems dot com > Tested by: Dimitri Rodis < DimitriR <> integritasystems dot com > END K 10 svn:author V 7 roberto K 8 svn:date V 27 2009-04-20T09:59:08.101737Z K 7 svn:log V 402 Merge r191298 into HEAD. Prevent a buffer overflow in ntpq. Patch taken from the PR database after being committed to the official ntp tree and present in 4.2.4p7-rc2. It will be MFH to the upcoming 7.2 pending re approval. Obtained from: https://support.ntp.org/bugs/show_bug.cgi?id=1144 MFC after: 3 days Security: http://www.securityfocus.com/bid/34481 CVE-2009-0159 END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-20T10:35:50.607655Z K 7 svn:log V 119 Prefer to for the definition of CACHE_LINE_SIZE. Submitted by: bde MFC after: 2 weeks END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-04-20T10:40:42.304550Z K 7 svn:log V 261 Get rid of the device index number stored in the sa(4) unit number. The device index number stored in the unit number of sa(4) devices is only used to print debug messages. Get rid of this index number and use devtoname() to just print the entire device name. END K 10 svn:author V 2 bz K 8 svn:date V 27 2009-04-20T11:22:51.441412Z K 7 svn:log V 416 Back out r186308: in case of AF_LINK, which the kernel still returns for an RTAX_GATEWAY as an empty sockaddr_dl in the classic tun case. Copying the address into the message payload, but not the RTA_GATEWAY flag results in rt_xaddrs() in the kernel tripping over that and parsing the next attribute set with a flag, i.e. RTA_NETMASK, with the gateway address, resulting in bogus route entry. MFC after: 3 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2009-04-20T11:51:35.133654Z K 7 svn:log V 570 While we currently still seem to have a gateway address, for future stability, check for gw to be set before adding the flag and the address to the routing message. r186308, backed out in r191305, already tried to do that, and in addition ignore AF_LINK types of gateway addresses to work around a problem that r167797 had introduced on the kernel side always setting RTF_GATEWAY if a gateway address was passed into the kernel. The proper solution for this is still under discussion so I am hesitant to re-add the special AF_LINK treatment for now. MFC after: 3 days END K 10 svn:author V 3 raj K 8 svn:date V 27 2009-04-20T12:40:28.684030Z K 7 svn:log V 76 Provide locking for PowerPC interrupt sources config. Reviewed by: attilio END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-04-20T12:43:07.464686Z K 7 svn:log V 136 - Properly unlock mutex on failure in channel_trigger. Before this the function just returned with the mutex held. MFC after: 1 week END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-20T12:59:23.863053Z K 7 svn:log V 390 Don't conditionally define CACHE_LINE_SHIFT, as we anticipate sizing a fair number of static data structures, making this an unlikely option to try to change without also changing source code. [1] Change default cache line size on ia64, sparc64, and sun4v to 128 bytes, as this was what rtld-elf was already using on those platforms. [2] Suggested by: bde [1], jhb [2] MFC after: 2 weeks END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-04-20T13:15:25.581178Z K 7 svn:log V 52 - Unlock softc mutex on failure. MFC after: 1 week END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-20T13:45:39.406676Z K 7 svn:log V 138 In icmp_reflect(), acquire the inteface address list lock when searching for a source address to use. MFC after: 2 weeks Reviewed by: bz END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-04-20T13:53:40.331102Z K 7 svn:log V 125 Adjust route(4) manual page to remove rtm_use field, which was removed from the route.h some time ago. Reviewed by: rwatson END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-04-20T14:34:55.301903Z K 7 svn:log V 532 On the exit of the child process which parent either set SA_NOCLDWAIT or ignored SIGCHLD, unconditionally wake up the parent instead of doing this only when the child is a last child. This brings us in line with other U**xes that support SA_NOCLDWAIT. If the parent called waitpid(childpid), then exit of the child should wake up the parent immediately instead of forcing it to wait for all children to exit. Reported by: Alan Ferrency Submitted by: Jilles Tjoelker PR: 108390 MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-20T14:35:42.402717Z K 7 svn:log V 241 In ip_input(), cache the received mbuf's network interface in a local variable. Acquire the interface address list lock when iterating over the interface address list searching for a matching received broadcast address. MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-04-20T14:36:01.010530Z K 7 svn:log V 700 In ufs_checkpath(), recheck that '..' still points to the inode with the same inode number after VFS_VGET() and relock of the vp. If '..' changed, redo the lookup. To reduce code duplication, move the code to read '..' dirent into the static helper function ufs_dir_dd_ino(). Supply the source inode number as an argument to ufs_checkpath() instead of the source inode itself. The inode is unlocked, thus it might be reclaimed, causing accesses to the freed memory. Use vn_vget_ino() to get the '..' vnode by its inode number, instead of directly code VFS_VGET() and relock, to properly busy the mount point while vp lock is dropped. Noted and reviewed by: tegge Tested by: pho MFC after: 1 month END K 10 svn:author V 2 bz K 8 svn:date V 27 2009-04-20T14:38:48.190569Z K 7 svn:log V 302 Conditionally add the interface name and address if available so that a ppp running in `receiver' (server) mode can properly update routes, for example to update the MTU. Submitted by: loos.br gmail.com (Luiz Otavio O Souza) PR: bin/130159 PR: kern/125079, kern/122068, bin/126892 MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-20T14:41:23.858682Z K 7 svn:log V 84 Lock interface address lists before iterating over them in nd6. MFC after: 2 weeks END K 10 svn:author V 7 antoine K 8 svn:date V 27 2009-04-20T15:01:45.873923Z K 7 svn:log V 78 vlan(4) no longer depends on miibus(4). Reviewed by: jhb@ MFC after: 1 month END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-04-20T15:10:03.620274Z K 7 svn:log V 44 Fix typo. Noted by: jhb MFC after: 2 weeks END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-04-20T15:15:24.791512Z K 7 svn:log V 77 Make mse(4) use si_drv1, instead of using unit numbers. Discussed with: imp END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-04-20T15:19:54.792587Z K 7 svn:log V 111 Sometimes we can call ed_detach() before the mtx has been initialized. Avoid it if it hasn't been initialized. END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-04-20T15:47:06.770130Z K 7 svn:log V 185 - Give a warning and start the oscillator if it was not previously runned. - Rename ds1672 -> rtc to follow the other drivers. - Refactor/simplify the code a bit. MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-20T16:05:16.258746Z K 7 svn:log V 153 Close some but not all writer-writer races when maintaining IPv6 interface address lists by locking the interface address list lock. MFC after: 2 weeks END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-04-20T16:16:43.436992Z K 7 svn:log V 81 simplify code by removing bit_fns and replacing with the use of a temporary mask END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-04-20T16:55:48.787337Z K 7 svn:log V 418 MFC r191164 Prevent atkbd(4) interrupt handler from calling keyboard callback function when polled mode is enabled. This should help with duplicated/missing characters problem at mountroot, geli, etc. prompts on multi CPU systems while kbdmux(4) is enabled. Tested by: Tobias Grosser Tested by: Fabian Keil Approved by: re (kib) END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-04-20T16:57:43.738310Z K 7 svn:log V 88 MFC r191232 Fix bug in event timeout handling Submitted by: mav Approved by: re (kib) END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-04-20T17:09:53.244284Z K 7 svn:log V 418 MFC r191164 Prevent atkbd(4) interrupt handler from calling keyboard callback function when polled mode is enabled. This should help with duplicated/missing characters problem at mountroot, geli, etc. prompts on multi CPU systems while kbdmux(4) is enabled. Tested by: Tobias Grosser Tested by: Fabian Keil Approved by: re (kib) END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-04-20T17:11:21.950988Z K 7 svn:log V 88 MFC r191232 Fix bug in event timeout handling Submitted by: mav Approved by: re (kib) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-04-20T17:39:44.608656Z K 7 svn:log V 91 Add mesh names and call mesh attach/detach routines. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2009-04-20T18:19:38.628789Z K 7 svn:log V 282 Implement highlighting of today in month view of cal/ncal just like gnu cal does. This is currently disabled for year view because of hard coded padding in that case. This will hopefully be fixed soon. Reviewed by: Simon 'corecode' Schubert Approved by: ed END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-04-20T18:53:10.450222Z K 7 svn:log V 72 Use FreeBSD Foundation copyright. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-04-20T18:58:45.654348Z K 7 svn:log V 72 Use FreeBSD Foundation copyright. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-04-20T18:59:36.278540Z K 7 svn:log V 60 Add mesh_rcvd_mgmt(). Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-04-20T19:53:26.390703Z K 7 svn:log V 81 Implement setter/getter ioctl for mesh id. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-20T20:09:55.998432Z K 7 svn:log V 195 Prefer if_addrhead (FreeBSD) to if_addrlist (BSD compat) naming for the interface address list in if_stf.c. Acquire interface address list locks around address list access. MFC after: 2 months END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-20T21:05:37.002136Z K 7 svn:log V 214 Use TAILQ_FOREACH() and TAILQ_FOREACH_SAFE() rather than manually accessing queue(9) structure fields for if_addrhead. Prefer FreeBSD field name if_addrhead to compatibility macro if_addrlist. MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-20T21:37:46.776123Z K 7 svn:log V 150 Acquire interface address list lock around access to if_addrhead, closing several writer-writer races, and some read-write races. MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-20T22:40:44.306693Z K 7 svn:log V 124 Prefer actual field names (if_addrhead, ifa_link) to macros aliasing those field names in FreeBSD code. MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-20T22:41:19.392247Z K 7 svn:log V 88 Prefer ifa_link (structure field) to ifa_list (macro alias for it). MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-20T22:45:21.658941Z K 7 svn:log V 93 Prefer structure fields (ifa_link) to macro aliases for them (ifa_list). MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-20T22:56:34.003772Z K 7 svn:log V 228 Assert the interface address list lock in IFP_TO_IA6(), as it will iterate the interface address list. Marginally expand IF_ADDR_LOCK() coverage in mld6.c to make sure it's held when IFP_TO_IA6() is called. MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-20T23:23:31.475519Z K 7 svn:log V 150 Acquire address list lock before walking an interface's address list to identify possible jail addresses on it for IPv4 and IPv6. MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-20T23:25:38.024009Z K 7 svn:log V 130 Acquire interfce address list lock while walking the interface address list during tun device initialization. MFC after: 2 weeks END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-04-21T00:34:31.365877Z K 7 svn:log V 418 Clear IFF_DRV_OACTIVE flag if one of queued packets was transmitted. Previously it used to clear the flag only when the transmit queue is empty which may slow down Tx performance. While I'm here check whether driver is running and whether we can queue more packets in if_start handler. This fixes occasional watchdog timeouts. Reported by: xer < xernet <> hotmail dot it > Tested by: xer < xernet <> hotmail dot it > END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-04-21T00:42:11.942016Z K 7 svn:log V 312 To make it easy whether xl(4) missed Tx completion interrupt check number of queued packets in watchdog timeout handler. If there are no queued packets just print a informational message and return without resetting controller. Also fix to invoke correct Tx completion handler as 3C905B needs different handler. END K 10 svn:author V 8 takawata K 8 svn:date V 27 2009-04-21T05:06:31.780281Z K 7 svn:log V 35 Add another FTDI serial converter. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2009-04-21T07:22:12.909915Z K 7 svn:log V 28 Back out my previous change END K 10 svn:author V 3 bms K 8 svn:date V 27 2009-04-21T09:43:51.396765Z K 7 svn:log V 23 remove IFF_ASSERTGIANT END K 10 svn:author V 8 blackend K 8 svn:date V 27 2009-04-21T09:53:11.907055Z K 7 svn:log V 61 MFC: r191265 Add docs category. Approved by: re (kensmith) END K 10 svn:author V 8 blackend K 8 svn:date V 27 2009-04-21T09:55:17.316078Z K 7 svn:log V 61 MFC: r191265 Add docs category. Approved by: re (kensmith) END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2009-04-21T10:49:40.230018Z K 7 svn:log V 217 MFH r191302: Fix a buffer overflow. For reasons of stack alignment, it does not appear that this is exploitable on any systems FreeBSD runs on, so this will not be getting a security advisory. Approved by: re (kib) END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2009-04-21T10:51:22.107409Z K 7 svn:log V 194 MFH r191302: Fix a buffer overflow. For reasons of stack alignment, it does not appear that this is exploitable on any systems FreeBSD runs on, so this will not be getting a security advisory. END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2009-04-21T10:54:47.761988Z K 7 svn:log V 217 MFH r191302: Fix a buffer overflow. For reasons of stack alignment, it does not appear that this is exploitable on any systems FreeBSD runs on, so this will not be getting a security advisory. Approved by: re (kib) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-04-21T11:42:28.932995Z K 7 svn:log V 78 Enable MBSS mode (not yet implemented). Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-04-21T11:44:40.930793Z K 7 svn:log V 113 Implement meshid command and print the mesh id if the vap is a mesh point. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 bms K 8 svn:date V 27 2009-04-21T12:47:09.104751Z K 7 svn:log V 367 Bracket struct mfc and struct rtdetq with #ifdef _KERNEL. Match the bracketing in netstat. Since the cleanup of MROUTING, ports have broken because they expect to include without including . Fix breakage at source. The real fix, of course, is to fix the MROUTING APIs by blowing them away and replacing them with something else... END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-04-21T14:23:18.789074Z K 7 svn:log V 55 Make this build. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-04-21T15:54:17.312943Z K 7 svn:log V 119 Add a comment to make sure I don't forget to calculate RSSI more mesh neighbors. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-04-21T15:56:13.665223Z K 7 svn:log V 150 Move the ioctl processing code from ieee80211_ioctl.c to ieee80211_mesh.c because we are now using linker sets. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-04-21T16:25:18.173758Z K 7 svn:log V 73 Follow the last mesh ioctl rename. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-04-21T16:58:46.013207Z K 7 svn:log V 82 Add code to support MBSS in get80211mode(). Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 marcel K 8 svn:date V 27 2009-04-21T17:04:01.369110Z K 7 svn:log V 458 o Properly set ksym_start & ksym_end when options DDB is set. Include opt_ddb.h for that. Now you can actually boot with -d and set breakpoints using function names. o Make sure to include opt_msgbuf.h. o Carve out the first 1MB of physical memory. The MPC85xx has DMA problems with addresses below 1MB. Ideally busdma knows how to avoid allocating below 1MB for MPC85xx, but that requires a bit more work. For now, ignore the 1MB of DRAM. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2009-04-21T17:08:02.046585Z K 7 svn:log V 130 Lower VM_MAX_KERNEL_ADDRESS to 0xf8000000. We actually have devices below CCSRBAR_VA, which overlap with KVA if that's out limit. END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2009-04-21T17:44:46.501009Z K 7 svn:log V 366 Couple of changes based on feedback o Change mr/me to so/se [1]. o Introduce a -h option to disable highlighting. [2] o Spell STDOUT_FILENO as such and pass NULL to tgetent() to handle the case of unset TERM. [3] Suggested by: naddy mips.inka.de (Christian Weisgerber) [1] Requested by: danfe, deischen [2] Suggested by: jmallett [3] Approved by: ed (mentor) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-21T19:06:47.399032Z K 7 svn:log V 171 Acquire the interface address list lock over some iterations over if_addrhead. This closes some reader-writer races associated with the address list. MFC after: 2 weeks END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-04-21T19:14:13.525932Z K 7 svn:log V 764 Fix sbappendrecord_locked(). The main problem is that sbappendrecord_locked() relies on sbcompress() to set sb_mbtail. This will not happen if sbappendrecord_locked() is called with mbuf chain made of exactly one mbuf (i.e. m0->m_next == NULL). In this case sbcompress() will be called with m == NULL and will do nothing. I'm not entirely sure if m == NULL is a valid argument for sbcompress(), and, it rather pointless to call it like that, but keep calling it so it can do SBLASTMBUFCHK(). The problem is triggered by the SOCKBUF_DEBUG kernel option that enables SBLASTRECORDCHK() and SBLASTMBUFCHK() checks. PR: kern/126742 Investigated by: pluknet < pluknet -at- gmail -dot- com > No response from: freebsd-current@, freebsd-bluetooth@ MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-21T22:43:32.324296Z K 7 svn:log V 1957 Start to address a number of races relating to use of ifnet pointers after the corresponding interface has been destroyed: (1) Add an ifnet refcount, ifp->if_refcount. Initialize it to 1 in if_alloc(), and modify if_free_type() to decrement and check the refcount. (2) Add new if_ref() and if_rele() interfaces to allow kernel code walking global interface lists to release IFNET_[RW]LOCK() yet keep the ifnet stable. Currently, if_rele() is a no-op wrapper around if_free(), but this may change in the future. (3) Add new ifnet field, if_alloctype, which caches the type passed to if_alloc(), but unlike if_type, won't be changed by drivers. This allows asynchronous free's of the interface after the driver has released it to still use the right type. Use that instead of the type passed to if_free_type(), but assert that they are the same (might have to rethink this if that doesn't work out). (4) Add a new ifnet_byindex_ref(), which looks up an interface by index and returns a reference rather than a pointer to it. (5) Fix if_alloc() to fully initialize the if_addr_mtx before hooking up the ifnet to global lists. (6) Modify sysctls in if_mib.c to use ifnet_byindex_ref() and release the ifnet when done. When this change is MFC'd, it will need to replace if_ispare fields rather than adding new fields in order to avoid breaking the binary interface. Once this change is MFC'd, if_free_type() should be removed, as its 'type' argument is now optional. This refcount is not appropriate for counting mbuf pkthdr references, and also not for counting entry into the device driver via ifnet function pointers. An rmlock may be appropriate for the latter. Rather, this is about ensuring data structure stability when reaching an ifnet via global ifnet lists and tables followed by copy in or out of userspace. MFC after: 3 weeks Reported by: mdtancsa Reviewed by: brooks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-21T22:47:34.845144Z K 7 svn:log V 118 Bump __FreeBSD_version to 800082 to reflect the addition of if_refcount, if_ref(), and if_rele(). MFC after: 3 weeks END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-04-21T22:48:12.451983Z K 7 svn:log V 248 - Rename ds1672 and ds133x devices to "ds1672_rtc" and "ds133x_rtc" respectivly. This will allow one to have a kernel with both devices present and use it for multiple boards with different types of RTC sitting on a bus. Discussed with: imp END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-04-22T06:30:24.692688Z K 7 svn:log V 164 Turns out the code improvements I did for the TC5299J support were anti-improvements and broke support for this part. Revert the part of the improvement at fault. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-04-22T06:33:26.918890Z K 7 svn:log V 56 Kill stray bootverbose debug tool. Submitted by: juli@ END K 10 svn:author V 2 bz K 8 svn:date V 27 2009-04-22T08:22:16.123451Z K 7 svn:log V 468 MFC r191305: Back out r186308 (r191014 in stable/7): In case of AF_LINK, which the kernel still returns for an RTAX_GATEWAY as an empty sockaddr_dl in the classic tun case: copying the address into the message payload, but not the RTA_GATEWAY flag results in rt_xaddrs() in the kernel tripping over that and parsing the next attribute set with a flag, i.e. RTA_NETMASK, with the gateway address, resulting in bogus route entry. Approved by: re (kensmith) END K 10 svn:author V 2 bz K 8 svn:date V 27 2009-04-22T08:37:02.049294Z K 7 svn:log V 469 MFC r191305: Back out r186308 (r191014 in stable/7): In case of AF_LINK, which the kernel still returns for an RTAX_GATEWAY as an empty sockaddr_dl in the classic tun case: copying the address into the message payload, but not the RTA_GATEWAY flag results in rt_xaddrs() in the kernel tripping over that and parsing the next attribute set with a flag, i.e. RTA_NETMASK, with the gateway address, resulting in bogus route entry. Approved by: re (kensmith) END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-04-22T12:52:12.724460Z K 7 svn:log V 200 Turns out rtm_use does still exist, just under different name - for a long time (since 6.1) it was #defined as rtm_fmask. Update manual page. While here, sync some constants with what's in route.h. END K 10 svn:author V 3 raj K 8 svn:date V 27 2009-04-22T13:11:38.706019Z K 7 svn:log V 159 Centralize setting HID0/1 for E500. Rename HID defines which are specific to E500 rather than shared within Book-E family. Obtained from: Freescale, Semihalf END K 10 svn:author V 3 raj K 8 svn:date V 27 2009-04-22T13:13:34.993588Z K 7 svn:log V 109 Provide cpu_throw() for Book-E. Adjust cpu_switch() towards ULE support. Obtained from: Freescale, Semihalf END K 10 svn:author V 7 roberto K 8 svn:date V 27 2009-04-22T13:17:47.275194Z K 7 svn:log V 108 MFH of changeset r191200: Add an entry for the French macbook keyboard layout. Approved by: re (kensmith) END K 10 svn:author V 3 raj K 8 svn:date V 27 2009-04-22T13:18:04.251244Z K 7 svn:log V 29 Minor style consistency fix. END K 10 svn:author V 7 roberto K 8 svn:date V 27 2009-04-22T13:18:13.123845Z K 7 svn:log V 111 MFH of changeset r191200: Add an entry for the French macbook keyboard layout. Approved by: re (kensmith) END K 10 svn:author V 3 raj K 8 svn:date V 27 2009-04-22T13:31:52.444090Z K 7 svn:log V 42 Eliminate redundant setting of HID0_EMCP. END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2009-04-22T14:07:14.233738Z K 7 svn:log V 350 Don't leak information via uninitialized space in db(3) records. [09:07] Sanity-check string lengths in order to stop OpenSSL crashing when printing corrupt BMPString or UniversalString objects. [09:08] Security: FreeBSD-SA-09:07.libc Security: FreeBSD-SA-09:08.openssl Security: CVE-2009-0590 Approved by: re (kensmith) Approved by: so (cperciva) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-22T14:19:21.926525Z K 7 svn:log V 59 Exempt myself from size limit policy for pnet integration. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-22T14:20:21.207107Z K 7 svn:log V 52 Merge head/sys r186685-191380 to projects/pnet/sys. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-04-22T15:01:08.911219Z K 7 svn:log V 62 These were a placeholder and don't belong here. Remove them. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-04-22T15:11:27.048566Z K 7 svn:log V 107 Add AmbiCom AMB8002, AMB8010 (2 variants) and AMB8610. These were inferred from data in the linux driver. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-04-22T15:13:20.920297Z K 7 svn:log V 84 Add a few more models of AMBICOM cards from data from linux driver and pccard.conf. END K 10 svn:author V 3 raj K 8 svn:date V 27 2009-04-22T15:25:00.252373Z K 7 svn:log V 76 Provide manual page for the tsec(4) device driver. Obtained from: Semihalf END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-04-22T15:50:03.400466Z K 7 svn:log V 236 Implement low-level Bluetooth HCI API. This should make it easier to make Linux BlueZ libhci port. Reviewed by: Iain Hibbert < plunky -at- rya-online -dot- net > of NetBSD MFC after: 1 week Inspired by: Linux BlueZ Inspired by: NetBSD END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-04-22T15:54:27.820786Z K 7 svn:log V 78 Bump __FreeBSD_version. Add UPDATING entry about low-level Bluetooth HCI API. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-04-22T15:56:00.819758Z K 7 svn:log V 32 Add Billionton LNT-10TB variant END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-04-22T15:57:22.495042Z K 7 svn:log V 23 Add Billionton LNT10TB END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2009-04-22T16:06:46.245076Z K 7 svn:log V 49 Add bm(4) to the built-in ethernet devices list. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-04-22T16:50:44.815336Z K 7 svn:log V 68 A couple of older Melco cards that missed the transition to newcard END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-04-22T16:51:01.398705Z K 7 svn:log V 68 A couple of older Melco cards that missed the transition to newcard END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-04-22T17:07:53.443685Z K 7 svn:log V 232 MFp4 //depot/projects/usb@160413 Use direct reference to parent high-speed HUB instead of indirect, due to pointer clearing race at detach of parent USB HUB. Reported by: kientzle Submitted by: Hans Petter Selasky PR: usb/133545 END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-04-22T17:07:56.065563Z K 7 svn:log V 230 MFp4 //depot/projects/usb@160485 Fix a bug in the USB power daemon code where connection of multiple HUBs in series would result in incorrect device suspend. Reported by: Nicolas xxx@wanadoo.fr Submitted by: Hans Petter Selasky END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-04-22T17:07:59.127470Z K 7 svn:log V 93 MFp4 //depot/projects/usb@160614 Fix errornous printout. Submitted by: Hans Petter Selasky END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-04-22T17:08:04.684169Z K 7 svn:log V 148 MFp4 //depot/projects/usb@160655 Fix possible issue with clear-stall and set-config happening at the same time. Submitted by: Hans Petter Selasky END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-04-22T17:08:07.167141Z K 7 svn:log V 90 MFp4 //depot/projects/usb@160678 Remove unused field. Submitted by: Hans Petter Selasky END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-04-22T17:08:10.177818Z K 7 svn:log V 140 MFp4 //depot/projects/usb@160706 Resolve possible device side mode deadlock by creating another thread. Submitted by: Hans Petter Selasky END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-04-22T17:08:13.238915Z K 7 svn:log V 153 MFp4 //depot/projects/usb@160708 Need to check Read/Write allowed before writing any data for non-control transfers. Submitted by: Hans Petter Selasky END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-04-22T17:08:16.548340Z K 7 svn:log V 205 MFp4 //depot/projects/usb@160930 Change the roothub exec functions to take the usb request and data pointers directly rather than placing them on the parent bus struct. Submitted by: Hans Petter Selasky END K 10 svn:author V 2 bz K 8 svn:date V 27 2009-04-22T20:49:54.015086Z K 7 svn:log V 141 Correct a comment: the function name given had never existed in any (relevant) version of this file orany of my patches. MFC after: 1 month END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-04-22T20:58:23.274900Z K 7 svn:log V 219 Merge 191274. Don't try to setup interrupts for drivers that don't support them. This causes sis and probably a couple of other driver to panic and fail. Tested by: cpghost Approved by: re (kib) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-04-22T21:40:37.062222Z K 7 svn:log V 508 Adjust the way we number CPUs on x86 so that we attempt to "group" all logical CPUs in a package. We do this by numbering the non-boot CPUs by starting with the first CPU whose APIC ID is after the boot CPU and wrapping back around to APIC ID 0 if needed rather than always starting at APIC ID 0. While here, adjust the cpu_mp_announce() routine to list CPUs based on the mapping established by assign_cpu_ids() rather than making assumptions about the algorithm assign_cpu_ids() uses. MFC after: 1 month END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-04-22T21:50:32.552300Z K 7 svn:log V 222 Merge 191274. Don't try to setup interrupts for drivers that don't support them. This causes sis and probably a couple of other driver to panic and fail. Tested by: cpghost Approved by: re (kib) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-04-22T23:38:57.344945Z K 7 svn:log V 113 Add a default case switch for opmode. Use correct variable name tmpmeshid. Sponsored by: The FreeBSD Foundation END