aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* For MD_PRELOAD type md(4) devices, if there is a file name in the preloadedStephen J. Kiernan2017-02-132-4/+10
| | | | | | | | | | | | | | | | | | | meta-data, copy it into the softc structure. When returning md(4) device details to the caller, include the file name in any MD_PRELOAD type devices if it is set (first character is not NUL.) In mdconfig, for "preload" type md(4) devices, if there is file config available, print it in the file column of the output. Reviewed by: brooks Approved by: sjg (mentor) MFC after: 1 month Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D9529 Notes: svn path=/head/; revision=313701
* Remove IPsec related PCB code from SCTP.Andrey V. Elsukov2017-02-136-64/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The inpcb structure has inp_sp pointer that is initialized by ipsec_init_pcbpolicy() function. This pointer keeps strorage for IPsec security policies associated with a specific socket. An application can use IP_IPSEC_POLICY and IPV6_IPSEC_POLICY socket options to configure these security policies. Then ip[6]_output() uses inpcb pointer to specify that an outgoing packet is associated with some socket. And IPSEC_OUTPUT() method can use a security policy stored in the inp_sp. For inbound packet the protocol-specific input routine uses IPSEC_CHECK_POLICY() method to check that a packet conforms to inbound security policy configured in the inpcb. SCTP protocol doesn't specify inpcb for ip[6]_output() when it sends packets. Thus IPSEC_OUTPUT() method does not consider such packets as associated with some socket and can not apply security policies from inpcb, even if they are configured. Since IPSEC_CHECK_POLICY() method is called from protocol-specific input routine, it can specify inpcb pointer and associated with socket inbound policy will be checked. But there are two problems: 1. Such check is asymmetric, becasue we can not apply security policy from inpcb for outgoing packet. 2. IPSEC_CHECK_POLICY() expects that caller holds INPCB lock and access to inp_sp is protected. But for SCTP this is not correct, becasue SCTP uses own locks to protect inpcb. To fix these problems remove IPsec related PCB code from SCTP. This imply that IP_IPSEC_POLICY and IPV6_IPSEC_POLICY socket options will be not applicable to SCTP sockets. To be able correctly check inbound security policies for SCTP, mark its protocol header with the PR_LASTHDR flag. Reported by: tuexen Reviewed by: tuexen Differential Revision: https://reviews.freebsd.org/D9538 Notes: svn path=/head/; revision=313697
* Rework r313352.Konstantin Belousov2017-02-138-75/+79
| | | | | | | | | | | | | | | Rename kern_vm_* functions to kern_*. Move the prototypes to syscallsubr.h. Also change Mach VM types to uintptr_t/size_t as needed, to avoid headers pollution. Requested by: alc, jhb Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D9535 Notes: svn path=/head/; revision=313696
* MFV r313676: libpcap 1.8.1Xin LI2017-02-13182-11614/+24279
|\ | | | | | | | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=313695
| * Vendor import of libpcap 1.8.1.vendor/libpcap/1.8.1Xin LI2017-02-12227-14656/+24711
| | | | | | | | | | Notes: svn path=/vendor/libpcap/dist/; revision=313676 svn path=/vendor/libpcap/1.8.1/; revision=313677; tag=vendor/libpcap/1.8.1
* | iwi: add 12-14 2GHz channels into channel list.Andriy Voskoboinyk2017-02-131-7/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | Return full channel list via iwi_getradiocaps() method (ieee80211_init_channels() was replaced with iwi_getradiocaps() to be consistent with other drivers). PR: 216923 Submitted and tested by: ds@ukrhub.net (original patch) MFC after: 5 days Notes: svn path=/head/; revision=313694
* | Remove MPSAFE and ARGUSED annotations, ANSI-fy syscall handlers.Konstantin Belousov2017-02-131-71/+10
| | | | | | | | | | | | | | | | | | Discussed with: alc Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=313693
* | Style: wrap long line.Konstantin Belousov2017-02-131-1/+2
| | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 3 days Notes: svn path=/head/; revision=313692
* | Only trigger em_local_timer on queue index 0. This was causing continuousSean Bruno2017-02-121-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | em_local_timer() executions during normal operation and was very likely to cause a lock up on igb(4) devices. Submitted by: Matt Macy (mmacy@nextbsd.org) Reported by: jtl Reviewed by: gallatin Sponsored by: Limelight Networks & Netflix Notes: svn path=/head/; revision=313691
* | Consistently handle negative or wrapping offsets in the mmap(2) syscalls.Konstantin Belousov2017-02-126-14/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For regular files and posix shared memory, POSIX requires that [offset, offset + size) range is legitimate. At the maping time, check that offset is not negative. Allowing negative offsets might expose the data that filesystem put into vm_object for internal use, esp. due to OFF_TO_IDX() signess treatment. Fault handler verifies that the mapped range is valid, assuming that mmap(2) checked that arithmetic gives no undefined results. For device mappings, leave the semantic of negative offsets to the driver. Correct object page index calculation to not erronously propagate sign. In either case, disallow overflow of offset + size. Update mmap(2) man page to explain the requirement of the range validity, and behaviour when the range becomes invalid after mapping. Reported and tested by: royger (previous version) Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=313690
* | Switch copyout_map() to use vm_mmap_object() instead of vm_mmap().Konstantin Belousov2017-02-121-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | This is both a microoptimization and a move of the consumer to more commonly used vm function. Suggested and reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=313688
* | remove l2_padding_needed statistic from zfs arcAndriy Gapon2017-02-121-2/+0
| | | | | | | | | | | | | | | | | | It became obsolete when the Compressed ARC support was committed. MFC after: 1 week Notes: svn path=/head/; revision=313687
* | check remaining space in zfs implementations of vptocnpAndriy Gapon2017-02-122-6/+15
| | | | | | | | | | | | | | | | | | PR: 216939 Submitted by: Iouri V. Ivliev <fbsd@any.com.ru> MFC after: 1 week Notes: svn path=/head/; revision=313686
* | Fix r313284.Dmitry Chagin2017-02-121-20/+26
| | | | | | | | | | | | | | | | | | | | | | | | Members of the syscall argument structures are padded to a word size. So, for COMPAT_LINUX32 we should convert user supplied system call arguments which is 32-bit in that case to the array of register_t. Reported by: Oleg V. Nauman MFC after: 1 week Notes: svn path=/head/; revision=313684
* | lockmgr: implement fast pathMateusz Guzik2017-02-123-65/+256
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The main lockmgr routine takes 8 arguments which makes it impossible to tail-call it by the intermediate vop_stdlock/unlock routines. The routine itself starts with an if-forest and reads from the lock itself several times. This slows things down both single- and multi-threaded. With the patch single-threaded fstats go 4% up and multithreaded up to ~27%. Note that there is still a lot of room for improvement. Reviewed by: kib Tested by: pho Notes: svn path=/head/; revision=313683
* | Use SRCTOP/OBJTOP relative paths where possible; use :H manipulation in lieuEnji Cooper2017-02-1212-69/+67
| | | | | | | | | | | | | | | | | | | | | | | | of ../ elsewhere This simplifies pathing in make/displayed output MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313679
* | Committed without approval from mentor.Ermal Luçi2017-02-1211-86/+28
| | | | | | | | | | | | | | Reported by: gnn Notes: svn path=/head/; revision=313675
* | Enable usb low and full speed devices connected to the imx6 root hubs.Ian Lepore2017-02-122-1/+6
| | | | | | | | | | | | | | | | | | | | This enables the PHY circuitry for UTMI+ level 2 and 3, and sets the flag to tell the ehci code that the root hub has a transaction translator in it. For imx6 we can use the standard ehci_get_port_speed_portsc() function to find out what speed device is connected to the port. Notes: svn path=/head/; revision=313674
* | Remove spaces at end of lineBaptiste Daroussin2017-02-114-14/+14
| | | | | | | | | | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313673
* | Remove useless Li macroBaptiste Daroussin2017-02-111-1/+1
| | | | | | | | | | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313672
* | Use correct date formatBaptiste Daroussin2017-02-111-1/+1
| | | | | | | | | | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313671
* | Escape Sm to avoid confusion with Sm macroBaptiste Daroussin2017-02-111-1/+1
| | | | | | | | | | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313670
* | Properly use .An macro before Authors nameBaptiste Daroussin2017-02-111-3/+6
| | | | | | | | | | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313669
* | Add missing section in manpage referenceBaptiste Daroussin2017-02-111-1/+1
| | | | | | | | | | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313668
* | Remove spaces at EOL and sort correctly the SEE ALSO sectionBaptiste Daroussin2017-02-111-3/+3
| | | | | | | | | | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313667
* | Remove empty space at EOL and escept EdBaptiste Daroussin2017-02-111-4/+4
| | | | | | | | | | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313666
* | Remove useless .Pp after the .Sh macro and remove empty lineBaptiste Daroussin2017-02-111-2/+0
| | | | | | | | | | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313665
* | Escape No to avoid confusion with the No macroBaptiste Daroussin2017-02-111-9/+9
| | | | | | | | | | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313664
* | Add missing section after .Xr referenceBaptiste Daroussin2017-02-111-1/+1
| | | | | | | | | | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313663
* | Add missing -width after -Bl -tagBaptiste Daroussin2017-02-111-1/+1
| | | | | | | | | | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313662
* | Escape Ss to avoid confusion by mdoc parser with the Ss macroBaptiste Daroussin2017-02-111-1/+1
| | | | | | | | | | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313661
* | Remove empty LiBaptiste Daroussin2017-02-111-1/+1
| | | | | | | | | | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313660
* | Remove space at and of lineBaptiste Daroussin2017-02-111-1/+1
| | | | | | | | | | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313659
* | Revert r313565 -- :mmap__bad_arguments passes again after r313655Enji Cooper2017-02-111-2/+0
| | | | | | | | | | | | | | | | PR: 216976 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313657
* | Use SRCTOP to define .include with usr.bin/Makefile.incEnji Cooper2017-02-111-1/+1
| | | | | | | | | | | | | | | | MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313656
* | Change type of the prot parameter for kern_vm_mmap() from vm_prot_t to int.Konstantin Belousov2017-02-112-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the code to pass whole word of the mmap(2) syscall argument prot to the syscall helper kern_vm_mmap(), which can validate all bits. The change provides temporal fix for sys/vm/mmap_test mmap__bad_arguments, which was broken after r313352. PR: 216976 Reported and tested by: ngie Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=313655
* | Use SRCTOP to refer to awk source in contrib/awk and remove unnecessary ↵Enji Cooper2017-02-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AWKSRC prefix for maketab.c The former simplifies pathing in make/displayed output, whereas the latter was just unnecessarily superfluous since .PATH referenced the path to maketab.c earlier on in the Makefile. MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313654
* | Use SRCTOP instead of .CURDIR relative paths with ".."Enji Cooper2017-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | This simplifies pathing in make/displayed output MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313653
* | Use SRCTOP instead of .CURDIR relative paths with ".."Enji Cooper2017-02-111-3/+3
| | | | | | | | | | | | | | | | | | | | This simplifies pathing in make/displayed output MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313652
* | Manipulate OBJDIR with :H when referencing dso directoryEnji Cooper2017-02-111-1/+1
| | | | | | | | | | | | | | | | | | This reduces path lengths, etc in memory with make by a minimal value Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313651
* | Use SRCTOP/OBJTOP and simplify output using :H instead of "../" for directoryEnji Cooper2017-02-111-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | entries This simplifies pathing in make/displayed output MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313650
* | pciconf(8): Replace an assert with errxConrad Meyer2017-02-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | The condition can be hit with simple user input, so it isn't an invariant. Just error out. PR: 217003 Reported by: Vladislav V. Prodan <admin at support.od.ua> Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313647
* | Don't zero out srtt after excess retransmitsRyan Stone2017-02-113-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the TCP stack has retransmitted more than 1/4 of the total number of retransmits before a connection drop, it decides that its current RTT estimate is hopelessly out of date and decides to recalculate it from scratch starting with the next ACK. Unfortunately, it implements this by zeroing out the current RTT estimate. Drop this hack entirely, as it makes it significantly more difficult to debug connection issues. Instead check for excessive retransmits at the point where srtt is updated from an ACK being received. If we've exceeded 1/4 of the maximum retransmits, discard the previous srtt estimate and replace it with the latest rtt measurement. Differential Revision: https://reviews.freebsd.org/D9519 Reviewed by: gnn Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313646
* | loader: implement MEDIA_FILEPATH_DP support in efipartToomas Soome2017-02-111-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The efipart rework did break the ARM systems as the new code is using more exact filters to sort the devices and we need to add support for MEDIA_FILEPATH_DP device paths. PR: 216940 Reported by: karl@denninger.net Reviewed by: allanjude, manu Approved by: allanjude (mentor) Differential Revision: https://reviews.freebsd.org/D9520 Notes: svn path=/head/; revision=313645
* | [net80211] add a sysctl that forces a vap restart.Adrian Chadd2017-02-111-0/+26
| | | | | | | | | | | | | | | | Well, vap restart really does "all restart" for now, which will be a good way of debugging firmware restart issues. Notes: svn path=/head/; revision=313578
* | Adding myself to committers-ports.dot and calendar.freebsdMahdi Mokhtari2017-02-112-0/+4
| | | | | | | | | | | | | | | | | | Submitted by: mmokhi Approved by: feld, mat (mentors) Differential Revision: https://reviews.freebsd.org/D9528 Notes: svn path=/head/; revision=313577
* | Remove sys/boot/pc98 accidentally restored in r313575Ed Maste2017-02-1147-9523/+0
| | | | | | | | | | | | | | Reported by: rpokala Notes: svn path=/head/; revision=313576
* | makefs: make the buffer functions look exactly like the kernel onesEd Maste2017-02-1152-61/+9600
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From NetBSD christos Sat Jan 26 00:19:39 2013 +0000 make the buffer functions look exactly like the kernel ones and add other cruft to make the kernel files compile. ffs.c 1.54 ffs/buf.c 1.13 ffs/buf.h 1.3 ffs/ffs_alloc.c 1.21 ffs/ffs_balloc.c 1.15 Reviewed by: marcel, ngie Obtained from: NetBSD Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D8404 Notes: svn path=/head/; revision=313575
* | Stop including sys/types.h from arm's machine/atomic.h, fix the placesIan Lepore2017-02-115-5/+4
| | | | | | | | | | | | | | | | where atomic.h was being included without ensuring that types.h (via param.h) was included first, as required by atomic(9). Notes: svn path=/head/; revision=313573
* | MFV r313569:313569:313569:Martin Matuska2017-02-114-108/+145
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sync libarchive with vendor Vendor bugfixes: cpio reader sanity fix (OSS-Fuzz 504) WARC reader sanity fixes (OSS-Fuzz 511, 526, 532, 552) mtree reader time parsing fix (OSS-Fuzz 538) XAR reader memleak fix (OSS-Fuzz 551) MFC after: 1 week Notes: svn path=/head/; revision=313572