ıg184397 185 235 185 115 150 252 327 203 207 114 197 347 180 334 167 136 461 334 535 149 181 416 184 178 244 244 244 152 134 225 192 189 1243 251 138 160 116 143 143 105 227 235 166 823 109 273 556 172 111 150 1809 151 133 158 165 319 339 141 323 323 323 411 183 589 152 605 161 148 153 231 184 380 268 263 268 869 152 317 629 273 288 206 183 232 636 389 351 189 609 143 218 157 800 538 388 129 374 117 133 133 245 504 264 271 142 576 240 325 446 446 446 383 1056 262 277 237 157 147 124 451 115 115 145 127 495 1377 469 192 263 237 125 119 219 236 126 118 108 112 287 116 771 107 151 115 175 97 97 138 303 188 130 418 241 393 420 249 354 122 1610 227 142 201 415 211 176 234 213 127 308 838 196 412 506 496 369 231 172 335 169 110 136 164 270 402 165 403 K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-10-28T07:37:02.009878Z K 7 svn:log V 140 - don't pass mbuf to arpresolve in flowtable_lookup - in the current code path it causes a dangling referenc - allow duplicate flow locks END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-10-28T08:21:41.917285Z K 7 svn:log V 91 - fix index generation from hash - set ro.ro_rt before passing ro to route_to_rtentry_info END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-10-28T08:41:25.787067Z K 7 svn:log V 21 remove debug printfs END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-10-28T08:50:09.287557Z K 7 svn:log V 54 Improve alphabetical sort order of stub entry points. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-10-28T09:12:13.106107Z K 7 svn:log V 155 Rename label_on_label() to partition_check(), which is far more suggestive as to its actual function. Obtained from: TrustedBSD Project MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-10-28T09:16:34.935042Z K 7 svn:log V 230 Extended comment on why we consider a partition relabel request of "0" to be a no-op request, and why this might have to change if we want to allow leaving a partition someday. Obtained from: TrustedBSD Project MFC after: 3 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-10-28T09:45:07.328211Z K 7 svn:log V 111 Unbreak LINT from r184381 using the correct variable in debugging DPRINTF for the device and remove dead code. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-10-28T10:29:56.862597Z K 7 svn:log V 112 Vendor import of tzdata2008i: - United States zone reordering and recommenting - Argentina DST changes update. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-10-28T10:35:17.917309Z K 7 svn:log V 20 Tag of tzdata2008i. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-10-28T10:37:40.467415Z K 7 svn:log V 102 MFV of tzdata2008i. - United States zone reordering and recommenting - Argentina DST changes update. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-10-28T11:33:06.248520Z K 7 svn:log V 250 Rename three MAC entry points from _proc_ to _cred_ to reflect the fact that they operate directly on credentials: mac_proc_create_swapper(), mac_proc_create_init(), and mac_proc_associate_nfsd(). Update policies. Obtained from: TrustedBSD Project END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-10-28T12:00:28.871592Z K 7 svn:log V 88 Provide an explanation for getinoquota() call in the ufs_access vop. MFC after: 3 days END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-10-28T12:08:36.624311Z K 7 svn:log V 241 Protect check for v_pollinfo == NULL and assignment of the newly allocated vpollinfo with vnode interlock. Fully initialize vpollinfo before putting pointer to it into vp->v_pollinfo. Discussed with: dwhite Tested by: pho MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-10-28T12:15:11.100883Z K 7 svn:log V 75 Garbage-collect ext2_kqfilter vop that is now a copy of vop_stdkqfilter(). END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-10-28T12:22:33.927365Z K 7 svn:log V 44 Style return statements in vn_pollrecord(). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-10-28T12:49:07.452406Z K 7 svn:log V 364 Rename mac_cred_mmapped_drop_perms(), which revokes access to virtual memory mappings when the MAC label on a process changes, to mac_proc_vm_revoke(), It now also acquires its own credential reference directly from the affected process rather than accepting one passed by the the caller, simplifying the API and consumer code. Obtained from: TrustedBSD Project END K 10 svn:author V 5 trasz K 8 svn:date V 27 2008-10-28T13:44:11.208306Z K 7 svn:log V 239 Introduce accmode_t. This is required for NFSv4 ACLs - it will be neccessary to add more V* constants, and the variables changed by this patch were often being assigned to mode_t variables, which is 16 bit. Approved by: rwatson (mentor) END K 10 svn:author V 4 oleg K 8 svn:date V 27 2008-10-28T14:14:57.112480Z K 7 svn:log V 441 Type of q_time (start of queue idle time) has changed: uint32_t -> uint64_t. This should fix q_time overflow, which happens after 2^32/(86400*hz) days of uptime (~50days for hz = 1000). q_time overflow cause following: - traffic shaping may not work in 'fast' mode (not enabled by default). - incorrect average queue length calculation in RED/GRED algorithm. NB: due to ABI change this change is not applicable to stable. PR: kern/128401 END K 10 svn:author V 3 des K 8 svn:date V 27 2008-10-28T14:55:41.643406Z K 7 svn:log V 57 MFC (r184122): fix UseDNS option. Approved by: re (kib) END K 10 svn:author V 3 des K 8 svn:date V 27 2008-10-28T15:17:59.809072Z K 7 svn:log V 89 MFC: (r184258) Add support for the SIIG Cyber 4-port serial card. Approved by: re (kib) END K 10 svn:author V 4 csjp K 8 svn:date V 27 2008-10-28T17:01:16.921648Z K 7 svn:log V 322 MFC SVN rev 181647 - Reduce the scope of the vnode lock such that it does not cover the various copyouts associated with initializing the process's argv/env data in userspace. It is possible that these copyout operations can fault under memory pressure, possibly resulting in dead locks. Approved by: re@ (kib) END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2008-10-28T17:15:46.262590Z K 7 svn:log V 87 Remove superfluous va_end which was left there in rev 1.38. Approved by: kib (mentor) END K 10 svn:author V 5 trasz K 8 svn:date V 27 2008-10-28T19:48:58.553724Z K 7 svn:log V 84 Bump __FreeBSD_version after accmode_t introduction. Approved by: rwatson (mentor) END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-10-28T19:50:33.659525Z K 7 svn:log V 149 MFV of r184404 - tzdata2008i MFC of r184406 - United States zone reordering and recommenting - Argentina DST changes update. Approved by: re (kib) END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-10-28T19:50:50.373714Z K 7 svn:log V 149 MFV of r184404 - tzdata2008i MFC of r184406 - United States zone reordering and recommenting - Argentina DST changes update. Approved by: re (kib) END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-10-28T19:52:56.656049Z K 7 svn:log V 149 MFV of r184404 - tzdata2008i MFC of r184406 - United States zone reordering and recommenting - Argentina DST changes update. Approved by: re (kib) END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-10-28T21:04:37.216567Z K 7 svn:log V 58 fix flowtable and route build when RADIX_MPATH is enabled END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-10-28T21:05:09.799354Z K 7 svn:log V 40 hook flowtable in to ip forwarding path END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-10-28T21:53:10.749553Z K 7 svn:log V 128 Break out strictly credential-related portions of mac_process.c into a new file, mac_cred.c. Obtained from: TrustedBSD Project END K 10 svn:author V 5 trasz K 8 svn:date V 27 2008-10-28T21:57:32.416131Z K 7 svn:log V 98 Commit part of accmode_t changes that I missed in previous commit. Approved by: rwatson (mentor) END K 10 svn:author V 5 trasz K 8 svn:date V 27 2008-10-28T21:58:48.327111Z K 7 svn:log V 95 Rename a variable missed in previous accmode_t-related commits. Approved by: rwatson (mentor) END K 10 svn:author V 6 marius K 8 svn:date V 27 2008-10-28T22:05:20.962692Z K 7 svn:log V 1146 - Turn off interrupts instead of only entering a critical section while doing the block store workaround so we restore the correct floating-point registers state in case of nested floating-point operations resulting from nested interrupts. This allows the VIS-based block copy/zero functions to be used on machines requiring this workaround. Alternatively, we could take care of saving the floating-point registers here, which would be more inefficiently though and also involves turning off interrupts. - It turns out that the SCZ_PCI_DMA_SYNC register doesn't work like the TOMXMS_PCI_DMA_SYNC_PEND one (but more like the corresponding register in of Hummingbird and Sabre bridges) and writing the INO of the respective device to it causes a Safari bus error. However, due to the Schizo errata I-23, SCZ_PCI_DMA_SYNC can't be used as intended either, so remove consistent DMA syncing for Schzio bridges for now, which means that add-on cards with non-"sun4u compliant" (whatever that means exactly) PCI-PCI-bridges should be avoided until the proper workaround is implemented. [1] Reported by: Michael Moll [1] END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2008-10-28T22:09:30.100033Z K 7 svn:log V 150 DBDMA can transfer a maximum of 64K - 1 bytes per descriptor, as the byte count field is 16 bits. Inform ATA of this fact. Reported by: Marco Trillo END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-10-29T05:37:02.328863Z K 7 svn:log V 44 add sysctl to dynamically disable flowtable END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-10-29T05:48:43.193408Z K 7 svn:log V 66 rename enable disable make sure family is set correctly on ri_dst END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-10-29T05:51:03.603601Z K 7 svn:log V 22 fix sockaddr type bug END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-10-29T06:38:09.578234Z K 7 svn:log V 49 fix sockaddr copy check in route_to_rtentry_info END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-10-29T07:13:04.354397Z K 7 svn:log V 49 add stripped down config for performance testing END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-10-29T07:16:49.685650Z K 7 svn:log V 11 remove zyd END K 10 svn:author V 7 n_hibma K 8 svn:date V 27 2008-10-29T08:08:55.484715Z K 7 svn:log V 130 Add the device ID for the mass storage device that appears before the modem appears to facilitate faster switching to modem mode. END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-10-29T11:03:15.621978Z K 7 svn:log V 143 Comment out #define turning on debugging which went in with r184436 and which is also in conf/NOTES and thus defined twice when building LINT. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-10-29T12:11:48.391399Z K 7 svn:log V 70 If threads limit is exceeded, increase the totoal number of failures. END K 10 svn:author V 6 ivoras K 8 svn:date V 27 2008-10-29T13:36:23.782295Z K 7 svn:log V 727 Introduce a new sysctl, kern.sched.topology_spec, that returns an XML dump of detected ULE CPU topology. This dump can be used to check the topology detection and for general system information. An example of CPU topology dump is: kern.sched.topology_spec: 0, 1, 2, 3, 4, 5, 6, 7 0, 1, 2, 3 4, 5, 6, 7 Reviewed by: jeff Approved by: gnn (mentor) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-10-29T15:52:22.536238Z K 7 svn:log V 17 MFC: tzdata2008i END K 10 svn:author V 7 n_hibma K 8 svn:date V 27 2008-10-29T16:17:34.769626Z K 7 svn:log V 176 - Add documentation on how to temporarily display the umass devices that are automatically hidden by the u3gstub device. - Add a link to the u3g driver man page for u3gstub. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2008-10-29T17:27:23.665000Z K 7 svn:log V 459 Partial MFC of recent ATA driver in order to support more new hardware. - r183380 (sos) Add support for the ITE 8213 controller. Thanks goes to ITE who provided docs and feedback and made this possible. Minor fixups to the Intel ICH code for bugs found while doing this. (ITE8213 is very semilar to an Intel ICH) - r183552 (sos) Add ICH10 PCI id's. Fix the number of PATA ports on newer ICHX chips, they have just 1 port not 2. Approved by: re (kib) END K 10 svn:author V 2 mp K 8 svn:date V 27 2008-10-29T18:46:47.143343Z K 7 svn:log V 81 Explicitly set the shell to /bin/sh when MK_TCSH == no. Not objected to by: sam END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-10-29T18:49:37.725867Z K 7 svn:log V 14 Misc cleanup. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2008-10-29T18:56:59.345186Z K 7 svn:log V 58 Update NetBSD version number. Approved by: re (implicit) END K 10 svn:author V 3 hrs K 8 svn:date V 27 2008-10-29T19:11:03.227439Z K 7 svn:log V 1715 Relnotes update for 6.4R. Security Advisories: SA-08:03.sendfile, SA-08:05.openssh, SA-08:06.bind, SA-08:07.amd64, SA-08:09.icmp6, SA-08:10.nd6. Kernel Changes: Camellia cipher support, malloc(9) RedZone added, kernel-mode client-side NFS locking (options NFSLOCKD), boot from GPT-labeled disk, acpi_asus(4) EeePC backlight support, DRM i915 GME support, bge(4) BCM5906 support, dummynet(4) fast support, aac(4) >2TB RAID array support, ata(4) ServerWorks HT1000 chipset workaround added, iir(4) stability improvement, mpt(4) mpt_user personality added. Userland Changes: bsdtar(1) --numeric-owner, -s, -S added, cp(1) ACL bug fixed, cron(8) -m added, cvs(1) -n added, dump(8) and restore(8) extattr support, fortune(6) FORTUNE_PATH support, fortune(6) -e bugfix, freebsd-update IDSIgnorePaths statement support, fwcontrol(8) -f added, make(1) :u variable modifier added, morse(6) output bug fixed, mountd(8) -h added, mv(1) behavior change, periodic(8) daily_status_mail_rejects_shorten variable added, ping6(8) exit status change, telnetd(8) authentication bug fixed, top(1) and vmstat(8) -P added, watch(8) now support >10 snp(4) devices, rc.d/ike removed, dymmynet_enable variable added to rc.conf, rc.d/ppp ppp_profile variable support, rc.d/sysctl loading /etc/sysctl.conf.local support, rc.firewall firewall_client_* and firewall_simple_* variable support, pkg_install updated to snapshot as of 30 May 2008 on CURRENT, pkg_sign(1) and pkg_check(1) removed. Contrib Software Update: am-utils 6.1.5, BIND 9.3.5-P2, NTP 4.2.4p5, FILE 4.21, libarchive 2.5.4b, ncurses 5.6-20080503, OpenPAM Hydrangea, tcsh 6.15.00, tzdata2008e. Approved by: re (implicit) END K 10 svn:author V 3 hrs K 8 svn:date V 27 2008-10-29T19:14:03.271102Z K 7 svn:log V 59 Trim Errata document for 6.4R. Approved by: re (implicit) END K 10 svn:author V 3 hrs K 8 svn:date V 27 2008-10-29T19:22:00.042323Z K 7 svn:log V 41 Fix wording. Approved by: re (implicit) END K 10 svn:author V 3 hrs K 8 svn:date V 27 2008-10-29T19:22:29.092048Z K 7 svn:log V 66 Remove link for -stable mailing list. Approved by: re (implicit) END K 10 svn:author V 3 hrs K 8 svn:date V 27 2008-10-29T19:32:32.032042Z K 7 svn:log V 73 Remove very old translations for the moment. Approved by: re (implicit) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2008-10-29T19:52:24.136860Z K 7 svn:log V 222 MFC recent ata(4) manual page updates: - r183613 by delphij Note recently added ICH10 support - r183570 by brueffer ITE IT8213F support. - r181826 by simon Fix mdoc markup in r181825. Approved by: re (kib) END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-10-29T20:01:26.123183Z K 7 svn:log V 246 Allow card reader bridge driver to report maximum supported transfer size. sdhci supports up to 65535 blocks transfers, at91_mci - one block. Enable multiblock operations disabled before to follow at91_mci driver limitations. Reviewed by: imp@ END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-10-29T20:19:54.035190Z K 7 svn:log V 49 o unbreak ani stat display o improve some labels END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2008-10-29T21:08:34.753326Z K 7 svn:log V 226 MFC: don't panic when HZ value is below 32. This change may need a bit of refinement later, as bde says that 4BSD expects stathz of 128, while in this case stathz would be in the range 40-128. Approved by: re (kib, kensmith) END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2008-10-29T21:12:19.578582Z K 7 svn:log V 226 MFC: don't panic when HZ value is below 32. This change may need a bit of refinement later, as bde says that 4BSD expects stathz of 128, while in this case stathz would be in the range 40-128. Approved by: re (kib, kensmith) END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2008-10-29T21:31:01.385956Z K 7 svn:log V 226 MFC: don't panic when HZ value is below 32. This change may need a bit of refinement later, as bde says that 4BSD expects stathz of 128, while in this case stathz would be in the range 40-128. Approved by: re (kib, kensmith) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2008-10-29T21:43:14.354271Z K 7 svn:log V 314 MFC r183733 Prefix the static shl function with '__' like its parent function __qdivrem to avoid being picked up by the DTrace fbt provider. This is called by __udivdi3() for doing 64bit division on a 32bit arch and may be called from within the dtrace context causing a double fault. Approved by: re (kib) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2008-10-30T00:19:19.847940Z K 7 svn:log V 87 Pass a pointer to warn2 so the warn2 == IN_ALL would not be an always-false condition. END K 10 svn:author V 5 rafan K 8 svn:date V 27 2008-10-30T01:54:31.888175Z K 7 svn:log V 494 - Whenever a password/shell is changed via rpc.yppasswdd, the daemon leaves one zombie process because it does not do the cleanup. For a long running NIS/YP server, it will have lots of zombie processes on it. Fix that by ignoring the SIGCHLD signal since we don't really care about the exit status in this case. PR: bin/91980 Reported by: Arjan van der Velde Submitted by: Jui-Nan Lin" Reviewed by: delphij MFC after: 1 month END K 10 svn:author V 6 marcel K 8 svn:date V 27 2008-10-30T03:31:33.074344Z K 7 svn:log V 57 Add support for little-endian compilations to this file. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2008-10-30T04:01:11.980866Z K 7 svn:log V 504 MFC r183288,183411,183827,184382: Expand DBDMA API to allow setting device-dependent control bits and allow DBDMA registers to lie in a subregion of a resource. Also import changes to the BMAC driver to handle these changes and change the way we enable the BMAC cell in macio. Instead of calling the macio's enable-enet word, which apparently does nothing on some machines, open an OF instance of the ethernet controller. This fixes cold booting from disk on my Blue & White G3. Approved by: re (gnn) END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-10-30T04:16:40.129184Z K 7 svn:log V 67 make gdtset UP as well as SMP so that non-SMP kernels will compile END K 10 svn:author V 7 delphij K 8 svn:date V 27 2008-10-30T04:55:12.979108Z K 7 svn:log V 52 Sync with English revisions. Approved by: re (hrs) END K 10 svn:author V 7 n_hibma K 8 svn:date V 27 2008-10-30T08:13:49.742500Z K 7 svn:log V 57 Return USBD_NORMAL_COMPLETION instead of a hard coded 0. END K 10 svn:author V 7 n_hibma K 8 svn:date V 27 2008-10-30T08:17:27.855517Z K 7 svn:log V 134 Bugfix: Check the error code for in progress as well, after starting the transfer. Some changes to improve the debugging experience. END K 10 svn:author V 7 n_hibma K 8 svn:date V 27 2008-10-30T08:32:18.340585Z K 7 svn:log V 88 We need to print out the device info ourselves on FBSD 6. Submitted by: Thomas Nystrom END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-10-30T10:13:53.057285Z K 7 svn:log V 283 The V* flags passed using an accmode_t to the access() and open() access control checks in mac_bsdextended are not in the same namespace as the MBI_ flags used in ugidfw policies, so add an explicit conversion routine to get from one to the other. Obtained from: TrustedBSD Project END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-10-30T13:10:33.342680Z K 7 svn:log V 175 MFC of the r179312 by sos: Do not call ata_start() when ata_reinit fails in the ioctl path. Approved by: re (kensmith), sos Prodded by: Andrey V. Elsukov END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-10-30T13:14:45.218802Z K 7 svn:log V 170 MFC: Split most of getdirentries() out into a kern_getdirentries() and add a freebsd32 frontend to fix a data corruption bug with 32-bit binaries. Approved by: re (kib) END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-10-30T13:18:28.243259Z K 7 svn:log V 175 MFC of the r179312 by sos: Do not call ata_start() when ata_reinit fails in the ioctl path. Approved by: re (kensmith), sos Prodded by: Andrey V. Elsukov END K 10 svn:author V 6 ivoras K 8 svn:date V 27 2008-10-30T14:05:57.941096Z K 7 svn:log V 773 Teach cat(1) and cp(1) to use a larger buffer if enough memory is present in the system. A simple heuristics is used to detect what is "enough" memory: if number of physmem pages is greater than 32k (equalling 128 MB on machines with 4 kB pages). Typical immediate result of these changes is reduction in context switches and the goal is to increase efficiency by using large buffers: before: /usr/bin/time -hlp cat file1 > file2 ... 163 voluntary context switches 11194 involuntary context switches after: /usr/bin/time -hlp ./cat file1 > file2 ... 417 voluntary context switches 272 involuntary context switches Reviewed by: hackers@ (no objections to earlier version of cat patch) Approved by: gnn (mentor) MFC after: 4 months END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-10-30T14:30:49.313827Z K 7 svn:log V 60 Regen for freebsd32_getdirentries(). Approved by: re (kib) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2008-10-30T15:27:13.173388Z K 7 svn:log V 216 Fix some possible infinite loops in the ADB code, and remove some hacks that were inserted in desperation during bring-up. In addition, move ADB bus enumeration and child attachment to when interrupts are available. END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-10-30T15:48:55.766141Z K 7 svn:log V 537 MFC: r182855 There is no real consumer of ip6_plen (IPv6 payload length) as set in tcpip_fillheaders(). ip6_output() will calculate it based of the length from the mbuf packet header itself. Initialize the value in tcpip_fillheaders() in correct (network) byte order. With the above change, all places calling tcp_trace() pass in the ip6 header serialized in the mbuf as ipgen and with ip6_plen in network byte order. Thus convert the IPv6 payload length to host byte order before printing. Approved by: re (gnn) END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-10-30T15:56:04.830420Z K 7 svn:log V 181 MFC: r182106 Make the checks for ptp interfaces in ifa_ifwithdstaddr() and ifa_ifwithnet() look more similar by comparing the pointer to NULL in both cases. Approved by: re (gnn) END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-10-30T16:09:08.011581Z K 7 svn:log V 196 MFC: r182915 mld_timerresid() returns ms so instead of doing the maths in usec and then dividing down to ms, do the maths in ms. Obtained from: NetBSD mld6.c rev. 1.47 Approved by: re (gnn) END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-10-30T16:11:07.109630Z K 7 svn:log V 113 Don't hang if encrypting/decrypting using struct iovecs where one of the iovecs ends on a crypto block boundary. END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-10-30T16:15:12.107554Z K 7 svn:log V 92 MFC: r183611 Style changes: compare pointer to NULL and move a }. Approved by: re (gnn) END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-10-30T16:20:42.975710Z K 7 svn:log V 140 MFC: r182112 Make lmc(4) compile without INET6 defined. While here make it compile if there is no INET defined. Approved by: re (gnn) END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-10-30T16:22:04.152381Z K 7 svn:log V 543 Fix checks for fast frames negotiation. ni_ath_flags holds the capabilities reported by the ap. These need to be cross-checked against the local configuration in the vap. Previously we were only checking the ap capabilities which meant that if an ap reported it was ff-capable but we were not setup to use them we'd try to do ff aggregation and drop the frame. There are a number of problems to be fixed here but applying this fix immediately as the problem causes all traffic to stop (and has not workaround). Reported by: Ashish Shukla END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-10-30T16:29:04.784354Z K 7 svn:log V 297 MFC: r183606, r183610 Cache so_cred as inp_cred in the inpcb. This means that inp_cred is always there, even after the socket has gone away. It also means that it is constant for the lifetime of the inp. Both facts lead to simpler code and possibly less locking. Approved by: re (gnn) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-10-30T17:47:57.968740Z K 7 svn:log V 254 Protect the event->class lookup database using an rwlock instead of a mutex, as it's rarely changed but frequently accessed read-only from multiple threads, so a potentially significant source of contention. MFC after: 1 month Sponsored by: Apple, Inc. END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-10-30T17:54:20.089184Z K 7 svn:log V 97 Add quirk to set GPIO2 to enable internal speaker on Dell Vostro 1400. Tested by: Sergio Veloso END K 10 svn:author V 5 joerg K 8 svn:date V 27 2008-10-30T19:51:02.673611Z K 7 svn:log V 514 When running a "chio return" operation using a physical source unit rather than a voltag name, do not set the CESR_VOLTAGS flags in the CHIOGSTATUS command requesting the current status. As voltags are an optional feature that must be handled as "reserved" by media changers not implementing the feature, always setting CESR_VOLTAGS resulted in the command being aborted with an `Invalid field in CDB', and consequently the "chio return" failed, for media changers that do not support voltags. MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2008-10-30T20:24:25.731639Z K 7 svn:log V 51 ifconfig(8) can take only one interface at a time. END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2008-10-30T21:02:00.237201Z K 7 svn:log V 121 Fix compilation in the case when kernel doesn't have KDB ebabled. subr_kdb.c still references breakpoint() in this case. END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2008-10-30T21:48:28.835766Z K 7 svn:log V 61 Make it possible to compile kernel with KTR but without DDB. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-10-30T21:58:39.576465Z K 7 svn:log V 703 Break out single audit_pipe_mtx into two types of locks: a global rwlock protecting the list of audit pipes, and a per-pipe mutex protecting the queue. Likewise, replace the single global condition variable used to signal delivery of a record to one or more pipes, and add a per-pipe condition variable to avoid spurious wakeups when event subscriptions differ across multiple pipes. This slightly increases the cost of delivering to audit pipes, but should reduce lock contention in the presence of multiple readers as only the per-pipe lock is required to read from a pipe, as well as avoid overheading when different pipes are used in different ways. MFC after: 2 months Sponsored by: Apple, Inc. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-10-30T23:09:19.926765Z K 7 svn:log V 441 When we drop an audit record going to and audit pipe because the audit pipe has overflowed, drop the newest, rather than oldest, record. This makes overflow drop behavior consistent with memory allocation failure leading to drop, avoids touching the consumer end of the queue from a producer, and lowers the CPU overhead of dropping a record by dropping before memory allocation and copying. Obtained from: Apple, Inc. MFC after: 2 months END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2008-10-31T00:52:31.211011Z K 7 svn:log V 287 Modify our boot block to pick an output device, without which boot1 will fail on G4 machines. On the assumption that most people using FreeBSD on Apple hardware are not using serial consoles, set boot1's output to screen. This should be revisited. While here, reduce verbosity of boot1. END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-10-31T02:36:28.320837Z K 7 svn:log V 35 make gdtset unconditionally global END K 10 svn:author V 5 peter K 8 svn:date V 27 2008-10-31T05:43:19.375302Z K 7 svn:log V 279 Add three extra to the kinfo_proc_vmmap data. kve_offset - the offset within an object that a mapping refers to. fileid and fsid are inode/dev for vnodes. (Linux procfs has these and valgrind is really unhappy without them.) I believe I didn't change the size of the struct. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-10-31T06:19:28.846518Z K 7 svn:log V 25 Setup my public WIP repo END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-10-31T06:26:49.687491Z K 7 svn:log V 41 newcard project migrating from perforce. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-10-31T06:27:13.460590Z K 7 svn:log V 41 Initial copy of sys for newcard project. END K 10 svn:author V 4 kato K 8 svn:date V 27 2008-10-31T08:42:34.651489Z K 7 svn:log V 151 MFC of r184327. Improved IDE HDD geometry adjustment. Previous code didn't work with certain ATA-6 drives including CF cards. Approved by: re (kib) END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-10-31T09:09:22.753037Z K 7 svn:log V 407 Merge revision 183061 from head to stable/7. > Allow multiple locks to be acquired by detecting corresponding > bit flag, otherwise if a thread acquired a lock, another thread > or the current thread itself can no longer acquire another lock > because thread_mask_set() return whole flag word, this results > bit leaking in the word and misbehavior in later locking and > unlocking. Approved by: re (kib) END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-10-31T09:41:06.163958Z K 7 svn:log V 172 MFC: r183973 Add mac_check_inpcb_visible MAC Framework entry point, which is similar to mac_check_socket_visible but operates on the inpcb. Approved by: re (rwatson) END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-10-31T10:11:35.375710Z K 7 svn:log V 178 Revert r184136. Instead, push the check for crashdumpmap overflow into the MD i386 and amd64 dump code. Requested by: jhb Retested by: pho MFC after: 3 days (+ 176304 + 184136) END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-10-31T10:14:28.581729Z K 7 svn:log V 50 The file was inadvertently excluded from r184499. END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-10-31T10:38:30.419381Z K 7 svn:log V 483 The code in linux_proc_exit() contains a race when multiple linux based processes exits at the same time. The linux_emuldata structure is freed but p->p_emuldata is left as a dangling pointer to the just freed memory. The check for W_EXIT in the loop scanning the child processes isn't safe since the state of the child process can change right afterwards. Lock the process and check the W_EXIT before delivering signal. Submitted by: tegge Reviewed by: davidxu MFC after: 1 week END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-10-31T11:27:54.640277Z K 7 svn:log V 148 MFC: r183980 Add a mac_check_inpcb_visible implementation to all MAC policies that handle mac_check_socket_visible. Approved by: re (rwatson) END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-10-31T11:47:51.608283Z K 7 svn:log V 230 Commit everything of this project before I take this laptop on a trip overseas. It produces the right output for all versions which are not .0 versions, and has a good overview of when all tzdata data was imported, MFVd and MFCd. END K 10 svn:author V 4 oleg K 8 svn:date V 27 2008-10-31T12:58:12.224936Z K 7 svn:log V 352 Direct commit (r184414 is not applicable to stable due to ABI change): Workaround possible q_time overflow (will happen after 2^32/(86400*hz) days of uptime (~50days for hz = 1000)), which may lead to: - broken shaping in 'fast' io mode. - incorrect average queue length calculation in RED/GRED algorithm. PR: kern/128401 Approved by: re (kensmith) END K 10 svn:author V 4 oleg K 8 svn:date V 27 2008-10-31T13:00:34.566278Z K 7 svn:log V 352 Direct commit (r184414 is not applicable to stable due to ABI change): Workaround possible q_time overflow (will happen after 2^32/(86400*hz) days of uptime (~50days for hz = 1000)), which may lead to: - broken shaping in 'fast' io mode. - incorrect average queue length calculation in RED/GRED algorithm. PR: kern/128401 Approved by: re (kensmith) END K 10 svn:author V 4 oleg K 8 svn:date V 27 2008-10-31T13:01:31.958371Z K 7 svn:log V 352 Direct commit (r184414 is not applicable to stable due to ABI change): Workaround possible q_time overflow (will happen after 2^32/(86400*hz) days of uptime (~50days for hz = 1000)), which may lead to: - broken shaping in 'fast' io mode. - incorrect average queue length calculation in RED/GRED algorithm. PR: kern/128401 Approved by: re (kensmith) END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-10-31T14:30:33.632694Z K 7 svn:log V 291 MFC: r183982 Add cr_canseeinpcb() doing checks using the cached socket credentials from inp_cred which is also available after the socket is gone. Switch cr_canseesocket consumers to cr_canseeinpcb. This removes an extra acquisition of the socket lock. Approved by: re (rwatson) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-10-31T14:40:21.493614Z K 7 svn:log V 959 Historically, /dev/auditpipe has allows only whole records to be read via read(2), which meant that records longer than the buffer passed to read(2) were dropped. Instead take the approach of allowing partial reads to be continued across multiple system calls more in the style of streaming character device. This means retaining a record on the per-pipe queue in a partially read state, so maintain a current offset into the record. Keep the record on the queue during a read, so add a new lock, ap_sx, to serialize removal of records from the queue by either read(2) or ioctl(2) requesting a pipe flush. Modify the kqueue handler to return bytes left in the current record rather than simply the size of the current record. It is now possible to use praudit, which used the standard FILE * buffer sizes, to track much larger record sizes from /dev/auditpipe, such as very long command lines to execve(2). MFC after: 2 months Sponsored by: Apple, Inc. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-10-31T14:47:15.471677Z K 7 svn:log V 165 In style(9) examples of err() and errx(), use sysexits(3) errors rather than returning 1. Submitted by: Bruce Cran MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-10-31T15:11:01.211084Z K 7 svn:log V 180 Since there is no longer the opportunity for record truncation, just return 0 if the truncation counter is queried on an audit pipe. MFC after: 2 months Sponsored by: Apple, Inc. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-10-31T15:14:40.869688Z K 7 svn:log V 140 In example use of err(3) and errx(3), use sysexits(3) constants. MFC after: 3 days Submitted by: Bruce Cran END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2008-10-31T15:56:38.047421Z K 7 svn:log V 60 Prepare for the 6.4-RC2 builds. Approved by: re (implicit) END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-10-31T18:27:30.066675Z K 7 svn:log V 55 Add a missing /sys which is implied by later comments. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-10-31T18:40:35.278769Z K 7 svn:log V 32 Merging r184495 through r184513 END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-10-31T23:24:13.777045Z K 7 svn:log V 358 Add RL_TWISTER_ENABLE option. This enables the magic bits to do long cable tuning. This has helped in some installations for hardware deployed by a former employer. Made optional because the lists aren't full of complaints about these cards... even when they were wildly popular. Reviewed by: attilio@, jhb@, trhodes@ (all an older version of the patch) END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-11-01T00:28:44.404955Z K 7 svn:log V 23 Add RL_TWISTER_ENABLE. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2008-11-01T06:48:28.376528Z K 7 svn:log V 21 o OpenBSD 4.4 added. END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-11-01T06:50:52.603271Z K 7 svn:log V 51 use RTFREE_LOCKED as the rtentry is already locked END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-11-01T06:57:59.719764Z K 7 svn:log V 33 add debugging to forwarding path END K 10 svn:author V 2 ed K 8 svn:date V 27 2008-11-01T08:07:02.295049Z K 7 svn:log V 403 Allow a read() on /dev/ams[0-9] to be interrupted. Right now ams_read() uses cv_wait() to wait for new data to arrive on the mouse device. This means that when you run `cat /dev/ams0', it cannot be interrupted directly. After you press ^C, you first need to move the mouse before cat will quit. Make this function use cv_wait_sig(), which allows it to be interrupted directly. Reviewed by: nwhitehorn END K 10 svn:author V 2 ed K 8 svn:date V 27 2008-11-01T08:35:28.570957Z K 7 svn:log V 1284 Reimplement the /dev/console device node. One of the pieces of code that I had left alone during the development of the MPSAFE TTY layer, was tty_cons.c. This file actually has two different functions: - It contains low-level console input/output routines (cnputc(), etc). - It creates /dev/console and wraps all its cdevsw calls to the appropriate TTY. This commit reimplements the second set of functions by moving it directly into the TTY layer. /dev/console is now a character device node that's basically a regular TTY, but does a lookup of `si_drv1' each time you open it. d_write has also been changed to call log_console(). d_close() is not present, because we must make sure we don't revoke the TTY after writing a log message to it. Even though I'm not convinced this is in line with the future directions of our console code, it is a good move for now. It removes recursive locking from the top half of the TTY layer. The previous implementation called into the TTY layer with Giant held. I'm renaming tty_cons.c to kern_cons.c now. The code hardly contains any TTY related bits, so we'd better give it a less misleading name. Tested by: Andrzej Tobola , Carlos A.M. dos Santos , Eygene Ryabinkin END K 10 svn:author V 2 ed K 8 svn:date V 27 2008-11-01T13:40:46.361477Z K 7 svn:log V 377 Clamp the values of t_column to 5 digits in `pstat -t' and `show all ttys'. We often run into these very high column numbers when we run curses applications, because they don't print any newlines. This messes up the table output of `pstat -t'. If these numbers get really high, they aren't of any use to the reader anyway. Convert them to `99999' when they run out of bounds. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-11-01T14:19:55.863008Z K 7 svn:log V 95 - Add one more supported adapter (1) - Fix a couple of typos Submitted by: Horvath Andras (1) END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-11-01T17:02:01.946282Z K 7 svn:log V 170 Fix a few typos/spelling errors in my comments from the last commit, plus a few others that had lingered in this driver... Submitted by: "b." bf2006a att yahoo KIBO com END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-11-01T17:55:29.399792Z K 7 svn:log V 142 - arpresolve gateway address for gateway routes - simplify gateway validation check to fix case where the fl entry lock wasn't getting droppd END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-11-01T17:57:20.248846Z K 7 svn:log V 31 remove debug printf statements END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-11-01T18:57:58.335745Z K 7 svn:log V 25 IF_RELENG7 183757:184526 END K 10 svn:author V 5 trasz K 8 svn:date V 27 2008-11-01T19:02:05.620287Z K 7 svn:log V 124 Remove obsolete pseudocode from VOP_ACCESS.9, replacing it with something closer to reality. Approved by: rwatson (mentor) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2008-11-01T19:11:21.305897Z K 7 svn:log V 138 Correct the documented declaration of the archive_write_callback to match the code. PR: docs/128089 Submitted by: Mel MFC after: 3 days END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-11-01T20:50:53.671526Z K 7 svn:log V 32 copy sys/xen to releng 7 branch END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-11-01T20:53:09.233632Z K 7 svn:log V 24 copy xen device drivers END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-11-01T20:54:11.316440Z K 7 svn:log V 14 copy i386/xen END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-11-01T20:54:52.863301Z K 7 svn:log V 18 copy xen includes END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-11-01T21:16:09.304405Z K 7 svn:log V 190 Allow a single read(2) system call on an audit pipe to retrieve data from more than one audit record at a time in order to improve efficiency. MFC after: 2 months Sponsored by: Apple, Inc. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-11-01T21:49:32.201778Z K 7 svn:log V 24 r184514 through r184524 END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-11-01T21:56:45.360082Z K 7 svn:log V 674 We only allow a partial read of the first record in an audit pipe record queue, so move the offset field from the per-record audit_pipe_entry structure to the audit_pipe structure. Now that we support reading more than one record at a time, add a new summary field to audit_pipe, ap_qbyteslen, which tracks the total number of bytes present in a pipe, and return that (minus the current offset) via FIONREAD and kqueue's data variable for the pending byte count rather than the number of bytes remaining in only the first record. Add a number of asserts to confirm that these counts and offsets following the expected rules. MFC after: 2 months Sponsored by: Apple, Inc. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-11-01T22:11:09.840639Z K 7 svn:log V 13 notice 2008i END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-11-01T22:12:17.303387Z K 7 svn:log V 57 Little hack to create contrib.ent from the command line. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-11-01T22:18:49.993894Z K 7 svn:log V 21 add 6.4 release path END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-11-01T23:05:49.180684Z K 7 svn:log V 79 Add comment for per-pipe stats. MFC after: 2 months Sponsored by: Apple, Inc. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-11-01T23:39:21.067305Z K 7 svn:log V 4 MFS END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-11-01T23:46:50.200249Z K 7 svn:log V 4 MFS END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-11-02T00:14:54.650045Z K 7 svn:log V 44 This is how it should look like at the end. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-11-02T00:18:19.430677Z K 7 svn:log V 206 Remove stale comment about filtering in audit pipe ioctl routine: we do support filtering now, although we may want to make it more interesting in the future. MFC after: 2 months Sponsored by: Apple, Inc. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-11-02T00:25:48.982608Z K 7 svn:log V 92 Update introductory comment for audit pipes. MFC after: 2 months Sponsored by: Apple, Inc. END K 10 svn:author V 8 keramida K 8 svn:date V 27 2008-11-02T00:41:26.835845Z K 7 svn:log V 33 Various comment nits, and typos. END K 10 svn:author V 5 peter K 8 svn:date V 27 2008-11-02T01:10:54.841270Z K 7 svn:log V 323 We've been lax about matching END() macros in asm code for some time. This is used to set the ELF size attribute for functions. It isn't normally critical but some things can make use of it (gdb for stack traces). Valgrind needs it so I'm adding it in. The problem is present on all branches and on both i386 and amd64. END K 10 svn:author V 5 peter K 8 svn:date V 27 2008-11-02T01:28:47.399861Z K 7 svn:log V 146 Add missing END() macros, as per rev 184547 for amd64. The lack of these is mostly harmless, but it does upset some of valgrind's functionality. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-11-02T02:56:16.521538Z K 7 svn:log V 300 MFp4(newcard): remove explicit cardbus driver attachments. Since the pci/cardbus refactor, these have been unnecessary. Well, almost unnecessary. There's a bug somewhere in subr_bus.c that prevents kldload from working entirely correctly. Remove them from my tree in the hopes I'll fix that bug. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-11-02T02:58:24.061851Z K 7 svn:log V 327 Remove cardbus attachment. It likely was a cut-n-paste left over from whatever template was used to create this driver. It is not necessary, and wouldn't work anyway since (a) this device will never be in a cardbus tin-can and (b) the driver isn't even PCI, but instead a built-in NIC on the IDT RC32434 on its internal bus. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-11-02T03:00:36.558679Z K 7 svn:log V 156 Merge some minor deltas from p4 newcard tree: (1) Belkin F5D7050_V4000 was also sold as 'Ativa 802.11g wireless card' (document) (2) Add HP Office Jet 4215 END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-11-02T03:02:56.324156Z K 7 svn:log V 261 Add support for reading Tivo Series 1 partitioning. This likely needs a little refinement, but is good enough to commit as is. # Should look to see if I should move swab(3) into the kernel or just # provide the unoptimized routine here. Reviewed by: marcel@ END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-11-02T06:40:33.587582Z K 7 svn:log V 28 add debugging to INVARIANTS END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-11-02T10:15:42.245072Z K 7 svn:log V 1512 Improve VFS locking: - Implement real draining for vfs consumers by not relying on the mnt_lock and using instead a refcount in order to keep track of lock requesters. - Due to the change above, remove the mnt_lock lockmgr because it is now useless. - Due to the change above, vfs_busy() is no more linked to a lockmgr. Change so its KPI by removing the interlock argument and defining 2 new flags for it: MBF_NOWAIT which basically replaces the LK_NOWAIT of the old version (which was unlinked from the lockmgr alredy) and MBF_MNTLSTLOCK which provides the ability to drop the mountlist_mtx once the mnt interlock is held (ability still desired by most consumers). - The stub used into vfs_mount_destroy(), that allows to override the mnt_ref if running for more than 3 seconds, make it totally useless. Remove it as it was thought to work into older versions. If a problem of "refcount held never going away" should appear, we will need to fix properly instead than trust on such hackish solution. - Fix a bug where returning (with an error) from dounmount() was still leaving the MNTK_MWAIT flag on even if it the waiters were actually woken up. Just a place in vfs_mount_destroy() is left because it is going to recycle the structure in any case, so it doesn't matter. - Remove the markercnt refcount as it is useless. This patch modifies VFS ABI and breaks KPI for vfs_busy() so manpages and __FreeBSD_version will be modified accordingly. Discussed with: kib Tested by: pho END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-11-02T10:20:18.918868Z K 7 svn:log V 130 Bump __FreeBSD_version in order to reflect vfs_busy() prototype changing and its flags (MBF_NOWAIT, MBF_MNTLSTLOCK) introduction. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-11-02T10:33:57.851948Z K 7 svn:log V 46 Reflect changes for the vfs_busy() prototype. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2008-11-02T11:49:19.471831Z K 7 svn:log V 106 Remove the call to getinoquota() from ntfs_access. How did it get there?! Approved by: rwatson (mentor) END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-11-02T12:50:16.633242Z K 7 svn:log V 322 As soon as we have several threads per process now, it is not correct to use process ID as ACPI thread ID. Concurrent requests with equal thread IDs broke ACPI mutexes operation causing unpredictable errors including AE_AML_MUTEX_NOT_ACQUIRED that I have seen. Use kernel thread ID instead of process ID for ACPI thread. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-11-02T16:50:57.969650Z K 7 svn:log V 118 Make RL_TWISTER_ENABLE a tunable/sysctl. Eliminate it as an option. Fix module build. Submitted by: Kostik Belousov END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-11-02T16:51:57.261094Z K 7 svn:log V 84 Document dev.rl.%unit.twister_enable sysctl/tunable. Submitted by: Kostik Belousov END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2008-11-02T17:00:23.075448Z K 7 svn:log V 137 Document a few sysctls in the NFS client and server code. Minor style(9) where applicable. Approved by: alfred (slightly older version) END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-11-02T17:04:54.946297Z K 7 svn:log V 120 Move mn over. One of the last stragglers in sys/pci. There's no module built for this hardware, so no changes needed. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-11-02T17:35:15.189719Z K 7 svn:log V 35 Make the no driver stuff an ifdef. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-11-02T18:48:54.035393Z K 7 svn:log V 215 MFp4: Make the ISA bus keep track of more PNP details. Plus a minor style fix while I'm here. More could be done here, but except for some SBCs that don't have ACPI, there's limited value to anybody in doing so. END K 10 svn:author V 2 ed K 8 svn:date V 27 2008-11-02T19:08:10.147824Z K 7 svn:log V 746 Make the touch pad on my PowerBook G4 12" a little more usable. For an unknown reason the touch pad of my PowerBook generates button 5 events when you operate it. This causes the adb_mouse code to convert them to button 2 events, which is not what we want. Add a new flag, AMS_TOUCHPAD, which is used to distinguish the touch pad. When set, don't convert button events of unknown buttons to the last button. There are still three problems left with respect to user input: - The mouse button events are not properly processed when the touch pad isn't touched. - The arrow keys on the keyboard don't work inside X11. - The power button isn't handled by the kernel, similar to the ACPI power button on i386/amd64. Approved by: nwhitehorn END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-11-02T19:40:24.469159Z K 7 svn:log V 103 Revert r184516. Option RL_TWISTER_ENABLE is no more after it became loader tunable. Pointy hat to: me END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-11-02T19:48:15.452821Z K 7 svn:log V 315 When encoding an smb name, truncate one byte earlier in order than we did previously in order to ensure it fit properly in the bufer when encoded. This prevents a debugging printf from firing if a source or destination host name for an smb mount exceeds 15 characters. MFC after: 3 days Obtained from: Apple, Inc. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-11-02T20:22:24.669291Z K 7 svn:log V 409 smb_vc_put() requires that the passed vcp be locked, so lock it before dropping the connection when the requested service isn't available, or we may try to release a lock that isn't locked. This prevents an assertion failure when trying to mount a non-present share using smbfs with INVARIANTS; a lock order reversal warning that immediately follows is not yet fixed. Reported by: attilio MFC after: 3 days END K 10 svn:author V 7 delphij K 8 svn:date V 27 2008-11-02T22:43:37.893860Z K 7 svn:log V 399 MFC revisions 180072 and 182967 by emaste: Add explicit PCI IDs for the following Adaptec RAID Series 2 adapters: Adaptec RAID 2045 Adaptec RAID 2405 Adaptec RAID 2445 Adaptec RAID 2805 Without this change these devices are supported by the driver's family support, but they then appear as "Adaptec RAID Controller" in boot messages and the dev.aac.0.%desc sysctl. Approved by: re (kib) END K 10 svn:author V 6 ivoras K 8 svn:date V 27 2008-11-02T23:11:20.539101Z K 7 svn:log V 273 Increase the initial sbuf size for CPU topology dump to something more usable for newer CPUs. The new value allows 2 x quad core configuration dumps to fit within the initial buffer without reallocations. Approved by: gnn (mentor) (older version) Pointed out by: rdivacky END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-11-02T23:15:32.180462Z K 7 svn:log V 134 Catch up internal locking routines in netsmb with lockmgr changes -- explicit thread arguments are no longer required in many places. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-11-02T23:20:27.908562Z K 7 svn:log V 76 Catch up with netsmb locking: explicit thread arguments no longer required. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2008-11-03T00:53:54.421098Z K 7 svn:log V 239 Move the CAM passthrough code into a true module so that it doesn't have to be compiled into the main AMR driver. It's code that is nice to have but not required for normal operation, and it is reported to cause problems for some people. END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-11-03T03:17:35.137926Z K 7 svn:log V 75 There is no point in repeatedly asking for a route to be cloned on lookup. END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-11-03T03:17:56.801581Z K 7 svn:log V 16 add DIAGNOSTICs END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-11-03T03:18:29.601198Z K 7 svn:log V 42 Be more parsimonious about route cloning. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2008-11-03T04:13:27.771719Z K 7 svn:log V 69 Add amr_cam module directory that was missed in the previous commit. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2008-11-03T05:19:45.863370Z K 7 svn:log V 173 Sync with OpenBSD's dirname(3) - license change, avoid strcpy() over string constant, use memcpy() instead of strncpy() and improve code readibility. No functional change. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-11-03T05:52:43.055487Z K 7 svn:log V 309 We can't mask out the higher order bits and have the size come out right... Good thing the size was ignored... Where this macro is used, there's no reason to do it anyway. There seems to have been some old-time confusion between the CIS pointer definition, and the BAR definitions at the base of this bug. END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-11-03T05:53:10.359278Z K 7 svn:log V 71 add sport and dport to logging don't take dport in to account for TCP END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-11-03T06:06:22.561444Z K 7 svn:log V 310 Use child (the card) in preference to cbdev (the bridge) when allocating resources to read the CIS. I'm not sure when this changed, but it is totally wrong. Also, add a minor improvement to the debugging. This should help everybody trying to run dumpcis on atheros wireless card as well. MFC after: 2 days END