summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFHgjb2016-01-25627-37240/+19812
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * Do not use blk_write_cont() and remove it. There si no need to callskra2016-01-251-20/+9
| | | | | | | | | | | | | | blk_flush() between two writes by physical address when these are PAGE_SIZE aligned. Fix some style nits.
| * Make minidump more like its i386 original back as with new pmap dumpskra2016-01-251-15/+15
| | | | | | | | | | | | | | interface all used physical addresses are PAGE_SIZE aligned. Add missing copyright. This is a follow up to r294722.
| * Create new pmap dump interface for minidump and use it for existingskra2016-01-257-134/+149
| | | | | | | | | | | | | | | | | | pmap implementations on ARM. This way minidump code can be used without any platform specific modification. Also, this is the last piece missing for ARM_NEW_PMAP. Differential Revision: https://reviews.freebsd.org/D5023
| * Style.br2016-01-251-1/+2
| |
| * Do build libproc and librtld_db for RISC-V as well.br2016-01-251-1/+1
| |
| * We don't support libdtrace for RISC-V yet.br2016-01-251-1/+1
| |
| * Convert TCP mtu checks to the new routing KPI.melifaro2016-01-251-31/+22
| |
| * Fix flowtable part missed in r294706.melifaro2016-01-251-1/+1
| |
| * Add allwinner_machdep.h, it was missed in r294698.andrew2016-01-251-0/+47
| |
| * MFP r287070,r287073: split radix implementation and route table structure.melifaro2016-01-2518-305/+442
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are number of radix consumers in kernel land (pf,ipfw,nfs,route) with different requirements. In fact, first 3 don't have _any_ requirements and first 2 does not use radix locking. On the other hand, routing structure do have these requirements (rnh_gen, multipath, custom to-be-added control plane functions, different locking). Additionally, radix should not known anything about its consumers internals. So, radix code now uses tiny 'struct radix_head' structure along with internal 'struct radix_mask_head' instead of 'struct radix_node_head'. Existing consumers still uses the same 'struct radix_node_head' with slight modifications: they need to pass pointer to (embedded) 'struct radix_head' to all radix callbacks. Routing code now uses new 'struct rib_head' with different locking macro: RADIX_NODE_HEAD prefix was renamed to RIB_ (which stands for routing information base). New net/route_var.h header was added to hold routing subsystem internal data. 'struct rib_head' was placed there. 'struct rtentry' will also be moved there soon.
| * hyperv/vmbus: Avoid extra copy of page information.sephe2016-01-251-18/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | The page information array could contain up to 32 elements (i.e. 512B). And on network side w/ TSO, 11+ (176B+) elements, i.e. ~44K TSO packet, in the page information array is quite common. This saves us some cpu cycles. Reviewed by: adrian, delphij Approved by: adrian (mentor) Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D4992
| * Remove unused radix_mpath definitions.melifaro2016-01-251-3/+0
| |
| * hyperv/hn: Trust host TCP segment checksum verification by default.sephe2016-01-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | According to all available information, VMSWITCH always does the TCP segment checksum verification before sending the segment to guest. Reviewed by: adrian, delphij, Hongjiang Zhang <honzhan microsoft com> Approved by: adrian (mentor) Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D4991
| * hyperv/hn: Remove unnecessary zeroing out the netvsc_packetsephe2016-01-251-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | All used fields are setup one by one, so there is no need to zero out this large struct. While I'm here, move the stack variable near its usage. Reviewed by: adrian, delphij, Jun Su <junsu microsoft com> Approved by: adrian (mentor) Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D4978
| * hyperv/hn: Use m_copydata for chimney sending.sephe2016-01-251-14/+9
| | | | | | | | | | | | | | | | | | While I'm here, move stack variables near their usage. Reviewed by: adrian, delphij, Jun Su <junsu microsoft com> Approved by: adrian (mentor) Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D4977
| * hyperv/hn: Partly rework transmission pathsephe2016-01-256-148/+559
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Avoid unnecessary malloc/free on transmission path. - busdma(9)-fy transmission path. - Properly handle IFF_DRV_OACTIVE. This should fix the network stalls reported by many. - Properly setup TSO parameters. - Properly handle bpf(4) tapping. This 5 times the performance during TCP sending test, when there is one bpf(4) attached. - Allow size of chimney sending be tuned on a running system. Default value still needs more test to determine. Reviewed by: adrian, delphij Approved by: adrian (mentor) Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D4972
| * elfdump: handle STT_SPARC_REGISTERemaste2016-01-251-4/+24
| | | | | | | | | | | | | | | | | | | | STT_SPARC_REGISTER is a SPARC-specific symbol type specified by the Sparcv9 ABI to provide some information on register use by the object. Also rework st_info type lookup to avoid out-of-bounds array access. MFC after: 1 week Sponsored by: The FreeBSD Foundation
| * Update the Allwinner kernels:andrew2016-01-255-15/+64
| | | | | | | | | | | | | | | | * Use the ARM PLATFORM framework * Use ARM_INTRNG on teh A20 as it has a GICv2 * Add a method to find which Allwinner SoC we are running on Differential Revision: https://reviews.freebsd.org/D5059
| * net80211: reduce stack usage for ieee80211_ioctl*() methods.avos2016-01-241-89/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use malloc(9) for - struct ieee80211req_wpaie2 (518 bytes, used in ieee80211_ioctl_getwpaie()) - struct ieee80211_scan_req (128 bytes, used in setmlme_assoc_adhoc() and ieee80211_ioctl_scanreq()) Also, drop __noinline workarounds; stack overflow is not reproducible with recent compilers. Tested with Clang 3.7.1, GCC 4.2.1 (from 9.3-RELEASE) and 4.9.4 (with -fstack-usage flag) Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D5041
| * net80211: reduce code duplicationavos2016-01-241-2/+0
| | | | | | | | | | | | | | | | Do not duplicate code between IEEE80211_IOC_WPAIE and IEEE80211_IOC_WPAIE2 switch cases. Approved by: adrian (mentor) Differential Revision: D5041 (part)
| * ext2fs: passthrough any extra timestamps to the dinode struct.pfg2016-01-241-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | In general we don't trust any of the extended timestamps unless the EXT2F_ROCOMPAT_EXTRA_ISIZE feature is set. However, in the case where we freshly allocated a new inode the information is valid and it is better to pass it along instead of leaving the value undefined. This should have no practical effect but should reduce the amount of garbage if EXT2F_ROCOMPAT_EXTRA_ISIZE is set, like in cases where the filesystem is converted from ext3 to ext4. MFC after: 4 days
| * sctp_sendx() needs to provide the assoc_id back.tuexen2016-01-241-2/+7
| | | | | | | | MFC after: 3 days
| * sh: Constify internal representation in expand.c.jilles2016-01-241-22/+28
| | | | | | | | | | | | | | Forbid (temporary or permanent) modifications of the strings in NARG nodes during expansion. Tilde expansion now needs to copy the username for the terminating '\0'.
| * Fix bug in the readpassphrase(3) function, which can be exposedsobomax2016-01-241-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by application closing its stdin (i.e. STDIN_FILENO) prior to calling readpassphrase WITHOUT setting RPP_STDIN. What happens then is that the readpassphrase would open /dev/tty, and since file descriptors are reused, the call would return first unused fd, which is 0 which is also STDIN_FILENO. Then due to the usage of "input != STDIN_FILENO" in the code to do its logic, that would result in noecho flags not set on that file descriptor, which was original issue I've been trying to fix. In addition to that, the readpassphrase() would leak file descriptor on its way out, so fix that one as well. This problem can be tested with: $ ssh-add - < /tmp/myprivate.key The password will not be hidden as it should and ktrace will show: 53326 ssh-add CALL open(0x80142443c,0x100002<O_RDWR|O_CLOEXEC>,<unused>0x165f030) 53326 ssh-add NAMI "/dev/tty" 53326 ssh-add RET open 0 53326 ssh-add CALL sigprocmask(SIG_SETMASK,0x802eb1324,0x7fffffffd5e0) 53326 ssh-add RET sigprocmask 0 53326 ssh-add CALL sigaction(SIGALRM,0x7fffffffd630,0x7fffffffd610) Instead of: 57690 ssh-add CALL open(0x80142443c,0x100002<O_RDWR|O_CLOEXEC>,<unused>0x165f030) 57690 ssh-add NAMI "/dev/tty" 57690 ssh-add RET open 4 57690 ssh-add CALL ioctl(0x4,TIOCGETA,0x7fffffffd860) 57690 ssh-add RET ioctl 0 57690 ssh-add CALL ioctl(0x4,TIOCSETAF,0x7fffffffd680) 57690 ssh-add RET ioctl 0 57690 ssh-add CALL sigprocmask(SIG_SETMASK,0x802eb1324,0x7fffffffd620) 57690 ssh-add RET sigprocmask 0 57690 ssh-add CALL sigaction(SIGALRM,0x7fffffffd670,0x7fffffffd650) For the case when the key is read from the file. Technically this can also be workaround'ed at the application side by not closing the STDIN_FILENO in the first place, but readpassphrase(3) doesn't need to make any assumptions about that. Plus the file descriptor leak confirms that this is an oversight, rather than a deliberate behaviour. MFC after: 1 week
| * sctp_sendv() needs to fill in the association id on return.tuexen2016-01-241-0/+7
| | | | | | | | MFC after: 3 days
| * Bump copyright for change from fbt to syscalldteske2016-01-241-1/+1
| | | | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r294548 r294556
| * Remove an extra newline that crept in.andrew2016-01-241-1/+0
| |
| * Add support for controlling the clocks for the audio codec and DMA engines.andrew2016-01-242-0/+108
| | | | | | | | | | Submitted by: Jared McNeill <jmcneill@invisible.ca> Differential Revision: https://reviews.freebsd.org/D5052
| * The <libutil.h> is an ordinary header file; should sort just like any other.trasz2016-01-246-11/+6
| | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * Fix a typo in a commentdteske2016-01-241-1/+1
| | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10
| * Fix the style of the reading of a nodes xref to make it readable.andrew2016-01-241-4/+3
| |
| * sh: Remove a global variable from cd.c.jilles2016-01-241-14/+15
| |
| * We don't support a.out executables on RISC-V.br2016-01-241-2/+2
| | | | | | | | | | | | | | Reviewed by: emaste Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D5048
| * Add config for RISC-V ISA.br2016-01-241-0/+6
| | | | | | | | | | | | | | Reviewed by: emaste Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D5046
| * Typo in comment.kib2016-01-241-1/+1
| |
| * Add support for RISC-V ISA.br2016-01-242-0/+11
| | | | | | | | | | | | | | Reviewed by: andrew Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D5040
| * Add reset framework, a second part of new 'extended resources' family ofmmel2016-01-244-0/+327
| | | | | | | | | | | | | | | | | | support frameworks (i.e. regulators/phy/tsensors/fuses...). It provides simple unified consumers interface for manipulations with on-chip resets. Reviewed by: ian, imp (paritaly)
| * Add clock framework, a first part of new 'extended resources' family ofmmel2016-01-2414-0/+2304
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | support frameworks(i.e. reset/regulators/phy/tsensors/fuses...). The clock framework significantly simplifies handling of complex clock structures found in modern SoCs. It provides the unified consumers interface, holds and manages actual clock topology, frequency and gating. It's tested on three different ARM boards (Nvidia Tegra TK1, Inforce 6410 and Odroid XU2) and on one MIPS board (Creator Ci20) by kan@. The framework is still far from perfect and probably doesn't have stable interface yet, but we want to start testing it on more real boards and different architectures. Reviewed by: ian, kan (earlier version)
| * ext2: rename some directory index constants.pfg2016-01-241-1/+1
| | | | | | | | | | | | Missed from r294653. Pointyhat: me
| * Fix comment.pfg2016-01-241-1/+1
| |
| * Rename some directory index constants.pfg2016-01-244-7/+7
| | | | | | | | | | | | Directory index was introduced in ext3. We don't always use the prefix to denote the ext2 variant they belong to but when we do we should try to be accurate.
| * ext2: Initialize i_flag after allocation.pfg2016-01-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We use i_flag to carry some flags like IN_E4INDEX which newer ext2fs variants uses internally. fsck.ext3 rightfully complains after our implementation tags non-directory inodes with INDEX_FL. Initializing i_flag during allocation removes the noise factor and quiets down fsck. Patch from: Damjan Jovanovic PR: 206530
| * sh: Use OLDPWD shell variable for 'cd -'.jilles2016-01-231-10/+9
| | | | | | | | | | | | | | | | Per POSIX, 'cd -' should use the OLDPWD shell variable, not internal state. This variable is normally exported. Also, if OLDPWD is not set, fail 'cd -' instead of changing to the current directory.
| * Use different ports in the TCP/UDP testcases with the first set andngie2016-01-231-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the second set (increment the original ports by 10) This avoids issues where the first listening socket might not be torn down by the time it makes it to the second set of testcases. The sockets should likely only be setup once, but this keeps in the spirit of the original testcases, so this will be easier to backport to ^/stable/9 MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
| * Don't run the t_cmsg_len testcase on 64-bit architecturesngie2016-01-231-0/+12
| | | | | | | | | | | | | | | | | | | | | | It always fails when trying to send through the sendit(9) private KPI in the kernel due to a size mismatch between the msghdr and data being sent [*], which suspiciously seems like it's related to sizeof pointers instead of scalars, or something of that ilk MFC after: 1 week PR: 206543, 206544 [*] Sponsored by: EMC / Isilon Storage Division
| * - Don't return immediately in check_xucred, check_scm_creds_cmsgcred, andngie2016-01-231-81/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | check_scm_creds_sockcred after initial != NULL checks have been done for debugging purposes - Use more terse names for bintime (bt), cmesgcred (cmcred), sockcred (sc), and timeval (tv) [*] - Add some debug messages to better understand some of the flow of the test program MFC after: 1 week Requested by: bde [*] Use of the word "terse" (^.^) corrected by: jhb, rpokala [*] Sponsored by: EMC / Isilon Storage Division
| * Document that hashinit(9) can wait for memory to be availablebjk2016-01-231-2/+4
| | | | | | | | | | | | Also tweak nearby grammar while here. Submitted by: Daniel O'Connor (original version)
| * Add a minimal gcc config for RISC-V.br2016-01-232-0/+7
| | | | | | | | | | | | | | | | | | This is required to build csu. Reviewed by: andrew Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D5039
| * o Add gain-level control registers.br2016-01-231-54/+80
| | | | | | | | | | | | o Fix style. Sponsored by: Machdep, Inc.
OpenPOWER on IntegriCloud