:159935 65 216 453 266 410 200 213 256 249 222 291 272 127 188 291 725 827 143 282 240 165 282 162 395 195 115 183 98 1241 140 159 449 122 497 245 137 599 843 178 364 169 185 301 216 202 258 161 184 481 98 336 645 241 187 182 126 125 444 162 194 98 860 463 520 246 489 K 10 svn:author V 7 iedowse K 8 svn:date V 27 2006-06-26T00:31:25.000000Z K 7 svn:log V 119 MFC: implement umass_cam_poll() and add a missing ohci_waitintr() call so that polled operation works. PR: usb/93720 END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2006-06-26T00:32:54.000000Z K 7 svn:log V 356 Improve check for protective MBR. Instead of assiming that protective MBR should have only one entry of type 0xEE, consider protective MBR to be one, that has at least one entry of type 0xEE covering the whole unit. This makes GEOM_GPT compatible with disks partitioned by the Apple's BootCamp. Approved in principle by: marcel MFC After: 1 month END K 10 svn:author V 7 iedowse K 8 svn:date V 27 2006-06-26T01:44:41.000000Z K 7 svn:log V 169 MFC 1.47: increment the disk block offset after writing, not before. This fixes filesystem corruption when nextboot.conf is located after cylinder 1023. PR: bin/98005 END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-06-26T03:10:45.000000Z K 7 svn:log V 317 Close race in handling mcast traffic when operating as an ap with stations in power save: add a new q where mcast frames are stashed and on beacon update (at DTIM) move frames from the mcast q to the cabq and start it. This ensures the cabq is only manipulated in one place. Sponsored by: Hobnob MFC after: 2 weeks END K 10 svn:author V 6 scottl K 8 svn:date V 27 2006-06-26T03:21:19.000000Z K 7 svn:log V 104 Fix a memory leak and a nested 'for' loop in the spare table handling. Submitted by: Pedro Martelletto END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-06-26T04:31:36.000000Z K 7 svn:log V 120 enable rx of control frames when in monitor mode Submitted by: Andrea Bittau MFC after: 1 week END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-06-26T05:41:11.000000Z K 7 svn:log V 160 Grumble. VMWare ESX and VMWare WorkStation have *slightly* different inquiry data (pointlessly different I might add). Pick the common parts. MFC after: 1 day END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-06-26T05:42:54.000000Z K 7 svn:log V 153 MFC 1.162: Grumble. VMWare ESX and VMWare WorkStation have *slightly* different inquiry data (pointlessly different I might add). Pick the common parts. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-06-26T05:44:18.000000Z K 7 svn:log V 126 VMWare ESX reports > 16 targets for the LSI-Logic U320 model it emulates. Then it crashes and burns when you probe that high. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-06-26T09:38:08.000000Z K 7 svn:log V 194 In tcp6_usr_attach(), return immediately if SS_ISDISCONNECTED, to avoid dereferencing an uninitialized inp variable. Submitted by: Michiel Boland MFC after: 1 month END K 10 svn:author V 5 andre K 8 svn:date V 27 2006-06-26T09:43:55.000000Z K 7 svn:log V 177 Reverse the source/destination parameters to in[6]_pcblookup_hash() in syncache_respond() for the #ifdef MAC case. Submitted by: Tai-hwa Liang END K 10 svn:author V 8 keramida K 8 svn:date V 27 2006-06-26T12:12:09.000000Z K 7 svn:log V 30 Fix a minor typo in rev 1.950 END K 10 svn:author V 3 yar K 8 svn:date V 27 2006-06-26T13:25:41.000000Z K 7 svn:log V 96 MFC rev. 1.120: Document the fact that 'true' and 'false' are among sh(1) built-in commands. END K 10 svn:author V 3 yar K 8 svn:date V 27 2006-06-26T13:54:37.000000Z K 7 svn:log V 198 MFC rev. 1.29-1.33: Document things that are in RELENG_6 already: - - new spelling of MAN and modern style of NO_MAN - the "clean" target of removing less files END K 10 svn:author V 5 andre K 8 svn:date V 27 2006-06-26T15:35:25.000000Z K 7 svn:log V 630 Some cleanups and janitorial work to tcp_dooptions(): o redefine the parameter 'is_syn' to 'flags', add TO_SYN flag and adjust its usage accordingly o update the comments to the tcp_dooptions() invocation in tcp_input():after_listen to reflect reality o move the logic checking the echoed timestamp out of tcp_dooptions() to the only place that uses it next to the invocation described in the previous item o adjust parsing of TCPOPT_SACK_PERMITTED to use the same style as the others o add comments in to struct tcpopt.to_flags #defines No functional changes. Sponsored by: TCP/IP Optimization Fundraise 2005 END K 10 svn:author V 5 andre K 8 svn:date V 27 2006-06-26T16:14:19.000000Z K 7 svn:log V 732 Some cleanups and janitorial work to tcp_syncache: o don't assign remote/local host/port information manually between provided struct in_conninfo and struct syncache, bcopy() it instead o rename sc_tsrecent to sc_tsreflect in struct syncache to better capture the purpose of this field o rename sc_request_r_scale to sc_requested_r_scale for ditto reasons o fix IPSEC error case printf's to report correct function name o in syncache_socket() only transpose enhanced tcp options parameters to struct tcpcb when the inpcb doesn't has TF_NOOPT set o in syncache_respond() reorder stack variables o in syncache_respond() remove bogus KASSERT() No functional changes. Sponsored by: TCP/IP Optimization Fundraise 2005 END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-06-26T16:18:22.000000Z K 7 svn:log V 47 Trim basically unused 'unp' in uipc_connect(). END K 10 svn:author V 6 obrien K 8 svn:date V 27 2006-06-26T17:25:22.000000Z K 7 svn:log V 186 Import the nfe (nForce Ethernet) driver from OpenBSD. This is a pure open source NIC driver with a BSD license. These bits were taken from the OpenBSD public CVS repository on 1-May-06. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2006-06-26T17:25:22.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r159952, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2006-06-26T17:25:23.000000Z K 7 svn:log V 69 This commit was manufactured by cvs2svn to create tag 'cvs_20060501'. END K 10 svn:author V 5 andre K 8 svn:date V 27 2006-06-26T17:54:53.000000Z K 7 svn:log V 187 In syncache_respond() do not reply with a MSS that is larger than what the peer announced to us but make it at least tcp_minmss in size. Sponsored by: TCP/IP Optimization Fundraise 2005 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-06-26T18:33:32.000000Z K 7 svn:log V 70 Remove duplicate security checks already performed in kern_kldload(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-06-26T18:34:45.000000Z K 7 svn:log V 302 Address a problem I missed in removing Giant from the kernel linker. Not all of the module event handlers are MP safe yet, so always acquire Giant for now when invoking module event handlers. Eventually we can add an MPSAFE flag or some such and add appropriate locking to all module event handlers. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-06-26T18:35:57.000000Z K 7 svn:log V 102 - Sync with master: rmdir(), mkdir(), and extattr_*() are all MPSAFE. - freebsd32_utimes() is MPSAFE. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-06-26T18:36:16.000000Z K 7 svn:log V 23 linux_brk() is MPSAFE. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-06-26T18:36:57.000000Z K 7 svn:log V 91 Change svr4_sys_break() to just call obreak() and mark it MPSAFE. Not objected to by: alc END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-06-26T18:37:36.000000Z K 7 svn:log V 7 Regen. END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2006-06-26T20:31:32.000000Z K 7 svn:log V 1145 Add support for the RealTek 8169SC/8110SC and RTL8101E devices. The latter is a PCIe 10/100 chip. Finally fix the EEPROM reading code so that we can access the EEPROMs on all devices. In order to access the EEPROM, we must select 'EEPROM programming' mode, and then set the EEPROM chip select bit. Previously, we were setting both bits simultaneously, which doesn't work: they must be set in the right sequence. Always obtain the station address from the EEPROM, now that EEPROM reading works correctly. Make the TX interrupt moderation code based on the internal timer optional and turned off by default. Make the re_diag() routine conditional and off by default. When it is on, only use it for the original 8169, which was the only device that that really needed it. Modify interrupt handling to use a fast interrupt handler and fast taskqeueue. Correct the rgephy driver so that it only applies the DSP fixup for PHY revs 0 and 1. Later chips are fixed and don't need the fixup. Make the rgephy driver advertise both 1000_FD and 1000_HD bits in autoneg mode. A couple of the devices don't autoneg correctly unless configured this way. END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2006-06-26T20:44:34.000000Z K 7 svn:log V 46 MFC updates to the re(4) driver from -current END K 10 svn:author V 6 babkin K 8 svn:date V 27 2006-06-26T22:03:22.000000Z K 7 svn:log V 64 Backed out the change by request from rwatson. PR: kern/14584 END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-06-26T22:30:08.000000Z K 7 svn:log V 352 Add a pseudo interface for packet filtering IPSec connections before or after encryption. There are two functions, a bpf tap which has a basic header with the SPI number which our current tcpdump knows how to display, and handoff to pfil(9) for packet filtering. Obtained from: OpenBSD Based on: kern/94829 No objections: arch, net MFC after: 1 month END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-06-26T22:31:26.000000Z K 7 svn:log V 26 Hook enc(4) to the build. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2006-06-26T23:41:07.000000Z K 7 svn:log V 401 Add a pure open source nForce Ethernet driver, under BSDL. This driver was ported from OpenBSD by Shigeaki Tagashira and posted at http://www.se.hiroshima-u.ac.jp/~shigeaki/software/freebsd-nfe.html It was additionally cleaned up by me. It is still a work-in-progress and thus is purposefully not in GENERIC. And it conflicts with nve(4), so only one should be loaded. END K 10 svn:author V 3 gad K 8 svn:date V 27 2006-06-27T00:18:15.000000Z K 7 svn:log V 152 Remove the "oldorder" processing. The "neworder" processing has been the default for two years now, without any problems reported. MFC after: 3 weeks END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-06-27T01:53:12.000000Z K 7 svn:log V 41 Simplify ipsec_bpf by using bpf_mtap2(). END K 10 svn:author V 3 alc K 8 svn:date V 27 2006-06-27T04:28:23.000000Z K 7 svn:log V 506 Correct a very old and very obscure bug: vmspace_fork() calls pmap_copy() if the mapping is VM_INHERIT_SHARE. Suppose the mapping is also wired. vmspace_fork() clears the wiring attributes in the vm map entry but pmap_copy() copies the PG_W attribute in the PTE. I don't think this is catastrophic. It blocks pmap_remove_pages() from destroying the mapping and corrupts the pmap's wiring count. This revision fixes the problem by changing pmap_copy() to clear the PG_W attribute. Reviewed by: tegge@ END K 10 svn:author V 3 alc K 8 svn:date V 27 2006-06-27T05:05:05.000000Z K 7 svn:log V 750 Make several changes to pmap_enter_quick_locked(): 1. Make the caller responsible for performing pmap_install(). This reduces the number of times that pmap_install() is performed by pmap_enter_object() from twice per page to twice overall. 2. Don't block if pmap_find_pte() is unable to allocate a PTE. If it did block, then it might wind up mapping a cache page. Specifically, if pmap_enter_quick_locked() slept when called from pmap_enter_object(), the page daemon could change an active or inactive page into a cache page just before it was to be mapped. 3. Bail out of pmap_enter_quick_locked() if pv entries aren't plentiful. In other words, don't force the allocation of a pv entry if they aren't readily available. Reviewed by: marcel@ END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-06-27T08:04:55.000000Z K 7 svn:log V 84 MFC rev. 1.13: remove LK_REENABLE and LK_NOPAUSE lockinit(9) flags, add LK_NOSHARE. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-06-27T11:28:50.000000Z K 7 svn:log V 271 - Use suser_cred(9) instead of checking cr_ruid directly. - For privileged processes safe two mutex operations. We may want to consider if this is good idea to use SUSER_ALLOWJAIL here, but for now I didn't wanted to change the original behaviour. Reviewed by: rwatson END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-06-27T11:29:38.000000Z K 7 svn:log V 77 Use suser_cred(9) instead of checking cr_uid directly. Reviewed by: rwatson END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-06-27T11:32:08.000000Z K 7 svn:log V 93 Compress direct cr_ruid comparsion and jailed() call to suser_cred(9). Reviewed by: rwatson END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-06-27T11:35:53.000000Z K 7 svn:log V 208 - Use suser_cred(9) instead of directly checking cr_uid. - Change the order of conditions to first verify that we actually need to check for privileges and then eventually check them. Reviewed by: rwatson END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-06-27T11:40:05.000000Z K 7 svn:log V 123 - Use suser_cred(9) instead of directly comparing cr_uid. - Compare pointer with NULL, instead of 0. Reviewed by: rwatson END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-06-27T11:41:21.000000Z K 7 svn:log V 109 - Use suser_cred(9) instead of directly comparing cr_uid. - Compare pointer with NULL. Reviewed by: rwatson END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-06-27T12:45:28.000000Z K 7 svn:log V 161 A netgraph node that can do different manipulations with mbuf_tags(9) on packets. Submitted by: Vadim Goncharov mdoc(7) reviewed by: ru END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2006-06-27T12:48:15.000000Z K 7 svn:log V 64 - Convert to our new SYNOPSIS style - Correct tcpdump reference END K 10 svn:author V 6 anholt K 8 svn:date V 27 2006-06-27T14:05:11.000000Z K 7 svn:log V 89 Fix breakage of CHIP_I855 in the last revision. Submitted by: Ted Faber END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-06-27T14:46:31.000000Z K 7 svn:log V 388 - Expand the scope of Giant some in mount(2) to protect the vfsp structure from going away. mount(2) is now MPSAFE. - Expand the scope of Giant some in unmount(2) to protect the mp structure (or rather, to handle concurrent unmount races) from going away. umount(2) is now MPSAFE, as well as linux_umount() and linux_oldumount(). - nmount(2) and linux_mount() were already MPSAFE. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-06-27T14:47:08.000000Z K 7 svn:log V 7 Regen. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-06-27T17:55:38.000000Z K 7 svn:log V 239 Modify import instructions to include "-n" in the sample command line for the CVS import, and suggest removing it for the real import, rather than suggesting it for testing. This will hopefully prevent me (and others) from making errors. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-06-27T18:06:41.000000Z K 7 svn:log V 548 Vendor import of OpenBSM 1.0 alpha 7, with the following change history notes: - Adopted Solaris-compatible format for subject32_ex and subject64_ex tokens, which previously did not correctly implement variable length address storage. - Prefer inttypes.h to stdint.h; enhance queue.h detection to test for TAILQ_FOREACH_SAFE(), which is present in recent BSD queue.h's, but not older ones. OpenBSM now builds on some FreeBSD 4.x version. - New event types for extended attributes, ACLs, and scheduling. Obtained from: TrustedBSD Project END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-06-27T18:06:41.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r159985, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2006-06-27T18:06:42.000000Z K 7 svn:log V 91 This commit was manufactured by cvs2svn to create tag 'openbsm-vendor-OPENBSM_1_0_ALPHA_7'. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-06-27T18:09:54.000000Z K 7 svn:log V 86 Resolve conflicts from OpenBSM 1.0 alpha 7 import. Obtained from: TrustedBSD Project END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-06-27T18:12:36.000000Z K 7 svn:log V 31 MFC: Fixes related for VMWare. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-06-27T18:13:23.000000Z K 7 svn:log V 30 MFC: Fixes related for VMWare END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-06-27T18:28:50.000000Z K 7 svn:log V 351 - Add a kern_semctl() helper function for __semctl(). It accepts a pointer to a copied-in copy of the 'union semun' and a uioseg to indicate which memory space the 'buf' pointer of the union points to. This is then used in linux_semctl() and svr4_sys_semctl() to eliminate use of the stackgap. - Mark linux_ipc() and svr4_sys_semsys() MPSAFE. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-06-27T18:30:49.000000Z K 7 svn:log V 70 Axe the stackgap macros as the Linux ABIs no longer use the stackgap. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-06-27T18:31:36.000000Z K 7 svn:log V 101 Use kern_shmctl() in svr4_sys_shmctl() and drop use of the stackgap. Mark svr4_sys_shmctl() MPSAFE. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-06-27T18:32:16.000000Z K 7 svn:log V 7 Regen. END K 10 svn:author V 8 netchild K 8 svn:date V 27 2006-06-27T20:11:58.000000Z K 7 svn:log V 762 Improve linprovfs to provide/fix the - process state (idle, sleeping, running, ...) [1] - the process group ID of the process which owns the connected tty - some page fault stats - time spend in kernel/userland - priority/nice value - starttime [1] - memory/swap stats - scheduling policy Additionally add some new fields and correct some not filled out ones. This brings us down to 15 dummy fields. The fields marked with [1] are needed to get Oracle 10 running. The starttime field is not completely right, since it displays the _same_ starttime for _every_ process, but at least it is not 0 and Oracle accepts this. This is a RELENG_x_y candidate. Noticed by: Dmitry Ganenko [1] Reviewed by: des, rdivacky MFC after: 1 week END K 10 svn:author V 8 netchild K 8 svn:date V 27 2006-06-27T20:21:38.000000Z K 7 svn:log V 365 Correctly calculate a buffer length. It was off by one so a read() returned one byte less than needed. This is a RELENG_x_y candidate, since it fixes a problem with Oracle 10. Noticed by: Dmitry Ganenko Testcase by: Dmitry Ganenko Reviewed by: des Submitted by: rdivacky Sponsored by: Google SoC 2006 MFC after: 1 week END K 10 svn:author V 4 rink K 8 svn:date V 27 2006-06-27T20:22:32.000000Z K 7 svn:log V 426 Updated the XBOX kernel to use the new nfe(4) driver obtained from OpenBSD. This driver seems to give a small performance increase, and should lead to better maintainability in the future. The nForce Ethernet-specific hack in sys/i386/xbox/xbox.c is still required, judging from dev/nfe/if_nfe.c. The condition it hacks will almost certainly only occur on XBOX-es anyway, so it is best left there. Approved by: imp (mentor) END K 10 svn:author V 3 gad K 8 svn:date V 27 2006-06-27T22:14:09.000000Z K 7 svn:log V 153 Remove the last three calls to strncpy(), two of which would have been bugs if the source had ever been too big for the destination. MFC after: 3 weeks END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-06-28T09:12:29.000000Z K 7 svn:log V 392 - Recognize more device IDs adding support for BCM5754, BCM5755, BCM5787 based NICs. - Recognize BCM5703 B0 ASIC. - Rewrite the jumbo capability matching macro, so that chips known to work are listed there. [*] [*] I'm still not sure about this. Probably more corrections will be done to this macro after discussion with davidch@ and brad@OpenBSD. Obtained from: OpenBSD (brad) END