summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Change arc4random to arc4random_uniform since modulo is not power of 2,ache2008-07-261-1/+1
| | | | | | as OpenBSD does. Obtained from: OpenBSD
* Change 2 arc4random modulo operations to arc4random_uniform() asache2008-07-261-2/+2
| | | | | | OpenBSD does, since modulo is not power of 2. Obtained from: OpenBSD
* Note that snapshots may cause a panic on the full UFS filesystem.kib2008-07-261-0/+3
| | | | | Submitted by: pho MFC after: 3 days
* Fill in a few sysctl descriptions.trhodes2008-07-262-31/+39
| | | | Approved by: rwatson
* Fill in sysctl descriptions.trhodes2008-07-261-10/+18
| | | | Approved by: philip
* Fill in BPF sysctl descriptions.trhodes2008-07-251-2/+2
| | | | Reviewed by: csjp
* Begin the sysctl descriptions with a capital letter.trhodes2008-07-252-6/+6
| | | | Make some slight wording tweaks.
* Add support for a new login capability, cpumask which allows loginbrooks2008-07-254-1/+132
| | | | sessions to be pinned to cpus by login class.
* - Connect ds1339 to the build infrastructure.stas2008-07-251-0/+1
| | | | | Reviewed by: raj Approved by: imp
* - Add driver for Dallas Semiconductor DS1339 RTC sittingstas2008-07-251-0/+232
| | | | | | | | on I2C bus. Reviewed by: raj Approved by: imp MFC after: 2 week
* Per rwatson's request:ache2008-07-251-7/+4
| | | | | | | "If you don't get a review within a day or two, I would firmly recommend backing out the changes" back out all my changes as unreviewed by secteam@ yet.
* Per rwatson's request:ache2008-07-251-29/+17
| | | | | | | | | | | | "If you don't get a review within a day or two, I would firmly recommend backing out the changes" back out all my changes, i.e. not comes from merging from OpenBSD as unreviewed by secteam@ yet. (OpenBSD changes stays in assumption they are reviewd by OpenBSD) Yes, it means some old bugs returned, like not setted rs_stired = 1 in arc4random_stir(3) causing double stirring.
* Move ttyinfo() into its own C file.ed2008-07-253-269/+318
| | | | | | | | | | | | The ttyinfo() routine generates the fancy output when pressing ^T. Right now it is stored in tty.c. In the MPSAFE TTY code it is already stored in tty_info.c. To make integration of the MPSAFE TTY code a little easier, take the same approach. This makes the TTY code a little bit more readable, because having the proc_*/thread_* routines in tty.c is very distractful. Approved by: philip (mentor)
* Remove <sgtty.h> now it has no practical usage.ed2008-07-253-4/+3
| | | | | | | | | | When I turned sgtty into a binary-only interface (last month), I added this explicit #error to the header file, to make sure nobody forgot to remove the header file after updating world. I think it is now a good moment to remove this header file. Approved by: philip (mentor)
* Call pargs_drop() unconditionally in do_execve(), the function correctlykib2008-07-253-6/+4
| | | | | | | handles the NULL argument. Make pargs_free() static. MFC after: 1 week
* s/alredy/already/ in the comments and the log message.kib2008-07-251-5/+5
|
* o Trim whitespaces.maxim2008-07-251-9/+9
|
* o Fix grammar: see -> See.maxim2008-07-251-1/+1
|
* - Provide kernelname as the name for process with P_KTHREAD set asjeff2008-07-251-1/+5
| | | | | | | otherwise their textvp is NULL. Reviewed by: jkoshy Sponsored by: Nokia
* Fix cut-n-paste-ojulian2008-07-251-1/+1
| | | | Submitted by: Kostik Belousov
* Add tweak for AMD Geode "companion" chip, AMD CS5536, which is apparentlyivoras2008-07-241-1/+10
| | | | | | | | | USB 2.0 capable but is shy and doesn't adwertise it much. PR: 120017 Reviewed by: imp Approved by: gnn (mentor) MFC after: 2 weeks
* Fix spelling error in commentjulian2008-07-241-1/+1
|
* Note that setfib is not a terminal rule.julian2008-07-241-1/+2
|
* Switch to using the setfib syscall instead of a syscall(175,...)julian2008-07-241-1/+1
|
* Prefer the opt_global.h from KERNBUILDDIR if existent so we obtain allmarius2008-07-241-0/+5
| | | | macros that might be relevant.
* Try again not to use a userspace pointer in the kernel when trying to recorddfr2008-07-241-1/+1
| | | | | | | the hostname which we need for NLM requests. The previous patch was incomplete. PR: 125849 Pointy hat: dfr
* Don't use a userspace pointer in the kernel when trying to record the hostnamedfr2008-07-241-8/+12
| | | | | | which we need for NLM requests. PR: 125849
* 2020447 IPFilter's NAT can undo name server random port selectiondarrenr2008-07-2416-21/+91
| | | | | | Approved by: darrenr MFC after: 1 week Security: CERT VU#521769
* Don't include <sys/tty.h> in non-TTY drivers.ed2008-07-244-4/+6
| | | | | | | | | | The kbd, kbdmux, ugen and uhid drivers included <sys/tty.h>, because they needed clists, which have been moved to <sys/clist.h> some time ago. In the MPSAFE TTY branch, <sys/tty.h> does not include <sys/clist.h>, which means we have to teach these drivers to include this header file directly. Approved by: philip (mentor, implicit)
* Add TIOCPKT and TIOCSPTLCK to the Linuxolator.ed2008-07-232-1/+9
| | | | | | | | | | | | We're very lucky, because the flags used by our TIOCPKT implementation are the same as flags used by Linux. We can safely enable TIOCPKT, assuming EXTPROC is not used. TIOCSPTLCK is used by unlockpt(). Because we don't need unlockpt() in our implementation, make this ioctl a no-op. Approved by: philip (mentor, implicit), rdivacky Obtained from: P4 (//depot/projects/mpsafetty/...)
* Merge from p4:imp2008-07-231-0/+205
| | | | | | | Implement openssl config needed for mips. Submitted by: gonzo@ Reviewed by: simon@
* Fix linux_alarm, the linux behaviour is to limit therdivacky2008-07-231-3/+6
| | | | | | | | secs to INT_MAX when the passed in parameter is bigger than INT_MAX. Submitted by: Dmitry Chagin <chagin.dmitry gmail com> Approved by: kib (mentor)
* Remove a bunch of files we don't need to build OpenSSH. They are stilldes2008-07-2380-11367/+0
| | | | available in base/vendor-crypto/openssh/dist/.
* Remove debugging cruft.des2008-07-231-1/+0
|
* pjd@'s r180759 was intended to revert r180755 due to ipfilter breakage,des2008-07-231-1/+14
| | | | | | | | | but removed too much, breaking the build in other places instead. Now that the ipfilter issue has been fixed (or hacked around), address the second issue by restoring r180755, with one small change. I don't feel comfortable using assert(3) in a header that will be included in userland code that may or may not already have an assertion mechanism in place, so KASSERT() evaluates to a no-op in the !_KERNEL case.
* For unfathomable reasons, ipfilter abuses kernel data structures for itsdes2008-07-231-4/+12
| | | | | | | | | | | own purposes. To pull this off, it defines _KERNEL before including the headers where these structures are defined. This leads to no end of trouble when some of these headers, or other headers that they include, change, as demonstrated by r180755. The quick fix in this particular case is to define _WANT_FILE instead of _KERNEL, conditional on __FreeBSD__. A better long-term fix is left as an exercise to the reader.
* Further refine the probe order of devices to more closely match the previousjhb2008-07-231-9/+4
| | | | | | | | behavior. Specifically, probe Host-PCI bridges in the order they are encountered in the tree. For CPUs, just use an order of 100000 and assume that no Host-PCI bridges will be more than 10000 levels deep in the namespace. This fixes an issue on some boxes where the HPET timer stopped attaching.
* Back out this change, as it breaks the build and I don't have time forpjd2008-07-231-13/+1
| | | | a better fix today.
* The ffs_balloc_ufs{1,2} functions call bdwrite() while having severalkib2008-07-231-2/+22
| | | | | | | | | | | | | | | vnode buffers locked at once. In particular, there are indirect buffers among locked ones. The bdwrite() may start the flushing to keep dirty buffer list at the bounds. If any buffer on the dirty list requires translation from logical to physical block number, code may ends up trying to lock an indirect buffer already locked in ffs_balloc_ufsX. Prevent the bdflush() activity when several buffers are locked at once by setting the TDP_INBDFUSH for the problematic code blocks. Reported and tested by: pho, Josef Buchsteiner at Juniper In collaboration with: kan MFC after: 1 month
* o DragonFly BSD 2.0 added.maxim2008-07-231-1/+2
|
* Unbreak cc -pg support on i386. In gcc 4.2, %ecx is used as the arg pointerluoqi2008-07-231-1/+10
| | | | | | | | | | | when stack realignment is turned on (it is ALWAYS on for main), however in a profiling build %ecx would be clobbered by mcount(), this would lead to a segmentation fault when the code tries to reference any argument. This fix changes mcount() to preserve %ecx. PR: bin/119709 Reviewed by: bde MFC after: 1 week
* Check for negative reference count.pjd2008-07-231-1/+10
| | | | Reviewed by: des
* when NDIS framework try to query/set informations NDIS drivers canweongyo2008-07-231-5/+7
| | | | | | | | | | return NDIS_STATUS_PENDING. In this case, it's waiting for 5 secs to get the response from drivers now. However, some NDIS drivers can send the response before NDIS framework gets ready to receive it so we might always be blocked for 5 secs in current implementation. NDIS framework should reset the event before calling NDIS driver's callback not after. MFC after: 1 month
* SATA device on some nForce based boards could get confused if MSI is notluoqi2008-07-233-5/+59
| | | | | | | | | | | | | | | used but MSI to HyperTransport IRQ mapping is enabled, and would act as if MSI is turned on, resulting in interrupt loss. This commit will, 1. enable MSI mapping on a device only when MSI is enabled for that device and the MSI address matches the HT mapping window. 2. enable MSI mapping on a bridge only when a downstream device is allocated an MSI address in the mapping window PR: kern/118842 Reviewed by: jhb MFC after: 1 week
* Re-work the code slightly to avoid a possible livelock.dfr2008-07-231-23/+27
| | | | MFC after: 2 weeks
* Do the pargs_hold() on the copy of the pointer to the p_args of thekib2008-07-231-1/+1
| | | | | | | | | | | | | | | child process immediately after bulk bcopy() without dropping the process lock. Since process is not single-threaded when forking, dropping and reacquiring the lock allows an other thread to change the process title of the parent in between, and results in hold being done on the invalid pointer. The problem manifested itself as the double free of the old p_args. Reported by: kris Reviewed by: jhb MFC after: 1 week
* Minor white space tweak.rwatson2008-07-231-1/+1
| | | | | Obtained from: Apple Inc. MFC after: 3 days
* First cut at doing the kvm file needed for mips.imp2008-07-231-0/+90
| | | | Obtained from: gonzo@
* Only descend into the boot directory for the architecture if itimp2008-07-231-1/+4
| | | | actually exists and is a directory or symlink to a directory.
* Disable SSP for mips until support is added to the base architecture.imp2008-07-231-1/+1
|
OpenPOWER on IntegriCloud