summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove useless embedding of kernel struct rtentry into userland one.glebius2014-04-091-5/+0
| | | | | | This is direct commit to stable/10. Sponsored by: Nginx, Inc.
* Bump osreldate for tracking SA-14:06peter2014-04-091-1/+1
|
* Document SA-14:05.nfsserver, SA-14:06.openssl.gjb2014-04-091-0/+18
| | | | Sponsored by: The FreeBSD Foundation
* MFC 259635:jhb2014-04-084-14/+58
| | | | | | | Add an option to ignore accesses by the guest to unimplemented MSRs. Also, ignore a couple of SandyBridge uncore PMC MSRs that Centos 6.4 writes to during boot.
* Fix NFS deadlock vulnerability. [SA-14:05]delphij2014-04-086-29/+126
| | | | | Fix "Heartbleed" vulnerability and ECDSA Cache Side-channel Attack in OpenSSL. [SA-14:06]
* MFC r264027, r264028, r264029, r264030, r264046, r264073:gjb2014-04-084-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | r264027: Add a new release build variable, WITH_COMPRESSED_IMAGES. When set to a non-empty value, the installation medium is compressed as part of the 'install' target in the release/ directory. r264028: Clean up trailing whitespace in release/Makefile. r264029: Fix logic error. r264030: If WITH_COMPRESSED_IMAGES is set, add the compressed images to the CLEANFILES list. r264046: Use xz(1) instead of gzip(1) to compress release images when WITH_COMPRESSED_IMAGES is used. r264073: Allow overriding xz(1) path. Sponsored by: The FreeBSD Foundation
* MFC r263969,263971:ae2014-04-071-5/+2
| | | | | | | Don't generate an ICMPv6 error message if packet was consumed by filter. Remove unused label. Sponsored by: Yandex LLC
* MFC r263966:ae2014-04-071-0/+1
| | | | | | | Don't copy the MF flag from original IP header to ICMP error message. PR: 188092 Sponsored by: Yandex LLC
* MFC r264121;pfg2014-04-072-2/+5
| | | | | | | | | | | | gcc: define __block when block support is enabled This mimics the behaviour in clang and lets us build cleanly the libdispatch port on platforms where the base gcc is still the default compiler. Bump __FreeBSD_version for ports. Tested by: theraven
* MFC r263973;pfg2014-04-074-16/+16
| | | | | | ddb: Minor style cleanups. #define should be followed by tab.
* login: Clean up PAM and audit, then exit, on SIGHUP and SIGTERM.jilles2014-04-061-18/+77
| | | | | | | | | | | | | | | | This avoids leaving stale entries in utmpx after the connection is closed on an open login session. It also allows a clean way (SIGTERM) to forcibly terminate a user's terminal session. This does not affect the situation for "hung" processes after the connection is closed. The foreground process group receives SIGHUP and the tty becomes inaccessible. Also replace all use of the obsolete signal() function with sigaction() (not only the part where it is actually required: SIGHUP and SIGTERM must mask the other as well when caught). PR: misc/183495
* MFC r262872: fts: Don't abort if an empty pathname is given.jilles2014-04-051-5/+1
| | | | | | | | | | Make fts_open(3) treat an empty pathname like any other pathname that cannot be lstatted because of [ENOENT]. It is rather confusing if rm -rf file1 "" file2 does not remove file1 and file2. PR: bin/187264
* MFC r258794: chmod(2): Document S_ISVTX following SUSv3/SUSv4.jilles2014-04-051-10/+16
| | | | | | S_ISTXT is non-standard. While here, also update fchmodat() standards entry to POSIX.1-2008.
* waitid(2): Do not tell userland programmers to include <sys/signal.h>.jilles2014-04-051-1/+1
| | | | Userland should get these definitions by including <signal.h>.
* MFC r263244: find: When performing -quit, finish pending -exec ... + commandjilles2014-04-051-0/+1
| | | | | | | | | lines. This avoids unexpected partial processing when a find command uses both -quit and -exec ... +. GNU find does the same.
* MFC r263195: sh: Add some consts.jilles2014-04-053-11/+11
|
* MFC r262755: sh: Make argstr() return where it stopped and simplify expari()jilles2014-04-051-21/+5
| | | | using this.
* MFC r263912:kib2014-04-052-2/+4
| | | | Clear the kernel grab of the FPU state on fork.
* Document a potential panic or hang when using sas2flash togjb2014-04-041-0/+10
| | | | | | | | update firmware on mps(4) LSI controllers. Submitted by: smh Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
* MFC r263878:kib2014-04-042-21/+27
| | | | Several fixes for the PCID implementation.
* MFC r263001royger2014-04-048-539/+322
| | | | | | | | Move asm IPIs handlers to C code, so both Xen and native IPI handlers share the same code. Approved by: gibbs Sponsored by: Citrix Systems R&D
* MFC r261521 by antoine: Add files to remove WITHOUT_NISemaste2014-04-041-3/+54
| | | | | PR: misc/186412 Sponsored by: The FreeBSD Foundation
* MFC r263885ray2014-04-043-1/+37
| | | | | | | | | o Add new vd_driver method to do bitblt with mask, named vd_maskbitbltchr. o Move vd_bitbltchr vga's driver method to vd_maskbitbltchr. o Implement new vd_bitbltchr method for vga driver. (It do single write for 8 pixels, have to be a bit faster). Sponsored by: The FreeBSD Foundation
* Merge r262341:glebius2014-04-041-38/+33
| | | | | - Improve logging of send errors, reporting error code and interface. - Reduce code duplication between INET and INET6.
* MFC r264107:gjb2014-04-044-32/+0
| | | | | | Remove only-works-on-amd64 restriction. Sponsored by: The FreeBSD Foundation
* MFC r262810, r262862, r264105:gjb2014-04-0414-25/+608
| | | | | | | | | | | | | | | | | | | | r262810: Merge enabling building FreeBSD/arm images as part of the release build process. r262862: Provide backwards-compatibility with release.conf SVNROOT entries that do not have a trailing '/'. r264105: Add ZEDBOARD support for release builds. * Local modifications: - Set SRCBRANCH from head/ to stable/10/. - Strip svn:merginfo from ^/projects/release-embedded to avoid pollution. Sponsored by: The FreeBSD Foundation
* MFC r263428asomers2014-04-031-49/+62
| | | | | | | share/man/man7/tests.7 Added a section on test suite configuration, and cleaned up up grammar errors and awkward prose. The config variables were discussed on freebsd-testing.
* MFC r263116asomers2014-04-034-60/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace 4.4BSD Lite's unix domain socket backpressure hack with a cleaner mechanism, based on the new SB_STOP sockbuf flag. The old hack dynamically changed the sending sockbuf's high water mark whenever adding or removing data from the receiving sockbuf. It worked for stream sockets, but it never worked for SOCK_SEQPACKET sockets because of their atomic nature. If the sockbuf was partially full, it might return EMSGSIZE instead of blocking. The new solution is based on DragonFlyBSD's fix from commit 3a6117bbe0ed6a87605c1e43e12a1438d8844380 on 2008-05-27. It adds an SB_STOP flag to sockbufs. Whenever uipc_send surpasses the socket's size limit, it sets SB_STOP on the sending sockbuf. sbspace() will then return 0 for that sockbuf, causing sosend_generic and friends to block. uipc_rcvd will likewise clear SB_STOP. There are two fringe benefits: uipc_{send,rcvd} no longer need to call chgsbsize() on every send and receive because they don't change the sockbuf's high water mark. Also, uipc_sense no longer needs to acquire the UIPC linkage lock, because it's simpler to compute the st_blksizes. There is one drawback: since sbspace() will only ever return 0 or the maximum, sosend_generic will allow the sockbuf to exceed its nominal maximum size by at most one packet of size less than the max. I don't think that's a serious problem. In fact, I'm not even positive that FreeBSD guarantees a socket will always stay within its nominal size limit. sys/sys/sockbuf.h Add the SB_STOP flag and adjust sbspace() sys/sys/unpcb.h Delete the obsolete unp_cc and unp_mbcnt fields from struct unpcb. sys/kern/uipc_usrreq.c Adjust uipc_rcvd, uipc_send, and uipc_sense to use the SB_STOP backpressure mechanism. Removing obsolete unpcb fields from db_show_unpcb. tests/sys/kern/unix_seqpacket_test.c Clear expected failures from ATF.
* o Provide a compatibility shim for netstat(1) to obtain output queueglebius2014-04-033-3/+20
| | | | | | | | | | | | | drops via NET_RT_IFLISTL sysctl. The sysctl handler appends oqdrops at the end of struct if_msghdrl, and netstat(1) sees that as an additional field of struct if_data. This allows us to fetch the data keeping ABI and API compatibility. This is direct commit to stable/10. o Merge r263331 from head, to restore printing of queue drops. Sponsored by: Nginx, Inc. Sponsored by: Netflix
* MFC r263812:bdrewery2014-04-031-3/+20
| | | | Update build(7) with LOCAL_* vars
* Document that the FreeBSD/i386 instability withgjb2014-04-031-0/+4
| | | | | | | vfs.unmapped_buf_allowed=1 may be present on VMs running on hypervisors other than VirtualBox. Sponsored by: The FreeBSD Foundation
* MFC r263809ray2014-04-031-0/+3
| | | | | | | | Fix crash on resume in vt(9). Statically allocated terminal window have not initialized callout handler, so we have to initialize it even for existing window if it is console window. Sponsored by: The FreeBSD Foundation
* MFC r263385:delphij2014-04-031-1/+1
| | | | | | Remove unused option -r from zpool. Submitted by: Richard Yao <ryao gentoo org>
* MFC r263775:dim2014-04-021-0/+16
| | | | | | | | | | | | Avoid "cc1: warning: is shorter than expected" when using GNU cpp in combination with dtrace scripts, which have "#!/usr/sbin/dtrace -Cs" shebang lines. This is because dtrace positions the file pointer after the shebang line, before passing the file to GNU cpp. To fix the warning, adjust the size downwards by the current position, after a bit of sanity checking. Suggested by: avg
* MFC r263118:mav2014-04-011-5/+9
| | | | Report ZVOL block size as GEOM stripesize.
* MFC r263891:dim2014-04-011-2/+4
| | | | | | Make clang default to DWARF2 debug info format for FreeBSD 10.x and earlier. For head, this commit does not change anything, but it is purely meant to be MFC'd.
* MFC revisions 260894,260899,262895-262902,262904,262908-262910,262982,dteske2014-04-0125-1580/+3089
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 262984,263133-263137,263139,263141,263144-263150, and (partially) 263249 (31 revisions; summarized below)... r260894: Optimize f_expand_number(), improving performance r260899: s/__number/__num/ in f_expand_number() r262895: Allow dispatched reswords to carry arguments r262896: Add missing local declaration r262897: Fix a typo in a comment r262898: Fix incorrect return status if var_to_set and var_to_get are same r262899: Make f_show_err non-fatal r262900: Centralize function name; Update a comment while here r262901: s/__num/__number/ in f_expand_number() r262902: Comment to go with NL global introduced by previous commit r262904: Rewrite groupmgmt -- hooking it into the scripting system r262908: Change dispatch words from group* to *Group for backward compat r262909: Fix copy/paste error in a comment r262910: Take a group name on the command-line if available r262982: Whitespace r262984: Remove vestigial global, no longer used since r262904 r263133: Remove indexfile from debug statement (already logged) r263134: Add debug statement just before attempting to exec a module r263135: Comments r263136: Update copyright r263137: Fix future namespace issues for functions taking $var_to_set r263139: Remove useless NULL string in compound strings r263141: Pointy hat! Fix a broken f_isinteger() r263144: Fix a code-typo that prevented auto-sizing of a dialog r263145: Fix comments and whitespace r263146: Reduce the sleep cycle when using dialog(1) [infobox] to 1-second r263147: Fix a bug preventing errors from pw(8) from appearing r263148: For non-interactive scripts, forgot to check argument r263149: Add protection against input containing single-quotes r263150: Rewrite usermgmt r263249: (partial) Add more obsolete files
* MFC r263271asomers2014-03-311-1/+1
| | | | | | share/man/man9/counter.9 Fix logic error in the description of counter_u64_alloc: the command may fail only if M_NOWAIT is specified, not M_WAITOK.
* MFC r263468:ae2014-03-311-8/+5
| | | | | | | | | | | When loader(8) inspects MBR, it chooses GPT as main partition table, when MBR contains only PMBR entry or it is bootcamp-compatible. If MBR has PMBR entry and some other, the loader rejects it. Make these checks to be less strict. If loader decided that PMBR isn't suitable for GPT, it will use MBR. Reported by: Paul Thornton
* MFC r263758:mjg2014-03-313-10/+11
| | | | | | Update userspace users of hw.bus.devctl_disable. This switches the code to use hw.bus.devctl_queue instead.
* MFC r263755:mjg2014-03-311-0/+16
| | | | | Document a known problem with handling the process intended to receive SIGIO in /dev/devctl.
* MFC r263704:mjg2014-03-311-8/+14
| | | | | | | Make /dev/devctl mpsafe. MFC r263753: Remove lockless check in devopen, while correct it does not make much sense.
* MFC r263458:mjg2014-03-311-0/+1
| | | | audit: plug FILEDESC_LOCK leak in audit_canon_path.
* MFC r263530:mjg2014-03-311-5/+7
| | | | | | | Mark the following sysctls as MPSAFE: kern.file kern.proc.filedesc kern.proc.ofiledesc
* MFC r263460:mjg2014-03-311-2/+2
| | | | | | Take filedesc lock only for reading when allocating new fdtable. Code populating the table does this already.
* MFC r263863:gjb2014-03-314-8/+4
| | | | | | Dereference nonexistent md2(3) manual. Sponsored by: The FreeBSD Foundation
* MFC r263131,r263174,r263175:bdrewery2014-03-302-27/+38
| | | | | | | | | | | | | | | | Tmpfs readdir() redundant logic and code readability cleanup. r263131: Cleanup redundant logic and add some comments to help explain how it works in lieu of potentially less clear code. r263174: Rename cnt to maxcookies and change its use as the condition for when to lookup cookies to be less obscure. r263175: Add missing FALLTHROUGH comment in tmpfs_dir_getdents for looking up '.' and '..'.
* MFC r263130:bdrewery2014-03-301-2/+4
| | | | Fix -o size less than PAGE_SIZE resulting in SIZE_MAX being used.
* MFC r263129:bdrewery2014-03-301-39/+25
| | | | Combine similar code from vprintf(9) and log(9).
* MFC r263937:bdrewery2014-03-301-0/+8
| | | | Give hint on how to disable the default repository.
OpenPOWER on IntegriCloud