summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo.davidxu2012-02-221-1/+1
|
* Handle NULL return from crypt(3). Mostly from DragonFlykevlo2012-02-228-12/+33
|
* Remove reference to gsched_as module, which doesn'teadler2012-02-221-1/+1
| | | | | | | | | actually exist. PR: docs/163043 Submitted by: olgeni Approved by: brd MFC after: 3 days
* Don't use `m' after m_megapullup.ae2012-02-221-1/+1
| | | | | PR: kern/165373 MFC after: 3 days
* Update to tcsh 6.18.01.mp2012-02-22331-11356/+11208
|\
| * Import of tcsh-6.18.01mp2012-02-20502-10355/+38796
| |
* | Use unused fourth argument of umtx_op to pass flags to kernel for operationdavidxu2012-02-223-34/+47
| | | | | | | | | | | | UMTX_OP_WAIT. Upper 16bits is enough to hold a clock id, and lower 16bits is used to pass flags. The change saves a clock_gettime() syscall from libthr.
* | Refctor address assignment for Octeon's ethernet ports:gonzo2012-02-229-52/+71
| | | | | | | | | | | | | | | | - Centralize address assignment - Make sure managment ports get first MAC address in pool - Properly propagate fail if address allocation failed Submitted by: Andrew Duane <aduane@juniper.net>
* | Return NULL on error rather than ":", per the crypt(3) man page.kevlo2012-02-221-6/+5
| | | | | | | | Discussed in: http://www.openwall.com/lists/oss-security/2011/11/15/3
* | Fix memset sizeofkevlo2012-02-221-1/+1
| |
* | libc: Add some tests for fmtmsg().jilles2012-02-212-1/+252
| |
* | When building with clang, disable -Wformat-security fordim2012-02-212-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sys/dev/hpt27xx/osm_bsd.c, since it gets the following warnings: sys/dev/hpt27xx/osm_bsd.c:1180:25: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] S_IRUSR | S_IWUSR, driver_name); ^~~~~~~~~~~ @/dev/hpt27xx/hpt27xx_config.h:46:21: note: expanded from: #define driver_name hpt27xx_driver_name ^~~~~~~~~~~~~~~~~~~ Since 'hpt27xx_driver_name' is a constant string symbol (coming from the proprietary hpt27xx_lib.o file), there is no security problem. Because this driver is provided by the vendor, and applying changes requires re-certification and other bureaucratic exercises, just disable the warning for now. MFC after: 1 week
* | When building with clang, disable -Wunneeded-internal-declaration fordim2012-02-212-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | several sys/cam/ctl files, since these get the following warnings: In file included from sys/cam/ctl/ctl_backend.c:60: sys/cam/ctl/ctl_private.h:300:30: error: variable 'page_index_template' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration] static struct ctl_page_index page_index_template[] = { ^ These warnings are tricky to fix without a lot of overhaul, and they are harmless, so disable them for now. MFC after: 1 week
* | unp_connect() may use a shared lock on the vnode to fetch the socket.trociny2012-02-211-2/+2
| | | | | | | | | | | | Suggested by: jhb Reviewed by: jhb, kib, rwatson MFC after: 2 weeks
* | Make vnode_if.awk parse vnode operations with underscores, like VOP_FOO_BAR.trociny2012-02-211-1/+1
| | | | | | | | | | Reviewed by: kib MFC after: 1 week
* | Avoid error log for transfer stop w/o error code.emaste2012-02-211-1/+2
| | | | | | | | | | | | | | | | | | | | A number of tftp clients, including the one in Intel's pxe boot loader, may intentionally stop a transfer using error code 0 (i.e., EUNDEF). These are not real errors. Avoid spamming log files with these by logging them at level LOG_DEBUG instead. Discussed on -hackers with an initial patch proposal; this change is an improved approach suggested by kan@.
* | Fix found places where uio_resid is truncated to int.kib2012-02-2133-90/+132
| | | | | | | | | | | | | | | | | | Add the sysctl debug.iosize_max_clamp, enabled by default. Setting the sysctl to zero allows to perform the SSIZE_MAX-sized i/o requests from the usermode. Discussed with: bde, das (previous versions) MFC after: 1 month
* | Document the fact that getgrouplist(3) returns 0 on success.pjd2012-02-201-2/+2
| | | | | | | | MFC after: 3 days
* | Add oce(4) to the hardware notes.brueffer2012-02-202-0/+3
| | | | | | | | MFC after: 3 days
* | Remove redundant forward declaration of struct ieee80211com.ray2012-02-201-2/+0
| | | | | | | | Approved by: bschmidt
* | Set the O_CLOEXEC flag when opening the pidfile to avoid leaking theghelmer2012-02-201-1/+1
| | | | | | | | | | | | | | file descriptor via exec(3). Now that daemon(8) has been fixed to resolve the issue noted by trociny, the consensus is that this change should be OK.
* | More improvements, the biggest one using list environments for enumerations.brueffer2012-02-201-24/+40
| |
* | Remove an unnecessary cast.kevlo2012-02-201-1/+1
| |
* | Revert r231923 for now. Further work is needed to make sure that thedelphij2012-02-201-1/+1
| | | | | | | | behavior is consistent.
* | If nested scheme allows dump kernel to its partition, we may allowae2012-02-201-2/+5
| | | | | | | | | | | | dump for the parent partition too. MFC after: 2 weeks
* | Add alias for the partition type 0x0f. Now "ebr" name is used for bothae2012-02-201-0/+1
| | | | | | | | | | | | | | types 0x05 and 0x0f, but 0x05 is preferred and used when partition is created with "gpart add -t ebr ...". This should keep EBR partitions accessible after r231754 for those, who have EBR on the partition with type 0x0f.
* | Break out the radar code into a separate source file.adrian2012-02-205-360/+394
| | | | | | | | | | | | | | This mirrors the internal HAL organisation and reduces the differences between the HAL codebases slightly. Obtained from: Atheros
* | Return BUS_PROBE_DEFAULT instead of 0 because this is an in-tree driver.delphij2012-02-201-1/+1
| | | | | | | | MFC after: 1 month
* | Use uprintf instead of printf for the reason why a kernel module can notdelphij2012-02-201-1/+1
| | | | | | | | | | | | | | be loaded. This way, the administrator can get response immediately from the shell session rather than relying on dmesg. MFC after: 1 month
* | - Trim empty lines resulting in bad rendering, EOL whitespacespluknet2012-02-191-11/+14
| | | | | | | | | | | | | | | | | | | | - Convert to our standard SYNOPSIS language - Consistently use "The .Nm driver" - Rewrite .nf .fi block with mdoc - Add pci dependency to SYNOPSIS - Start .Bl list with new paragraph Approved by: luigi
* | Probe the National DP83849, which is a dual-port version of the PHYTER.marius2012-02-192-3/+6
| | | | | | | | Obtained from: NetBSD
* | - Probe BCM57780.marius2012-02-192-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | - In case the parent is bge(4), don't set the Jumbo frame settings unless the MAC actually is Jumbo capable as otherwise the PHY might not have the corresponding registers implemented. This is also in line with what the Linux tg3 driver does. PR: 165032 Submitted by: Alexander Milanov Obtained from: OpenBSD MFC after: 3 days
* | If permitted protect the supervisor against pageout kill.trociny2012-02-191-0/+7
| | | | | | | | | | Suggested by: Andrey Zonov <andrey zonov org> MFC after: 2 weeks
* | Add -r option to restart the program if it has been terminated.trociny2012-02-192-22/+45
| | | | | | | | | | Suggested by: Andrey Zonov <andrey zonov org> MFC after: 2 weeks
* | If the supervising process receives SIGTERM, forward it to the spawnedtrociny2012-02-192-11/+72
| | | | | | | | | | | | | | | | | | | | | | | | process. Normally it will cause the child to exit followed by the termination of the supervisor after removing the pidfile. This looks like desirable behavior, because termination of a supervisor usually supposes termination of its charge. Also it will fix the issue with stale pid files after reboot due to init kills a supervisor before its child exits. MFC after: 2 weeks
* | The pidfile_open(3) is going to be fixed to set close-on-exec in ordertrociny2012-02-192-26/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not to leak the descriptor after exec(3). This raises the issue for daemon(3) of the pidfile lock to be lost when the child process executes. To solve this and also to have the pidfile cleaned up when the program exits, if a pidfile is specified, spawn a child to exec the command and wait in the parent keeping the pidfile locked until the child process exits and remove the file. Reported by: Andrey Zonov <andrey zonov org> Suggested by: pjd Reviewed by: pjd MFC after: 2 weeks
* | Enable the new PCI-PCI bridge driver by default.andreast2012-02-191-0/+2
| | | | | | | | Tested on 32- and 64-bit PowerMac.
* | Check both seconds and nanoseconds are zero, only checking nanosecondsdavidxu2012-02-191-1/+1
| | | | | | | | is zero may trigger timeout too early. It seems a copy&paste bug.
* | Close a race due to dropping of the map lock between creating a map entryalc2012-02-191-3/+1
| | | | | | | | | | | | | | for a shared mapping and marking the entry for inheritance. Reviewed by: kib X-MFC after: r231526
* | Document PL_FLAG_CHILD.kib2012-02-181-1/+6
| | | | | | | | MFC after: 3 days
* | Remove two clang warnings.tuexen2012-02-182-2/+2
| | | | | | | | MFC after: 1 month.
* | Try to ensure that ieee80211_newstate() and the vap_newstate methodsadrian2012-02-181-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | hold the lock. This is part of my series of work to try and capture when net80211 locking isn't. ObNote: it'd be nice to be able to mark a lock as "assert if the lock is dropped", so I could capture functions which decide that dropping and reacquiring the lock is a good idea (without re-checking the sanity of the state protected by the lock.)
* | Use ANSI prototypes.delphij2012-02-181-42/+13
| |
* | Put the signal trap output to standard error instead of standard output.delphij2012-02-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | Without this change, pressing ^T could result in rc.d script putting junk strings like: Script <filename> running in configuration files when redirecting standard output to these files. MFC after: 2 weeks
* | Fix misuse of the kernel map in miscellaneous image activators.kib2012-02-175-88/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Vnode-backed mappings cannot be put into the kernel map, since it is a system map. Use exec_map for transient mappings, and remove the mappings with kmem_free_wakeup() to notify the waiters on available map space. Do not map the whole executable into KVA at all to copy it out into usermode. Directly use vn_rdwr() for the case of not page aligned binary. There is one place left where the potentially unbounded amount of data is mapped into exec_map, namely, in the COFF image activator enumeration of the needed shared libraries. Reviewed by: alc MFC after: 2 weeks
* | Fix regression in the handling of blkback close events forgibbs2012-02-171-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | devices that are unplugged via QEMU. sys/dev/xen/blkback/blkback.c: Toolstack initiated closures change the frontend's state to Closing. The backend must change to Closing as well, even if we can't actually close yet, in order for the frontend to notice and start the closing process. MFC after: 3 days
* | Various cleanups for readability (no functional changes)luigi2012-02-176-180/+65
| | | | | | | | | | | | | | | | | | - remove the KEVENT code, which was incomplete and not compiled anyways; - change some while() loops into for() - adjust indentation - remove extra whitespace MFC after: 1 week
* | add manpage for the "oce" driverluigi2012-02-172-0/+118
| | | | | | | | | | Submitted by: Naresh Raju Gottumukkala (Emulex) MFC after: 3 days
* | Patches from Naresh Raju Gottumukkalaluigi2012-02-178-147/+260
| | | | | | | | | | | | | | | | | | | | - Feature: UMC - Universal Multi Channel support - Bugfix: BE3 Firmware Flashing bug. - Code improvements: - Removed duplicate switch cases in the oce_ioctl routine. - Made changes to mcc_async notifications routine(oce_mq_handler) MFC after: 1 week
* | Fix cross-references.kib2012-02-171-2/+2
| | | | | | | | | | Submitted by: pluknet MFC after: 2 weeks
OpenPOWER on IntegriCloud