summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Emit the correct standard library dependency line for C++ programs. Indes2013-09-091-1/+1
| | | | | | | | the CLANG_IS_CC case, the default is now libc++. Only use libstdc++ if !CLANG_IS_CC or it was explicitly requested in CXXFLAGS. Submitted by: theraven Approved by: re (gjb)
* Pass -n (do not emit comments) when saving mtree information for futuredelphij2013-09-091-1/+1
| | | | | | | mergemaster(8) runs. MFC after: 3 days Approved by: re (kib)
* Add a mmap flag (MAP_32BIT) on 64-bit platforms to request that a mapping usejhb2013-09-0925-50/+92
| | | | | | | | | | | | | an address in the first 2GB of the process's address space. This flag should have the same semantics as the same flag on Linux. To facilitate this, add a new parameter to vm_map_find() that specifies an optional maximum virtual address. While here, fix several callers of vm_map_find() to use a VMFS_* constant for the findspace argument instead of TRUE and FALSE. Reviewed by: alc Approved by: re (kib)
* The correct variable is apparently MACHINE_ARCH, not TARGET_ARCH.des2013-09-091-1/+1
| | | | Approved by: re (blanket)
* Make the primary name of the OF console device /dev/ofwcons, and onlynwhitehorn2013-09-091-7/+9
| | | | | | | | | | | | alias it to the contents of the output property if it is defined. This avoids a panic when booting machines (QEMU) where the output-device property is not defined. Since output-device is free-form and potentially conflicts with other entries in /dev, I also am not sure we should be doing the aliasing at all, but this at least makes things work again. Approved by: re (kib)
* These three files appeared in 6.0p1, which was imported into the vendordes2013-09-093-0/+558
|\ | | | | | | | | | | | | | | | | branch but never merged to head. They were inadvertantly left out when 6.1p1 was merged to head. It didn't make any difference at the time, because they were unused, but one of them is required for DNS-based host key verification. Approved by: re (blanket)
| * Apply upstream revision 1.151 (fix relative symlinks)des2013-08-131-1/+2
| |
| * Vendor import of OpenSSH 6.2p2.des2013-05-1712-30/+78
| |
| * The previous commit missed part of the patch. Re-apply.des2013-04-243-34/+29
| |
| * Apply a patch from OpenSSH bugzilla #2057 to silence "received disconnect"des2013-04-141-1/+5
| | | | | | | | errors in the common case (i.e. client intentionally disconnected).
| * Pull in a patchset from upstream to silence spurious "no such identitydes2013-04-024-14/+29
| | | | | | | | file" warnings.
* | Revert r255420. This seems to break some Powermac systems and will benwhitehorn2013-09-091-13/+1
| | | | | | | | | | | | | | revisited much later. Pointy hat to: me Approved by: re (kib, implicit due to breakage 10 minutes ago)
* | Attach only on hardware that is actually supported as opposed to hardwarenwhitehorn2013-09-092-3/+29
| | | | | | | | | | | | that seems like it has some of the problems we might want. Approved by: re (kib)
* | Raise artificial limits on number of CPUs and number of interrupts.nwhitehorn2013-09-093-4/+5
| | | | | | | | Approved by: re (kib)
* | Add POWER CPUs to the kernel's knowledge. This does not imply we currentlynwhitehorn2013-09-093-5/+17
| | | | | | | | | | | | | | actually run on any machines with POWER CPUs but avoids closing that door unnecessarily. Approved by: re (kib)
* | Add hook called when every new processor is brought online -- including thenwhitehorn2013-09-094-0/+22
| | | | | | | | | | | | | | BSP -- so that platform modules have a chance to add the new CPU to any internal bookkeeping. Approved by: re (kib)
* | Use a spin lock instead of a mutex to gate RTAS. This is required if RTASnwhitehorn2013-09-091-3/+3
| | | | | | | | | | | | calls are involved in interrupt handling. Approved by: re (kib)
* | Use the canonical bits for wired, etc. in the PTE. This is important fornwhitehorn2013-09-091-2/+3
| | | | | | | | | | | | | | interactions with certain kinds of hypervisors that look into the PTEs more closely than they should. Approved by: re (kib)
* | Remove unneeded mappings from libmap32.conf. Move it up one level anddes2013-09-092-4/+2
| | | | | | | | | | | | | | install it on powerpc64 in addition to amd64. Reviewed by: kib Approved by: re (blanket)
* | In r243868, the error message buffer errmsg have been changed fromdelphij2013-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | an on-stack array to a pointer and therefore sizeof(errmsg) would become 4 or 8 bytes depending on the architecture. Fix this by using ERRMSGL in place of sizeof(). Submitted by: J David <j.david.lists@gmail.com> MFC after: 3 days Approved by: re (kib)
OpenPOWER on IntegriCloud