summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add bus_alloc_resource_any(9), which does bus_alloc_resource() with thenjl2004-03-171-0/+6
| | | | | | | | appropriate default values. Document it in the manpage. Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Abstains: bde
* Fix information leakage.pjd2004-03-171-1/+6
| | | | | | | | | | | | | Without this fix it is possible to cheat policies like: - sysctl security.bsd.see_other_[gu]ids=0, - mac_seeotheruids(4), - jail(2) and get full processes list with their arguments. This problem exists from revision 1.62 of kern_proc.c when it was introduced. Reviewed by: nectar, rwatson.
* Make ddp_ports static, as it's not used outside of ddp_usrreq.c.rwatson2004-03-173-3/+2
| | | | | Inspired by: Day spent hiking to hot springs in Taiwan Powered by: Asia BSDCon 2004
* Adjust the number of processes waiting on a semaphore properly if we'recperciva2004-03-171-6/+12
| | | | | | | | woken up in the middle of sleeping. PR: misc/64347 Reviewed by: tjr MFC after: 7 days
* Adjust $FreeBSD$'s.obrien2004-03-172-5/+1
|
* Remove tun_proc; replace with tun_pid. tun_proc pointer may be stalerwatson2004-03-171-7/+14
| | | | | | | | as the process that opens tun_softc can exit before the file descriptor is closed. Taiwan experience provided by: keichii Crashing breakers provided by: Chia-liang Kao <clkao@clkao.org>
* Add tap_mtx to tap_softc in order to protect per-softc variablesrwatson2004-03-172-2/+44
| | | | | | | (tap_pid, tap_flags). if_tap should now be entirely MPSAFE. Committed from: Bamboo house by ocean in Taiwan Tropical paradise provided by: Chia-liang Kao <clkao@clkao.org>
* Implement "arlconfig arlX quality".fjoe2004-03-163-41/+103
| | | | | | Man pages fixes. Submitted by: Stanislav A. Svirid <count@riss-telecom.ru>
* Avoid doing bawrite to initialize inode block while holding cylinderkan2004-03-161-1/+3
| | | | | | | | | | group block locked. If filesystem has any active snapshots, bawrite can come back trying to allocate new snapshot data block from the same cylinder group and cause panic due to recursive lock attempt. PR: 64206 Reviewed by: mckusick Tested by: pjd
* Run through indent(1) so I can read the code without getting a headache.des2004-03-1614-5317/+5233
| | | | | The result isn't quite knf, but it's knfer than the original, and far more consistent.
* Add explicit dependency on "ether", since we use ether_ifattach().mux2004-03-161-0/+1
|
* Refactor the existing machine-dependent sf_buf_free() into a machine-alc2004-03-1610-127/+48
| | | | | | | | | | dependent function by the same name and a machine-independent function, sf_buf_mext(). Aside from the virtue of making more of the code machine- independent, this change also makes the interface more logical. Before, sf_buf_free() did more than simply undo an sf_buf_alloc(); it also unwired and if necessary freed the page. That is now the purpose of sf_buf_mext(). Thus, sf_buf_alloc() and sf_buf_free() can now be used as a general-purpose emphemeral map cache.
* Remove a bogus assertion and readd it in a more correct location. A threadjhb2004-03-161-1/+1
| | | | | | | | | might be enqueued on a sleep queue but not be asleep when the timeout fires if it is blocked on a lock trying to check for pending signals before going to sleep. In the case of fixing up the TDF_TIMEOUT race, however, the thread must be marked asleep. Reported by: kan (the bogus one)
* Update the SiS support to distinguish older southbridges better.sos2004-03-162-9/+21
|
* Add powerpc to temporary fix. The new cpu device claims allgrehan2004-03-161-2/+2
| | | | | 'generic' OpenFirmware nexus nodes, since it uses bus_generic_probe. Maybe the cpu device probe should be MD.
* Move the arl to i386 only.nyan2004-03-161-1/+1
|
* Don't use the pcic polling.nyan2004-03-161-1/+1
|
* Remove the module reference for RAIDframescottl2004-03-161-1/+0
|
* Remove RAIDFrame. It hasn't worked since GEOM replaced the old diskscottl2004-03-16138-42458/+0
| | | | | | mini-layer. I don't have time to bing it forward into the GEOM world, and no one else has stepped forward to claim it. It'll be in the Attic for safe keeping for now.
* Nudge Giant as far as I can into kern_open(). Mark open() as MPSAFE.dwmalone2004-03-167-26/+30
| | | | | | | | Use kern_open() to implement creat() rather than taking the long route through open(). Mark creat as MPSAFE. While I'm at it, mark nosys() (syscall 0) as MPSAFE, for all the difference it will make.
* Get ready to mark open, creat and nosys as MPSAFE.dwmalone2004-03-161-3/+3
|
* Use vfs_nmount() to mount linprocfs filesystems in linux_mount();tjr2004-03-161-4/+21
| | | | linprocfs doesn't support the old mount interface.
* Make vfs_nmount() public. The Linux emulator needs this in order to mounttjr2004-03-162-2/+2
| | | | linprocfs filesystems.
* Correct size argument passed to copyinstr() in linux_mount(): mntfromnametjr2004-03-161-2/+2
| | | | and mntonname are both MNAMELEN characters long, not MFSNAMELEN.
* Rename the wiredlen member of struct sysctl_req to validlen and alwaystruckman2004-03-162-15/+17
| | | | | | | | | | | | set it to avoid the need for a bunch of code that tests whether or not the lock member is set to REQ_WIRED in order to determine which length member should be used. Fix another bug in the oldlen return value code. Fix a potential wired memory leak if a sysctl handler uses sysctl_wire_old_buffer() and returns an EAGAIN error to trigger a retry.
* Don't bother calling vslock() and vsunlock() if oldlen is zero.truckman2004-03-161-7/+9
| | | | | | | | | | | | If vslock() returns ENOMEM, sysctl_wire_old_buffer() should set wiredlen to zero and return zero (success) so that the handler will operate according to sysctl(3): The size of the buffer is given by the location specified by oldlenp before the call, and that location gives the amount of data copied after a successful call and after a call that returns with the error code ENOMEM. The handler will return an ENOMEM error because the zero length buffer will overflow.
* Regenerate.jhb2004-03-159-14/+14
|
* - Mark ABI syscalls that call wait4() MP safe as recent changes tojhb2004-03-153-5/+5
| | | | | | the kernel wait4() made these all panic() implementations otherwise. - The i386 linux_ptrace() syscall is MP safe. Alpha was already marked MP safe.
* Add arl(4): driver for Aironet Arlan 655 wireless adapters.fjoe2004-03-157-0/+1656
| | | | MFC after: 2 weeks
* The PPS code needs to be much more brutal to avoid synchronism onphk2004-03-151-14/+32
| | | | hardware with non-sucky clocks.
* Regen for ptrace being safe again.jhb2004-03-155-6/+6
|
* Drop the proc lock around calls to the MD functions ptrace_single_step(),jhb2004-03-152-7/+12
| | | | | | | | | | ptrace_set_pc(), and cpu_ptrace() so that those functions are free to acquire Giant, sleep, etc. We already do a PHOLD/PRELE around them so that it is safe to sleep inside of these routines if necessary. This allows ptrace() to be marked MP safe again as it no longer triggers lock order reversals on Alpha. Tested by: wilko
* Add vectors for _snprintf() and _vsnprintf() (redirected straight towpaul2004-03-151-0/+2
| | | | | | | | | snprintf() and vsnprintf() in FreeBSD kernel land). This is needed by the Intel Centrino 2200BG driver. Unfortunately, this driver still doesn't work right with Project Evil even with this tweak, but I'm unable to diagnose the problem since I don't have access to a sample card.
* Move GID/UID_MAX under __BSD_VISIBLE protection.mlaier2004-03-151-3/+3
| | | | | Requested by: bde Approved by: bms(mentor)
* Add SATA support fieldssos2004-03-151-4/+14
|
* Remove sysctl security.jail.list_allowed.pjd2004-03-151-6/+1
| | | | | | | This functionality was a misfeature, sysctl was added and turned off by default just to check if nobody complains. Reviewed by: rwatson
* Add support for detaching PCI controllers.sos2004-03-157-97/+129
| | | | | | This adds support for cardbus ATA/SATA controllers. I get roughly the same transfer speeds as on true PCI controllers. Nice to be able to add a couble of "real" disks to a laptop :)
* Kill bogus isa compat opt file.imp2004-03-151-1/+1
|
* Temporarily comment out cy.imp2004-03-151-3/+2
| | | | Remove COMPAT_OLDISA
* including isa_device.h was historical in this file, remove itimp2004-03-153-3/+0
|
* Make overflow/wraparound checking more robust and unbreak len=0 intruckman2004-03-152-16/+22
| | | | | | vslock(), mlock(), and munlock(). Reviewed by: bde
* Style(9) changes.truckman2004-03-152-40/+11
| | | | Pointed out by: bde
* Revert to the original vslock() and vsunlock() API with the followingtruckman2004-03-153-39/+28
| | | | | | | | | exceptions: Retain the recently added vslock() error return. The type of the len argument should be size_t, not u_int. Suggested by: bde
* Remove redundant suser() check.truckman2004-03-151-4/+0
|
* Lock down global variables in if_tap (primarily, the tap softc list);rwatson2004-03-151-3/+28
| | | | | | | | | | | | | | | add tapmtx, which protects globale variables. Notes: - The EBUSY check in MOD_UNLOAD may be subject to a race. Moving the event handler unregister inside the mutex grab may prevent that race. - Locking of global variables safely is now possible because tapclones is only modified when the module is loading or unloading, thanks to phk's recent chang to clone_setup(). - softc locking to follow.
* Shorten a long comment.obrien2004-03-153-3/+3
|
* Don't reject FAT file systems with a number of "Heads" greater thanrwatson2004-03-141-1/+1
| | | | | | 255; USB keychains exist that use 256 as the number of heads. This check has also been removed in Darwin (along with most of the other head/sector sanity checks).
* Remove isa compat stuff.imp2004-03-149-453/+0
| | | | | | | Only cy, bs and wd in the tree still use it. I have a replacement for cy that I need to test on ISA and PCI cards. bs and wd are pc98 only drivers that appear to no longer be necessary. I'll be removing them when I hear back from the pc98 people.
* comment out bs and wd entries in the hintsimp2004-03-141-16/+16
|
* Comment out the cy driver until I can make sure that the new cy driverimp2004-03-141-2/+3
| | | | I have for it works.
OpenPOWER on IntegriCloud