summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Bump the maximum coretemp limit (for CPU temperature) to 110. Severalattilio2011-08-191-2/+2
| | | | | | | | | | | | | | | | | | cores with temp in the range 101-105 have been found in the past. Sponsored by: Sandvine Incorporated Reviewed by: delphij, emaste Approved by: re (kib) MFC after: 3 days
* | The decimal() function was changed in r217808 to take theae2011-08-191-1/+1
| | | | | | | | | | | | | | | | | | | | maximum value instead of number of bits. But for case when limitation is not needed it erroneously skips conversion to number and always returns zero. So, don't skip conversion for case when limitation is not needed. PR: bin/159765 Approved by: re (kib)
* | Add new section "BOOTSTRAPPING" to the gpart(8), that describesae2011-08-191-12/+90
| | | | | | | | | | | | | | | | | | bootstrap code images used to boot from MBR, GPT, BSD and VTOC8 schemes. Reviewed by: marius (previous version) Approved by: re (kib) MFC after: 1 week
* | Add sysctl to not reset the device on clear stall failures, tohselasky2011-08-191-1/+13
| | | | | | | | | | | | | | temporarily mitigate problems with VMs. Approved by: re (kib) MFC after: 1 week
* | r222015 introduced a new assertion that the size of a fixed-length sbufrwatson2011-08-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | buffer is greater than 1. This triggered panics in at least one spot in the kernel (the MAC Framework) which passes non-negative, rather than >1 buffer sizes based on the size of a user buffer passed into a system call. While 0-size buffers aren't particularly useful, they also aren't strictly incorrect, so loosen the assertion. Discussed with: phk (fears I might be EDOOFUS but willing to go along) Spotted by: pho + stress2 Approved by: re (kib)
* | Test process descriptors.jonathan2011-08-185-0/+221
| | | | | | | | | | | | | | | | | | | | Ensure that process descriptors work as expected. We should be able to: - pdfork(), like regular fork(), but producing a process descriptor - pdgetpid() to convert a PD into a PID - pdkill() to send signals to a process identified by a PD Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
* | Auto-generated system call code based on r224987.jonathan2011-08-186-13/+100
| | | | | | | | Approved by: re (implicit)
* | Add experimental support for process descriptorsjonathan2011-08-1823-53/+1074
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A "process descriptor" file descriptor is used to manage processes without using the PID namespace. This is required for Capsicum's Capability Mode, where the PID namespace is unavailable. New system calls pdfork(2) and pdkill(2) offer the functional equivalents of fork(2) and kill(2). pdgetpid(2) allows querying the PID of the remote process for debugging purposes. The currently-unimplemented pdwait(2) will, in the future, allow querying rusage/exit status. In the interim, poll(2) may be used to check (and wait for) process termination. When a process is referenced by a process descriptor, it does not issue SIGCHLD to the parent, making it suitable for use in libraries---a common scenario when using library compartmentalisation from within large applications (such as web browsers). Some observers may note a similarity to Mach task ports; process descriptors provide a subset of this behaviour, but in a UNIX style. This feature is enabled by "options PROCDESC", but as with several other Capsicum kernel features, is not enabled by default in GENERIC 9.0. Reviewed by: jhb, kib Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
* | One of the general principles of the sysctl(3) API is that a user canjhb2011-08-181-1/+1
| | | | | | | | | | | | | | | | | | | | query the needed size for a sysctl result by passing in a NULL old pointer and a valid oldsize. The kern.proc.args sysctl handler broke this assumption by not calling SYSCTL_OUT() if the old pointer was NULL. Approved by: re (kib) MFC after: 3 days
* | Allow release generation from a WORLDDIR that is not /usr/srcsbruno2011-08-181-1/+1
| | | | | | | | | | | | | | PR: misc/159666 Submitted by: Test Rat <ttsestt@gmail.com> Reviewed by: Nathan Whitehorn <nwhitehorn@freebsd.org> Approved by: re (kib)
* | Set the max_lun field in the path inquiry CCB for the mps(4) driver to 8.ken2011-08-181-1/+1
| | | | | | | | | | | | | | This allows LUNs greater than 0 to be probed. The value can be increased later if need be. Approved by: re (kib)
* | Fix a bug that prevented docsinstall from being able to use DNS in mostnwhitehorn2011-08-181-1/+11
| | | | | | | | | | | | | | cases and provide a better error handling mechanism during package installation. Approved by: re (kib)
* | Fix headphones pin configuration on Lenovo B450 laptop.mav2011-08-181-0/+8
| | | | | | | | | | Submitted by: "Sergey V. Dyatko" <sergey.dyatko@gmail.com> Approved by: re (kib)
* | Update ata(4) manual page, reflecting migration to CAM-based ATA stackmav2011-08-172-164/+126
| | | | | | | | | | | | (`options ATA_CAM` enabled by default). Approved by: re (kib)
* | Fix a regression where a rule containing a source port option after ajhb2011-08-171-0/+2
| | | | | | | | | | | | | | | | | | destination IP would incorrectly display the source port as a destination port. Reviewed by: luigi Approved by: re (kib) MFC after: 1 week
* | - Fix exclusion of directories from a recursive searchgabor2011-08-171-14/+5
| | | | | | | | | | | | | | - Use FTS_SKIP for exclusion instead of custom code Submitted by: ttsestt@gmail.com Approved by: re (kib), delphij (mentor)
* | - Fix handling of environmental variables when they are set to empty stringgabor2011-08-171-3/+4
| | | | | | | | | | Submitted by: ttsestt@gmail.com Approved by: re (kib), delphij (mentor)
* | Fix build failure without BPF.pluknet2011-08-171-1/+1
| | | | | | | | | | Reported by: deeptech71 at gmail dot com Approved by: re (kib)
* | Fix build breakage. Initialize error variables explicitely for !MAC case.kib2011-08-172-0/+2
| | | | | | | | | | Pointy hat to: kib Approved by: re (bz)
* | Always check current HPET counter value after comparator programming tomav2011-08-162-8/+8
| | | | | | | | | | | | | | | | | | | | | | avoid lost timer interrupts. Previous optimization attempt doing it only for intervals less then 5000 ticks (~300us) reported to be unreliable by some people. Probably because of some heavy SMI code on their boards. Introduce additional safety interval of 128 counter ticks (~9us) between programmed comparator and counter values to cover different cases of delayed write found on some chipsets. Approved by: re (kib)
* | Fix the handling of [gs]etsockopt() unconnected 1-to-1 style sockets.tuexen2011-08-161-37/+114
| | | | | | | | | | | | | | | | | | | | While there: * Fix a locking issue in setsockopt() of SCTP_CMT_ON_OFF. * Fix a bug in setsockopt() of SCTP_DEFAULT_PRINFO, where the pr_value was ignored. Approved by: re@ MFC after: 2 months.
* | Update LibUSB v1.0 manual page:hselasky2011-08-162-22/+34
| | | | | | | | | | | | | | | | | | - fix some minor spelling - fix some style - add description of new function MFC after: 1 week Approved by: re (kib)
* | Do not return success and a string "unknown" when vn_fullpath() was unablekib2011-08-161-6/+9
| | | | | | | | | | | | | | | | | | to resolve the path of the text vnode of the process. The behaviour is very confusing for any consumer of the procfs, in particular, java. Reported and tested by: bf MFC after: 2 weeks Approved by: re (bz)
* | Add the fo_chown and fo_chmod methods to struct fileops and use themkib2011-08-1624-50/+533
| | | | | | | | | | | | | | | | | | | | to implement fchown(2) and fchmod(2) support for several file types that previously lacked it. Add MAC entries for chown/chmod done on posix shared memory and (old) in-kernel posix semaphores. Based on the submission by: glebius Reviewed by: rwatson Approved by: re (bz)
* | Fix a merge conflict.jonathan2011-08-161-1/+0
| | | | | | | | | | | | | | | | | | r224086 added "goto out"-style error handling to nfssvc_nfsd(), in order to reliably call NFSEXITCODE() before returning. Our Capsicum changes, based on the old "return (error)" model, did not merge nicely. Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
* | poll(2) implementation for capabilities.jonathan2011-08-162-2/+27
| | | | | | | | | | | | | | | | When calling poll(2) on a capability, unwrap first and then poll the underlying object. Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
* | Fix BAR frame TX completion - successful transmission is indicatedadrian2011-08-161-2/+2
| | | | | | | | | | | | by a status of 0. Approved by: re (kib)
* | Update arcmsr(4) to 1.20.00.22 to solve recursive acquisition of bufferdelphij2011-08-161-5/+14
| | | | | | | | | | | | | | | | | | | | | | mutex, which would lead to a deadlock. Many thanks to Areca for their continued support of FreeBSD. Submitted by: Ching Huang <ching2048 areca com tw> Tested by: Willem Jan Withagen <wjw digiware nl> MFC after: 3 days Approved by: re (kib)
* | Add missing function to get device speed to the LibUSB v1.0 API.hselasky2011-08-162-0/+30
| | | | | | | | | | MFC after: 1 week Approved by: re (kib)
* | Add device id for the Moxa CP-112UL dual-port serial adapters.jhb2011-08-151-0/+6
| | | | | | | | | | | | Submitted by: Jan Mikkelsen janm of transactionware com Approved by: re (kib) MFC after: 1 week
* | Fix a couple of issues in last commit.glebius2011-08-151-1/+2
| | | | | | | | | | Submitted by: maxim Approved by: re (kib)
* | Use a maximum of -O on PowerPC kernels instead of -O2 to prevent a rarenwhitehorn2011-08-151-0/+4
| | | | | | | | | | | | | | | | bug that could cause intermittent memory corruption on PowerPC SMP systems using non-debug kernels. This is a temporary change until the real problem is fixed. Approved by: re (kib)
* | Describe how carp(4) status changes can be processed withglebius2011-08-151-1/+39
| | | | | | | | | | | | | | help of devd(8). Submitted by: "Alexander V. Chernikov" <melifaro ipfw.ru> Approved by: re (kib)
* | Fix two cases involving opt_capsicum.h and module builds:rwatson2011-08-152-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (1) opt_capsicum.h is no longer required in ffs_alloc.c, so remove the #include. (2) portalfs depends on opt_capsicum.h, so have the Makefile generate one if required. These affect only modules built without a kernel (i.e, not buildkernel, but yes buildworld if the dubious MODULES_WITH_WORLD is used). Approved by: re (bz) Sponsored by: Google Inc
* | Bump __FreeBSD_version to reflect the availability of capabilities, butrwatson2011-08-151-0/+10
| | | | | | | | | | | | | | | | | | | | also capability-related changes to fget(9). This is likely not part of a formal KPI, but the nvidia driver (at least) uses it. Mention /dev/{stdin,stdout,stderr} breakage that appears in certain kernel revisions as best avoided! Approved by: re (xxx)
* | Add support for the spp_dscp field in the SCTP_PEER_ADDR_PARAMStuexen2011-08-146-40/+28
| | | | | | | | | | | | | | | | socket option. Backwards compatibility is provided by still supporting the spp_ipv4_tos field. Approved by: re@ MFC after: 2 months.
* | Fix integer overflow on 32bit systems when calculating media size,mav2011-08-141-1/+1
| | | | | | | | | | | | reintroduced by r222475. Approved by: re (kib)
* | Provide a kboot.conf to allow powerpc64 install media to be booted onnwhitehorn2011-08-141-0/+3
| | | | | | | | | | | | Playstation 3 consoles running kboot or petitboot. Approved by: re (bz)
* | tail: Fix crash if -F'ed file's filesystem disappears.jilles2011-08-141-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | If tail notices that a file it is following no longer exists (because stat() fails), it will output any final lines and then close the file. If the read operation also causes an error, such as when the filesystem is forcefully unmounted, it closes the file as well, leading to fclose(NULL) and a segmentation fault. PR: bin/159750 Submitted by: swills Approved by: re (kib) MFC after: 1 week
* | Cross-reference cap_new(2) from dup(2), as they have similar functionality.rwatson2011-08-141-1/+7
| | | | | | | | Approved by: re (kib)
* | Updates to libprocstat(3) and procstat(1) to allow monitoring Capsicumrwatson2011-08-147-81/+289
| | | | | | | | | | | | | | | | | | | | capability mode and capabilities. Right now no attempt is made to unwrap capabilities when operating on a crashdump, so further refinement is required. Approved by: re (bz) Sponsored by: Google Inc
* | Add support for the Blu-Ray drive found in the Sony Playstation 3 and fixnwhitehorn2011-08-1410-36/+913
| | | | | | | | | | | | | | some realted minor bugs in PS3 internal storage support. Submitted by: glevand <geoffrey.levand@mail.ru> Approved by: re (bz)
* | Most of these changes to isp are to allow for isp.ko unloading.mjacob2011-08-135-59/+186
| | | | | | | | | | | | | | | | | | | | | | We also revive loop down freezes. We also externaliz within isp isp_prt_endcmd so something outside the core module can print something about a command completing. Also some work in progress to assist in handling timed out commands better. Partially Sponsored by: Panasas Approved by: re (kib) MFC after: 1 month
* | zfs_ioctl.c: improve code readability in zfs_ioc_dataset_list_next()mm2011-08-132-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zvol.c: fix calling of dmu_objset_prefetch() in zvol_create_minors() by passing full instead of relative dataset name and prefetching all visible datasets to be processed later instead of just the pool name Reviewed by: pjd Approved by: re (kib) MFC after: 1 week > Reviewed by: If someone else reviewed your modification. > Approved by: If you needed approval for this commit. > Obtained from: If the change is from a third party. > MFC after: N [day[s]|week[s]|month[s]]. Request a reminder email. > Security: Vulnerability reference (one per line) or description. > Empty fields above will be automatically removed. M opensolaris/uts/common/fs/zfs/zfs_ioctl.c M opensolaris/uts/common/fs/zfs/zvol.c
* | Trim some warnings and notes from capabilities.conf -- these are left overrwatson2011-08-131-6/+1
| | | | | | | | | | | | | | from Capsicum development, and no longer apply. Approved by: re (kib) Sponsored by: Google Inc
* | Fix a typo in cb_dumpdata() about wrongly calling wdog_kern_pat().attilio2011-08-131-1/+1
| | | | | | | | | | Submitted by: Andrew Boyer <aboyer at averesystems dot com> Approved by: re (kib)
* | When falloc() was broken into separate falloc_noinstall() and finstall(),rwatson2011-08-131-2/+3
| | | | | | | | | | | | | | | | | | | | | | a bug was introduced in kern_openat() such that the error from the vnode open operation was overwritten before it was passed as an argument to dupfdopen(). This broke operations on /dev/{stdin,stdout,stderr}. Fix by preserving the original error number across finstall() so that it is still available. Approved by: re (kib) Reported by: cognet
* | Fix jls backward compat mode broken in r222465, correctlybz2011-08-131-1/+1
| | | | | | | | | | | | | | | | displaying addresses in verbose mode (jls -v) again. Submitted by: jamie MFC after: 3 days Approved by: re (kib)
* | Update use of the FEATURE() macro in sys_capability.c to reflect the moverwatson2011-08-131-1/+3
| | | | | | | | | | | | to two different kernel options for capability mode vs. capabilities. Approved by: re (bz)
* | Now that capability support has been committed, update and expand therwatson2011-08-131-3/+17
| | | | | | | | | | | | comment at the type of sys_capability.c to describe its new contents. Approved by: re (xxx)
OpenPOWER on IntegriCloud