summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup ALIGNED_POINTER:sam2009-07-058-28/+52
| | | | | | | | | | | o add to platforms where it was missing (arm, i386, powerpc, sparc64, sun4v) o define as "1" on amd64 and i386 where there is no restriction o make the type returned consistent with ALIGN o remove _ALIGNED_POINTER o make associated comments consistent Reviewed by: bde, imp, marcel Approved by: re (kensmith)
* Add a missing phrase.brian2009-07-051-1/+1
| | | | | | | Submitted by: Jason McIntyre jmc at kerhand dot co dot uk Approved by: re (kib) Obtained from: OpenBSD MFC after: 3 weeks
* When the kernel is configured without "options FFS", build UFS as a moduletrasz2009-07-051-5/+1
| | | | | | without requiring any special build flags. Approved by: re (kib)
* Mark atanvidia depending on ataahci since rev.188846.mav2009-07-052-1/+3
| | | | Approved by: re (kib)
* Add missing reference to GPT support.ivoras2009-07-051-0/+1
| | | | | Submitted by: Paul B. Mahol onemda at gmail.com Approved by: re (kib)
* Disable r194497 for now. It doesn't work well with ports-mgmt/tinderbox.brian2009-07-051-0/+2
| | | | Approved by: re (ken)
* Add a new options (-s) that, when specified, skips the question aboutattilio2009-07-042-24/+33
| | | | | | | | | | adjusting the clock to UTC. That avoids to write on /etc/wall_cmos_clock which is useful in some cases (example: host user in a jail). Sponsored by: Sandvine Incorporated Initially submitted by: Matt Koivisto <mkoivisto at sandvine dot com> Approved by: re (kib)
* When forking a vm space that has wired map entries, do not forget tokib2009-07-033-12/+16
| | | | | | | | | charge the objects created by vm_fault_copy_entry. The object charge was set, but reserve not incremented. Reported by: Greg Rivers <gcr+freebsd-current tharned org> Reviewed by: alc (previous version) Approved by: re (kensmith)
* acpi_hp.c:rpaulo2009-07-033-103/+139
| | | | | | | | | | | | | | | | | | | | | | | | - sysctl dev.acpi_hp.0.verbose to toggle debug output - A modification so this can deal with different array lengths when reading the CMI BIOS - now it works ok on HP Compaq nx7300 as well. - Change behaviour to query only max_instance-1 CMI BIOS instances, because all HPs seen so far are broken in that respect (or there is a fundamental misunderstanding on my side, possible as well). This way a disturbing ACPI Error Field exceeds Buffer message is avoided. - New bit to set on dev.acpi_hp.0.cmi_detail (0x8) to also query the highest guid instance of CMI bios acpi_hp.4: - Document dev.acpi_hp.0.verbose sysctl in man page - Document new bit for dev.acpi_hp.0.cmi_detail - Add a section to manpage about hardware that has been reported to work ok Submitted by: Michael Gmelin <freebsdusb at bindone.de> Approved by: re (kib) MFC after: 2 weeks
* This fixes bsdcpio's -R option to accept numerickientzle2009-07-032-20/+50
| | | | | | | | | | | | | | | user or group Ids as well as user or group names. In particular, this fixes freesbie2, which uses -R 0:0 to copy a bunch of files so that the result will be owned by root. Also fixes a related bug that mixed-up the uid and gid specified by -R when in passthrough mode. Thanks to Dominique Goncalves for reporting this regression. Approved by: re (kib)
* Fix fpathconf(3) on fifos, in effect making ls(1) properlytrasz2009-07-022-0/+59
| | | | | | | | | display '+' on them. Taken from kern/125613, with cosmetic changes. PR: kern/125613 Submitted by: Jaakko Heinonen <jh at saunalahti dot fi> Approved by: re (kib)
* Enable POSIX semaphores on all non-embedded architectures by default.ed2009-07-027-0/+7
| | | | | | | | | More applications (including Firefox) seem to depend on this nowadays, so not having this enabled by default is a bad idea. Proposed by: miwi Patch by: Florian Smeets <flo kasimir com> Approved by: re (kib)
* In vn_vget_ino() and their inline equivalents, mnt_ref() the mount pointkib2009-07-024-0/+8
| | | | | | | | | | | around the sequence that drop vnode lock and then busies the mount point. Not having vlocked node or direct reference to the mp allows for the forced unmount to proceed, making mp unmounted or reused. Tested by: pho Reviewed by: jeff Approved by: re (kensmith) MFC after: 2 weeks
* Create audit records for AUE_POSIX_OPENPT, currently w/o arguments.rwatson2009-07-021-0/+1
| | | | Approved by: re (audit argument blanket)
* Call prison_check from vfs_suser rather than re-implementing it.jamie2009-07-021-2/+1
| | | | Approved by: re (kib), bz (mentor)
* Slightly increase amount of bandwidth of resampling filter forariff2009-07-021-1/+1
| | | | | | | | | | | | | | | feeder_rate_quality=3. This have the benefit of reducing aliasing artifacts due to alias masking. Spectrogram analysis: o Old preset (100:36:0.90) http://people.freebsd.org/~ariff/z_comparison/z_q3_old.png o New preset (100:36:0.92): http://people.freebsd.org/~ariff/z_comparison/z_q3_new.png Approved by: re (kib)
* Fix comment misthink.rwatson2009-07-021-1/+1
| | | | | | Submitted by: b. f. <bf1783 at googlemail.com> Approved by: re (audit argument blanket) MFC after: 1 week
* Audit file descriptor and command arguments to ioctl(2).rwatson2009-07-021-0/+2
| | | | | Approved by: re (audit argument blanket) MFC after: 1 week
* Clean up a number of aspects of token generation from audit arguments torwatson2009-07-022-70/+55
| | | | | | | | | | | | | | | | system calls: - Centralize generation of argument tokens for VM addresses in a macro, ADDR_TOKEN(), and properly encode 64-bit addresses in 64-bit arguments. - Fix up argument numbers across a large number of syscalls so that they match the numeric argument into the system call. - Don't audit the address argument to ioctl(2) or ptrace(2), but do keep generating tokens for mmap(2), minherit(2), since they relate to passing object access across execve(2). Approved by: re (audit argument blanket) Obtained from: TrustedBSD Project MFC after: 1 week
* Use MPT_MAX_LUNS as maximium number of LUNs, not 7, for SAS and FC cases.delphij2009-07-021-1/+4
| | | | | | | | This matches Linux driver behavior. Discussed with: scottl Approved by: re (kensmith) MFC after: 1 month
* Change explicit maximium numbers to the defined macro MPT_MAX_LUNS.delphij2009-07-021-4/+4
| | | | Approved by: re (kensmith)
* For access(2) and eaccess(2), audit the requested access mode.rwatson2009-07-012-2/+10
| | | | | Approved by: re (audit argument blanket) MFC after: 3 days
* Don't panic on attempt to set ACL on a block device file.trasz2009-07-011-6/+6
| | | | | | | | | This is just a part of kern/125613. PR: kern/125613 Submitted by: Jaakko Heinonen <jh at saunalahti dot fi> Reviewed by: rwatson Approved by: re (kib)
* - Properly order headers, local variables and prototypes. [1]stas2009-07-011-18/+11
| | | | | | | | - Remove unneeded headers. - Return non-zero error code in usage(). Approved by: re (kib) Suggested by: bde [1]
* - Use fd_lastfile + 1 as the upper bound on nd. This is more correct thanjeff2009-07-011-6/+8
| | | | | | | | | | | | | using the size of the descriptor array. - A lock is not needed to fetch fd_lastfile. The results are stale the instant it is dropped. - Use a private mutex pool for select since the pool mutex is not used as a leaf. - Fetch the si_mtx pointer first before resorting to hashing to compute the mutex address. Reviewed by: McKusick Approved by: re (kib)
* Fix a panic which (reportedly) can happen when unmounting a filesystemtrasz2009-07-012-1/+3
| | | | | | | | | with I/O requests in flight on kernels compiled with "options INVARIANTS". Also, make it obvious it's not right to call g_valid_obj() (and macros using it, e.g. G_VALID_CONSUMER()) without topology lock held. Approved by: re (kib) Reported by: pho
* Map DPCPU pages into ARM kernel VA space.raj2009-07-013-3/+11
| | | | | | | | | | | DPCPU area was not properly mapped into kernel VA space, which caused page fault on the first DPCPU access. This patch fixes the problem by mapping DPCPU area into kernel VA space. Submitted by: Michal Hajduk, Piotr Ziecik Reviewed by: cognet, stas Approved by: re (kib) Obtained from: Semihalf
* Audit file descriptor numbers for various socket-related system calls.rwatson2009-07-011-0/+17
| | | | | Approved by: re (audit argument blanket) MFC after: 3 days
* Define missing audit argument macro AUDIT_ARG_SOCKET(), andrwatson2009-07-012-0/+9
| | | | | | | | capture the domain, type, and protocol arguments to socket(2) and socketpair(2). Approved by: re (audit argument blanket) MFC after: 3 days
* Clarify the node about removing NFS_LEGACYRPCdfr2009-07-011-2/+3
| | | | Approved by: re
* Improve the handling of cpuset with interrupts.jhb2009-07-0114-92/+227
| | | | | | | | | | | | | | | | | | | | | - For x86, change the interrupt source method to assign an interrupt source to a specific CPU to return an error value instead of void, thus allowing it to fail. - If moving an interrupt to a CPU fails due to a lack of IDT vectors in the destination CPU, fail the request with ENOSPC rather than panicing. - For MSI interrupts on x86 (but not MSI-X), only allow cpuset to be used on the first interrupt in a group. Moving the first interrupt in a group moves the entire group. - Use the icu_lock to protect intr_next_cpu() on x86 instead of the intr_table_lock to fix a LOR introduced in the last set of MSI changes. - Add a new privilege PRIV_SCHED_CPUSET_INTR for using cpuset with interrupts. Previously, binding an interrupt to a CPU only performed a privilege check if the interrupt had an interrupt thread. Interrupts without a thread could be bound by non-root users as a result. - If an interrupt event's assign_cpu method fails, then restore the original cpuset mask for the associated interrupt thread. Approved by: re (kib)
* When auditing unmount(2), capture FSID arguments as regular text stringsrwatson2009-07-012-1/+11
| | | | | | | | | | rather than as paths, which would lead to them being treated as relative pathnames and hence confusingly converted into absolute pathnames. Capture flags to unmount(2) via an argument token. Approved by: re (audit argument blanket) MFC after: 3 days
* When unmounting an NFS mount using sec=krb5[ip], the umount systemrmacklem2009-07-011-0/+14
| | | | | | | | | | | | | call could get hung sleeping on "gsssta" if the credentials for a user that had been accessing the mount point have expired. This happened because rpc_gss_destroy_context() would end up calling itself when the "destroy context" RPC was attempted, trying to refresh the credentials. This patch just checks for this case in rpc_gss_refresh() and returns without attempting the refresh, which avoids the recursive call to rpc_gss_destroy_context() and the subsequent hang. Reviewed by: dfr Approved by: re (Ken Smith), kib (mentor)
* Make sure that cr_error is set to ESHUTDOWN when closing the connection.rmacklem2009-07-011-2/+4
| | | | | | | | | | This is normally done by a loop in clnt_dg_close(), but requests that aren't in the pending queue at the time of closing, don't get set. This avoids a panic in xdrmbuf_create() when it is called with a NULL cr_mrep if cr_error doesn't get set to ESHUTDOWN while closing. Reviewed by: dfr Approved by: re (Ken Smith), kib (mentor)
* Multiqueue RX is not correctly enabled on the new 82599jfv2009-07-011-36/+31
| | | | | | adapter, the SRRCTL register needs to be setup per queue. Approved by: re
* With NFSv4 ACLs, it is possible that applying a mode to an ACL whichtrasz2009-07-011-2/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is identical to the mode computed from that ACL will modify the ACL. For example, mode computed from the following ACL is 0600: user:kamila:rwx--------C--:------:allow owner@:--x-----------:------:deny owner@:rw-p---A-W-Co-:------:allow group@:rwxp----------:------:deny group@:--------------:------:allow everyone@:rwxp---A-W-Co-:------:deny everyone@:------a-R-c--s:------:allow However, applying that mode (chmod 0600) changes the ACL into this: user:kamila:rwx-----------:------:deny user:kamila:rwx--------C--:------:allow owner@:--x-----------:------:deny owner@:rw-p---A-W-Co-:------:allow group@:rwxp----------:------:deny group@:--------------:------:allow everyone@:rwxp---A-W-Co-:------:deny everyone@:------a-R-c--s:------:allow In chmod(1) utility, there is an optimisation, which makes it not call chmod(2) if the mode of the file is the same as the new mode. Disable that optimisation for files which may have NFSv4 ACLs. Reviewed by: rwatson Approved by: re (kib)
* Audit the file descriptor number passed to lseek(2).rwatson2009-07-012-1/+2
| | | | | Approved by: re (kib) MFC after: 3 days
* Fix link(2) auditing: use the second audit record path for the new objectrwatson2009-07-011-1/+1
| | | | | | | name. Approved by: re (kib) MFC after: 3 days
* - Fix the bug in write(2) called with incorrect parameters resulting in writesstas2009-07-012-52/+64
| | | | | | | | | | | | | always started from the start of the packet. - Fix usage string (multiple addresses can be specified). - Make the source more style(9) compliant. - Improve error reporting (do not silently fail if something goes wrong). - Make functions static. - Use warns level 6. Approved by: re (kib) Discussed with: Marc Balmer <marc@msys.ch>, brian, mbr
* udit the 'options' argument to wait4(2).rwatson2009-07-012-0/+5
| | | | | Approved by: re (kib) MFC after: 3 days
* Fix infinite loop in ng_iface, that happens when packet passes out viamav2009-07-011-1/+2
| | | | | | | | | two different ng interfaces sequentially due to tunnelling. PR: kern/134557 Submitted by: Mikolaj Golub Approved by: re (kensmith) MFC after: 3 days
* Add usr/include/nfs/rpcv2.hdfr2009-07-011-0/+2
| | | | | Submitted by: pluknet at gmail dot com Approved by: re
* Add an entry documenting removal of the NFS_LEGACYRPC option.dfr2009-07-011-0/+4
| | | | | Submitted by: Steve Kargl Approved by: re
* Don't include rpcv2.h - it has been removed.dfr2009-07-011-1/+0
| | | | | Submitted by: ed@ Approved by: re
* Compiles without higher warn levelmbr2009-06-301-2/+0
| | | | | | M wake/Makefile Approved by: re (previous commit)
* Don't imply that only FTP urls are supported when we can't fetchbrian2009-06-301-1/+1
| | | | | | | a package. Approved by: re (kib) MFC after: 3 weeks
* Make it clear where to look for for protocol-specific socket options.trasz2009-06-301-0/+9
| | | | | Reviewed by: rwatson Approved by: re (kib)
* Remove a stale comment. The very same revision (r85511) that introducedalc2009-06-301-3/+0
| | | | | | this comment also implemented the proposed change to the code. Approved by: re (kib)
* Adjust the internal NFS KPI to avoid the last traces of NFS_LEGACYRPC.dfr2009-06-305-26/+21
| | | | Approved by: re
* Remove the old kernel RPC implementation and the NFS_LEGACYRPC option.dfr2009-06-3031-4969/+23
| | | | Approved by: re
OpenPOWER on IntegriCloud