summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* enclose IPv6 part with ifdef INET6.ume2003-10-202-4/+6
| | | | Obtained from: KAME
* Mark dup as MPSAFE. Giant was pushed into dup ages ago, but it looksdwmalone2003-10-206-7/+7
| | | | | | like it was missed in syscalls.master. Spotted by: alc
* correct linkmtu handling.ume2003-10-2010-111/+142
| | | | Obtained from: KAME
* Remember to check the DE_WHITEOUT flag in the case where a clonedphk2003-10-201-4/+9
| | | | | | device is hidden by a devfs(8) rule. Spotted by: Adam Nowacki <ptnowak@bsk.vectranet.pl>
* If just gcc could make up its mind...sos2003-10-201-1/+1
|
* Only return valid DMA error bits.sos2003-10-201-1/+1
|
* Up delay from 10 to 100ms after reset, this helps some slow devicessos2003-10-201-1/+2
| | | | get their act together before we start probing.
* Only announce ECC errors when its only that.sos2003-10-201-2/+2
|
* Fix some security bugs in the SVR4 emulator:tjr2003-10-206-20/+78
| | | | | | | | | | | | | | | | | | | - Return NULL instead of returning memory outside of the stackgap in stackgap_alloc() (FreeBSD-SA-00:42.linux) - Check for stackgap_alloc() returning NULL in svr4_emul_find(), and clean_pipe(). - Avoid integer overflow on large nfds argument in svr4_sys_poll() - Reject negative nbytes argument in svr4_sys_getdents() - Don't copy out past the end of the struct componentname pathname buffer in svr4_sys_resolvepath() - Reject out-of-range signal numbers in svr4_sys_sigaction(), svr4_sys_signal(), and svr4_sys_kill(). - Don't malloc() user-specified lengths in show_ioc() and show_strbuf(), place arbitrary limits instead. - Range-check lengths in si_listen(), ti_getinfo(), ti_bind(), svr4_do_putmsg(), svr4_do_getmsg(), svr4_stream_ti_ioctl(). Some fixes obtain from OpenBSD.
* We dont support CDROMREADAUDIO anymore.sos2003-10-201-18/+1
|
* Remove no longer existant CDIOCREADAUDIO ioctl.sos2003-10-201-9/+0
|
* When a driver successfully created a device on demand, we can directlyphk2003-10-201-7/+6
| | | | | | | | | pick up the DEVFS inode number from the dev_t and find our directory entry from that, we don't need to scan the directory to find it. This also solves an issue with on-demand devices in subdirectories. Submitted by: cognet
* - Synchronize access to a vm page's valid field using the containingalc2003-10-201-4/+10
| | | | vm object's lock.
* Put the RSE backing store at a fixed address. This change is triggeredmarcel2003-10-202-1/+3
| | | | | | | | | | | | | by libguile that needs to know the base of the RSE backing store. We currently do not export the fixed address to userland by means of a sysctl so user code needs to hardcode it for now. This will be revisited later. The RSE backing store is now at the bottom of region 4. The memory stack is at the top of region 4. This means that the whole region is usable for the stacks, giving a 61-bit stack space. Port: lang/guile (depended of x11/gnome2)
* - Remove comments referring to functions that no longer exist.alc2003-10-201-2/+0
|
* Various style and type fixes in my last commit.cognet2003-10-201-16/+12
| | | | Suggested by: mux
* - Hold the vm object's lock around calls to vm_page_set_validclean().alc2003-10-201-0/+4
|
* Fix m_head handling in sis_encap so that the correct mbuf is always handedsilby2003-10-191-9/+8
| | | | to BPF_MTAP.
* Fix a problem where m_defrag would allocate a new mbuf to replace thesilby2003-10-192-16/+16
| | | | | | | chain passed into dc_encap, which dc_start was unaware of. This caused the old (now invalid) mbuf to be passed to BPF_MTAP. Spotted by: Kenjiro Cho <kjc@csl.sony.co.jp>
* Add a new macro M_ASSERTVALID which ensures that the mbuf in questionsilby2003-10-192-0/+8
| | | | | | | | | is non-free. (More checks can/should be added in the future.) Use M_ASSERTVALID in BPF_MTAP so that we catch when freed mbufs are passed in, even if no bpf listeners are active. Inspired by a bug in if_dc caught by Kenjiro Cho.
* Add a testcase which validates that the same buffer can be passed tophk2003-10-192-0/+87
| | | | | | | | | | rijndael_blockDecrypt() as both input and output. This property is important because inside rijndael we can get away with allocating just a 16 byte "work" buffer on the stack (which is very cheap), whereas the calling code would need to allocate the full sized buffer, and in all likelyhood would have to do so with an expensive malloc(9).
* - revert to old rijndael code. new rijndael code broke gbde.ume2003-10-197-1426/+1712
| | | | | - since aes-xcbc-mac and aes-ctr require functions in new rijndael code, aes-xcbc-mac and aes-ctr are disabled for now.
* falloc allocates a file structure and adds it to the file descriptordwmalone2003-10-198-31/+47
| | | | | | | | | | | | | | | | | | | | | table, acquiring the necessary locks as it works. It usually returns two references to the new descriptor: one in the descriptor table and one via a pointer argument. As falloc releases the FILEDESC lock before returning, there is a potential for a process to close the reference in the file descriptor table before falloc's caller gets to use the file. I don't think this can happen in practice at the moment, because Giant indirectly protects closes. To stop the file being completly closed in this situation, this change makes falloc set the refcount to two when both references are returned. This makes life easier for several of falloc's callers, because the first thing they previously did was grab an extra reference on the file. Reviewed by: iedowse Idea run past: jhb
* - Add vm object locking to vfs_clean_pages() and vfs_bio_set_validclean().alc2003-10-191-2/+4
| | | | | This is to synchronize access to the vm page's valid field by vm_page_set_validclean().
* Remove KASSERT check for negative bio_offsets, add "normal" EIOphk2003-10-192-4/+3
| | | | error return for same.
* Finish the removal of the bst/bsh confusion.imp2003-10-191-10/+10
|
* Remove debug printf().mux2003-10-191-1/+0
|
* Implement partially /proc/<pid>/maps.cognet2003-10-191-5/+96
| | | | | | It looks enough to make SImics run. Reviewed by: des
* MFi386: revision 1.577.nyan2003-10-192-18/+34
|
* Fix LINT build by correcting a missed change.bms2003-10-191-1/+1
|
* Disable irqs before entering the power-off state. This is not knownnjl2003-10-191-0/+1
| | | | | to fix any problems but is similar to how Linux implements this function.
* Tidy up loose ends in the idle process. Call the MI cpu_idle() functionpeter2003-10-191-37/+5
| | | | | | | | for all platforms now. XXX alpha/sparc64/powerpc should fill in the function. Submitted by: bde
* Add a stub cpu_idle() function for sparc64, alpha, powerpc. This is apeter2003-10-194-0/+24
| | | | MI declared function so it should be everywhere.
* Use npxdrop in cpu_thread_exit to save some cycles.davidxu2003-10-191-1/+3
| | | | | Clear FPU pcb flags for new upcall thread, these flags needn't be inherited, the new thread should start from clean FPU status.
* Don't confuse tags and handles.imp2003-10-191-2/+2
|
* - Synchronize access to a vm page's valid field using the containingalc2003-10-191-43/+45
| | | | | vm object's lock. - Reduce the scope of the vm page queues lock in two places.
* Add the cpu_idle_hook() function pointer so that other idlers can benjl2003-10-184-20/+46
| | | | | hooked at runtime. Make C1 sleep (e.g., HLT) be the default. This prepares the way for further ACPI sleep states.
* - Synchronize access to the page's valid field inalc2003-10-181-1/+2
| | | | vnode_pager_generic_getpages() using the containing object's lock.
* - Increase the object lock's scope in vm_contig_launder() so that accessalc2003-10-184-17/+18
| | | | | | | | | to the object's type field and the call to vm_pageout_flush() are synchronized. - The above change allows for the eliminaton of the last parameter to vm_pageout_flush(). - Synchronize access to the page's valid field in vm_pageout_flush() using the containing object's lock.
* Fix a typo. The module has the EISA front-end commented out, therefore thebms2003-10-181-1/+1
| | | | | | | error may not have been picked up right away. Reviewed by: mdodd Submitted by: Stuart Walsh
* Initialize b_iooffset before calling VOP_[SPEC]STRATEGYphk2003-10-181-0/+3
|
* Initialize b_iooffset before calling strategyphk2003-10-182-0/+2
|
* Corrections to revision 1.305alc2003-10-181-22/+36
| | | | | | | | - Specifying VM_MAP_WIRE_HOLESOK should not assume that the start address is the beginning of the map. Instead, move to the first entry after the start address. - The implementation of VM_MAP_WIRE_HOLESOK was incomplete. This caused the failure of mlockall(2) in some circumstances.
* Retire b_pblkno which was an alias for a bio field which is forphk2003-10-181-1/+0
| | | | device drivers only.
* Don't report b_pblkno, it is going away.phk2003-10-181-2/+2
|
* Do not initialize bp->b_pblkno, it is going away.phk2003-10-181-1/+0
|
* Retire bio_blkno entirely.phk2003-10-183-3/+1
| | | | | | bio_offset is the field drivers should use. bio_pblkno remains as a convenient place to store the number of the device drivers.
* Eliminate use bio_blkno.phk2003-10-184-72/+38
|
* rtfree() must be called in lock context.ume2003-10-181-0/+1
| | | | Reported by: jhay
* Discontinue bio_blkno usage.phk2003-10-182-6/+1
|
OpenPOWER on IntegriCloud