summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Do not dereference NULL pointer.kib2007-10-081-3/+2
| | | | | | Reported by: Peter Holm Reviewed by: alc Approved by: re (kensmith)
* Deny attempt to malloc unbounded amount of the memory.kib2007-10-081-3/+6
| | | | | | | | Convert malloc()/bzero() to malloc(M_ZERO). Obtained from: OpenBSD MFC after: 3 days Approved by: re (kensmith)
* Disable TLS for arm and sparc64 here as binutils 2.15 predate GNU TLSmarius2007-10-081-0/+2
| | | | | | | | support for these. This is in line with gnu/lib/libgomp/config.h and gnu/lib/libstdc++/config.h. Reviewed by: cognet, obrien Approved by: re (kensmith)
* In the rare case that vm_page_cache() actually frees the given page,alc2007-10-081-10/+3
| | | | | | | | | | | it must first ensure that the page is no longer mapped. This is trivially accomplished by calling pmap_remove_all() a little earlier in vm_page_cache(). While I'm in the neighborbood, make a related panic message a little more useful. Approved by: re (kensmith) Reported by: Peter Holm and Konstantin Belousov Reviewed by: Konstantin Belousov
* Resolve conflicts to complete less v408 import.delphij2007-10-085-21/+38
| | | | Approved by: re (kensmith)
* This commit was generated by cvs2svn to compensate for changes in r172468,delphij2007-10-0816-12/+117
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Virgin import of less v408.delphij2007-10-0820-32/+154
| | | | | | | | Approved by: re (kensmith)
* | Add FBSDID to all files in netinet so that people can moresilby2007-10-0738-53/+114
| | | | | | | | | | | | easily include file version information in bug reports. Approved by: re (kensmith)
* | Correct a lock assertion failure in sparc64's pmap_page_is_mapped() that isalc2007-10-072-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | a consequence of sparc64/sparc64/vm_machdep.c revision 1.76. It occurs when uma_small_free() frees a page. The solution has two parts: (1) Mark pages allocated with VM_ALLOC_NOOBJ as PG_UNMANAGED. (2) Defer the lock assertion in pmap_page_is_mapped() until after PG_UNMANAGED is tested. This is safe because both PG_UNMANAGED and PG_FICTITIOUS are immutable flags, i.e., they do not change state between the time that a page is allocated and freed. Approved by: re (kensmith) PR: 116794
* | Improve the debugging message:silby2007-10-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | TCP: [X.X.X.X]:X to [X.X.X.X]:X tcpflags 0x18<PUSH,ACK>; tcp_do_segment: FIN_WAIT_2: Received data after socket was closed, sending RST and removing tcpcb So that it also includes how many bytes of data were received. It now looks like this: TCP: [X.X.X.X]:X to [X.X.X.X]:X tcpflags 0x18<PUSH,ACK>; tcp_do_segment: FIN_WAIT_2: Received X bytes of data after socket was closed, sending RST and removing tcpcb Approved by: re (gnn)
* | This patch adds an M_NOFREE flag which allows one to mark an mbuf askmacy2007-10-063-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | not being independently freeable. This allows one to embed an mbuf in the cluster itself. This confers the benefits of the packet zone on all cluster sizes. Embedded mbufs currently suffer from the same limitation that packet zone mbufs do in that one cannot disconnect them and pass them around independently of the cluster. It would likely be possible to eliminate this limitation in the future by adding a second reference for the mbuf itself. Approved by: re(gnn)
* | Allow drivers to free an mbuf without having the mbuf be touched ifkmacy2007-10-062-2/+15
| | | | | | | | | | | | the driver has already freed any attached tags Approved by: re(gnn)
* | - Fix the one-2-one model to properly do a socantrecv()rrs2007-10-061-0/+1
| | | | | | | | Approved by: re@freeBSD.org (Ken Smith)
* | Add an MLINKS for pci_find_dbsf.9.marius2007-10-051-0/+1
| | | | | | | | | | Submitted by: ru Approved by: re (gnn)
* | Disable TCP syncache debug logging by default. While useful in debuggingrwatson2007-10-051-1/+1
| | | | | | | | | | | | | | | | | | problems with the syncache, it produces a lot of console noise and has led to quite a few false positive bug reports. It can be selectively re-enabled when debugging specific problems by frobbing the same sysctl. Discussed with: silby Approved by: re (gnn)
* | Use the correct pid when checking to see whether or not the /proc/<pid>jhb2007-10-051-1/+1
| | | | | | | | | | | | | | | | | | | | directory itself (rather than any of its contents) is visible to the current thread. MFC after: 1 week PR: kern/90063 Submitted by: john of 8192.net Approved by: re (kensmith)
* | manpage update for the recent commit to uscanner.cluigi2007-10-051-190/+48
| | | | | | | | | | | | | | | | | | | | | | I also took the chance to make the list of supported devices a bit more compact, as it was really long to read. Even though re@ and Warner only saw the diffs for the code, i expect their approval also covered the manpage update. Approved by: re, imp (implicitly i hope) MFC after: 3 days
* | Add entries for Epson multifunction scanner/printer/card readers,luigi2007-10-052-6/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with all functions supported. This is done adding usb device IDs to the table of recognised devices (because there is no standard 'scanner' class, so no other way to recognise them), and with a small change to the uscanner attach routine that prevents reconfiguring the whole USB device while we are dealing only with one of its USB interfaces. The latter part has been suggested by Steinar Hamre in http://www.freebsd.org/cgi/query-pr.cgi?pr=107665 , i have only added a bit of explaination to the code. I have personally tried this on the Epson DX-5050 and DX-6000 devices (on the US market they have different names, CX-something). I have good reasons to think that, possibly with the mere addition of more USB ids to the table in uscanner.c, this should work with all Epson multifunction devices in that family (from DX-3800 to DX-7000 - these units are in the 50-120$ price range). More details on related topics (SANE configuration, OCR, etc.) at http://info.iet.unipi.it/~luigi/FreeBSD/dx5050.html Manpage updates coming soon. Approved by: re, imp MFC after: 3 days
* | AMD CS5536 and VIA 8237S support.brueffer2007-10-051-3/+3
| | | | | | | | Approved by: re (blanket)
* | Make selector parsing accept the dot "." as an alternative selectorse2007-10-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | with identical meaning as the colon ":". This is to support a syntax that is more similar to a PCI device specification in the device hints file. The selector is not fully compatible with the specification in the hints file, since entries in that file use a different prefix, which needs to be added to the getsel() routine, if full support of that syntax is found to be desirable. Approved by: re (Ken Smith)
* | Restore compatibility with version before introduction of PCI domains.se2007-10-042-18/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PCI selectors with 2 or 3 elements behave exactly as before (i.e. the domain is 0 and in the 2 element case, the function is also 0). The form with 4 selector elements works as in the previous revision and provides the PCI domain number as the left-most selector element. This change allows old scripts (which used the 2 or 3 selector element formats) to be kept. Without this patch, the 3 element form was parsed as starting with a domain number (and the function was assumed to be 0), with this patch, the domain is assumed to be 0 (and the last value is used as the function number). The man page is updated to describe the new selector semantics. Approved by: re (Ken Smith)
* | Add support for the VIA 8237Ssos2007-10-043-1/+4
| | | | | | | | | | | | Fix the LBA28/LBA48 crossover bug. Approved by: re@
* | Also boot *.debug if everything else fails.obrien2007-10-041-0/+1
| | | | | | | | Approved by: re(gnn)
* | Fix lock leak leading to the 'System call <name> returning with 1 locks held'pjd2007-10-042-0/+4
| | | | | | | | | | | | | | panic. Reported by: kris Approved by: re (kensmith)
* | MFp4: Provide a dummy verb "export" to shut up the messagedelphij2007-10-041-1/+1
| | | | | | | | | | | | | | showed up at start when NFS is enabled. Reported by: rafan Approved by: re (tmpfs blanket)
* | Additional work is still needed before we can claim that tmpfsdelphij2007-10-041-0/+3
| | | | | | | | | | | | is stable enough for production usage. Warn user upon mount. Approved by: re (tmpfs blanket)
* | The exit status of a case statement where none of the patterns is matchedstefanf2007-10-043-0/+18
| | | | | | | | | | | | | | | | is supposed to be 0, not the status of the previous command. Reported by: Eygene Ryabinkin PR: 116559 Approved by: re (gnn)
* | Fix the module name matching to the drivers present in the kernel. Previouslythompsa2007-10-041-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | it would return true on a partial match where it would think the edsc module was already present by having a positive match on 'ed'. This changes it so that it compares the full string including the nul terminators. This also fixes a buffer overflow in the ifkind variable where the length of the interface name in *argv wasnt checked for size. Reviewed by: brooks Approved by: re (gnn)
* | - We should return error = 0 and the upper processing wouldrrs2007-10-041-1/+2
| | | | | | | | | | | | | | return a zero length read. Otherwise we don't return the right error indication. Approved by: re@freebsd.org (gnn)
* | Recognize the CS5536 support chip for the AMD Geode LX CPU to enablephk2007-10-042-0/+2
| | | | | | | | | | | | | | | | | | | | UDMA modes. Please notice that Soekris NET5501 bios versions before 1.32f has a bug that prevents this from working. Approved by: re (gnn) MFC: 2 weeks
* | FreeBSD 6.2 is now known to mdoc.ru2007-10-041-1/+0
| | | | | | | | Approved by: re (kensmith)
* | MFV: recent mdoc(7) changes.ru2007-10-042-4/+5
| | | | | | | | Approved by: re (kensmith)
* | Correct a buffer overflow in OpenSSL SSL_get_shared_ciphers().simon2007-10-031-11/+11
| | | | | | | | | | Security: FreeBSD-SA-07:08.openssl Approved by: re (security blanket)
* | This commit was generated by cvs2svn to compensate for changes in r172423,ru2007-10-031-82/+88
|\ \ | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | Pull up current -mdoc version from vendor. This includes theru2007-10-033-86/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | following changes: : 2007-10-02 Ruslan Ermilov <ru@FreeBSD.org> : : * tmac/doc-common, tmac/groff_doc.man: Add FreeBSD 6.2, document : FreeBSD 5.5 and 7.0. : : * tmac/doc-syms: Give better names for System V releases. : 2007-05-30 Werner LEMBERG <wl@gnu.org> : : * tmac/groff_mdoc.man: Convert `-' to `\-' where appropriate. : Recommend `tbl' instead of `-column' lists for more complicated : cases.
* | | Sort as per README.ru2007-10-033-28/+28
| | | | | | | | | | | | Approved by: re (kensmith)
* | | Removed "tail +5" from the command used to sanity check changes toru2007-10-031-1/+1
| | | | | | | | | | | | | | | | | | | | | mtree files -- the 5-line header is no longer printed when mtree(8) is run with -n (as of mtree/create.c,v 1.34). Approved by: re (kensmith)
* | | Correction to the log for rev. 1.4:obrien2007-10-030-0/+0
| | | | | | | | | | | | | | | | | | "One must now explicitly specify -ftree-vrp if one wants it". Approved by: re(KenSmith)
* | | Do not imply -ftree-vrp with -O2 and above. One must implicitly specifyobrien2007-10-021-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | '-ftree-vrp' if one wants it. Some bad code generation has been tracked to -ftree-vrp. jdk1{5,6} are notable examples. Approved by: re(kensmith)
* | | Fix usage example since we don't have wext driver.kevlo2007-10-021-1/+1
| | | | | | | | | | | | | | | Reviewed by: sam Approved by: re (kensmith)
* | | Fix sx_try_slock(), so it only fails when there is an exclusive owner.pjd2007-10-021-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before that fix, it was possible for the function to fail if number of sharers changes between 'x = sx->sx_lock' step and atomic_cmpset_acq_ptr() call. This fixes ZFS problem when ZFS returns strange EIO errors under load. In ZFS there is a code that depends on the fact that sx_try_slock() can only fail if there is an exclusive owner. Discussed with: attilio Reviewed by: jhb Approved by: re (kensmith)
* | | Removing obsolete cached files after cached->nscd renaming.bushman2007-10-0239-10193/+0
| | | | | | | | | | | | Approved by: re (kensmith), brooks (mentor)
* | | - Reassign the thread queue lock to newtd prior to switching. Assigningjeff2007-10-021-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after the switch leads to a race where the outgoing thread still owns the local queue lock while another cpu may switch it in. This race is only possible on machines where cpu_switch can take significantly longer on different cpus which in practice means HTT machines with unfair thread scheduling algorithms. Found by: kris (of course) Approved by: re
* | | Remove a -N flag.kevlo2007-10-021-6/+0
| | | | | | | | | | | | | | | Reviewed by: sam Approved by: re (kensmith)
* | | - Move the rebalancer back into hardclock to prevent potential softclockjeff2007-10-021-55/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | starvation caused by unbalanced interrupt loads. - Change the rebalancer to work on stathz ticks but retain randomization. - Simplify locking in tdq_idled() to use the tdq_lock_pair() rather than complex sequences of locks to avoid deadlock. Reported by: kris Approved by: re
* | | Always install libpthread.* symlinks if at least one ofru2007-10-011-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the threading libraries is built. This simplifies the logic in makefiles that need to check if the pthreads support is present. It also fixes a bug where we would build a threading library that we shouldn't have built: for example, building with WITHOUT_LIBTHR and the default value of DEFAULT_THREADING_LIB (libthr) would mistakenly build the libthr library, but not install it. Approved by: re (kensmith)
* | | Revise the list of directories we manually create underru2007-10-011-5/+2
| | | | | | | | | | | | | | | | | | | | | ${WORLDTMP} and ${LIB32TMP}; some of them are no longer needed, and some were never needed. Approved by: re (kensmith)
* | | Don't build bits that depend on the pthreads support if aru2007-10-013-0/+6
| | | | | | | | | | | | | | | | | | system was configured without such support. Approved by: re (kensmith)
* | | Always install libpthread.* symlinks if at least one ofru2007-10-017-25/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the threading libraries is built. This simplifies the logic in makefiles that need to check if the pthreads support is present. It also fixes a bug where we would build a threading library that we shouldn't have built: for example, building with WITHOUT_LIBTHR and the default value of DEFAULT_THREADING_LIB (libthr) would mistakenly build the libthr library, but not install it. Approved by: re (kensmith)
* | | Fixed static linkage (build with -DNO_SHARED).ru2007-10-016-10/+16
| | | | | | | | | | | | Approved by: re (kensmith)
OpenPOWER on IntegriCloud