summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* add support for writing the pid of the daemon program to a pid file sojmg2013-09-132-19/+80
| | | | | | | | | | that daemon can be used w/ rc.subr and ports can use the additional functionality, such as keeping the ldap daemon up and running, and have the proper program to signal to exit.. PR: bin/181341 Submitted by: feld Approved by: re (glebius)
* Note about the OpenSSH change.des2013-09-131-0/+6
| | | | Approved by: re (gjb)
* When opening or closing fifo, ensure that the vnode is lockedkib2013-09-131-1/+3
| | | | | | | | | | | exclusively. Filesystems are assumed to disable shared locking for the fifo vnode locks, but some do not. Reported and tested by: olgeni Discussed with: avg Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: re (glebius)
* Reduce the scope of the proctree_lock. If several processes causekib2013-09-131-7/+6
| | | | | | | | | | | | | | | continuous calls to the uprintf(9), the proctree_lock could be shared-locked for indefinite amount of time, starving exclusive requests. Since proctree_lock is needed for fork() and exit(), this effectively stops the machine. While there, do the similar reduction for tprintf(9). Reported and tested by: pho Reviewed by: ed Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: re (glebius)
* Do not install freebsd-update.conf.5 manual if WITHOUT_FREEBSD_UPDATE isgjb2013-09-131-1/+4
| | | | | | | | set. MFC after: 3 days Approved by: re (delphij) Sponsored by: The FreeBSD Foundation
* Change VM object lock assertion to match locking higher in the callnwhitehorn2013-09-131-1/+1
| | | | | | | | | | chain. This repairs a panic observed during pageout on some 64-bit PowerPC systems. Submitted by: grehan Approved by: re (kib) MFC after: 2 weeks Revisit after: 10.0
* Fix an issue that caused Integrated RAID volumes on LSI mps(4) controllersken2013-09-121-0/+2
| | | | | | | | | | | | | | | | | | | to not get scanned on boot. The problem originated in change 253549. With the change to the mps(4) driver to scan only targets that it knows it has (as opposed to scanning the entire bus), scanning RAID volumes on boot was omitted. So, for versions of FreeBSD that have the scanning changes (__FreeBSD_version 1000039 and higher), scan RAID volumes that are added whether or not we're booting. PR: kern/181784 Reported by: Xiguang Wang <kurapica@gmail.com> Tested by: Dennis Glatting <dg@pki2.com> Sponsored by: Spectra Logic Approved by: re (delphij) MFC After: 3 days
* After r255321, clang uses libc++ by default. This leads to a lot ofdim2013-09-122-0/+8
| | | | | | | | | | | errors when you enable WITH_GNUCXX to build libstdc++, since it will include C++ headers from the libc++ installation under ${WORLDTMP}, and those are not compatible with libstdc++ at all. To fix this, add -stdlib=libstdc++ to CXXFLAGS when building libstdc++ (and its companion libsupc++) with clang. Approved by: re (delphij)
* After r255294, building lib/msun's symbol map (using clang as thedim2013-09-121-1/+1
| | | | | | | | | | | | | | preprocessor) gives the following error: --- Version.map --- <stdin>:287:4: error: invalid preprocessing directive # Implemented as weak aliases for imprecise versions ^ 1 error generated. Change the comment to a C-style one, to prevent this error. Approved by: re (hrs)
* - Document the UQUAD sysctl variants.jhb2013-09-123-12/+32
| | | | | | | | | | - Clarify that exactly one of the "access" flags is required and list the optional flags in a separate list. Prefer bundling CTLFLAG_TUN into the access flag by not documenting it as an optional flag to set. Approved by: re (glebius) MFC after: 1 week
* Fix an off-by-one error when populating mincore(2) entries forjhb2013-09-121-2/+2
| | | | | | | | skipped entries. lastvecindex references the last valid byte, so the new bytes should come after it. Approved by: re (kib) MFC after: 1 week
* Fix a typo.jhb2013-09-121-1/+1
| | | | Approved by: re (gjb)
* Document several recent changes to vm_map_find(9):jhb2013-09-121-22/+56
| | | | | | | | | | | - Document the max_addr parameter that restricts mappings to a subset of the map's address space. - Document VMFS_ALIGNED_SPACE and update for the rename of VMFS_SUPER_SPACE. In addition, use a table that describes the different find space strategies in more detail. Reviewed by: alc Approved by: re (kib)
* - Decode the idtype argument passed to wait6() in kdump and truss.jhb2013-09-124-14/+154
| | | | | | | | | | - Don't treat an options argument of 0 to wait4() as an error in kdump. - Decode the wait options passed to wait4() and wait6() in truss and decode the returned rusage and exit status. Approved by: re (kib) MFC after: 1 week
* Regen.jhb2013-09-126-8/+9
| | | | Approved by: re (kib)
* Fix the type of the idtype argument to wait6() in syscalls.master.jhb2013-09-121-1/+2
| | | | | | | (Accidentally missed this in the previous commit) Approved by: re (kib) MFC after: 1 week
* Fix the type of the idtype argument to wait6() in syscalls.master.jhb2013-09-121-1/+1
| | | | | Approved by: re (kib) MFC after: 1 week
* Update head/ to -ALPHA1 status, as part of the 10.0-RELEASEgjb2013-09-121-1/+1
| | | | | | | cycle. Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
* Don't issue USB resume signalling in USB device mode, if the USB powerhselasky2013-09-121-1/+2
| | | | | | | | mode is ON and suspend is detected. This confuses iPads running in USB host mode at least. MFC after: 1 week Approved by: re (hrs)
* We are exceeding default limit (256) of bracket nesting and clang does not likehiren2013-09-121-0/+5
| | | | | | | | it. We should probably fix the code but appeasing clang with this fix for now. gcc does not have such limit. Reviewed by: jmg Approved by: re (hrs), sbruno (mentor, implicit)
* Consistently reference file descriptors as "fd". 55 other manpagesbdrewery2013-09-126-37/+37
| | | | | | | | used "fd", while these used "d" and "filedes". MFC after: 1 week Approved by: gjb Approved by: re (delphij)
* Fix make bootstrapping with WITH_DEBUG_FILES=emaste2013-09-121-1/+1
| | | | | | | | | | | A HEAD buildworld on 9.x first bootstraps bmake, but this failed when building with standalone debug. Pass in the PROGNAME override to the 'make all' stage as well as 'make install' so that the .debug file is created with the correct name. Reviewed by: sjg Sponsored by: The FreeBSD Foundation Approved by: re (rodrigc)
* Do not emit size for non-regular files. There is nothing thatdelphij2013-09-121-1/+1
| | | | | | | | mtree(1) can do in this situation and would cause confusion. MFC candidate. Approved by: re (hrs)
* Provide pr_ctloutput method for AF_LOCAL/SOCK_SEQPACKET sockets.glebius2013-09-111-0/+1
| | | | | | | This makes setsockopt() on them working. Reported by: Yuri <yuri rawbw.com> Approved by: re (kib)
* Fix build with gcc.kib2013-09-111-0/+2
| | | | | Build-tested by: gjb Approved by: re (glebius)
* Prior to r254304, we only began scanning the active page queue when thealc2013-09-111-52/+69
| | | | | | | | | | | | | | | | | | amount of free memory was close to the point at which we would begin reclaiming pages. Now, we continuously scan the active page queue, regardless of the amount of free memory. Consequently, we are continuously calling pmap_ts_referenced() on active pages. Prior to this change, pmap_ts_referenced() would always demote superpage mappings in order to obtain finer-grained reference information. This made sense because we were coming under memory pressure and would soon have to begin reclaiming pages. Now, however, with continuous scanning of the active page queue, these demotions are taking a toll on performance. To address this problem, I have replaced the demotion with a heuristic for periodically clearing the reference flag on superpage mappings. Approved by: re (kib) Sponsored by: EMC / Isilon Storage Division
* Clear correct data structure.hselasky2013-09-111-1/+3
| | | | | MFC after: 1 week Approved by: re (hrs)
* Clean up SIOCSIFDSTADDR usage from ifnet drivers. The ioctl itself isglebius2013-09-119-15/+0
| | | | | | | | extremely outdated, and I doubt that it was ever used for ifnet drivers. It was used for AF_INET sockets in pre-FreeBSD time. Approved by: re (hrs) Sponsored by: Nginx, Inc.
* Fix a limitation in bhyve that would limit the number of virtual machines toneel2013-09-113-1/+9
| | | | | | | | | | | | | the maximum number of VT-d domains (256 on a Sandybridge). We now allocate a VT-d domain for a guest only if the administrator has explicitly configured one or more PCI passthru device(s). If there are no PCI passthru devices configured (the common case) then the number of virtual machines is no longer limited by the maximum number of VT-d domains. Reviewed by: grehan@ Approved by: re@
* Cleanup elf macrosbapt2013-09-111-7/+3
| | | | | | | | Only define EF_MIPS_ABI when not already supplied Remove old now unused ARM macros Reported by: imp Approved by: re (kib)
* Implement sendfile(2) for the posix shared memory segment file descriptor,kib2013-09-112-126/+250
| | | | | | | | | | in addition to the regular files. Requested by: alc Discussed with: emaste Tested by: pho (previous version) Sponsored by: The FreeBSD Foundation Approved by: re (hrs)
* Stick to traditional DEFAULT_SYS_PATH (/usr/share/mk)sjg2013-09-101-0/+1
| | | | | Reviewed by: obrien Approved by: re
* Missed in r255386: libssh is more than just the .so file itself.des2013-09-101-0/+6
| | | | Approved by: re (blanket)
* Change the default value of VerifyHostKeyDNS to "yes" if compiled withdes2013-09-103-1/+11
| | | | | | | | LDNS. With that setting, OpenSSH will silently accept host keys that match verified SSHFP records. If an SSHFP record exists but could not be verified, OpenSSH will print a message and prompt the user as usual. Approved by: re (blanket)
* Clean up the OpenSSH build. It is now possible to build most componentsdes2013-09-1013-48/+199
| | | | | | | | | | as static binaries, if desired. The one exception is sshd, which runs into trouble due to libpam.a's includion of pam_ssh. Make OpenSSH use LDNS if available. This allows it to verify signed SSHFP records. Approved by: re (blanket)
* Remove documentation describing functionality which geom(4) does not,cperciva2013-09-101-19/+1
| | | | | | | | in fact, provide. Reviewed by: phk MFC after: 3 days Approved by: re (gjb)
* Add support to detect arm vs armv6bapt2013-09-101-12/+202
| | | | | | | | | | | | | | | | | | | There are two different versions of the ARM ABI depending on the TARGET_ARCH. As these are sligntly different a package built for one may not work on another. We need to detect which one we are on by parsing the .ARM.attributes section. This will only work on the ARM EABI as this section is part of the ABI definition. As armv6 only supports the ARM EABI this is not a problem for the oabi. Older versions of libelf in FreeBSD fail to read the .ARM.attributes section needed. As armv6 is unsupported on these versions we can assume we are running on arm. Submitted by: andrew Approved by: re (delphij) Obtained from: pkgng git
* Clean up the Kerberos build by turning libheimipcc and libheimipcs intodes2013-09-108-11/+28
| | | | | | | | private shared libraries, instead of hacked-together archives of PIC objects. This makes it possible to build a static libkrb5 that works. Reviewed by: stas Approved by: re (gjb)
* Make this more deterministic by sorting the libraries before processingdes2013-09-101-1/+2
| | | | | | them and ensuring that we always use the samme collation rules. Approved by: re (gjb)
* add note about gcc and aesni...jmg2013-09-101-0/+5
| | | | Approved by: re (gjb, kib)
* Back out r255440. /usr/bin/gcc @r255185 (2013-09-03) can build this.obrien2013-09-103-3/+3
| | | | Approved by: re (kib)
* Add a sendfile regression test for transmit length > file size.emaste2013-09-101-32/+64
| | | | | | | This test identified the issue fixed in FreeBSD-SA-13:11.sendfile. Sponsored by: The FreeBSD Foundation Approved by: re (glebius)
* ipfilter 5.1.2 no longer supports sysctl. Use ipf -V to determine ifcy2013-09-103-6/+4
| | | | | | | available (the kernel module is loaded or compiled into the kernel). Approved by: glebius (mentor) Approved by: re (blanket)
* Make a bump for r255426.glebius2013-09-101-1/+1
| | | | Approved by: re (gjb)
* Fix the length calculation for the final block of a sendfile(2)des2013-09-105-7/+57
| | | | | | | | | | | | | | | | | | | | transmission which could be tricked into rounding up to the nearest page size, leaking up to a page of kernel memory. [13:11] In IPv6 and NetATM, stop SIOCSIFADDR, SIOCSIFBRDADDR, SIOCSIFDSTADDR and SIOCSIFNETMASK at the socket layer rather than pass them on to the link layer without validation or credential checks. [SA-13:12] Prevent cross-mount hardlinks between different nullfs mounts of the same underlying filesystem. [SA-13:13] Security: CVE-2013-5666 Security: FreeBSD-SA-13:11.sendfile Security: CVE-2013-5691 Security: FreeBSD-SA-13:12.ifioctl Security: CVE-2013-5710 Security: FreeBSD-SA-13:13.nullfs Approved by: re
* Only use a clang'ism if ${CC} is clang.obrien2013-09-103-3/+3
| | | | | Reviewed by: sjg Approved by: re (kib)
* Call free() on the pointer returned from malloc().kib2013-09-101-8/+8
| | | | | | | Reported and tested by: Oliver Pinter <oliver.pntr@gmail.com> Sponsored by: The FreeBSD Foundation MFC after: 3 days Approved by: re (delphij)
* Go way past 11 and bump bhyve's max vCPUs to 16.grehan2013-09-102-4/+6
| | | | | | | | | | | | | This should be sufficient for 10.0 and will do until forthcoming work to avoid limitations in this area is complete. Thanks to Bela Lubkin at tidalscale for the headsup on the apic/cpu id/io apic ASL parameters that are actually hex values and broke when written as decimal when 11 vCPUs were configured. Approved by: re@
* MFV r247844 (illumos-gate 13975:ef6409bc370f)delphij2013-09-1011-34/+98
| | | | | | | | | | | Illumos ZFS issues: 3582 zfs_delay() should support a variable resolution 3584 DTrace sdt probes for ZFS txg states Provide a compatibility shim for Solaris's cv_timedwait_hires to help aid future porting. Approved by: re (ZFS blanket)
* Fix the aborting of association with the iterator using an emptytuexen2013-09-091-37/+35
| | | | | | | user initiated error cause (using SCTP_ABORT|SCTP_SENDALL). Approved by: re (delphij) MFC after: 1 week
OpenPOWER on IntegriCloud