ƒ°n120622 200 422 257 143 286 155 286 347 166 161 127 240 182 164 143 162 182 127 141 130 157 119 143 176 182 230 276 109 168 696 586 154 217 1012 149 222 307 157 463 1229 131 213 129 150 671 263 157 157 290 296 133 117 267 271 169 218 165 236 216 219 161 132 1352 159 364 204 215 291 389 164 136 109 128 343 308 319 214 262 152 177 566 332 152 940 244 193 268 239 150 323 153 177 384 190 245 161 149 146 339 479 186 453 303 154 223 166 1453 965 150 511 181 192 322 229 299 297 357 267 281 301 412 141 310 223 112 846 316 107 580 234 306 172 386 248 157 598 267 195 167 269 177 259 177 177 158 171 332 158 259 177 550 235 634 173 189 183 182 185 407 1062 209 212 327 135 140 170 141 229 127 170 379 192 672 260 135 120 171 364 116 135 141 313 545 168 358 169 124 137 154 160 173 376 256 138 173 131 160 164 106 188 420 K 10 svn:author V 3 imp K 8 svn:date V 27 2003-10-01T05:48:48.000000Z K 7 svn:log V 329 Document the implications of the callout_stop() returning 0 if the callout has finished or is in progress. Also document that the locking of the callout code for FreeBSD 5 has eliminated the 'or is in progress' clause as a possibility and that such elimination is an accident of the implementation and shouldn't be relied upon. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-01T05:56:46.000000Z K 7 svn:log V 163 - Hide more #ifdef logic in a new invlcaddr inline. This function flushes the full tlb if you're on an I386or does an invlpg otherwise. Glanced at by: peter END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2003-10-01T06:04:30.000000Z K 7 svn:log V 46 Fix a bug in fwdev_clone(). Spotted by: grog END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-01T07:07:07.000000Z K 7 svn:log V 193 MFC: The knobs controlling ipfw2 and ip6fw were not protected when running at an elevated securelevel. Fix this behaviour and function as documented. PR: kern/39396 Approved by: re (rwatson) END K 10 svn:author V 2 ru K 8 svn:date V 27 2003-10-01T08:32:37.000000Z K 7 svn:log V 64 By popular demand, added the "static ARP" per-interface option. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-01T08:52:46.000000Z K 7 svn:log V 192 - Add a memory barrier before the sse2_pagezero() function returns. This code uses write combining which must be committed to memory prior to other uses of this page. Spotted by: alc END K 10 svn:author V 3 sos K 8 svn:date V 27 2003-10-01T09:58:19.000000Z K 7 svn:log V 254 Fix the problem with accessing certain FLASH devices. The problem was that accessing the status reg could occour too fast, confusing the logic in the flash part. Could not have been located without: HW donated by: Jonas Bülow END K 10 svn:author V 3 mux K 8 svn:date V 27 2003-10-01T11:26:20.000000Z K 7 svn:log V 74 Remove extra parentheses from the __GNUC_PREREQ__ macro. Prodded by: bde END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-01T12:21:16.000000Z K 7 svn:log V 66 Update list of files to remove prior to import of OpenSSL 0.9.7c. END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-01T12:32:41.000000Z K 7 svn:log V 32 Vendor import of OpenSSL 0.9.7c END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-01T12:32:41.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r120631, 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 2003-10-01T12:32:42.000000Z K 7 svn:log V 86 This commit was manufactured by cvs2svn to create tag 'openssl-vendor-crypto-v0_9_7c'. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2003-10-01T12:32:43.000000Z K 7 svn:log V 68 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-01T12:37:51.000000Z K 7 svn:log V 48 Merge conflicts after import of OpenSSL 0.9.7c. END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-01T12:38:27.000000Z K 7 svn:log V 67 Remove files no longer included with OpenSSL as of version 0.9.7c. END K 10 svn:author V 5 ticso K 8 svn:date V 27 2003-10-01T13:53:51.000000Z K 7 svn:log V 88 Don't call makedev(). Cache result of make_dev() and use it when calling destroy_dev(). END K 10 svn:author V 5 ticso K 8 svn:date V 27 2003-10-01T14:49:53.000000Z K 7 svn:log V 33 Fix indention Noticed by: johan END K 10 svn:author V 3 ume K 8 svn:date V 27 2003-10-01T15:13:29.000000Z K 7 svn:log V 49 randomize IPv6 fragment ID. Obtained from: KAME END K 10 svn:author V 3 ume K 8 svn:date V 27 2003-10-01T16:00:12.000000Z K 7 svn:log V 38 Obey RANDOM_IP_ID. Requested by: sam END K 10 svn:author V 3 ume K 8 svn:date V 27 2003-10-01T16:22:58.000000Z K 7 svn:log V 65 Don't compiled ip6_randomid() in if RANDOM_IP_ID is not defined. END K 10 svn:author V 3 ume K 8 svn:date V 27 2003-10-01T17:28:42.000000Z K 7 svn:log V 27 include opt_random_ip_id.h END K 10 svn:author V 3 ume K 8 svn:date V 27 2003-10-01T18:23:27.000000Z K 7 svn:log V 51 we don't need ip6_id when RANDOM_IP_ID is defined. END K 10 svn:author V 5 silby K 8 svn:date V 27 2003-10-01T19:39:42.000000Z K 7 svn:log V 82 MFC rev 1.309 ; increase the # of kmap entries allowed. Approved by: re (murray) END K 10 svn:author V 3 ume K 8 svn:date V 27 2003-10-01T20:24:20.000000Z K 7 svn:log V 90 - include opt_random_ip_id.h - we don't need to obtain microtime when using ip6_randomid. END K 10 svn:author V 5 simon K 8 svn:date V 27 2003-10-01T20:36:57.000000Z K 7 svn:log V 135 Add the Dell PERC 4/Di to the list of supported devices for amr(4). Reported by: David Magda Approved by: re (bmah) END K 10 svn:author V 5 simon K 8 svn:date V 27 2003-10-01T21:01:14.000000Z K 7 svn:log V 181 tftp.1: - Add the optional port argument to SYNOPSIS. main.c: - Sync usage with the manual page. Approved by: trhodes (main.c part) Obtained from: OpenBSD (jmc) MFC after: 2 weeks END K 10 svn:author V 3 ume K 8 svn:date V 27 2003-10-01T21:10:02.000000Z K 7 svn:log V 17 use arc4random() END K 10 svn:author V 3 ume K 8 svn:date V 27 2003-10-01T21:24:28.000000Z K 7 svn:log V 76 randomize IPv6 flowlabel when RANDOM_IP_ID is defined. Obtained from: KAME END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2003-10-01T21:31:09.000000Z K 7 svn:log V 599 Enable net.isr.enable by default, causing "delivery to completion" (direct dispatch) in interrupt threads when the netisr in question isn't already active. If a netisr is already active, or direct dispatch is already in progress, we queue the packet for later delivery. Previously, this option was disabled by default. I have measured 20%+ performance improvements in IP packet forwarding with this enabled. Please report any problems ASAP, especially relating to stack depth or out-of-order packet processing. Discussed with: jlemon, peter Sponsored by: DARPA, Network Associates Laboratories END K 10 svn:author V 3 imp K 8 svn:date V 27 2003-10-01T21:32:42.000000Z K 7 svn:log V 493 Looks like I misread the callout code. We do not seem to hold the callout lock while the callout is happening. So the serialization that I thought was happening isn't. Therefore, remove the part of the bugs that says this. Leave in the other bug as it is very hard to work around (impossible?). Fix various typos. Also note that timeout/untimeout are considered to be the old interface and the callout interface should be used insetad. Submitted by: bde (first two) and wollman (third) END K 10 svn:author V 3 ume K 8 svn:date V 27 2003-10-01T21:45:57.000000Z K 7 svn:log V 62 add randomtab for ip6_randomflowlabel(). Obtained from: KAME END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2003-10-01T22:15:16.000000Z K 7 svn:log V 120 Temporarily turn net.isr.enable back off again until patches to correct potential nits in packet ordering are resolved. END K 10 svn:author V 5 peter K 8 svn:date V 27 2003-10-01T23:46:08.000000Z K 7 svn:log V 917 Commit Bosko's patch to clean up the PSE/PG_G initialization to and avoid problems with some Pentium 4 cpus and some older PPro/Pentium2 cpus. There are several problems, some documented in Intel errata. This patch: 1) moves the kernel to the second page in the PSE case. There is an errata that says that you Must Not point a 4MB page at physical address zero on older cpus. We avoided bugs here due to sheer luck. 2) sets up PSE page tables right from the start in locore, rather than trying to switch from 4K to 4M (or 2M) pages part way through the boot sequence at the same time that we're messing with PG_G. For some reason, the pmap work over the last 18 months seems to tickle the problems, and the PAE infrastructure changes disturb the cpu bugs even more. A couple of people have reported a problem with APM bios calls during boot. I'll work with people to get this resolved. Obtained from: bmilekic END K 10 svn:author V 5 silby K 8 svn:date V 27 2003-10-02T02:22:58.000000Z K 7 svn:log V 55 Add an include I forgot in the previous commit. Eeek. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2003-10-02T02:54:10.000000Z K 7 svn:log V 125 Create a tunable for net.isr.enable so that it may be set from inception, rather than having to wait for the boot to finish. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2003-10-02T03:07:51.000000Z K 7 svn:log V 210 Use __BEGIN_DECLS and __END_DECLS around userland function prototypes so that mac.h may be more safely included in userland C++ applications. PR: bin/56595 Submitted by: "KONDOU, Kazuhiro" END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2003-10-02T03:24:26.000000Z K 7 svn:log V 61 Only generate code for _LCK_ASSERT if _LCK_DEBUG is defined. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2003-10-02T03:57:59.000000Z K 7 svn:log V 366 Remove the global variable 'cmask', which was used to initialize the fd_cmask field in the file descriptor structure for the first process indirectly from CMASK, and when an fd structure is initialized before being filled in, and instead just use CMASK. This appears to be an artifact left over from the initial integration of quotas into BSD. Suggested by: peter END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2003-10-02T04:06:56.000000Z K 7 svn:log V 1130 MFp4: Change struct fw_xfer to reduce memory copy in fwmem_*() functions. And many changes. * all - Major change of struct fw_xfer. o {send,recv}.buf is splitted into hdr and payload. o Remove unnecessary fields. o spd is moved under send and recv. - Remove unnecessary 'volatile' keyword. - Add definition of rtcode and extcode. * firewire.c - Ignore FWDEVINVAL devices in fw_noderesolve_nodeid(). - Check the existance of the bind before call STAILQ_REMOVE(). - Fix bug in the fw_bindadd(). - Change element of struct fw_bind for simplicity. - Check rtcode of response packet. - Reduce split transaction timeout to 200 msec. (100msec is the default value in the spec.) - Set watchdog timer cycle to 10 Hz. - Set xfer->tv just before calling fw_get_tlabel(). * fwohci.c - Simplifies fwohci_get_plen(). * sbp.c - Fix byte order of multibyte scsi_status informations. - Split sbp.c and sbp.h. - Unit number is not necessary for FIFO¤ address. - Reduce LOGIN_DELAY and SCAN_DELAY to 1 sec. - Add some constants defineded in SBP-2 spec. * fwmem.c - Introduce fwmem_strategy() and reduce memory copy. END K 10 svn:author V 3 alc K 8 svn:date V 27 2003-10-02T05:08:13.000000Z K 7 svn:log V 39 Reimplement pagezero() using "movnti". END K 10 svn:author V 3 njl K 8 svn:date V 27 2003-10-02T05:09:37.000000Z K 7 svn:log V 120 If requested to Sleep for less than our hz granularity (e.g., 10 ms), use DELAY instead of tsleep. Submitted by: peter END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2003-10-02T08:56:14.000000Z K 7 svn:log V 32 Be kind to 64bit architectures. END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2003-10-02T14:33:30.000000Z K 7 svn:log V 53 Remove wrong usage of BUF_REFCNT(). Spotted by: phk END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-02T15:00:55.000000Z K 7 svn:log V 575 Introduce a uiomove_frombuf helper routine that handles computing and validating the offset within a given memory buffer before handing the real work off to uiomove(9). Use uiomove_frombuf in procfs to correct several issues with integer arithmetic that could result in underflows/overflows. As a side-effect, the code is significantly simplified. Add additional sanity checks when computing a memory allocation size in pfs_read. Submitted by: rwatson (original uiomove_frombuf -- bugs are mine :-) Reported by: Joost Pol (integer underflows/overflows) END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-02T15:08:01.000000Z K 7 svn:log V 167 Correct a case in readv(2) where the file descriptor reference count should have been decremented but was not. Reported by: Joost Pol Approved by: re END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-02T15:58:53.000000Z K 7 svn:log V 62 MFS 1.55.2.11: Correct a reference counting bug in readv(2). END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-02T16:05:44.000000Z K 7 svn:log V 62 MFS 1.55.2.11: Correct a reference counting bug in readv(2). END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-02T16:49:49.000000Z K 7 svn:log V 194 MFC (the spirit of) procfs_dbregs.c 1.23, procfs_fpregs.c 1.29, pseudofs_vnops.c 1.42, kern_subr.c 1.77, uio.h 1.28: Correct several integer underflows/overflows in procfs. Approved by: re END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2003-10-02T18:30:15.000000Z K 7 svn:log V 198 - Remove error code that can't be returned (and original description was not proper English) PR: docs/57434 Approved: blackend (mentor) Reviewed by: deischen END K 10 svn:author V 2 ru K 8 svn:date V 27 2003-10-02T18:38:23.000000Z K 7 svn:log V 42 Document the recently added `O' modifier. END K 10 svn:author V 2 ru K 8 svn:date V 27 2003-10-02T19:19:07.000000Z K 7 svn:log V 26 Correct the library name. END K 10 svn:author V 6 anholt K 8 svn:date V 27 2003-10-02T19:49:15.000000Z K 7 svn:log V 171 Make the i810 AGP device create a "drmsub" child device. This will be attached to by the DRM for i8xx devices. Submitted by: Keith Whitwell END K 10 svn:author V 8 deischen K 8 svn:date V 27 2003-10-02T20:49:34.000000Z K 7 svn:log V 173 Add an entry for libpthread (aka libkse). For now, it's link command is defined as -lkse, but we'll come back later and change it once libkse is renamed. Requested by: ru END K 10 svn:author V 8 deischen K 8 svn:date V 27 2003-10-02T20:51:30.000000Z K 7 svn:log V 72 Fix a logic error; use beq to check for a register being NULL, not bne. END K 10 svn:author V 2 ru K 8 svn:date V 27 2003-10-02T21:30:30.000000Z K 7 svn:log V 126 Fix a bug that prevented exists() from finding "foo/", "foo/." and "foo/.." when ".PATH: foo" was also given. PR: bin/34062 END K 10 svn:author V 2 ru K 8 svn:date V 27 2003-10-02T21:34:06.000000Z K 7 svn:log V 74 Revert rev. 1.86, I've fixed make(1) (make/dir.c,v 1.32). PR: bin/34062 END K 10 svn:author V 5 naddy K 8 svn:date V 27 2003-10-03T00:44:11.000000Z K 7 svn:log V 141 Mark the -i and -n options as mutually exclusive and fix various mdoc formatting nits. PR: 57027 Approved by: simon Obtained from: OpenBSD END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-03T01:15:40.000000Z K 7 svn:log V 123 Update arp(4) to document the 'arp: foo is on if0 but got reply from bar on if1' message. PR: bin/48489 Requested by: ru END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-03T01:18:21.000000Z K 7 svn:log V 126 Point out the existence of net.link.ether.inet.log_arp_movements. Add sysctl(8) to the list of cross-referenced manual pages. END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-03T01:20:33.000000Z K 7 svn:log V 69 mdoc(7) cleanup: Break up sentences so that they start on new lines. END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-03T01:32:14.000000Z K 7 svn:log V 37 MFC OpenSSL 0.9.7c. Approved by: re END K 10 svn:author V 6 marcel K 8 svn:date V 27 2003-10-03T03:50:29.000000Z K 7 svn:log V 1255 Swap the syscall caller frame info (i.e. the return pointer and frame marker) and the syscall stub frame info in the trap frame. Previously we stored the stub frame info in (rp,pfs) and the caller frame info in (iip,cfm). This ends up being suboptimal for the following reasons: 1. When we create a new context, such as for an execve(2), we had to set the (rp,pfs) pair for the entry point when using the syscall path out of the kernel but we need to set the (iip,cfm) pair when we take the interrupt way out. This is mostly just an inconsistency from the kernel's point of view, but an ugly irregularity from gdb(1)'s point of view. 2. The getcontext(2) and setcontext(2) syscalls had to swap the (rp,pfs) and (iip,cfm) pairs to make the context compatible with one created purely in userland. Swapping the (rp,pfs) and (iip,cfm) pairs is visible to signal handlers that actually peek at the mcontext_t and to gdb(1). Since this change is made for gdb(1) and we don't care about signal handlers that peek at the mcontext_t because we're still a tier 2 platform, this ABI breakage is academic at this moment in time. Note that there was no real reason to save the caller frame info in (iip,cfm) and the stub frame info in (rp,pfs). END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-03T07:48:56.000000Z K 7 svn:log V 67 mdoc(7) cleanups (use .Va, not .Dv, for sysctls.) Reviewed by: ru END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-03T09:19:23.000000Z K 7 svn:log V 271 Only delete the route if arplookup() tried to create it. Do not delete RTF_STATIC routes. Do not check for RTF_HOST so as to avoid being DoSed when an RTF_GENMASK route exists in the table. Add a more verbose comment about exactly what this code does. Submitted by: ru END K 10 svn:author V 3 mux K 8 svn:date V 27 2003-10-03T11:57:43.000000Z K 7 svn:log V 111 Fix bogon in ipfilter_resync() introduced in my last commit. Spotted by: Gennady Proskurin END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-03T12:03:50.000000Z K 7 svn:log V 119 Correct several integer underflows/overflows in linprocfs. See the log message for kern_subr.c 1.77 for more details. END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-03T13:02:50.000000Z K 7 svn:log V 195 MFC procfs_dbregs.c 1.23, procfs_fpregs.c 1.29, procfs_regs.c 1.28, pseudofs_vnops.c 1.42, kern_subr.c 1.77, uio.h 1.28: Correct several integer underflows/overflows in procfs and linprocfs. END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-03T13:07:38.000000Z K 7 svn:log V 293 Merge from RELENG_4: kern_subr.c 1.31.2.3, procfs_dbregs.c 1.4.2.4, procfs_fpregs.c 1.11.2.4, procfs_regs.c 1.10.2.4, procfs_rlimit.c 1.5.2.1, procfs_status.c 1.20.2.5, uio.h 1.11.2.2, linprocfs_misc.c 1.3.2.9. Correct several integer underflows/overflows in procfs and linprocfs. END K 10 svn:author V 5 peter K 8 svn:date V 27 2003-10-03T14:33:00.000000Z K 7 svn:log V 70 Add #include "opt_pmap.h" so locore picks up DISABLE_PSE etc options. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2003-10-03T14:49:04.000000Z K 7 svn:log V 44 New release notes: SA-03:14, 03:16, 03:17. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2003-10-03T14:53:06.000000Z K 7 svn:log V 17 Remove SA-03:16. END K 10 svn:author V 4 bmah K 8 svn:date V 27 2003-10-03T16:14:54.000000Z K 7 svn:log V 35 New release note: OpenSSL 0.9.7c. END K 10 svn:author V 4 bmah K 8 svn:date V 27 2003-10-03T16:28:26.000000Z K 7 svn:log V 249 New release notes: LIBICONV, CD9660_ICONV/MSDOSFS_ICONV/NTFS/ICONV, libkiconv, mount_cd9660(8)/mount_ntfs(8) -C, mount_msdos(8) -M, mount_msdos(8) -D/-L. While here, note that OpenSSL 0.9.7c was MFC-ed. Submitted by: "R. Imura" END K 10 svn:author V 6 marcus K 8 svn:date V 27 2003-10-03T16:48:36.000000Z K 7 svn:log V 212 Export PARALLEL_PACAKGE_BUILD to the environment as well to catch more packages that should/should not be included on the first CD. This is needed for the recent KDE space-saving change. Approved by: re (bmah) END K 10 svn:author V 6 marcus K 8 svn:date V 27 2003-10-03T16:50:17.000000Z K 7 svn:log V 223 MFC: 1.48 Export PARALLEL_PACAKGE_BUILD to the environment as well to catch more packages that should/should not be included on the first CD. This is needed for the recent KDE space-saving change. Approved by: re (bmah) END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-03T16:57:38.000000Z K 7 svn:log V 118 Oops, FreeBSD 5.0 needs , not . Noticed by: LOD Billing Department END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-03T17:21:17.000000Z K 7 svn:log V 169 Make arp_rtrequest()'s 'bad gateway' messages slightly more informative, to aid me in tracking down LLINFO inconsistencies in the routing table. Discussed with: fenner END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-03T17:22:14.000000Z K 7 svn:log V 60 Shorten 'bad gateway' AF_LINK message. Submitted by: green END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-03T18:14:27.000000Z K 7 svn:log V 82 Correct vulnerabilities in OpenSSL ASN.1 parsing. Obtained from: openssl.org CVS END K 10 svn:author V 3 sam K 8 svn:date V 27 2003-10-03T18:15:54.000000Z K 7 svn:log V 473 cleanups prior to adding locking (and in some cases to eliminate locking): o move route_cb to be private to rtsock.c o replace global static route_proto by locals o eliminate global #define shorthands for info references o remove some register decls o ansi-fy function decls o move items to be close in scope to their usage o add rt_dispatch function for dispatching the actual message o cleanup tangled logic for doing all-but-me msg send Support by: FreeBSD Foundation END K 10 svn:author V 3 phk K 8 svn:date V 27 2003-10-03T18:26:33.000000Z K 7 svn:log V 239 In case we have no /etc/resolv.conf, don't try to make it out of thin blue air if the kenv doesn't have any info. This improves the truth value of the comment above significantly and reduces the bogous output on the console considerably. END K 10 svn:author V 3 sam K 8 svn:date V 27 2003-10-03T18:27:02.000000Z K 7 svn:log V 60 trivial locking rtsock_cb Sponsored by: FreeBSD Foundation END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2003-10-03T18:27:24.000000Z K 7 svn:log V 843 When direct dispatching an netisr (net.isr.enable=1), if there are already any queued packets for the isr, process those packets before the newly submitted packet, maintaining ordering of all packets being delivered to the netisr. Remove the bypass counter since we don't bypass anymore. Leave the comment about possible problems and options since later performance optimization may change the strategy for addressing ordering problems here. Specifically, this maintains the strong isr ordering guarantee; additional parallelism and lower latency may be possible by moving to weaker guarantees (per-interface, for example). We will probably at some point also want to remove the one instance netisr dispatch limit currently enforced by a mutex, but it's not clear that's 100% safe yet, even in the netperf branch. Reviewed by: sam, others END K 10 svn:author V 2 ru K 8 svn:date V 27 2003-10-03T18:29:06.000000Z K 7 svn:log V 152 Fixed the "To build a kernel" section to mention -DALWAYS_CHECK_MAKE as the new sys/conf/kmod.mk depends on a make(1) bugfix now. Reported by: current END K 10 svn:author V 3 phk K 8 svn:date V 27 2003-10-03T19:07:31.000000Z K 7 svn:log V 100 More checking if kenv actually know something. Guard against test(1)-unfriendly outputs from kenv. END K 10 svn:author V 3 dds K 8 svn:date V 27 2003-10-03T19:15:07.000000Z K 7 svn:log V 175 Create a driver that will compile without warnings on -CURRENT More changes are probably needed to create a correct driver. Reviewed by: markm Approved by: schweikh (mentor) END K 10 svn:author V 3 dds K 8 svn:date V 27 2003-10-03T19:31:55.000000Z K 7 svn:log V 146 Style fixes: shell script indentation, if/then style, plus a lot of comments in C code (capitalized, end with full stop). Submitted by: schweikh END K 10 svn:author V 3 phk K 8 svn:date V 27 2003-10-03T19:38:21.000000Z K 7 svn:log V 58 Only install .k5login if people have not set NO_KERBEROS. END K 10 svn:author V 3 alc K 8 svn:date V 27 2003-10-03T19:49:08.000000Z K 7 svn:log V 230 Make PAGE_SIZE and related quantities signed on sparc64. (They are signed quantities on every other architecture.) This change is required in order to move pmap_prefault() out of the pmap and into the machine-independent layer. END K 10 svn:author V 3 phk K 8 svn:date V 27 2003-10-03T19:57:58.000000Z K 7 svn:log V 61 Fix typo. Spotted by: "Bjoern A. Zeeb" END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-03T20:24:59.000000Z K 7 svn:log V 82 Correct vulnerabilities in OpenSSL ASN.1 parsing. Obtained from: openssl.org CVS END K 10 svn:author V 2 ru K 8 svn:date V 27 2003-10-03T20:47:37.000000Z K 7 svn:log V 292 Removed the ancient .LIBS setting that causes non-existent libraries to be reported as up-to-date. Before: # make -f /dev/null nonexistent.a `nonexistent.a' is up to date. After: # make -f /dev/null nonexistent.a make: don't know how to make nonexistent.a. Stop PR: bin/44137 (part of) END K 10 svn:author V 3 sam K 8 svn:date V 27 2003-10-03T20:58:56.000000Z K 7 svn:log V 98 place some kernel-specific data structures under #ifdef _KERNEL Sponsored by: FreeBSD Foundation END K 10 svn:author V 3 sam K 8 svn:date V 27 2003-10-03T21:01:48.000000Z K 7 svn:log V 152 remove include of route.h now that ip_dummynet.h no longer exposes data structures that have an embedded struct route Sponsored by: FreeBSD Foundation END K 10 svn:author V 3 sam K 8 svn:date V 27 2003-10-03T21:05:08.000000Z K 7 svn:log V 69 remove unneeded include of route.h Supported by: FreeBSD Foundation END K 10 svn:author V 3 sam K 8 svn:date V 27 2003-10-03T21:06:17.000000Z K 7 svn:log V 57 remove unused variable Supported by: FreeBSD Foundation END K 10 svn:author V 2 ru K 8 svn:date V 27 2003-10-03T21:33:39.000000Z K 7 svn:log V 55 Make the -q option DTRT in the compat mode. PR: 48210 END K 10 svn:author V 3 phk K 8 svn:date V 27 2003-10-03T21:33:40.000000Z K 7 svn:log V 246 Default ntpd to write a "driftfile" in /var/db/ntpd.drift. A "driftfile" caches the oscillator offset estimate from boot to boot, having this means faster and less bumpy time synchronization. Will be overridden by any value in the config file. END K 10 svn:author V 3 imp K 8 svn:date V 27 2003-10-03T22:00:06.000000Z K 7 svn:log V 386 While make has been fixed to grok this construct, the new make hasn't been widely deploy and that's causing us a lot of pain. Back out the last commit for a few weeks so that we can lessen the support load in current@ asking why they can't build kernels anymore. Instructions in UPDATING have been updated, but this should be more effective. Revert the reverting: November 1st, 2003 END K 10 svn:author V 3 sam K 8 svn:date V 27 2003-10-03T22:06:36.000000Z K 7 svn:log V 94 hookup ctlinput for fast ipsec versions of esp+ah protocols Supported by: FreeBSD Foundation END K 10 svn:author V 3 alc K 8 svn:date V 27 2003-10-03T22:46:53.000000Z K 7 svn:log V 360 Migrate pmap_prefault() into the machine-independent virtual memory layer. A small helper function pmap_is_prefaultable() is added. This function encapsulate the few lines of pmap_prefault() that actually vary from machine to machine. Note: pmap_is_prefaultable() and pmap_mincore() have much in common. Going forward, it's worth considering their merger. END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-04T01:30:01.000000Z K 7 svn:log V 210 Update the pmap(9) documentation to reflect the movement of pmap_prefault() to the machine-independent VM layer, as per alc's recent commit. Add a definition for the new pmap_is_prefaultable() helper function. END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-04T01:32:25.000000Z K 7 svn:log V 62 Remove the pmap_prefault(9) page as it is no longer required. END K 10 svn:author V 3 sam K 8 svn:date V 27 2003-10-04T01:32:28.000000Z K 7 svn:log V 130 add a stub for bpfattach2 so bpf is not required with the 802.11 module or related drivers Spotted by: Dan Lukes END K 10 svn:author V 3 gad K 8 svn:date V 27 2003-10-04T02:24:47.000000Z K 7 svn:log V 74 Handle a 'const' parameter without using __DECONST(). MFC after: 14 days END K 10 svn:author V 3 sam K 8 svn:date V 27 2003-10-04T03:44:50.000000Z K 7 svn:log V 1359 Locking for updates to routing table entries. Each rtentry gets a mutex that covers updates to the contents. Note this is separate from holding a reference and/or locking the routing table itself. Other/related changes: o rtredirect loses the final parameter by which an rtentry reference may be returned; this was never used and added unwarranted complexity for locking. o minor style cleanups to routing code (e.g. ansi-fy function decls) o remove the logic to bump the refcnt on the parent of cloned routes, we assume the parent will remain as long as the clone; doing this avoids a circularity in locking during delete o convert some timeouts to MPSAFE callouts Notes: 1. rt_mtx in struct rtentry is guarded by #ifdef _KERNEL as user-level applications cannot/do-no know about mutex's. Doing this requires that the mutex be the last element in the structure. A better solution is to introduce an externalized version of struct rtentry but this is a major task because of the intertwining of rtentry and other data structures that are visible to user applications. 2. There are known LOR's that are expected to go away with forthcoming work to eliminate many held references. If not these will be resolved prior to release. 3. ATM changes are untested. Sponsored by: FreeBSD Foundation Obtained from: BSD/OS (partly) END K 10 svn:author V 5 peter K 8 svn:date V 27 2003-10-04T06:30:56.000000Z K 7 svn:log V 870 Emulate bugs in the old PSE code so that apm works again. I do not yet understand why, but apm *depended* on the fact that the old PSE code caused the first 1MB of ram to be mapped read/write because it was in the same 4MB page as the kernel text+data+bss blob. If anybody ever tried DISABLE_PSE before, apm would not work. If your cpu did not have PSE, apm would not work there either (eg: 486). This bug has been around for a Very Long Time. The Pentium-4-fix commits did not emulate this unintended side effect of the PSE post-early-boot fixup, and thus apm blew up. I've added a hack to emulate the bug until either apm is fixed or we set fire to our bridges. This is bad though because it gives kernel mode code the opportunity to accidently write to the first few megs of the general page pool which is remapped at KERNBASE. It needs to be fixed properly. END K 10 svn:author V 3 dds K 8 svn:date V 27 2003-10-04T07:16:40.000000Z K 7 svn:log V 58 Check for write errors; report and exit with error value. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T08:51:50.000000Z K 7 svn:log V 417 - Remove the backtrace() call from the *_vinvalbuf() functions. Thanks to a stack trace supplied by phk, I now understand what's going on here. The check for VI_XLOCK stops us from calling vinvalbuf once the vnode has been partially torn down in vclean(). It is not clear that this would cause a problem. Document this in nfs_bio.c, which is where the other two filesystems copied this code from. END K 10 svn:author V 3 alc K 8 svn:date V 27 2003-10-04T09:20:00.000000Z K 7 svn:log V 89 Synchronize access to a page's valid field by using the lock from its containing object. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T11:06:43.000000Z K 7 svn:log V 99 - Remove a mp_fixme() and some locks that weren't necessary. I now understand how this works. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T12:52:37.000000Z K 7 svn:log V 228 - Acquire the vnode interlock prior to droping the mntvnode_mtx. This does not eliminate races where the vnode could be reclaimed and end up with a NULL v_data pointer but Giant is protecting us from that at the moment. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T13:07:53.000000Z K 7 svn:log V 135 - The proper test is CPU_ENABLE_SSE and not CPU_ENABLED_SSE. This effectively disabled the sse2_pagezero() code. Spotted by: bde END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T13:16:54.000000Z K 7 svn:log V 205 - Make proper use of the mntvnode_mtx. We do not need the loop label because we do not drop the mntvnode_mtx. If this code had ever executed and hit the loop condition it would have spun forever. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T13:44:51.000000Z K 7 svn:log V 203 - Acquire the vnode interlock prior to dropping the mntvnode_mtx. - Make a note of the lack of XLOCK protection in this code. We would access a vnode while it is changing identities without Giant. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T14:02:32.000000Z K 7 svn:log V 263 - Properly acquire the vnode interlock before releasing the mntvnode_mtx. - Use a local variable to store the results of the test to see if the next vnode on the mount list has changed. This is so that we no longer acess the vnode after we vput() it. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T14:03:28.000000Z K 7 svn:log V 173 - Use the VI_LOCK macro in two places where we directly called mtx_lock() before. Direct calls indicated places that needed review and these have now been reviewed. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T14:21:53.000000Z K 7 svn:log V 187 - Use the UMA_ZONE_VM flag on the fakepg and object zones to prevent vm recursion and LORs. This may be necessary for other zones created in the vm but this needs to be verified. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T14:25:45.000000Z K 7 svn:log V 207 - Fix an unlocked call to GETATTR by slightly shuffling the code in ffs_snapshot() around. - Acquire the interlock before releasing the mntvnode_mtx. Use the interlock to protect v_usecount access. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T14:27:49.000000Z K 7 svn:log V 318 - Increase the scope of the interlock in ffs_reload(). Acquire it before we release the mntvnode_mtx. - Call vgonel() directly instead of going through vrecycle() since we own the interlock now. - Remove a few cases where we locked the interlock just so that we could call VOP_UNLOCK with interlock held. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T14:32:55.000000Z K 7 svn:log V 48 - Document more of the vnode locking strategy. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T14:35:22.000000Z K 7 svn:log V 216 - If we are called with LK_NOWAIT in vn_lock() we may be holding a mutex and should not sleep while waiting for XLOCK to clear. Care needs to be taken in functions that use this capability to avoid spinning. END K 10 svn:author V 3 yar K 8 svn:date V 27 2003-10-04T14:42:03.000000Z K 7 svn:log V 130 Don't dump core from the time(1) process itself if the child process has exited on a signal whose default action is to dump core. END K 10 svn:author V 5 naddy K 8 svn:date V 27 2003-10-04T15:07:27.000000Z K 7 svn:log V 18 reference ntpd(8) END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T15:10:40.000000Z K 7 svn:log V 752 - In a Giantless world, the vn_lock() in vcanrecycle() could legitimately fail. Remove the panic from that case and document why it might fail. - Document the reason for calling cache_purge() on a newly created vnode. - In insmntque() order the operations so that we can call mtx_unlock() one fewer times. This makes the code somewhat clearer as well. - Add XXX comments in sched_sync() and vflush(). - In vget(), do not sleep while waiting for XLOCK to clear if LK_NOWAIT is set. - In vclean() we don't need to acquire a lock around a single TAILQ_FIRST call. It's ok if we race here, the vinvalbuf will just do nothing. - Increase the scope of the lock in vgonel() to reduce the number of lock operations that are performed. END K 10 svn:author V 3 yar K 8 svn:date V 27 2003-10-04T15:17:08.000000Z K 7 svn:log V 223 Assorted minor fixes, mostly style(9): - PID should be pid_t, not int; - sort #include's and local variables; - don't overuse initializers; - use warn(3) instead of perror(3) consistently; - amplify the comment on signals. END K 10 svn:author V 5 naddy K 8 svn:date V 27 2003-10-04T15:43:22.000000Z K 7 svn:log V 13 missing word END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-04T15:50:35.000000Z K 7 svn:log V 484 Revision 1.10.2.4 introduced a regression: the offset was ignored. This could cause a reader of /proc/*/regs to spin, because read(2) would never return end-of-file. In practice, this has much less impact than I would expect. Tools such as truss(1) make only a single, fixed-size read (into a `struct reg'). (Similarly for write(2).) The cause was a sort of typo: `uiomove_frombuf' was spelled `uiomove'. Noticed by: David Rhodus Approved by: re (implicitly) END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T15:57:05.000000Z K 7 svn:log V 140 - The VI assert in getdirtybuf() is only valid if we're not on a VCHR vnode. VCHR vnodes don't do background writes. Reported by: kan END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T16:09:40.000000Z K 7 svn:log V 212 - Don't use vrecycle() call vgonel() directly after grabing the vnode interlock. We do this so that we still hold the interlock when we lock the vnode later. This prevents races with the mnt vnode list. END K 10 svn:author V 6 nectar K 8 svn:date V 27 2003-10-04T16:14:25.000000Z K 7 svn:log V 77 MFS 1.10.2.5: Unbreak read/write behavior (introduced in previous revision). END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T17:37:51.000000Z K 7 svn:log V 292 - Set the sopt_dir member of the sockopt structure, otherwise, this parameter will not actually be set even though we're calling sosetopt. sosetopt calls down to a single ctloutput function if the name or level is implemented by a specific protocol. Submitted by: pete@isilon.com END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T17:41:13.000000Z K 7 svn:log V 154 - Change a lame iterative algorithm to a constant time algorithm. Remove the XXX that complains about it as well. Submitted by: ThomasWuerfl@gmx.de END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T17:41:59.000000Z K 7 svn:log V 64 - Consistently set sopt_dir. Pointed out by: pete@isilon.com END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-04T18:03:53.000000Z K 7 svn:log V 504 - In sched_sync() test our preconditions prior to dropping the sync_mtx. This is so that we may grab the interlock while still holding the sync_mtx. We have to VI_TRYLOCK() because in all other cases the lock order runs the other way. - If we don't meet any of the preconditions, reinsert the vp into the list for the next second. - We don't need to panic if we fail to sync here because each FSYNC function handles this case. Removing this redundant code also simplifies locking. END K 10 svn:author V 3 imp K 8 svn:date V 27 2003-10-04T18:40:36.000000Z K 7 svn:log V 174 I've been burned about half a dozen times by the old PAO syntax for 'any' interrupt. There's no reason not to be liberal here and accept the PAO syntax. MFC After: 2 weeks END K 10 svn:author V 3 imp K 8 svn:date V 27 2003-10-04T18:43:21.000000Z K 7 svn:log V 102 Ooops. Committed sin number 1: updating the code w/o updating the comments. Update the comments too. END K 10 svn:author V 3 imp K 8 svn:date V 27 2003-10-04T18:44:29.000000Z K 7 svn:log V 75 any -> ? for new entry (to allow time for people to upgrade their pccardd) END K 10 svn:author V 2 ru K 8 svn:date V 27 2003-10-04T18:53:38.000000Z K 7 svn:log V 177 Retired the "most" and "installmost" targets -- they just do not have a chance to work nowadays as we have a lot of internal libraries in lib/. Discussed with: marcel, wollman END K 10 svn:author V 3 alc K 8 svn:date V 27 2003-10-04T19:13:27.000000Z K 7 svn:log V 85 Synchronize access to a vm page's valid field using the containing vm object's lock. END K 10 svn:author V 3 alc K 8 svn:date V 27 2003-10-04T19:23:29.000000Z K 7 svn:log V 166 - Extend the scope the vm object lock to cover calls to vm_page_is_valid(). - Assert that the lock on the containing vm object is held in vm_page_is_valid(). END K 10 svn:author V 3 alc K 8 svn:date V 27 2003-10-04T20:38:32.000000Z K 7 svn:log V 85 Synchronize access to a vm page's valid field using the containing vm object's lock. END K 10 svn:author V 3 alc K 8 svn:date V 27 2003-10-04T21:35:48.000000Z K 7 svn:log V 85 Synchronize access to a vm page's valid field using the containing vm object's lock. END K 10 svn:author V 3 joe K 8 svn:date V 27 2003-10-04T21:41:01.000000Z K 7 svn:log V 66 Make it easier to run this code on RELENG_4. Submitted by: luoqi END K 10 svn:author V 3 alc K 8 svn:date V 27 2003-10-04T21:56:27.000000Z K 7 svn:log V 79 Assert that the containing vm object's lock is held in vm_page_zero_invalid(). END K 10 svn:author V 5 peter K 8 svn:date V 27 2003-10-04T22:04:54.000000Z K 7 svn:log V 237 Fix the apm problem for real. We leave the first 4K page for the bios to work in, but we had it mapped read-only. While this has always been the case, the PG_PS enable hack hid it and the apm bios code ended up taking advantage of it. END K 10 svn:author V 3 joe K 8 svn:date V 27 2003-10-04T22:13:21.000000Z K 7 svn:log V 66 Make it easier to run this code on RELENG_4. Submitted by: luoqi END K 10 svn:author V 3 alc K 8 svn:date V 27 2003-10-04T22:47:20.000000Z K 7 svn:log V 166 Eliminate some unnecessary uses of the vm page queues lock around the vm page's valid field. This field is being synchronized using the containing vm object's lock. END K 10 svn:author V 3 alc K 8 svn:date V 27 2003-10-04T23:37:38.000000Z K 7 svn:log V 85 Synchronize access to a vm page's valid field using the containing vm object's lock. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T00:02:41.000000Z K 7 svn:log V 456 - Move the xlock 'locking' code into vx_lock() and vx_unlock(). - Create a new function, vgonechrl(), which performs vgone for an in-use character device. Move the code from vflush() that did this into vgonechrl(). - Hold the xlock across the entirety of vgonel() and vgonechrl() so that at no point will an invalid vnode exist on any list without XLOCK set. - Move the xlock code out of vclean() now that it is in the vgone*() functions. END K 10 svn:author V 3 alc K 8 svn:date V 27 2003-10-05T00:12:16.000000Z K 7 svn:log V 142 Don't bother setting a page table page's valid field. It is unused and not setting it is consistent with other uses of VM_ALLOC_NOOBJ pages. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T00:35:41.000000Z K 7 svn:log V 540 - Solve a LOR with the sync_mtx by using the VI_ONWORKLST flag to determine whether or not the sync failed. This could potentially get set between the time that we VOP_UNLOCK and VI_LOCK() but the race would harmelssly lead to the sync being delayed by an extra 30 seconds. If we do not move the vnode it could cause an endless loop if it continues to fail to sync. - Use vhold and vdrop to stop the vnode from changing identities while we have it unlocked. Other internal vfs lists are likely to follow this scheme. END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-05T01:31:51.000000Z K 7 svn:log V 81 Update the page_req classes VM_ALLOC_NOOBJ and VM_ALLOC_ZERO. Suggested by: alc END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T02:43:30.000000Z K 7 svn:log V 96 - Don't cache_purge() in *_reclaim routines. vclean() does it for us so this is redundant. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T02:44:22.000000Z K 7 svn:log V 90 - Don't cache_purge() in ext2_reclaim. vclean() does it for us so this is redundant. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T02:45:00.000000Z K 7 svn:log V 89 - Don't cache_purge() in ufs_reclaim. vclean() does it for us so this is redundant. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T02:45:36.000000Z K 7 svn:log V 92 - Don't cache_purge() in cd9660_reclaim. vclean() does it for us so this is redundant. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T02:48:04.000000Z K 7 svn:log V 313 - Don't cache_purge() in getnewvnode. It's done in vclean(). With this purge, the purge in vclean, and the filesystems purge, we had 3 purges per vnode. - Move the insmntque(vp, 0) to vclean() so that we may remove it from the two vgone() functions and reduce the number of lock operations required. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T05:35:41.000000Z K 7 svn:log V 968 - Rename vcanrecycle() to vtryrecycle() to reflect its new role. - In vtryrecycle() try to vgonel the vnode if all of the previous checks passed. We won't vgonel if someone has either acquired a hold or usecount or started the vgone process elsewhere. This is because we may have been removed from the free list while we were inspecting the vnode for recycling. - The VI_TRYLOCK stops two threads from entering getnewvnode() and recycling the same vnode. To further reduce the likelyhood of this event, requeue the vnode on the tail of the list prior to calling vtryrecycle(). We can not actually remove the vnode from the list until we know that it's going to be recycled because other interlock holders may see the VI_FREE flag and try to remove it from the free list. - Kill a bogus XXX comment. If XLOCK is set we shouldn't wait for it regardless of MNT_WAIT because the vnode does not actually belong to this filesystem. END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-05T05:38:30.000000Z K 7 svn:log V 116 Remove magic numbers surrounding locking state in the sysctl module, and replace them with more meaningful defines. END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-05T06:06:09.000000Z K 7 svn:log V 119 Correct a typo on line 552 of revision 1.92 which was breaking GENERIC:- _FreeBSD_version should be __FreeBSD_version. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T06:43:03.000000Z K 7 svn:log V 233 - File systems that wish to inspect the vnode contents or their private v_data field before calling vget/vn_lock must check VI_XLOCK manually to be sure that v_data is still valid. Implement this check in two places here. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T06:43:30.000000Z K 7 svn:log V 42 - Check XLOCK prior to accessing v_data. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T06:44:53.000000Z K 7 svn:log V 47 - Check the XLOCK prior to inspecting v_data. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T06:46:02.000000Z K 7 svn:log V 77 - We don't need to cache_purge() in nfs_reclaim(), vclean() does it for us. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T06:46:45.000000Z K 7 svn:log V 48 - Check the XLOCK before we inspect the vnode. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T06:47:56.000000Z K 7 svn:log V 135 - Remove an incorrect XXX comment. This code does respect the XLOCK since it uses vget() which will fail if the identity changes. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T06:48:37.000000Z K 7 svn:log V 34 - Skip over xvp if XLOCK is set. END K 10 svn:author V 3 alc K 8 svn:date V 27 2003-10-05T06:58:07.000000Z K 7 svn:log V 78 Assert that the containing vm object's lock is held in vm_page_set_invalid(). END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T07:12:38.000000Z K 7 svn:log V 285 - Fix an XXX. Check the error of vn_lock() in vflush(). Don't specify LK_RETRY either, we don't want this vnode if it turns into another. - Remove the code that checks the mount point after acquiring the lock we are guaranteed to either fail or get the vnode that we wanted. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T07:13:50.000000Z K 7 svn:log V 99 - Apply a big giant lock around the namecache. This has been sitting in my tree since BSDcon. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T07:16:45.000000Z K 7 svn:log V 578 - Check the XLOCK before inspecting v_data. - Slightly rewrite the fsync loop to be more lock friendly. We must acquire the vnode interlock before dropping the mnt lock. We must also check XLOCK to prevent vclean() races. - Use LK_INTERLOCK in the vget() in ffs_sync to further prevent vclean() races. - Use a local variable to store the results of the nvp == TAILQ_NEXT test so that we do not access the vp after we've vrele()d it. - Add an XXX comment about UFS_UPDATE() not being protected by any lock here. I suspect that it should need the VOP lock. END K 10 svn:author V 3 bde K 8 svn:date V 27 2003-10-05T07:44:45.000000Z K 7 svn:log V 167 Include . Don't depend on namespace pollution in . Fixed a nearby style bug. The include of vcoda.h used angle brackets and was not used. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2003-10-05T08:15:54.000000Z K 7 svn:log V 43 New errata: SA-03:14, SA-03:17, SA-03:18. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2003-10-05T08:17:53.000000Z K 7 svn:log V 28 New release note: SA-03:18. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2003-10-05T08:24:06.000000Z K 7 svn:log V 79 New release note: SA-03:16. MFC: SA-03:14, SA-03:17. Approved by: re (bmah) END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-05T08:38:22.000000Z K 7 svn:log V 271 Fold the vslock() and vsunlock() calls in this file with #if 0's; they will go away in due course. Involuntary pre-emption means that we can't count on wiring of pages alone for consistency when performing a SYSCTL_OUT() bigger than PAGE_SIZE. Discussed with: pete, phk END K 10 svn:author V 4 nyan K 8 svn:date V 27 2003-10-05T08:56:49.000000Z K 7 svn:log V 23 MFi386: revision 1.205 END K 10 svn:author V 4 nyan K 8 svn:date V 27 2003-10-05T09:05:45.000000Z K 7 svn:log V 42 MFi386: revisions 1.572, 1.573 and 1.574. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2003-10-05T09:17:25.000000Z K 7 svn:log V 49 Add a sentence forgotten in the previous commit. END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-05T09:35:08.000000Z K 7 svn:log V 220 Add a pre-emption counter, td_generation, so that threads can notice when they have been pre-empted by other threads. This is bumped from within mi_switch() every time a context switch takes place. Discussed with: pete END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-05T09:37:47.000000Z K 7 svn:log V 452 Fix a security problem in sysctl() the long way round. Use pre-emption detection to avoid the need for wiring a userland buffer when copying opaque data structures. sysctl_wire_old_buffer() is now a no-op. Other consumers of this API should use pre-emption detection to notice update collisions. vslock() and vsunlock() should no longer be called by any code and should be retired in subsequent commits. Discussed with: pete, phk MFC after: 1 week END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T09:39:02.000000Z K 7 svn:log V 75 - In ffs_update() assert that either the vnode lock or the XLOCK is held. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2003-10-05T09:42:24.000000Z K 7 svn:log V 264 - Further simplify ffs_sync(). The vnode lock is required for UFS_UPDATE() so make the code slightly more uniform. The vnode lock is acquired in all cases and now the only difference between VCHR and other is we call UFS_UPDATE instead of VOP_FSYNC(). END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-05T09:47:54.000000Z K 7 svn:log V 77 Retire vslock() and vsunlock() with extreme prejudice. Discussed with: pete END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-05T11:15:18.000000Z K 7 svn:log V 32 Mark td_generation as volatile. END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-05T11:47:51.000000Z K 7 svn:log V 45 Use the term 'physical memory' consistently. END K 10 svn:author V 4 nyan K 8 svn:date V 27 2003-10-05T11:55:14.000000Z K 7 svn:log V 61 Merged from sys/dev/sio/sio.c revisions from 1.405 to 1.414. END K 10 svn:author V 8 blackend K 8 svn:date V 27 2003-10-05T12:09:31.000000Z K 7 svn:log V 63 Typos fixing: paramters -> parameters assoicated -> associated END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-05T12:41:08.000000Z K 7 svn:log V 81 Revert previous commit. Come back vslock(), all is forgiven. Pointy hat to: bms END K 10 svn:author V 7 iedowse K 8 svn:date V 27 2003-10-05T12:41:35.000000Z K 7 svn:log V 279 Since the addition of the VI_DOINGINACT flag some time ago, VOP_INACTIVE routines need not worry about their vnode getting recycled if they block. Remove the code from nfs_inactive() that used vget() to get an extra vnode reference that was held during the nfs_vinvalbuf() call. END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-05T13:31:33.000000Z K 7 svn:log V 163 Bring back sysctl_wire_old_buffer(). Fix a bug in sysctl_handle_opaque() whereby the pointers would not get reset on a retried SYSCTL_OUT() call. Noticed by: bde END K 10 svn:author V 3 bms K 8 svn:date V 27 2003-10-05T13:39:28.000000Z K 7 svn:log V 46 Correct .Xr's in kiconv.3. Submitted by: osa END K 10 svn:author V 3 hrs K 8 svn:date V 27 2003-10-05T16:56:24.000000Z K 7 svn:log V 81 New errata: SA-03:16. MFC: SA-03:14, SA-03:17, SA-03:18. Approved by: re (bmah) END K 10 svn:author V 3 hrs K 8 svn:date V 27 2003-10-05T16:57:58.000000Z K 7 svn:log V 39 MFC: SA-03:18. Approved by: re (bmah) END K 10 svn:author V 3 hrs K 8 svn:date V 27 2003-10-05T16:59:31.000000Z K 7 svn:log V 68 Bump release.manpath.freebsd to 4.8-stable. Approved by: re (bmah) END K 10 svn:author V 3 imp K 8 svn:date V 27 2003-10-05T18:58:37.000000Z K 7 svn:log V 72 2662W-AR Wireless Adapter Submitted by: Stuart Walsh END K 10 svn:author V 3 imp K 8 svn:date V 27 2003-10-05T18:59:09.000000Z K 7 svn:log V 14 sync to 1.140 END K 10 svn:author V 3 sam K 8 svn:date V 27 2003-10-05T19:05:53.000000Z K 7 svn:log V 96 fix typo that caused a panic when processing an ICMP redirect Sponsored by: FreeBSD Foundation END K 10 svn:author V 7 iedowse K 8 svn:date V 27 2003-10-05T19:40:02.000000Z K 7 svn:log V 323 Remove the hardcoded default block/frag/cpg values from bsdlabel and the logic for setting them according to the partition size. Instead, unspecified filesystem values are left at 0 so that newfs will use its own defaults. It just caused confusion to have the defaults duplicated in two different places. Reviewed by: phk END