summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed the latest unsortings of CPU_ENABLE_*.bde2004-02-241-5/+5
|
* Fix array overflow: If len=128, don't access [16] of a 16-byte IPv6cperciva2004-02-241-1/+2
| | | | | | | | address, even if we subsequently ignore its value by applying a >>8 to it. Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor), {ume, suz} (KAME)
* Add support for Cronyx-Tau. For now I added only Tau-ISA files, system filesrik2004-02-2314-0/+13023
| | | | | | would be changed in next patches, after extra verifications. Approved by: imp (mentor)
* Connect geom_concat.ko module to the build.pjd2004-02-231-0/+1
| | | | Approved by: scottl (mentor)
* A more accurate test in the new ufs_lock than that in 1.235.mckusick2004-02-231-2/+3
|
* Fix a problem with the USB keyboard driver not properly handling keyjhb2004-02-231-5/+5
| | | | | | | | | | rollover resulting in duplicate keypress events. PR: 57273 PR: 63171 Submitted by: plasma <plasma at freebsd.sinica.edu.tw> Submitted by: Brian Candler <B.Candler at pobox.com> MFC after: 1 week
* Add missed CPU_ENABLE_LONGRON.sobomax2004-02-231-0/+1
| | | | Submitted by: Jon Noack <noackjr@alumni.rice.edu>
* Fix vinums cdevsw{} to initialize d_version.phk2004-02-233-14/+10
| | | | | | | | The nonstandard formatting made my mega-patch scripts miss it. Retire the static major number while we're here anyway. Reported by: Niels Chr. Bank-Pedersen <ncbp@bank-pedersen.dk>
* Fix two oversights here: don't trash the freelist, and properly cleanupphk2004-02-231-1/+4
| | | | | | the cdevsw{}. Submitted by: tegge
* In the function clear_inodedeps(), a FREE_LOCK() should be calledmckusick2004-02-231-1/+1
| | | | | | | AFTER the call to vn_start_write(), not before it. Otherwise, it is possible to unlock it multiple times if the vn_start_write() fails. Submitted by: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
* Change UFS from using vop_stdlock to using its own ufs_lock.mckusick2004-02-231-0/+28
| | | | | | | | | | In ufs_lock, check for attempts to acquire shared locks on snapshot files and change them to be exclusive locks. This change eliminates deadlocks and machine lockups reported in -current since most read requests started using shared lock requests. Submitted by: Jun Kuriyama <kuriyama@imgsrc.co.jp>
* Limit the amount of memory userspace processes can cause the kernel torwatson2004-02-231-0/+17
| | | | | | | allocate via DRI on r128 devices. Obtained from: Thomas Biege <thomas@suse.de> Reviewed by: scottl
* - Substitute bdone() and bwait() from vfs_bio.c foralc2004-02-231-23/+4
| | | | | | | | | | swap_pager_putpages()'s buffer completion code. Note: the only difference between swp_pager_sync_iodone() and bdone(), aside from the locking in the latter, was the unnecessary clearing of B_ASYNC. - Remove an unnecessary pmap_page_protect() from swp_pager_async_iodone(). Reviewed by: tegge
* Fix comment containing vop_readdir_args contents: a_cookies is reallytjr2004-02-232-2/+2
| | | | u_long ** not u_long *.
* cookies is an array of u_long, not u_int, so MALLOC() it accordingly.tjr2004-02-232-4/+4
| | | | | Allocating it with the wrong size could have caused corruption on 64-bit architectures.
* Correct some major SMP-harmful problems in the pipe implementation. Firstgreen2004-02-221-41/+66
| | | | | | | | | | | | of all, PIPE_EOF is not checked pervasively after everything that can drop the pipe mutex and msleep(), so fix. Additionally, though it might not harm anything, pipelock() and pipeunlock() are not used consistently. Third, the kqueue support functions do not use the pipe mutex correctly. Last, but absolutely not least, is a race: if pipe_busy is not set on the closing side of the pipe, the other side that is trying to write to that will crash BECAUSE PIPE_EOF IS NOT SET! Unconditionally set PIPE_EOF, and get rid of all the lockups/crashes I have seen trying to build ports.
* Ye/PCI is supported by cy driver, so we don't need to assign a number to it.imp2004-02-221-1/+1
|
* Add sysctls to allow showing threads for pgrp, tty, uid, ruid,deischen2004-02-222-7/+35
| | | | and pid.
* Unbreak after the change to use vm_paddr_t. Since vm_paddr_t ismux2004-02-224-8/+8
| | | | | | | an integer type and the a cast to (void *) was added in the definition of NULL for the kernel, we need to use 0 here instead. Partly submitted by: cperciva
* Reimplement sysctls handling by MAC framework.pjd2004-02-2210-57/+50
| | | | | | | | | | | Now I believe it is done in the right way. Removed some XXMAC cases, we now assume 'high' integrity level for all sysctls, except those with CTLFLAG_ANYBODY flag set. No more magic. Reviewed by: rwatson Approved by: rwatson, scottl (mentor) Tested with: LINT (compilation), mac_biba(4) (functionality)
* Check that amrd_sc is non-NULL before dereferencing it, not after.cperciva2004-02-221-2/+2
| | | | | Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor)
* Check that twed_sc is non-NULL before dereferencing it, not after.cperciva2004-02-221-2/+2
| | | | | Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor)
* Don't free k_cfg until we're finished using it -- reverse the order ofcperciva2004-02-221-1/+1
| | | | | | | two free commands. Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor), scottl
* Don't free meo until we're finished using it.cperciva2004-02-221-1/+1
| | | | | Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor), scottl
* protect new cdevsw entries with "#if (__FreeBSD_version > 502102)"rees2004-02-221-1/+3
|
* Correct a long-standing race condition in vm_object_page_remove() thatalc2004-02-221-1/+1
| | | | | | | could result in a dirty page being unintentionally freed. Reviewed by: tegge MFC after: 7 days
* Do not pre-map the I/O port space. On the Intel Tiger 4 this conflictsmarcel2004-02-223-35/+0
| | | | | | | | | with a memory mapped I/O range that's immediately before it and is not 256MB aligned. As a result, when an address is accessed in the memory mapped range and a direct mapping is added for it, it overlaps with the pre-mapped I/O port space and causes a machine check. Based on a patch from: arun@
* If mountnfs returns an error, it will have already freed nam; no need tocperciva2004-02-221-1/+0
| | | | | | | free it again. Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor)
* Check that periph is non-NULL before dereferencing it.cperciva2004-02-221-1/+1
| | | | | Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor), ken (scsi@)
* If we're going to panic(), do it before dereferencing a NULL pointer.cperciva2004-02-221-1/+1
| | | | | Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor)
* Check that xfer != NULL before dereferencing it, not after.cperciva2004-02-221-2/+2
| | | | | Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor)
* If we're going to assert that logData != NULL, do it before wecperciva2004-02-221-1/+1
| | | | | | | try to dereference logData. Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor), scottl
* We want to allocate and zero sizeof(struct foo) bytes, notcperciva2004-02-221-2/+2
| | | | | | | sizeof(struct foo *) bytes. Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor), scottl
* Fix off-by-one error: sc->twe_drive is an array of TWE_MAX_UNITS elements.cperciva2004-02-221-1/+1
| | | | | Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor)
* Update my personal copyrights and NETA copyrights in the kernelrwatson2004-02-2231-59/+59
| | | | | | | | to use the "year1-year3" format, as opposed to "year1, year2, year3". This seems to make lawyers more happy, but also prevents the lines from getting excessively long as the years start to add up. Suggested by: imp
* Check for NODEV return from udev2dev()phk2004-02-211-0/+2
|
* Regen (FWIW)peter2004-02-214-5/+5
|
* Try and make the compat sigreturn prototypes closer to reality.peter2004-02-211-1/+1
|
* Add a note about the landmine in the middle of struct ia32_sigframe.peter2004-02-211-0/+1
|
* DOH!!! Fix signals for freebsd-4.x/i386 binaries. The ucontext haspeter2004-02-211-1/+1
| | | | different alignments due to the sse fxsave dump area.
* Catch up with some proc/procsig locking improvements that were made to thepeter2004-02-211-6/+2
| | | | i386 version and were not merged over.
* Eliminate the second, unnecessary call to pmap_page_protect() near the endalc2004-02-211-2/+4
| | | | | | | of vm_pageout_flush(). Instead, assert that the page is still write protected. Discussed with: tegge
* in idmap_uid_to_name(), don't try to use the entry after freeing it, in therees2004-02-211-11/+7
| | | | | | | | idmap_add failure case (found by Ted Unangst via Colin Percival) also convert idmap_hashf to return void, since it can't fail also change some panics to error returns
* Fixed a serious off by 1 error. The cluster-in-use bitmap was overrunbde2004-02-211-2/+1
| | | | | | | by 1 u_int if the number of clusters was 1 more than a multiple of (8 * sizeof(u_int)). The bitmap is malloced and large (often huge), so fatal overrun probably only occurred if the number of clusters was 1 more than 1 multiple of PAGE_SIZE/8.
* ask for rdattr_err in readdir, so we won't fail the readdir if we can't getrees2004-02-211-21/+27
| | | | attrs on one or more entries
* Bump __FreeBSD_version to mark cdevsw megapatching.phk2004-02-211-1/+1
|
* Device megapatch 6/6:phk2004-02-216-78/+259
| | | | | | | | | | | | | | | | | | | | | | | | | This is what we came here for: Hang dev_t's from their cdevsw, refcount cdevsw and dev_t and generally keep track of things a lot better than we used to: Hold a cdevsw reference around all entrances into the device driver, this will be necessary to safely determine when we can unload driver code. Hold a dev_t reference while the device is open. KASSERT that we do not enter the driver on a non-referenced dev_t. Remove old D_NAG code, anonymous dev_t's are not a problem now. When destroy_dev() is called on a referenced dev_t, move it to dead_cdevsw's list. When the refcount drops, free it. Check that cdevsw->d_version is correct. If not, set all methods to the dead_*() methods to prevent entrance into driver. Print warning on console to this effect. The device driver may still explode if it is also incompatible with newbus, but in that case we probably didn't get this far in the first place.
* Device megapatch 5/6:phk2004-02-2110-25/+25
| | | | | | | | | | | | Remove the unused second argument from udev2dev(). Convert all remaining users of makedev() to use udev2dev(). The semantic difference is that udev2dev() will only locate a pre-existing dev_t, it will not line makedev() create a new one. Apart from the tiny well controlled windown in D_PSEUDO drivers, there should no longer be any "anonymous" dev_t's in the system now, only dev_t's created with make_dev() and make_dev_alias()
* Device megapatch 4/6:phk2004-02-21163-73/+349
| | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
* Device megapatch 3/6:phk2004-02-2129-76/+31
| | | | | | | | | | | | Add missing D_TTY flags to various drivers. Complete asserts that dev_t's passed to ttyread(), ttywrite(), ttypoll() and ttykqwrite() have (d_flags & D_TTY) and a struct tty pointer. Make ttyread(), ttywrite(), ttypoll() and ttykqwrite() the default cdevsw methods for D_TTY drivers and remove the explicit initializations in various drivers cdevsw structures.
OpenPOWER on IntegriCloud