ƒ³O144176 183 240 206 312 161 1002 395 106 1076 240 335 493 166 234 264 152 165 185 342 453 142 129 389 263 163 133 259 508 703 210 206 638 374 208 332 188 338 177 338 161 336 172 131 210 306 299 237 181 202 250 176 159 420 132 413 165 894 212 228 242 242 247 1277 187 231 549 204 171 388 136 189 327 148 465 258 109 149 251 382 218 159 316 146 220 240 173 228 163 167 155 254 268 154 152 212 178 281 171 188 197 172 219 198 153 111 186 262 278 189 458 270 419 234 197 225 168 331 356 124 354 565 373 228 255 257 321 341 147 190 112 138 110 164 125 197 171 137 173 171 259 161 132 311 884 423 312 286 533 216 364 283 337 302 274 641 3785 138 244 128 178 123 467 268 489 177 359 674 273 181 209 100 250 326 552 138 108 140 106 353 615 1021 236 389 285 K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-03-27T10:35:07.000000Z K 7 svn:log V 145 Argh. PCI resource list became an STAILQ instead of an SLIST. Try to deal with this while maintaining backards source compatibility with stable. END K 10 svn:author V 6 alfred K 8 svn:date V 27 2005-03-27T12:47:04.000000Z K 7 svn:log V 110 I've been working on this somewhat so I'm moving the parts I'm touching to be as style(9) compliant as I can. END K 10 svn:author V 6 alfred K 8 svn:date V 27 2005-03-27T12:53:25.000000Z K 7 svn:log V 216 When doing the initial open of the proc via procfs, complain if we are unable to open the /proc/pid/mem file. Otherwise doing a truss on a nonexistant pid makes us return success even though no such process exists. END K 10 svn:author V 3 des K 8 svn:date V 27 2005-03-27T13:44:00.000000Z K 7 svn:log V 69 Unstaticize config. It was being optimized away. MFC after: 3 days END K 10 svn:author V 6 nectar K 8 svn:date V 27 2005-03-27T13:59:44.000000Z K 7 svn:log V 906 When PAM support was added to rexecd in revision 1.29 (just prior to 5.0-RELEASE), a visually elusive bug was introduced. A comparison operator was changed to assignment. As a result, rexecd behaved always as if the `-i' option had been specified. It would allow root logins. This commit corrects the situation in the obvious way. A separate bug was introduced at the same time. The PAM library functions are called between the invocation of getpwnam(3) and the use of the returned static object. Since many PAM library functions result in additional getpwnam(3) calls, the contents of the returned static object could be changed from under rexecd. With this commit, getpwnam_r(3) is used instead. Other PAM-using applications should be reviewed for similar errors in getpw* usage. Security: rexecd's documented default policy of disallowing root logins was not enforced. Reviewed by: cperciva END K 10 svn:author V 7 iedowse K 8 svn:date V 27 2005-03-27T15:31:23.000000Z K 7 svn:log V 298 Don't defer the boot-time exploration of high-speed USB busses. This ensures that we explore EHCI busses before their companion controllers' busses, so that ports connected to full/low speed devices will be properly routed to the companion controllers by the time the OHCI/UHCI exploration occurs. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-03-27T15:57:42.000000Z K 7 svn:log V 14 Unbreak LINT. END K 10 svn:author V 3 mux K 8 svn:date V 27 2005-03-27T16:38:08.000000Z K 7 svn:log V 983 Fix a bunch of bugs I came accross when looking at the ixgb(4) driver, some of which are rather serious: - Use the device sysctl tree instead of rolling our own. - Don't create a bus_dmamap_t to pass to bus_dmamem_alloc(), it is bus_dmamem_alloc() that creates it itself. The DMA map created by the driver was overwritten and its memory was leaked. - Fix resource handling bugs in the error path of ixgb_dma_alloc(). - Don't use vtophys() to get the base address of the TX and RX rings when busdma already gave us the correct address to use! - Remove now useless includes and the alpha_XXX_dmamap() hack. - Don't initialize if_output to ether_output(), ether_ifattach() does it for us already. - Add proper module dependencies on ether and pci. Unfortunately, I'm not lucky enough to own an ixgb(4) card, nor a machine with a bus where to plug it in and I couldn't find anyone able to test these patches, so they are only build-tested and I won't MFC them for 5.4-RELEASE. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2005-03-27T16:51:55.000000Z K 7 svn:log V 143 Sync translation with my local work. This is essentially MFen 1.761.2.11 -> 1.829. Obtained from: The FreeBSD Simplified Chinese Project CVS END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-03-27T17:04:47.000000Z K 7 svn:log V 242 Unbreak style(9) breakage from last commit. We try to avoid defining variables in internal blocks. Also, go ahead and fail if we can't load the firmware. It should have failed like this, but never did (firmware loads generally don't fail). END K 10 svn:author V 7 delphij K 8 svn:date V 27 2005-03-27T17:11:14.000000Z K 7 svn:log V 396 Sync translation with my local work. This is essentially MFen of: - hardware/common/dev.sgml: 1.227.2.14 -> 1.227.2.24 - installation/common/install.sgml: 1.27 -> 1.27.2.2 - relnotes/common/new.sgml: 1.761.2.11 -> 1.761.2.37 Which has made Simplified Chinese translation in sync with RELENG_5 again. Obtained from: The FreeBSD Simplified Chinese Project CVS Approved by: re (blanket) END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2005-03-27T17:11:15.000000Z K 7 svn:log V 70 This commit was manufactured by cvs2svn to create branch 'RELENG_5_4'. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2005-03-27T17:20:30.000000Z K 7 svn:log V 137 MFen: Copyright Year Update - hardware/common/artheader.sgml: 1.5 -> 1.6 Obtained from: The FreeBSD Simplified Chinese Project CVS END K 10 svn:author V 7 delphij K 8 svn:date V 27 2005-03-27T17:21:29.000000Z K 7 svn:log V 167 MFen: Copyright Year Update - hardware/common/artheader.sgml: 1.5 -> 1.5.2.1 Obtained from: The FreeBSD Simplified Chinese Project CVS Approved by: re (blanket) END K 10 svn:author V 3 mux K 8 svn:date V 27 2005-03-27T17:22:41.000000Z K 7 svn:log V 60 Fix copy&paste error in my previous commit. Spotted by: ru END K 10 svn:author V 7 delphij K 8 svn:date V 27 2005-03-27T17:25:18.000000Z K 7 svn:log V 69 We usually say "to conform some standard" so I guess this is a typo. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-03-27T19:35:09.000000Z K 7 svn:log V 94 Fix AMD64 cross-builds when WITH_LIB32 is defined. (Initially spotted by kris@ on RELENG_5.) END K 10 svn:author V 3 njl K 8 svn:date V 27 2005-03-27T21:30:33.000000Z K 7 svn:log V 249 Serialize task queue by starting only one thread instead of three. This may help with various interdependencies between subsystems. More testing is needed to understand what the underlying issues are here. Tested by: Juho Vuori MFC after: 2 days END K 10 svn:author V 3 njl K 8 svn:date V 27 2005-03-27T21:44:21.000000Z K 7 svn:log V 360 Add the powernow driver, which handles AMD Mobile Athlon PowerNow! (k7) and AMD Cool&Quiet PowerNow! (k8) cpufreq control. This driver is enabled for both i386 and amd64 architectures. It has both acpi and legacy BIOS attachments. Thanks to Bruno Ducrot for writing this driver and Jung-uk Kim for testing. Submitted by: Bruno Ducrot (ducrot:poupinou.org) END K 10 svn:author V 3 njl K 8 svn:date V 27 2005-03-27T21:47:12.000000Z K 7 svn:log V 50 Hook powernow up to the build for i386 and amd64. END K 10 svn:author V 3 njl K 8 svn:date V 27 2005-03-27T21:50:30.000000Z K 7 svn:log V 37 Add powernow to kernel build target. END K 10 svn:author V 3 njl K 8 svn:date V 27 2005-03-27T22:38:28.000000Z K 7 svn:log V 296 Clean up resources properly if acpi_perf fails to attach. First, change acpi_bus_alloc_gas() to delete the resource it set if alloc fails. Then, change acpi_perf to delete the resource after releasing it if alloc fails. This should make probe and attach both fully restartable if either fails. END K 10 svn:author V 5 green K 8 svn:date V 27 2005-03-27T23:16:17.000000Z K 7 svn:log V 168 You must selwakeup{,pri}() when closing a selectable object or the td->td_sel will get trashed and crash the system. Fix BPF's mistake in this area. MFC after: 1 day END K 10 svn:author V 3 njl K 8 svn:date V 27 2005-03-28T00:24:11.000000Z K 7 svn:log V 71 Fix module build on amd64. There may be a cleaner way to do the .PATH END K 10 svn:author V 6 obrien K 8 svn:date V 27 2005-03-28T04:02:45.000000Z K 7 svn:log V 38 Note when 'stat' appeared in FreeBSD. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-03-28T08:57:07.000000Z K 7 svn:log V 161 The make_dev(9) functions no longer handle dev_ts, but struct cdevs. PR: 78172 Submitted by: "Wojciech A. Koszek" MFC after: 3 days END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T09:20:45.000000Z K 7 svn:log V 414 - Remove PDIRUNLOCK, it will soon be unused in every filesystems. The only case where filesystems legitimately need to unlock the directory vp is in the DOTDOT case, which we can explicitly check for in lookup(). Furthermore, allowing filesystems to unlock dvp can lead to lock order reversals in lookup() when we vrele the dvp while the child is still locked. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T09:24:50.000000Z K 7 svn:log V 609 - Get rid of PDIRUNLOCK, instead, we fixup the lock state immediately after calling VOP_LOOKUP(). Rather than having each filesystem check the LOCKPARENT flag, we simply check it once here and unlock as required. The only unusual case is ISDOTDOT, where we require an unlocked vnode on return. Relocking this vnode with the child locked is allowed since the child is actually its parent. - Add a few asserts for some unusual conditions that I do not believe can happen. These will later go away and turn into implementations for these conditions. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T09:25:25.000000Z K 7 svn:log V 116 - Adjust asserts in vop_lookup_post() to match the new post PDIRUNLOCK vfs. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T09:26:17.000000Z K 7 svn:log V 112 - We no longer have to bother with PDIRUNLOCK, lookup() handles it for us. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T09:29:58.000000Z K 7 svn:log V 544 - We no longer have to bother with PDIRUNLOCK, lookup() handles it for us. - Network filesystems are written with a special idiom that checks the cache first, and may even unlock dvp before discovering that a network round-trip is required to resolve the name. I believe dvp is prevented from being recycled even in the forced unmount case by the shared lock on the mount point. If not, this code should grow checks for VI_DOOMED after it relocks dvp or it will access NULL v_data fields. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T09:31:57.000000Z K 7 svn:log V 280 - We no longer have to bother with PDIRUNLOCK, lookup() handles it for us. - In the ISDOTDOT case we have to unlock the dvp before locking the child, if this fails we must relock dvp before returning an error. This was missing before. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T09:34:36.000000Z K 7 svn:log V 114 - We no longer have to bother with PDIRUNLOCK, lookup() handles it for us. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T09:35:58.000000Z K 7 svn:log V 238 - UFS no longer uses PDIRUNLOCK to track the parent state. Instead, we now rely on ufs to always leave the parent locked except in the ISDOTDOT case. Adjust asserts to deal with these changes. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-03-28T09:37:44.000000Z K 7 svn:log V 96 Properly return rule number. Submitted by: Wojciech A. Koszek PR: bin/79292 MFC after: 1 week END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T09:38:20.000000Z K 7 svn:log V 244 - ext2fs_lookup() is no longer responsible for unlocking the dvp, this is handled in vfs_lookup.c. This code was missing PDIRUNLOCK use prior to the removal of PDIRUNLOCK in rev 1.73 of vfs_lookup.c. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-03-28T09:38:43.000000Z K 7 svn:log V 85 Fix typo - link for bsde_add_rule(3) manual page was not created. MFC after: 1 week END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T09:40:59.000000Z K 7 svn:log V 244 - hpfs_lookup() is no longer responsible for unlocking the dvp, this is handled in vfs_lookup.c. This code was missing PDIRUNLOCK use prior to the removal of PDIRUNLOCK in rev 1.73 of vfs_lookup.c. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T09:41:25.000000Z K 7 svn:log V 68 - Fix the hpfs build, hpfs_hash.c was removed from the repository. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T09:46:33.000000Z K 7 svn:log V 242 - nwfs_lookup() is no longer responsible for unlocking the dvp, this is handled in vfs_lookup.c. This code was missing PDIRUNLOCK use prior to the removal of PDIRUNLOCK in rev 1.73 of vfs_lookup.c. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T10:00:58.000000Z K 7 svn:log V 79 - Remove the now-unused LK_REENABLE flag. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-03-28T10:28:57.000000Z K 7 svn:log V 34 Bump .Dd for the previous commit. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-03-28T10:59:19.000000Z K 7 svn:log V 113 Check that supplied facility is not bigger than LOG_NFACILITIES. PR: bin/79260 Submitted by: Shuichi KITAGUCHI END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T11:18:47.000000Z K 7 svn:log V 212 - Move code that should probably be an assert above the main body of vrele so that we can decrease the indentation of the real work and make things slightly more clear. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T11:31:20.000000Z K 7 svn:log V 205 - Fix the lockmgr flags so that external flags and internal flags are grouped together with room for each set to expand. This makes the external lock mask sane. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2005-03-28T12:29:35.000000Z K 7 svn:log V 142 MFC rev. 1.161 sys/netinet/in_pcb.c and rev. 1.43 share/man/man4/ip.4: document net.inet.ip.portrange.random* sysctls. Approved by: re (hrs) END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T12:52:10.000000Z K 7 svn:log V 88 - Don't bump the count twice in the LK_DRAIN case. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T12:52:46.000000Z K 7 svn:log V 108 - Rev 1.83 of kern_lock.c fixes the td_locks assert, reenable it here. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 8 gallatin K 8 svn:date V 27 2005-03-28T13:05:40.000000Z K 7 svn:log V 152 MFC: Zero the reserved fields of the header, as per rfc 2734. This change results in connectivty to MacOSX hosts via fwip. Approved by: re (kensmith) END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T13:29:15.000000Z K 7 svn:log V 83 - Remove unnecessary LOCKPARENT manipulation. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T13:29:48.000000Z K 7 svn:log V 66 - Remove an unused variable. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T13:39:16.000000Z K 7 svn:log V 326 - Don't panic if we can't lock a child in lookup, return an error instead. - Only unlock the directory if this is a DOTDOT lookup. Previously this code could have deadlocked if there was a DOTDOT lookup with LOCKPARENT set and another thread was locking the other way up the tree. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T13:45:09.000000Z K 7 svn:log V 39 - Garbage collect an unused variable. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T13:56:56.000000Z K 7 svn:log V 319 - Remove an unused variable from relookup(). - Assert that REMOVE, CREATE, and RENAME callers have WANTPARENT or LOCKPARENT set. You can't complete any of these operations without at least a reference to the parent. Many filesystems check for this case even though it isn't possible in the current system. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-28T14:26:01.000000Z K 7 svn:log V 72 - Correct the dprintf format int the _lookup routine. Spotted by: pjd END K 10 svn:author V 6 nectar K 8 svn:date V 27 2005-03-28T14:45:12.000000Z K 7 svn:log V 798 Correct a pair of buffer overflows in the telnet(1) command: (CAN-2005-0468) A heap buffer overflow in env_opt_add() and related functions. (CAN-2005-0469) A global uninitialized data section buffer overflow in slc_add_reply() and related functions. As a result of these vulnerabilities, it may be possible for a malicious telnet server or active network attacker to cause telnet(1) to execute arbitrary code with the privileges of the user running it. Security: CAN-2005-0468, CAN-2005-0469 Security: FreeBSD-SA-05:01.telnet Security: http://www.idefense.com/application/poi/display?id=220&type=vulnerabilities Security: http://www.idefense.com/application/poi/display?id=221&type=vulnerabilities These fixes are based in part on patches Submitted by: Solar Designer END K 10 svn:author V 6 nectar K 8 svn:date V 27 2005-03-28T15:46:58.000000Z K 7 svn:log V 116 MFC src/contrib/telnet/telnet.c 1.16: Correct buffer overflows in telnet(1). Security: CAN-2005-0468, CAN-2005-0469 END K 10 svn:author V 6 nectar K 8 svn:date V 27 2005-03-28T15:48:39.000000Z K 7 svn:log V 132 MFC src/contrib/telnet/telnet.c 1.16: Correct buffer overflows in telnet(1). Security: CAN-2005-0468, CAN-2005-0469 Approved by: re END K 10 svn:author V 6 nectar K 8 svn:date V 27 2005-03-28T15:50:17.000000Z K 7 svn:log V 146 MFC src/contrib/telnet/telnet.c 1.16: Correct buffer overflows in telnet(1). Security: CAN-2005-0468, CAN-2005-0469 Approved by: security-officer END K 10 svn:author V 6 nectar K 8 svn:date V 27 2005-03-28T15:58:28.000000Z K 7 svn:log V 146 MFC src/contrib/telnet/telnet.c 1.16: Correct buffer overflows in telnet(1). Security: CAN-2005-0468, CAN-2005-0469 Approved by: security-officer END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2005-03-28T16:05:33.000000Z K 7 svn:log V 151 MFC, if_re.c, rev. 1.41: ALTQ support for re(4). Submitted by: Chris Dionissopoulos, Theo Schlossnagle PR: kern/78681 Approved by: re (kensmith) END K 10 svn:author V 2 bz K 8 svn:date V 27 2005-03-28T16:21:16.000000Z K 7 svn:log V 1184 MFC if_sk.c rev. 1.99: * When adding/deleting multicast addresses, only whack the address filter if the interface is marked RUNNING. Obtained from: NetBSD if_sk.c rev. 1.12 * Don't initialize the card (and start an autonegotiation) every time the IP address changes. Makes 'dhclient sk0' invocations way faster and more consistant. i.e. one DHCPREQUEST elicits the DHCPACK. Obtained from: OpenBSD if_sk.c rev. 1.56 * Additional locking changes in sk_ioctl. MFC if_sk.c rev. 1.100, if_skreg.h rev. 1.26 * Improve chip identification. Obtained from: NetBSD if_sk.c rev. 1.11 * Take PHY out of reset for Yukon Lite Rev. A3. Submitted by: postings on net@ in thread "skc0: no PHY found", 2005-02-22 MFC if_sk.c rec. 1.102, if_skreg.h rev. 1.28 Do not try to free non allocated memory in error case. Do our best to plug some memory leaks (VPD data, jumbo memory buffer,...). Log if we cannot free because memory still in use. Change locking to avoid ''acquiring duplicate lock of same type: "network driver"'' and potential deadlock. Also seems to fix LOR #063. PR: kern/75677 Approved by: re (scottl) Approved by: rwatson (mentor) END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-03-28T16:49:27.000000Z K 7 svn:log V 93 Unbreak the build: correct the resource list traversal code for __FreeBSD_version >= 600022. END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-03-28T17:06:47.000000Z K 7 svn:log V 136 Spell '0' as 'FALSE' when initializing npp_validcounts. (Doesn't change the code, but emphasises that this field is used as a boolean.) END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-03-28T17:36:06.000000Z K 7 svn:log V 454 Tweak to hopefully make lookaside lists work on amd64: in Windows, the nll_obsoletelock field in the lookaside list structure is only defined for the i386 arch. For amd64, the field is gone, and different list update routines are used which do their locking internally. Apparently the Inprocomm amd64 driver uses lookaside lists. I'm not positive this will make it work yet since I don't have an Inprocomm NIC to test, but this needs to be fixed anyway. END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-28T17:49:03.000000Z K 7 svn:log V 111 fix null ptr deref when nge_newbuf is called with an existing mbuf Noticed by: Coverity Prevent analysis tool END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-28T17:52:12.000000Z K 7 svn:log V 79 check copyin/copyout return values Noticed by: Coverity Prevent analysis tool END K 10 svn:author V 6 obrien K 8 svn:date V 27 2005-03-28T18:06:44.000000Z K 7 svn:log V 292 Bring rev 1.31 to the AMD64 platform. This adds support for the SiS intergrated NIC on some Athlon64 motherboards. The MAC address is stored in the APC CMOS RAM and this fixes the sis driver ending up with a 00:00:00:00:00:00 MAC address. Submitted by: Stasys Smailys END K 10 svn:author V 6 obrien K 8 svn:date V 27 2005-03-28T18:18:44.000000Z K 7 svn:log V 41 Add directory hierarchy copying example. END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-28T18:31:18.000000Z K 7 svn:log V 97 check return value of gdb_rx_varhex Noticed by: Coverity Prevent analysis tool Reviewed by: kan END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-28T18:51:58.000000Z K 7 svn:log V 234 avoid potential null ptr deref by free'ing excess mbufs instead of zero'ing their length (copied from m_adj where this code came from after the equivalent change there has had time to soak) Noticed by: Coverity Prevent analysis tool END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-03-28T19:03:41.000000Z K 7 svn:log V 53 Fix compile error from last commit. Approved by: re END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-03-28T19:27:58.000000Z K 7 svn:log V 370 Fix another amd64 issue with lookaside lists: we initialize the alloc and free routine pointers in the lookaside list with pointers to ExAllocatePoolWithTag() and ExFreePool() (in the case where the driver does not provide its own alloc and free routines). For amd64, this is wrong: we have to use pointers to the wrapped versions of these functions, not the originals. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-03-28T19:52:31.000000Z K 7 svn:log V 165 MFC: Define mtx_assert() and friends if either INVARIANTS or INVARIANT_SUPPORT so that modules only need to define INVARIANTS to use it. Approved by: re (kensmith) END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-03-28T20:13:14.000000Z K 7 svn:log V 15 Fix for amd64. END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-03-28T20:16:26.000000Z K 7 svn:log V 55 Fix resource leak found by Coverity (via Sam Leffler). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-03-28T20:17:30.000000Z K 7 svn:log V 158 MFC: Simplify the optimizations for spinlocks on UP to just skip the atomic ops but still preserve mtx.mtx_lock and turn them on. Approved by: re (kensmith) END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-03-28T20:46:08.000000Z K 7 svn:log V 287 More additions for amd64: - On amd64, InterlockedPushEntrySList() and InterlockedPopEntrySList() are mapped to ExpInterlockedPushEntrySList and ExpInterlockedPopEntrySList() via macros (which do the same thing). Add IMPORT_FUNC_MAP()s for these. - Implement ExQueryDepthSList(). END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-03-28T21:09:00.000000Z K 7 svn:log V 123 Another Coverity fix from Sam: add NULL pointer test in NdisMFreeSharedMemory() (if the list is already empty, just bail). END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-03-28T21:48:15.000000Z K 7 svn:log V 65 Remove the last vestiges of the "wait for link down event" hack. END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-03-28T22:03:47.000000Z K 7 svn:log V 221 The filehandle allocated in NdisOpenFile() is allocated using ExAllocatePoolWithTag(), not malloc(), so it should be released with ExFreePool(), not free(). Fix a couple if instances of free(fh, ...) that got overlooked. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-03-28T22:11:58.000000Z K 7 svn:log V 54 bus is unused, so eliminate it. Minor style(9) tweaks END K 10 svn:author V 3 kan K 8 svn:date V 27 2005-03-28T22:21:45.000000Z K 7 svn:log V 127 Initialize iovlen variable to 0 before passing it by reference to the build_iovec function. Tripped over by: Craig Rodrigues END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-03-28T22:24:32.000000Z K 7 svn:log V 147 Change the Romania NTP server to point to a working server. Submitted by: Ion-Mihai Tetcu itetcu at people dot tecnik93 dot com MFC after: 3 days END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-29T01:10:46.000000Z K 7 svn:log V 81 eliminate extraneous null ptr checks Noticed by: Coverity Prevent analysis tool END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-29T01:26:27.000000Z K 7 svn:log V 135 check for malloc failure (also move malloc up to simplify error recovery) Noticed by: Coverity Prevent analysis tool Reviewed by: gnn END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-29T01:44:17.000000Z K 7 svn:log V 71 handle ciss_lookup failure Noticed by: Coverity Prevent analysis tool END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-29T01:44:59.000000Z K 7 svn:log V 75 fix potential null ptr deref Submitted by: Coverity Prevent analysis tool END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-29T01:46:25.000000Z K 7 svn:log V 63 plug resource leak Noticed by: Coverity Prevent analysis tool END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-29T01:48:21.000000Z K 7 svn:log V 161 handle malloc failure and don't proceed when the bios call to get parameters passed to malloc fails Noticed by: Coverity Prevent analysis tool (malloc failure) END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2005-03-29T04:57:32.000000Z K 7 svn:log V 170 MFC revision 1.105: If "dangerous" environment variables are used, then make sure the libraries loaded aren't on a noexec-mounted filesystem. Approved by: re (kensmith) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2005-03-29T05:24:08.000000Z K 7 svn:log V 57 Clean up the support for extracting very long pathnames. END K 10 svn:author V 3 das K 8 svn:date V 27 2005-03-29T07:24:34.000000Z K 7 svn:log V 60 MFC fenv.h,v 1.3: Work around a gcc bug. Approved by: re END K 10 svn:author V 3 das K 8 svn:date V 27 2005-03-29T07:24:35.000000Z K 7 svn:log V 119 MFC math.h,v 1.57: Add missing prototypes for fma() and fmaf(), and remove an inaccurate comment. Approved by: re END K 10 svn:author V 3 das K 8 svn:date V 27 2005-03-29T07:24:38.000000Z K 7 svn:log V 86 MFC entry.c,v 1.7: Don't write past the end of the VendorId field. Approved by: re END K 10 svn:author V 3 das K 8 svn:date V 27 2005-03-29T07:24:39.000000Z K 7 svn:log V 188 MFC npx.c,v 1.159 npx.h,v 1.28: Initialize the mxcsr properly, so the initial value in a process isn't just the value that was left over from some other application. Approved by: re END K 10 svn:author V 3 das K 8 svn:date V 27 2005-03-29T07:24:42.000000Z K 7 svn:log V 79 MFC gui_lib.c,v 1.4: Don't read past the end of pVDevice[]. Approved by: re END K 10 svn:author V 3 das K 8 svn:date V 27 2005-03-29T07:24:43.000000Z K 7 svn:log V 96 MFC mlx_pci.c,v 1.21: If mlx_attach() returns an error, don't free sc again. Approved by: re END K 10 svn:author V 3 das K 8 svn:date V 27 2005-03-29T07:24:45.000000Z K 7 svn:log V 104 MFC linux32_sysvec.c,v 1.7 exec.h,v 1.32: Make ps_nargvstr and ps_nenvstr unsigned. Approved by: re END K 10 svn:author V 3 das K 8 svn:date V 27 2005-03-29T07:24:46.000000Z K 7 svn:log V 80 MFC sys_process.c,v 1.130: Add missing cases for PT_SYSCALL. Approved by: re END K 10 svn:author V 3 das K 8 svn:date V 27 2005-03-29T07:24:48.000000Z K 7 svn:log V 126 MFC svr4_stream.c,v 1.53: Bounds check the user-supplied length used in a copyout() in svr4_do_getmsg(). Approved by: re END K 10 svn:author V 3 das K 8 svn:date V 27 2005-03-29T07:24:50.000000Z K 7 svn:log V 105 MFC proc.h,v 1.422 ffs_softdep.c,v 1.179: Avoid recursively processing the worklist. Approved by: re END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-03-29T08:13:01.000000Z K 7 svn:log V 61 Print name of device instead of useless major/minor numbers. END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-03-29T08:13:17.000000Z K 7 svn:log V 19 Privatize major(). END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-03-29T09:22:40.000000Z K 7 svn:log V 94 There's really no need to have this be #ifdef PC98, so remove one more of them from the tree. END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-03-29T09:56:21.000000Z K 7 svn:log V 169 Remove the global cdev hash and use the cdevsw list instead. Don't remove the now unused element from cdev yet, wait until we have a better reason to bump the version. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-29T09:58:41.000000Z K 7 svn:log V 184 - Invalidate the childrens v_dd pointers when we cache_purge() a directory. Otherwise the stale pointer may be accessed after a vnode is freed. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-29T09:59:34.000000Z K 7 svn:log V 96 - Don't initial v_dd here, let cache_purge() do it for us. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-29T10:02:48.000000Z K 7 svn:log V 364 - Dont clear OWEINACT in vbusy(), we still owe an inactive call if someone vhold()s us. - Avoid an extra mutex acquire and release in the common case of vgonel() by checking for OWEINACT at the start of the function. - Fix the case where we set OWEINACT in vput(). LK_EXCLUPGRADE drops our shared lock if it fails. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-29T10:04:25.000000Z K 7 svn:log V 176 - Add a lock flag to the component name so that namei() may request a shared lock. Filesystems are not required to honor this request. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-29T10:07:15.000000Z K 7 svn:log V 325 - Set cn_lkflags to LK_SHARED in the LOOKUP_SHARED case so that we only acquire shared locks on intermediate directories. - For the LASTCN, we may have to LK_UPGRADE the parent directory before we lookup the last component. - Acquire VFS_ROOT and dp locks based on the cn_lkflag. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-29T10:08:23.000000Z K 7 svn:log V 140 - Get rid of the old LOOKUP_SHARED code. namei() now supplies the proper lock flags via cn_lkflag. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-29T10:10:01.000000Z K 7 svn:log V 103 - Honor the cn_lkflags passed from namei() when locking the leaf. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-29T10:10:51.000000Z K 7 svn:log V 131 - Upgrade a shared lock request to exclusive in ffs_vget() if we have to create the vnode. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-29T10:16:12.000000Z K 7 svn:log V 75 - Initial cn_lkflags to LK_EXCLUSIVE. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 5 markm K 8 svn:date V 27 2005-03-29T11:08:45.000000Z K 7 svn:log V 236 Revert to the more correct array size, and correct a KASSERT to only allow proper values. ENTROPYSOURCE is a maxval+1, not an allowable number. Suggested loose protons in the solution: phk Prefers to keep the pH close to seven: markm END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-03-29T11:15:54.000000Z K 7 svn:log V 263 Remove the global cdev hash and use the cdevsw list instead. Don't remove the now unused element from cdev yet, wait until we have a better reason to bump the version. There is now no longer any upper limit on how many device drivers a FreeBSD kernel can have. END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-03-29T11:23:25.000000Z K 7 svn:log V 32 Don't generate major.c anymore. END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-03-29T11:26:14.000000Z K 7 svn:log V 261 We don't need no major numbers We don't need a mknod(2) call No tricky install documentation Kernel leave them dev_t alone Hey Kernel leave them cdevsw alone All in all it's just another struct in src/sys All in all you're just another struct in src/sys END K 10 svn:author V 5 tobez K 8 svn:date V 27 2005-03-29T11:44:17.000000Z K 7 svn:log V 470 Adds sha256 support. While it is a good idea to also add sha384 and sha512, I did not do that since it is not entirely clear where "the one true place" to hold their implementations is going to be. Sha256 is different since mtree already links against libmd. Make recommended procedure for integrity checking in the manpage consistent. Fix a bug with -f spec1 -f spec2 comparison, which prevented test/tes03.sh from running successfully. Reviewed by: phk, cperciva END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-29T12:59:06.000000Z K 7 svn:log V 279 - Move the logic that locks and refs the new vnode from vfs_cache_lookup() to cache_lookup(). This allows us to acquire the vnode interlock before dropping the cache lock. This protects the vnodes identity until we have locked it. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-29T13:00:37.000000Z K 7 svn:log V 134 - cache_lookup() now locks the new vnode for us to prevent some races. Remove redundant code. Sponsored by: Isilon Systems, Inc. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-29T13:04:00.000000Z K 7 svn:log V 161 - Remove wantparent, it is no longer necessary. An assert in vfs_lookup.c prevents any callers from doing a DELETE or RENAME without locking the parent. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-29T13:09:42.000000Z K 7 svn:log V 163 - Remove wantparent, it is no longer necessary. An assert in vfs_lookup.c prevents any callers from doing a modifying op without LOCKPARENT or WANTPARENT. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2005-03-29T13:16:38.000000Z K 7 svn:log V 227 - Remove wantparent, it is no longer necessary. An assert in vfs_lookup.c prevents any callers from doing a modifying op without LOCKPARENT or WANTPARENT. It wasn't even properly used in the CREATE or DELETE cases. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-03-29T13:43:09.000000Z K 7 svn:log V 244 - Don't free mbuf, passed to interface output method if the latter returns error. In this case mbuf has already been freed. [1] - Remove redundant declaration. PR: kern/78893 [1] Submitted by: Liang Yi [1] Reviewed by: sam MFC after: 1 day END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-29T19:36:42.000000Z K 7 svn:log V 55 pass re-association events up using a new message type END K 10 svn:author V 6 anholt K 8 svn:date V 27 2005-03-29T20:17:47.000000Z K 7 svn:log V 95 Correct formatting of pointers in the listing by using "0x%" PRIx64 instead of "%" PRIu64 "x". END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-29T20:24:13.000000Z K 7 svn:log V 20 handle rejoin event END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-29T20:54:31.000000Z K 7 svn:log V 46 replace m_defrag with something more suitable END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-29T20:59:49.000000Z K 7 svn:log V 18 simplify callback END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-29T21:00:50.000000Z K 7 svn:log V 72 sync rates for any associated stations or neighbors on state transition END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-29T21:06:28.000000Z K 7 svn:log V 33 forgot to merge this bit from p4 END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-29T22:16:49.000000Z K 7 svn:log V 104 extend the timestamp from the rx descriptor to calculate the tsf to use when checking for an ibss merge END K 10 svn:author V 6 murray K 8 svn:date V 27 2005-03-30T01:05:54.000000Z K 7 svn:log V 76 MFC: Comments to note bpf is required for DHCP. Approved by: re (kensmith) END K 10 svn:author V 6 murray K 8 svn:date V 27 2005-03-30T01:07:32.000000Z K 7 svn:log V 42 MFC: Typo fix Approved by: re (kensmith) END K 10 svn:author V 6 murray K 8 svn:date V 27 2005-03-30T01:09:21.000000Z K 7 svn:log V 78 MFC: Add device ID for nForce 4 audio controller. Approved by: re (kensmith) END K 10 svn:author V 6 murray K 8 svn:date V 27 2005-03-30T01:10:57.000000Z K 7 svn:log V 76 MFC: Add device ID for Planet IA 128P-STD card. Approved by: re (kensmith) END K 10 svn:author V 6 avatar K 8 svn:date V 27 2005-03-30T01:50:44.000000Z K 7 svn:log V 163 MFC: (1.22) Releasing TX/RX descriptor dmamaps during device detachment instead of doing that in bfe_stop(). Reviewed by: sam (mentor) Approved by: re (kensmith) END K 10 svn:author V 6 avatar K 8 svn:date V 27 2005-03-30T02:33:33.000000Z K 7 svn:log V 66 Fixing kernel build on amd64 machines. Reviewed by: sam (mentor) END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-03-30T02:44:46.000000Z K 7 svn:log V 38 Attach ndiscvt(8) to the amd64 build. END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-03-30T02:50:06.000000Z K 7 svn:log V 216 Remove a couple of #ifdef 0'ed code blocks left over from Atheros debugging. Remember to reset ndis_pendingreq to NULL when bailing out of ndis_set_info() or ndis_get_info() due to miniportadapterctx not being set. END K 10 svn:author V 3 das K 8 svn:date V 27 2005-03-30T02:59:32.000000Z K 7 svn:log V 791 Merge kern___cwd() and vn_fullpath(), which were virtually identical, except for places where people forget to update one of them. We now collect only one set of stats for both of these routines. Other changes in this commit include: - Start acquiring Giant again in vn_fullpath(), since it is required when crossing a mount point. - Expand the scope of the cache lock to avoid dropping it and picking it up again for every pathname component. This also makes it trivial to avoid races in stats collection. - Assert that nc_dvp == v_dd for directories instead of returning an error to userland when this is not true. AFAIK, it should always be true when v_dd is non-null. - For vn_fullpath(), handle the first (non-directory) vnode separately. Glanced at by: jeff, phk END K 10 svn:author V 3 das K 8 svn:date V 27 2005-03-30T03:01:36.000000Z K 7 svn:log V 330 Eliminate v_id and v_ddid. The name cache now holds references to vnodes whose names it caches, so we no longer need a `generation number' to tell us if a referenced vnode is invalid. Replace the use of the parent's v_id in the hash function with the address of the parent vnode. Tested by: Peter Holm Glanced at by: jeff, phk END K 10 svn:author V 3 das K 8 svn:date V 27 2005-03-30T03:02:16.000000Z K 7 svn:log V 219 Eliminate v_id and v_ddid. This changes struct vnode, so all filesystem modules must be recompiled. (Since struct vnode has already changed in 6-CURRENT, there's little advantage to leaving the unused fields around.) END K 10 svn:author V 5 green K 8 svn:date V 27 2005-03-30T05:11:12.000000Z K 7 svn:log V 191 MFC r1.147: You must selwakeup{,pri}() when closing a selectable object or the td->td_sel will get trashed and crash the system. Fix BPF's mistake in this area. Approved by: re END K 10 svn:author V 3 alc K 8 svn:date V 27 2005-03-30T05:40:02.000000Z K 7 svn:log V 440 Eliminate (now) unnecessary acquisition and release of the global page queues lock in vm_object_backing_scan(). Updates to the page's PG_BUSY flag and busy field are synchronized by the containing object's lock. Testing the page's hold_count and wire_count in vm_object_backing_scan()'s OBSC_COLLAPSE_NOWAIT case is unnecessary. There is no reason why the held or wired pages cannot be migrated to the shadow object. Reviewed by: tegge END K 10 svn:author V 5 simon K 8 svn:date V 27 2005-03-30T07:43:45.000000Z K 7 svn:log V 121 MFC 1.5+1.6: - Add nForce4 to the list of supported audio devices. - Bump documentation date. Approved by: re (blanket) END K 10 svn:author V 3 jmg K 8 svn:date V 27 2005-03-30T08:10:37.000000Z K 7 svn:log V 271 MFC: > fix kldloading of pci driver modules after boot on sparc64... since > we weren't using the pci module, we weren't restoring the pci state... > > Revision Changes Path > 1.6 +1 -1 src/sys/sparc64/pci/ofw_pcibus.c Approved by: re (kensmith) END K 10 svn:author V 3 jmg K 8 svn:date V 27 2005-03-30T08:11:34.000000Z K 7 svn:log V 190 MFC: > remove unimplemented part of the interface.. > > Revision Changes Path > 1.29 +0 -3 src/sys/sys/event.h Approved by: re (kensmith) END K 10 svn:author V 3 dfr K 8 svn:date V 27 2005-03-30T08:28:26.000000Z K 7 svn:log V 244 When allocating TLS and DTV, make sure that any unused slots in the DTV are initialised to zero. When freeing TLS, don't attempt to free DTV slots which were not used. Pointed out by: Joerg Sonnenberger X-MFC-After: After the branch, probably END K 10 svn:author V 7 iedowse K 8 svn:date V 27 2005-03-30T08:32:41.000000Z K 7 svn:log V 205 Use the usb_callout_* API instead of timeout()/untimeout() in order to avoid a race condition that can cause the ukbd timeout routine to run after the keyboard has detached. Reported and tested by: wpaul END K 10 svn:author V 5 joerg K 8 svn:date V 27 2005-03-30T09:33:10.000000Z K 7 svn:log V 179 Support VTOC volume names. This can be useful to distinguish multiple disks in a system. Solaris' format(1m) displays the volume names in the disk overview. MFC after: 1 month END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-03-30T11:44:43.000000Z K 7 svn:log V 544 When several carp interfaces are attached to Ethernet interface, carp_carpdev_state_locked() is called every time carp interface is attached. The first call backs up flags of the first interface, and the second call backs up them again, erasing correct values. To solve this, a carp_sc_state_locked() function is introduced. It is called when interface is attached to parent, instead of calling carp_carpdev_state_locked. carp_carpdev_state_locked() calls carp_sc_state_locked() for each sc in chain. Reported by: Yuriy N. Shkandybin, sem END K 10 svn:author V 3 sos K 8 svn:date V 27 2005-03-30T12:03:40.000000Z K 7 svn:log V 3691 This is the much rumoured ATA mkIII update that I've been working on. o ATA is now fully newbus'd and split into modules. This means that on a modern system you just load "atapci and ata" to get the base support, and then one or more of the device subdrivers "atadisk atapicd atapifd atapist ataraid". All can be loaded/unloaded anytime, but for obvious reasons you dont want to unload atadisk when you have mounted filesystems. o The device identify part of the probe has been rewritten to fix the problems with odd devices the old had, and to try to remove so of the long delays some HW could provoke. Also probing is done without the need for interrupts, making earlier probing possible. o SATA devices can be hot inserted/removed and devices will be created/ removed in /dev accordingly. NOTE: only supported on controllers that has this feature: Promise and Silicon Image for now. On other controllers the usual atacontrol detach/attach dance is still needed. o Support for "atomic" composite ATA requests used for RAID. o ATA RAID support has been rewritten and and now supports these metadata formats: "Adaptec HostRAID" "Highpoint V2 RocketRAID" "Highpoint V3 RocketRAID" "Intel MatrixRAID" "Integrated Technology Express" "LSILogic V2 MegaRAID" "LSILogic V3 MegaRAID" "Promise FastTrak" "Silicon Image Medley" "FreeBSD PseudoRAID" o Update the ioctl API to match new RAID levels etc. o Update atacontrol to know about the new RAID levels etc NOTE: you need to recompile atacontrol with the new sys/ata.h, make world will take care of that. NOTE2: that rebuild is done differently from the old system as the rebuild is now done piggybacked on read requests to the array, so atacontrol simply starts a background "dd" to rebuild the array. o The reinit code has been worked over to be much more robust. o The timeout code has been overhauled for races. o Support of new chipsets. o Lots of fixes for bugs found while doing the modulerization and reviewing the old code. Missing or changed features from current ATA: o atapi-cd no longer has support for ATAPI changers. Todays its much cheaper and alot faster to copy those CD images to disk and serve them from there. Besides they dont seem to be made anymore, maybe for that exact reason. o ATA RAID can only read metadata from all the above metadata formats, not write all of them (Promise and Highpoint V2 so far). This means that arrays can be picked up from the BIOS, but they cannot be created from FreeBSD. There is more to it than just the missing write metadata support, those formats are not unique to a given controller like Promise and Highpoint formats, instead they exist for several types, and even worse, some controllers can have different formats and its impossible to tell which one. The outcome is that we cannot reliably create the metadata of those formats and be sure the controller BIOS will understand it. However write support is needed to update/fail/rebuild the arrays properly so it sits fairly high on the TODO list. o So far atapicam is not supported with these changes. When/if this will change is up to the maintainer of atapi-cam so go there for questions. HW donated by: Webveveriet AS HW donated by: Frode Nordahl HW donated by: Yahoo! HW donated by: Sentex Patience by: Vife and my boys (and even the cats) END K 10 svn:author V 3 sos K 8 svn:date V 27 2005-03-30T12:27:34.000000Z K 7 svn:log V 46 Whoops, this got left out from the megacommit END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2005-03-30T12:31:55.000000Z K 7 svn:log V 147 MFC: comment out rue_miibus_statchg() function, which messes up PHY after UP->DOWN->UP sequence of link state changes. Approved by: re (kensmith) END K 10 svn:author V 4 nyan K 8 svn:date V 27 2005-03-30T12:59:54.000000Z K 7 svn:log V 35 Remove geometry translations here. END K 10 svn:author V 4 nyan K 8 svn:date V 27 2005-03-30T13:03:33.000000Z K 7 svn:log V 85 Add over 32GB disk support on pc98 (userland part). Submitted by: Hirokazu WATANABE END K 10 svn:author V 4 nyan K 8 svn:date V 27 2005-03-30T14:05:28.000000Z K 7 svn:log V 30 Add commented out ehci entry. END K 10 svn:author V 3 ken K 8 svn:date V 27 2005-03-30T14:48:22.000000Z K 7 svn:log V 374 MFC: camcontrol.c: 1.53 camcontrol.8: 1.40 Add "report only" functionality to 'camcontrol format', so users can get a report on the status of a format already running on a drive. Fix status reporting for 'camcontrol format'. This was broken in rev 1.34 of camcontrol.c, almost 4 years ago! Submitted by: joerg (most of the reportonly changes) Approved by: re (kensmith) END K 10 svn:author V 3 ken K 8 svn:date V 27 2005-03-30T14:52:03.000000Z K 7 svn:log V 175 MFC, scsi_ch.c rev 1.42 Fix a place where we were referencing a pointer after it had been freed. Submitted by: "Henry Miller" Approved by: re (kensmith) END K 10 svn:author V 3 ken K 8 svn:date V 27 2005-03-30T14:54:17.000000Z K 7 svn:log V 396 MFC, scsi_cd.c rev 1.93 Fix a problem with the cd(4) driver -- the CAMGETPASSTHRU ioctl wouldn't succeed if there was no media in the drive. This was broken in rev 1.72 when the media check was added to cdioctl(). For now, check the ioctl group to decide whether to check for media or not. (We only need to check for media on CD-specific ioctls.) Reported by: bland Approved by: re (kensmith) END K 10 svn:author V 6 philip K 8 svn:date V 27 2005-03-30T15:06:11.000000Z K 7 svn:log V 82 Use a taskqueue for led-handling to prevent a potential panic. Submitted by: pjd END K 10 svn:author V 5 harti K 8 svn:date V 27 2005-03-30T15:14:22.000000Z K 7 svn:log V 264 Fix a bug introduced in a previous commit: ParseModifier() consumes characters so it is not safe to move around code from before it to after it. This should fix problems with building the documentation. Patch: 7.170 Submitted by: Max Okumoto END K 10 svn:author V 5 harti K 8 svn:date V 27 2005-03-30T15:18:58.000000Z K 7 svn:log V 579 Make the structure for handling the input stack local to the parse module. The only module accessing it (the current line number) was the condition module, so pass the current line number as a function argument. Centralize the pushing of new input sources into one function ParsePushInput() and rename the function handling the popping from ParseEOF() to ParsePopInput(). Make the entire thing a little bit clearer, by holding the current input source in the top element of the stack instead of using extra variables for this. Use a type-safe intrusive list for the input stack. END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-03-30T16:22:48.000000Z K 7 svn:log V 178 Fix a possible mutex leak in KeSetTimerEx(): if timer is NULL, we bail out without releasing the dispatcher lock. Move the lock acquisition after the pointer test to avoid this. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-03-30T18:02:49.000000Z K 7 svn:log V 90 Purge orphan catpages. PR: conf/35242 Submitted by: Annihilator END K 10 svn:author V 5 joerg K 8 svn:date V 27 2005-03-30T18:54:41.000000Z K 7 svn:log V 114 Fix grammar error caused by my previous edit. While being here, also update the copyright year. Submitted by: ru END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-30T19:28:00.000000Z K 7 svn:log V 9 fix typo END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-30T20:13:08.000000Z K 7 svn:log V 157 o extend cts to cover packet burst when operating in 11g w/ protection o check current channel parameters, not shadow state, for acm policy on data frames END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-30T20:17:18.000000Z K 7 svn:log V 233 rev rate control api to pass the both the first+last tx descriptors to the rate control module for tx complete processing; this enables rate control algorithms to extract the packet length for xmits that require multiple descriptors END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-30T20:20:49.000000Z K 7 svn:log V 459 o fix bug where rate wouldn't lift off lowest setting when operating as an ap in 11g with protection enabled o correct rate selection when operating in 11g with protection when no packets have been sent yet (from John Bicket) o track api change to get first descriptor and use it to collect the frame length for calculating the state bin o add more debugging and shuffle some existing debugging to give more info o bump version to distinguish bug fixes END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-30T20:21:44.000000Z K 7 svn:log V 46 print new stats for cts burst extension logic END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-30T20:29:02.000000Z K 7 svn:log V 16 correct comment END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-03-30T20:30:48.000000Z K 7 svn:log V 48 close unlikely race Submitted by: Michael Wong END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-03-30T21:45:08.000000Z K 7 svn:log V 14 style(9) nits END K 10 svn:author V 5 peter K 8 svn:date V 27 2005-03-30T22:52:27.000000Z K 7 svn:log V 258 Commit my checkpoint of db_disasm.c that I hacked to understand some amd64 instructions as it was when I dropped it back in May 31, 2003. I'm committing this as an intermediate stage because back then I thought I understood what I was doing with this file. END K 10 svn:author V 5 peter K 8 svn:date V 27 2005-03-30T22:57:41.000000Z K 7 svn:log V 520 Checkpoint today's tidy-up of the WIP disassembler. It now agrees with objdump --disassemble when disassembling itself in userland. I've added the cmovCC instruction group and tweaked a bunch of size sensitive array indexes to either fix my mistakes and/or force it to work by any means necessary. I'm committing this because it is usable enough to see what is going on when single stepping via ddb. It might still tell lies, but its lies will be far more subtle now. I'm not sure that this is a good thing or not. END K 10 svn:author V 3 mux K 8 svn:date V 27 2005-03-30T23:08:46.000000Z K 7 svn:log V 928 MFC if_ixgb.c r1.6 to r1.7, if_ixgb.h r1.4 and if_ixgb_osdep.h r1.3: Fix a bunch of bugs I came accross when looking at the ixgb(4) driver, some of which are rather serious: - Use the device sysctl tree instead of rolling our own. - Don't create a bus_dmamap_t to pass to bus_dmamem_alloc(), it is bus_dmamem_alloc() that creates it itself. The DMA map created by the driver was overwritten and its memory was leaked. - Fix resource handling bugs in the error path of ixgb_dma_alloc(). - Don't use vtophys() to get the base address of the TX and RX rings when busdma already gave us the correct address to use! - Remove now useless includes and the alpha_XXX_dmamap() hack. - Don't initialize if_output to ether_output(), ether_ifattach() does it for us already. - Add proper module dependencies on ether and pci. Tested by: Paul Willmann willmann at rice dot edu Approved by: re@ (kensmith) END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2005-03-31T00:32:37.000000Z K 7 svn:log V 138 MFC revision 1.105: If dangerous environment variables are used, check that libraries being loaded aren't on a noexec-mounted filesystem. END K 10 svn:author V 3 gnn K 8 svn:date V 27 2005-03-31T01:27:22.000000Z K 7 svn:log V 296 MFC of new IPv6 related man pages from CURRENT to STABLE. The way this was done in HEAD was to remove the old pages and add the new pages. The same process is being followed here in STABLE. Reviewed by: Hiroki Sato for Release Engineering Approved by: re (Hiroki Sato) for Release Engineering END K 10 svn:author V 3 gnn K 8 svn:date V 27 2005-03-31T01:52:54.000000Z K 7 svn:log V 192 Complete the MFC of the man pages from CURRENT to STABLE. Add in the new files. Update the Makefile.inc to handle gai_strerror.3 Reviewed by: re (Hiroki Sato) Approved by: re (Hiroki Sato) END