summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFV r294491: ntp 4.2.8p6.delphij2016-01-22201-3500/+6686
|\ | | | | | | | | | | | | | | Security: CVE-2015-7973, CVE-2015-7974, CVE-2015-7975 Security: CVE-2015-7976, CVE-2015-7977, CVE-2015-7978 Security: CVE-2015-7979, CVE-2015-8138, CVE-2015-8139 Security: CVE-2015-8140, CVE-2015-8158 With hat: so
| * Vendor import of ntp-4.2.8p6.delphij2016-01-21192-3466/+6586
| |
* | hyperv/vmbus: Lookup channel through id tablesephe2016-01-223-38/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Vmbus event handler will need to find the channel by its relative id, when software interrupt for event happens. The original lookup searches the channel list, which is not very efficient. We now create a table indexed by the channel relative id to speed up the channel lookup. Submitted by: Hongjiang Zhang <honzhan microsoft com> Reviewed by: delphij, adrain, sephe, Dexuan Cui <decui microsoft com> Approved by: adrian (mentor) Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D4802
* | Fix bad title on script (caused by copy/paste)dteske2016-01-221-1/+1
| | | | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r294548
* | Add scripts for watching common entry points.dteske2016-01-224-1/+940
| | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10
* | Provide busdma stubs for loader/kshimwma2016-01-222-1/+129
| | | | | | | | | | | | | | | | Simple bus space stubs require the VA-PA mapping to be identical. Approved by: hselasky, cognet (mentor) Differential revision: https://reviews.freebsd.org/D4314
* | Fix compilation errors in usb/kshimwma2016-01-222-1/+3
| | | | | | | | | | | | | | | | Remove old header from the include list and declare extern symbol for delay() function. Approved by: hselasky, cognet (mentor) Differential revision: https://reviews.freebsd.org/D5012
* | [flash] Teach mx25l SPI flash driver to interact with fdt_slicer and ↵adrian2016-01-221-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | geom_flashmap This teaches the mx25l driver (sys/dev/flash/mx25l.c) to interact with sys/dev/fdt/fdt_slicer.c and sys/geom/geom_flashmap.c. This allows systems with SPI flash to benefit from the possibility to define flash 'slices' via FDT, just the same way that it's currently possible for CFI and NAND flashes. Tested: * Carambola 2, AR9331 + SPI NOR flash PR: kern/206227 Submitted by: Stanislav Galabov <sgalabov@gmail.com>
* | Switch from FD_SETSIZE to getdtablesize(2) as it can make the FD to bearaujo2016-01-221-9/+6
| | | | | | | | | | | | | | | | | | tunable. Also it gets more close with the original implementation from OpenBSD. Requested by: rodrigc Approved by: rodrigc (mentor) Differential Revision: https://reviews.freebsd.org/D4970
* | Remove old generated unwind.h when using LLVM libunwindemaste2016-01-221-1/+6
| | | | | | | | | | | | | | | | | | | | | | When not using LLVM libunwind, unwind.h is a generated header and a stale copy may remain in the OBJDIR after enabling LLVM libunwind. Explicitly remove it. Reported by: bz Reviewed by: bdrewery Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5019
* | - Separate sendfile(2) implementation from uipc_syscalls.c intoglebius2016-01-223-991/+1039
| | | | | | | | | | | | | | | | separate file. Claim my copyright. - Provide more comments, better function and structure names. - Sort out unneeded includes from resulting two files. No functional changes.
* | Provide new socket option TCP_CCALGOOPT, which stands for TCP congestionglebius2016-01-228-6/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | control algorithm options. The argument is variable length and is opaque to TCP, forwarded directly to the algorithm's ctl_output method. Provide new includes directory netinet/cc, where algorithm specific headers can be installed. The new API doesn't yet have any in tree consumers. The original code written by lstewart. Reviewed by: rrs, emax Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D711
* | Add an atomic_fetchadd_64() wrapper on sparc64.jhb2016-01-221-0/+1
| | | | | | | | Reviewed by: marius
* | Refactor TCP_CONGESTION setsockopt handling:glebius2016-01-211-43/+39
| | | | | | | | | | - Use M_TEMP instead of stack variable. - Unroll error handling, removing several levels of indentation.
* | - Rename cc.h to more meaningful tcp_cc.h.glebius2016-01-2116-29/+36
| | | | | | | | | | - Declare it a kernel only include, which it already is. - Don't include tcp.h implicitly from tcp_cc.h
* | Cleanup TCP files from unnecessary interface related includes.glebius2016-01-218-13/+2
| |
* | Update comment to note the function, prison_priv_check(), that needs tomckusick2016-01-211-2/+3
| | | | | | | | be updated in kern_jail.c when a new priviledge is added.
* | Add STB_GNU_UNIQUE symbol binding definitionemaste2016-01-211-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Red Hat created STB_GNU_UNIQUE to handle certain special cases relating to dynamically loading C++ DSOs[1]. We don't (currently) have support for STB_GNU_UNIQUE, but ought to reserve the value in ELFNN_ST_BIND. This will also be used by an upcoming ELF Tool Chain import. [1] https://www.redhat.com/archives/posix-c++-wg/2009-August/msg00002.html MFC after: 1 week Sponsored by: The FreeBSD Foundation
* | Add missing atomic wrapper macro.hselasky2016-01-211-0/+1
| | | | | | | | | | | | Reviewed by: alfred @ Sponsored by: Mellanox Technologies MFC after: 1 week
* | Fix panic on table/table entry delete. The panic could have happenedmelifaro2016-01-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | if more than 64 distinct values had been used. Table value code uses internal objhash API which requires unique key for each object. For value code, pointer to the actual value data is used. The actual problem arises from the fact that 'actual' e.g. runtime data is stored in array and that array is auto-growing. There is special hook (update_tvalue() function) which is used to update the pointers after the change. For some reason, object 'key' was not updated. Fix this by adding update code to the update_tvalue(). Sponsored by: Yandex LLC
* | Replace the last non-optional use of sbrk() in the tree with mmap().brooks2016-01-211-11/+4
| | | | | | | | | | | | | | | | | | | | All gmon want's is a region of memory without the overhead of malloc(). Just mapping some pages with mmap is an easy way to accomplish this. Approved by: jhb, cem, emaste Obtained from: CheriBSD (bf33e1e70b368ababde74aa3ac70d108c8a52c69) Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D5005
* | Implement 64-bit atomic operations for the LinuxKPI.hselasky2016-01-211-0/+104
| | | | | | | | | | MFC after: 1 week Sponsored by: Mellanox Technologies
* | LinuxKPI atomic fixes:hselasky2016-01-212-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | - Fix implementation of atomic_add_unless(). The atomic_cmpset_int() function returns a boolean and not the previous value of the atomic variable. - The atomic counters should be signed according to Linux. - Some minor cosmetics and styling while at it. Reviewed by: alfred @ MFC after: 1 week Sponsored by: Mellanox Technologies
* | Use function macro instead of non-function macro to reduce chance ofhselasky2016-01-211-1/+1
| | | | | | | | | | | | | | incorrect expansion. MFC after: 1 week Sponsored by: Mellanox Technologies
* | Fix the implementations of PSEUDO_NOERROR and PSEUDO.brooks2016-01-211-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | The PSEUDO* macros should not declare <syscall>, only _<syscall> and __sys_<syscall>. This was causing the interposing C wrappers to be ignored due to link order. Reviewed by: kib Obtained from: CheriBSD (4e8e13c90fc6a80e1520de44a6864cfd78b3b56d) MFC after: 1 week Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D4097
* | The variable is write once only and not used.bz2016-01-211-4/+0
| | | | | | | | | | | | | | | | | | | | Recover the vertical space. Sponsored by: The FreeBSD Foundation MFC After: 3 days Obtained from: p4 CH=180830 Reviewed by: gnn, hiren Differential Revision: https://reviews.freebsd.org/D4898
* | Remove fdt_fixup_table from architectures where it's unneeded. We only makeandrew2016-01-219-152/+8
| | | | | | | | | | | | | | | | | | use of fdt_fixup_table on PowerPC and ARM. As such we can remove it from other architectures as it's unneeded. Reviewed by: nwhitehorn Sponsored by: ABT Systems Ltd Differential Revision: https://reviews.freebsd.org/D5013
* | Remove an extra '!' found by clang 3.8.andrew2016-01-211-1/+1
| |
* | Fill the ifAlias leaf of the ifXTable with the interface descriptionharti2016-01-213-1/+20
| | | | | | | | if there is one available and it fits into the maximum size (64 characters).
* | Prevent loader.conf load failure due to unknown console entriessmh2016-01-211-27/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When processing loader.conf if console contained an entry for an unsupported console then cons_set would return an error refusing to set any console. This has two side effects: 1. Forth would throw a syntax error and stop processing loader.conf at that point. 2. The value of console is ignored. #1 Means other important loader.conf entries may not be processed, which is clearly undesirable. #2 Means the users preference for console aren't applied even if they did contain valid options. Now we have support for multi boot paths from a single image e.g. bios and efi mode the console preference needs to deal with the need to set preference for more than one source. Fix this by: * Returning CMD_OK where possible from cons_set. * Allowing set with at least one valid console to proceed. Reviewed by: allanjude MFC after: 1 week Sponsored by: Multiplay Differential Revision: https://reviews.freebsd.org/D5018
* | Implement idr_preload(), idr_preload_end(), idr_alloc() andhselasky2016-01-213-17/+102
| | | | | | | | | | | | | | | | idr_alloc_cyclic() in the LinuxKPI. Bump the FreeBSD version to force recompilation of all KLDs due to IDR structure size change. MFC after: 2 weeks Sponsored by: Mellanox Technologies
* | ext2fs: Bring back the htree dir_index implementation.pfg2016-01-219-117/+1496
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The htree dir_index is perhaps one of the most characteristic features of the linux ext3 implementation. It was removed in r281670, due to repeated bug reports. Damjan Jovanic detected and fixed three bugs and did some stress testing by building Apache OpenOffice on top of it so it is now in good shape to bring back. Differential Revision: https://reviews.freebsd.org/D5007 Submitted by: Damjan Jovanovic Reviewed by: pfg Tested by: pho Relnotes: Yes MFC after: 2 months (only 10.x)
* | Disable -mlong-calls for the clang libraries for now, it increases theandrew2016-01-211-1/+2
| | | | | | | | size of the clang binary for people with a crt1.o from before r293832.
* | Update the instructions and the list of major local modifications.des2016-01-211-17/+47
| |
* | Explain why we don't include VersionAddendum in the debug mode banner.des2016-01-211-0/+1
| |
* | Upgrade to OpenSSH 7.1p2.des2016-01-2128-1806/+301
| |
* | Enable DSA keys by default. They were disabled in OpenSSH 6.9p1.des2016-01-214-17/+28
| | | | | | | | Noticed by: glebius
* | Take care not to pick up the wrong version of OpenSSL when running in andes2016-01-211-0/+6
| | | | | | | | environment that has OpenSSL from ports in addition to the base version.
* | Fix EFI UFS cachingsmh2016-01-212-92/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EFI was mixing caching in two separate places causing issues when multiple partitions where tested. Eliminate this by removing fsstat and re-factoring fsread into fsread_size, adding basic parameter validation. Also: * Enhance some error print outs. * Fix compilation under UFS1_ONLY and UFS2_ONLY * Use sizeof on vars instead of structs. * Add basic parameter validation to fsread_size. MFC after: 1 week X-MFC-With: r293268 Sponsored by: Multiplay Differential Revision: https://reviews.freebsd.org/D4989
* | Note that new ssh(1) doesn't allow to use DSA keys by default.glebius2016-01-211-0/+4
| |
* | AIO daemons have always been kernel processes to facilitate switching tojhb2016-01-211-29/+29
| | | | | | | | | | | | | | | | | | | | user VM spaces while servicing jobs. Update various comments and data structures that refer to AIO daemons as threads to refer to processes instead. Reviewed by: kib Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D4999
* | Remove unused variables for socket AIO.jhb2016-01-211-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | In r55943, a per-process queue of pending socket AIO requests (requests waiting for the socket to become ready) was added so that they could be cancelled during process rundown. In r154765, the rundown code was changed to handle jobs in this state (JOBST_JOBQSOCK) directly removing the need for the extra queue. However, the per-process queue head and global lock were never removed. Reviewed by: kib Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D4997
* | cache: minor changesmjg2016-01-211-28/+20
| | | | | | | | | | | | | | | | | | 1. vhold and zap immediately instead of postponing few lines later 2. increment numneg after new entry is added No functional changes. No objections: kib
* | cache: perform . lockup without the namecache lockmjg2016-01-211-28/+24
| | | | | | | | Reviewed by: kib
* | cache: provide a helper for computing the hashmjg2016-01-211-8/+14
| | | | | | | | Reviewed by: kib
* | cache: use counter(9) API to maintain statisticsmjg2016-01-211-61/+80
| | | | | | | | | | | | | | | | | | | | | | | | Previously the code would just increment statistics while only holding a shared lock, in effect losing updates. Separate tracking for nchstats is removed as values can be obtained from existing counters. Note that some fields are updated by external consumers and are left unfixed. This should not be a serious issue as this structure looks quite obsolete. No strong objections: kib
* | iw_cxgbe: fix a couple of problems int the RDMA_TERMINATE handler.np2016-01-211-6/+9
| | | | | | | | | | | | | | a) Look for the CPL in the payload buffer instead of the descriptor. b) Retrieve the socket associated with the tid with the inpcb lock held. Submitted by: Krishnamraju Eraparaju @ Chelsio
* | urtwn: add temperature calibrationavos2016-01-203-5/+106
| | | | | | | | | | | | | | | | | | | | | | | | Redo LC calibration if temperature changed significantly since last calibration. Tested with RTL8188EU/RTL8188CUS in STA mode. Reviewed by: kevlo Approved by: adrian (mentor) Obtained from: NetBSD (mostly) Differential Revision: https://reviews.freebsd.org/D4966
* | session: avoid proctree lock on proc exit when possiblemjg2016-01-203-53/+75
| | | | | | | | | | | | We can get away with the common case with only proc lock held. Reviewed by: kib
* | urtwn: rework debug handlingavos2016-01-203-43/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | - Use bitmap for debug output selection. - Add few new messages (one for URTWN_DEBUG_BEACON and another one for URTWN_DEBUG_INTR). - Replace an undocumented URTWN_DEBUG definition with USB_DEBUG. Tested with RTL8188EU / RTL8188CUS in IBSS / HOSTAP modes. Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D4959
OpenPOWER on IntegriCloud