summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix severe out-of-bound mtx "type" pointer, causing WITNESS refcountariff2007-03-1520-34/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | confusions and panic provided that the following conditions are met: 1) WITNESS is enabled (watch/trace). 2) Using modules, instead of statically linked (Not a strict requirement, but easier to reproduce this way). 3) 2 or more modules share the same mtx type ("sound softc"). - They might share the same name (strcmp() == 0), but it always point to different address. 4) Repetitive kldunload/load on any module that shares the same mtx type (Not a strict requirement, but easier to reproduce this way). Consider module A and module B: - From enroll() - subr_witness.c: * Load module A. Everything seems fine right now. wA-w_refcount == 1 ; wA-w_name = "sound softc" * Load module B. * w->w_name == description will always fail. ("sound softc" from A and B point to different address). * wA->w_refcount > 0 && strcmp(description, wA->w_name) == 0 * enroll() will return wA instead of returning (possibly unique) wB. wA->w_refcount++ , == 2. * Unload module A, mtx_destroy(), wA->w_name become invalid, but wA->w_refcount-- become 1 instead of 0. wA will not be removed from witness list. * Some other places call mtx_init(), iterating witness list, found wA, failed on wA->w_name == description * wA->w_refcount > 0 && strcmp(description, wA->w_name) * Panic on strcmp() since wA->w_name no longer point to valid address. Note that this could happened in other places as well, not just sound (eg. consider lots of drivers that share simmilar MTX_NETWORK_LOCK). Solutions (for sound case): 1) Provide unique mtx type string for each mutex creation (chosen) or 2) Put "sound softc" global variable somewhere and use it.
* | Add missing @brueffer2007-03-151-1/+1
| |
* | Consolidate insertion of TCP options into a segment from within tcp_output()andre2007-03-156-234/+264
| | | | | | | | | | | | | | | | | | | | | | | | | | | | and syncache_respond() into its own generic function tcp_addoptions(). tcp_addoptions() is alignment agnostic and does optimal packing in all cases. In struct tcpopt rename to_requested_s_scale to just to_wscale. Add a comment with quote from RFC1323: "The Window field in a SYN (i.e., a <SYN> or <SYN,ACK>) segment itself is never scaled." Reviewed by: silby, mohans, julian Sponsored by: TCP/IP Optimization Fundraise 2005
* | Remove NULL allocation checking since malloc() is allow to wait.ariff2007-03-151-2/+0
| | | | | | | | (I'll fix other places later..)
* | NULL instead of 0 in mtx_init() .ariff2007-03-152-5/+5
| |
* | Add a description about hw.firewire.hold_count.simokawa2007-03-151-1/+2
| | | | | | | | | | MFC: after 3 days PR: kern/93083
* | Don't mess with PCIM_CMD_SERRESPEN and PCIM_CMD_PERRESPEN.simokawa2007-03-151-3/+1
| | | | | | | | | | | | | | This will fix 'NMI RAM parity error' while booting on some machines. PR: kern/95077 MFC after: 3 days
* | Remove a spurious blank line at the start of vlan_growhash().yar2007-03-151-1/+4
| | | | | | | | | | Add a diagnostic message to the function about resizing vlan hash table.
* | Mention the first RELENG_6 release to include this driver.brueffer2007-03-151-0/+2
| | | | | | | | MFC after: 3 days
* | - Sysctl's move to seperate filerrs2007-03-1531-4030/+4793
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - moved away from ifn/ifa access to sctp_ifa/sctp_ifn built and managed by the add-ip code. - cleaned up add-ip code to use the iterator - made iterator be a thread, which enables auto-asconf now. - rewrote and cleaned up source address selection (also made it use new structures). - Fixed a couple of memory leaks. - DACK now settable as to how many packets to delay as well as time. - connectx() to latest socket API, new associd arg. - Fixed issue with revoking and loosing potential to send when we inflate the flight size. We now inflate the cwnd too and deflate it later when the revoked chunk is sent or acked. - Got rid of some temp debug code - src addr selection moved to a common file (sctp_output.c) - Support for simple VRF's (we have support for multi-vfr via compile switch that is scrubbed from BSD but we won't need multi-vrf until we first get VRF :-D) - Rest of mib work for address information now done - Limit number of addresses in INIT/INIT-ACK to a #def (30). Reviewed by: gnn
* | Fix a comment in memstat.h: errors are associated with memory type lists,rwatson2007-03-151-1/+1
| | | | | | | | | | | | | | not individual types. Submitted by: Bryan Venteicher <bryanv at daemoninthecloset dot org> MFC after: 3 days
* | Don't consider an lstat(2) failure to be an error (in the sense ofcperciva2007-03-151-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | affecting the return value from bsdtar), since (a) it usually occurs due to a perfectly innocent (and unavoidable) race condition where a user deletes a file in the window between bsdtar reading a directory and attempting to read the file; and (b) aside from printing a warning message, bsdtar behaves exactly as if the file had been deleted prior to bsdtar reading its parent directory. Reviewed by: kientzle MFC after: 6 days
* | In auth_script(), change the size of an array to match the number ofkevlo2007-03-151-1/+1
| | | | | | | | arguments.
* | Diff reduction with NetBSD; use IN_LOCAL_GROUP() to check if an addressbms2007-03-151-1/+1
| | | | | | | | is within the locally scoped multicast range 224.0.0.0/24.
* | A silly buglet found by Coverity- check the return value frommjacob2007-03-151-1/+7
| | | | | | | | cam_periph_acquire.
* | fix include nameskmacy2007-03-151-2/+2
| |
* | Remove vestiges of very specific fpga support for my company's board.imp2007-03-152-38/+1
| | | | | | | | | | | | | | It isn't relevant to FreeBSD as a whole, breaks the build, and isn't even needed for my company's boards anymore... MFC After: 2 weeks
* | Add "force" to ext2_ops, to match what was in the old mount_ext2fs binary.rodrigc2007-03-151-1/+1
| | | | | | | | Reported by: Ivan Voras <ivoras fer hr>
* | Document exact command preferred for sending ASL as part of bug reports.njl2007-03-142-0/+8
| |
* | Create an identity mapping (V=P) super page for the low memory region onnjl2007-03-142-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | boot. Then, just switch to the kernel pmap when suspending instead of allocating/freeing our own mapping every time. This should solve a panic of pmap_remove() being called with interrupts disabled. Thanks to Alan Cox for developing this patch. Note: this means that ACPI requires super page (PG_PS) support in the CPU. This has been present since the Pentium and first documented in the Pentium Pro. However, it may need to be revisited later. Submitted by: alc MFC after: 1 month
* | New release notes: vge(4) altq support (+mfc), snd_hda(4) addedbrueffer2007-03-141-7/+13
| | | | | | | | | | | | Updated release notes: KDE updated to 3.5.6, GNOME updated to 2.16.3 Also moved cxgb(4) entry to the right place and fixed another entity.
* | New release notes: cxgb(4) added.brueffer2007-03-141-3/+7
| | | | | | | | While here, fix an entity.
* | Properly move the setting of bstp_linkstate_p to the bridgestp module.thompsa2007-03-142-2/+1
| |
* | Fix markup and reword a sentence to actually make sense.brueffer2007-03-141-3/+3
| |
* | Only enter the debugger on a Fatal op if this is a debug build of thenjl2007-03-141-1/+3
| | | | | | | | | | | | | | acpi module. Also clean up print of args a little. This was accidentally committed as 1.9.2.3 in the stable branch. Since it is harmless, I will let the "insta-MFC" stand unless there is a problem.
* | Update a comment: Rather than suggesting suser(), suggest priv(9) forrwatson2007-03-141-2/+2
| | | | | | | | checking privilege.
* | Map the second CS of the compact flash too. This allow us access tojhay2007-03-142-4/+20
| | | | | | | | | | | | | | | | the alternate status and the control registers. Remove the local version of ata_reset. Add support for the ADI Pronghorn Metro boards. They use CS3 and CS4 instead of Avila's CS1 and CS2.
* | Rename sed.test to multitest.t to comply with the naming scheme ofdds2007-03-142-473/+1
| | | | | | | | the regression suite.
* | Repo-copy from sed.test to comply with the naming scheme ofdds2007-03-140-0/+0
| | | | | | | | | | | | the regression suite. Copied-by: simon@
* | Disable linking in of firmware on ia64 to avoid build failures from akmacy2007-03-141-3/+6
| | | | | | | | broken ld.
* | Map the second CS of the compact flash too. This allow us access tojhay2007-03-141-113/+82
| | | | | | | | | | | | | | | | | | | | the alternate status and the control registers. Remove the local version of ata_reset. Add support for the ADI Pronghorn Metro boards. They use CS3 and CS4 instead of Avila's CS1 and CS2. OKed by: sam, cognet
* | fix braino in markup.julian2007-03-141-1/+1
| |
* | #define L1_CACHE_BYTES for non-x86kmacy2007-03-141-0/+1
| |
* | define prefetch as a no-op macro for non-x86 archeskmacy2007-03-141-6/+3
| |
* | Let vlan_ioctl() pass some work on to ether_ioctl()yar2007-03-141-25/+1
| | | | | | | | and so reduce code duplication a bit.
* | Test files repo-copied into tools/regression/usr.bin/sed and integrateddds2007-03-143-1098/+0
| | | | | | | | into the regression testing framework.
* | Reinstate error-testing regression tests.dds2007-03-1433-78/+107
| |
* | Remove obsolete polling members from documentation for struct ifnet.bms2007-03-141-11/+1
| | | | | | | | | | Submitted by: Aniruddha Bohra MFC after: 5 days
* | Don't deny mounting for jailed processes immediately, allowpjd2007-03-141-3/+1
| | | | | | | | | | | | | | | | | | prison_priv_check() to decide what to do. This change is suppose not to change current (security) behaviour in any way. Reviewed by: rwatson
* | Integrate the tests I wrote in 1992 with our current regressiondds2007-03-143-130/+111
| | | | | | | | testing framework and protocol.
* | White space nits.pjd2007-03-141-16/+14
| |
* | Reference results for sed.test (to be renamed into multitest.t).dds2007-03-1490-0/+4210
| | | | | | | | | | | | | | | | | | I have verified these with GNU sed 4.1.5 (and in some cases with Solaris sed) and they are identical, with the following exceptions: 5.3: The result is unspecified and BSD sed behaves differently. 6.3: GNU sed gets it wrong 7.1: GNU sed gets it wrong 7.8: BSD sed gets it wrong
* | - Uncomment tests that were commented outdds2007-03-142-172/+84
| | | | | | | | | | - Update platform-conditional tests to reflect current reality - Fix conditional for test 7.8: it is the fault of BSD sed
* | Autogenerate the hardware list for cxgb(4).brueffer2007-03-142-0/+3
| |
* | - It looks like BSD and GNU sed can nowadays pass two more tests.dds2007-03-142-14/+8
| | | | | | | | - Test 7.8 fails for GNU sed not BSD.
* | Use another non-printing test; address 0 now has a special meaning in GNU sed.dds2007-03-142-4/+4
| |
* | Document a procedure for testing individual binaries under development.dds2007-03-141-0/+6
| |
* | Update tests to reflect the state of the art of sed in HEAD anddds2007-03-142-90/+38
| | | | | | | | | | | | GNU sed 4.1.5. Almost all of the tests that were skipped for BSD or GNU sed now appear to work.
* | Implement fine-grained locking for UFS quotas.kib2007-03-143-142/+493
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Each struct dquot gets dq_lock mutex to protect dq_flags and to interlock with DQ_LOCK. qhash, dqfreelist and dq.dq_cnt are protected by global dqhlock mutex. i_dquot array for inode is protected by lockmgr' vnode lock, corresponding assert added to the dqget(). Access to struct ufsmount quota-related fields (um_quotas and um_qflags) is protected by um_lock. Tested by: Peter Holm Reviewed by: tegge Approved by: re (kensmith) This work were not possible without enormous amount of help given by Tor Egge and Peter Holm. Tor reviewed each version of patch, pointed out numerous errors and provided invaluable suggestions. Peter did tireless testing of the patch as it was developed.
* | Call getinoquota() before allocating new block for the directory to properlykib2007-03-141-0/+8
| | | | | | | | | | | | | | | | account for block allocation. Tested by: Peter Holm Reviewed by: tegge Approved by: re (kensmith)
OpenPOWER on IntegriCloud