aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge ACPICA 20170531.Jung-uk Kim2017-06-01115-1195/+6731
|\ | | | | | | Notes: svn path=/head/; revision=319365
| * Import ACPICA 20170531.vendor/acpica/20170531Jung-uk Kim2017-05-31125-1430/+7969
| | | | | | | | | | Notes: svn path=/vendor-sys/acpica/dist/; revision=319363 svn path=/vendor-sys/acpica/20170531/; revision=319364; tag=vendor/acpica/20170531
| * Import ACPICA 20170303.vendor/acpica/20170303Jung-uk Kim2017-03-03413-6585/+51049
| | | | | | | | | | Notes: svn path=/vendor-sys/acpica/dist/; revision=314608 svn path=/vendor-sys/acpica/20170303/; revision=314609; tag=vendor/acpica/20170303
* | parse.c parse_stringStephen J. Kiernan2017-05-311-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When parse_semi fails, free s before returning parse.c parse_numeric_aggregate The memory assigned to bufp is complicated, it can either be from the input parameter buf or allocated locally. Introduce a new variable lbufp to track when it is assigned locally and to free it when appropriate. Submitted by: Thomas Rix <trix@juniper.net> Reviewed by: jhb Approved by: sjg (mentor) Obtained from: Juniper Networks, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D9899 Notes: svn path=/head/; revision=319361
* | Add MD_VERIFY option to enable O_VERIFY in open for vnode type.Stephen J. Kiernan2017-05-318-3/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add -o [no]verify option to mdconfig (and document in man page.) Implement GEOM attribute MNT::verified to ask md if the backing vnode is verified. Check for MNT::verified in cd9660 mount to flag the mount as MNT_VERIFIED if the underlying device has been verified. Reviewed by: rwatson Approved by: sjg (mentor) Obtained from: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D2902 Notes: svn path=/head/; revision=319358
* | Minor code optimisation.Hans Petter Selasky2017-05-311-2/+2
| | | | | | | | | | | | | | | | | | Avoid locking the global CUSE lock when the polling flags are zero. MFC after: 1 week Notes: svn path=/head/; revision=319355
* | MFV: r319352Jung-uk Kim2017-05-3159-54/+331
|\ \ | | | | | | | | | | | | | | | | | | Merge byacc 20170430. Notes: svn path=/head/; revision=319354
| * | Import byacc 20170430.vendor/byacc/20170430Jung-uk Kim2017-05-3159-54/+331
| | | | | | | | | | | | | | | Notes: svn path=/vendor/byacc/dist/; revision=319352 svn path=/vendor/byacc/20170430/; revision=319353; tag=vendor/byacc/20170430
* | | Fix typo in Driver Type A/C/D capability checks in sdhci.Imre Vadász2017-05-311-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the SDHCI_CAN_DRIVE_TYPE_A/_C/_D masks to check for Driver Type support, instead of using the SDHCI_CTRL2_DRIVER_TYPE_A/_C/_D values which are meant for setting the Driver Type in the HOST_CONTROL2 register. Approved by: adrian (mentor), jmcneill Differential Revision: https://reviews.freebsd.org/D10999 Notes: svn path=/head/; revision=319350
* | | [ar71xx] rename AR724X_BASE -> std.AR724XAdrian Chadd2017-05-317-7/+7
| | | | | | | | | | | | Notes: svn path=/head/; revision=319343
* | | makefs: free buf in case of errorEd Maste2017-05-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CID: 270190 Submitted by: Siva Mahadevan <smahadevan@freebsdfoundation.org> Reported by: Coverity Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D11011 Notes: svn path=/head/; revision=319342
* | | Implement print_hex_dump(), print_hex_dump_bytes() andHans Petter Selasky2017-05-311-4/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | printk_ratelimited() in the LinuxKPI. While at it fix the inclusion guard of printk.h to be similar to the rest of the LinuxKPI header files. MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=319341
* | | Properly implement idr_preload() and idr_preload_end() in theHans Petter Selasky2017-05-312-12/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LinuxKPI. MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=319340
* | | Fix integer overflow detection in ddAlan Somers2017-05-313-1/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dd(1) tried to detect whether the seek offset would overflow, but it failed to account for the case where the provided argument was negative and the file was a regular file (negative seeks are allowed for character devices). I fixed it, and added a regression test. Reported by: Coverity CID: 1368659 MFC after: 3 weeks Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=319339
* | | Implement in_atomic() function in the LinuxKPI.Hans Petter Selasky2017-05-312-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=319338
* | | Fix integer overflow in "camcontrol format"Alan Somers2017-05-311-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: Coverity CID: 1011426 MFC after: 1 week Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=319337
* | | Fix uninitialized variable in bootparamd.cAlan Somers2017-05-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restore line that was accidentally deleted in change 318790 Reported by: Coverity CID: 1375855 MFC after: 1 week X-MFC-With: 318790 Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=319336
* | | Properly set the .d_name field in the cdevsw structure for theHans Petter Selasky2017-05-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LinuxKPI. Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=319321
* | | Make sure the VMAP's "vm_file" field is referenced in a LinuxHans Petter Selasky2017-05-311-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compatible way by the linux_dev_mmap_single() function in the LinuxKPI. MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=319320
* | | Remove the VMA handle from its list before calling the LinuxKPI VMAHans Petter Selasky2017-05-311-23/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | close operation to prevent other threads from reusing the VM object handle pointer. MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=319319
* | | Don't acquire a reference on the VM-space when allocating the LinuxKPIHans Petter Selasky2017-05-313-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | task structure to avoid deadlock when tearing down the VM object during a process exit. Found by: markj @ MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=319318
* | | Fix a reference count leak in the LinuxKPI due to calling VM open whenHans Petter Selasky2017-05-311-12/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it shouldn't be called. Background: The Linux VM open operation is called when a new VMA is created on top of the current VMA. This is done through either mremap flow or split_vma, usually due to mlock, madvise, munmap and so on. This is currently not supported by the LinuxKPI. MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=319317
* | | Fixes for refcounting "struct linux_file" in the LinuxKPI.Hans Petter Selasky2017-05-313-12/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Allow "struct linux_file" to be refcounted when its "_file" member is NULL by using its "f_count" field. The reference counts are transferred to the file structure when the file descriptor is installed. - Add missing vdrop() calls for error cases during open(). - Set the "_file" member of "struct linux_file" during open. This allows use of refcounting through get_file() and fput() with LinuxKPI character devices. MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=319316
* | | Make sure the thread's priority is restored for all three cases insideHans Petter Selasky2017-05-311-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | linux_synchronize_rcu_cb() in the LinuxKPI. MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=319312
* | | Update the usr.bin/mkimg golden test output files after ^/head@r319125Enji Cooper2017-05-3124-867/+868
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ^/head@r319125 changed the location of the backup pmbr, requiring the output files to be regenerated, since they're binary disk dumps. The output files were regenerated with "make rebase"--fixed in ^/head@r319294. MFC with: r319125, r319294 PR: 219673 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319295
* | | Fix "make rebase" after ^/head@r315776Enji Cooper2017-05-311-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "make rebase" can be used for rebasing the output files from mkimg after making a change to mkimg. This will come in handy soon, per bug 219673. MFC after: 3 days Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319294
* | | Formalize the dependent/dependency relationship for <foo>.gz.uu vs <foo>Enji Cooper2017-05-311-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This helps ensure that the output files are regenerated if the input files change, after the output files have been created. MFC after: 3 days Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319293
* | | - Add a simple example to uname(1) manual page to show how the hardwareAlexey Dokuchaev2017-05-311-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | platform (returned by -m) can be different from the machine's processor architecture (-p) - Document that make(1) sets universal MACHINE and MACHINE_ARCH variables based on these values Reviewed by: imp, manpages (bjk) Approved by: bjk, imp (implied) Differential Revision: https://reviews.freebsd.org/D10489 Notes: svn path=/head/; revision=319274
* | | Remove NORESOLVE (-R) option from poollist() (ippool -l). It is notCy Schubert2017-05-311-4/+1
| | | | | | | | | | | | | | | | | | | | | used in poollist(). Notes: svn path=/head/; revision=319273
* | | Fix bug in r318997: remove the line which overrides vn_fsid()Konstantin Belousov2017-05-301-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | calculation. Noted by: jhb Reviewed by: rmacklem Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=319253
* | | Regenerate src.conf(5)Enji Cooper2017-05-301-36/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | This contains a number of content changes due to src.opts.mk changes. Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319248
* | | Use .Xr to reference libblacklist(3), blacklistctl(8), and blacklistd(8)Enji Cooper2017-05-302-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | MFC after: now Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319246
* | | Add some miscellaneous definitions to support DRM drivers.Mark Johnston2017-05-308-1/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: hselasky MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D10985 Notes: svn path=/head/; revision=319229
* | | add a rescue/sh sanity check before installworld on the running systemEd Maste2017-05-301-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FreeBSD does not guarantee kernel forward compatibility (that is, running a newer userland on an older kernel). The documented upgrade procedure specifies that installkernel should be performed, followed by a reboot and then installworld. As a sanity check when installing onto the running system (DESTDIR is / or unset), attempt to run "sh echo OK" using rescue from the objdir. If rescue fails (e.g., because the system has not been rebooted and the "old" kernel lacks a system call required by the to-be-installed world), abort the installation. This should avoid ino64 foot-shooting when the proper upgrade procedure is not followed. Reviewed by: allanjude, gjb, kib MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D10987 Notes: svn path=/head/; revision=319219
* | | Fix an unnecessary/incorrect check in the PKTOPT_EXTHDRCPY macro.Jonathan T. Looney2017-05-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This macro allocates memory and, if malloc does not return NULL, copies data into the new memory. However, it doesn't just check whether malloc returns NULL. It also checks whether we called malloc with M_NOWAIT. That is not necessary. While it may be that malloc() will only return NULL when the M_NOWAIT flag is set, we don't need to check for this when checking malloc's return value. Further, in this case, the check was not completely accurate, because it checked for flags == M_NOWAIT, rather than treating it as a bit field and checking for (flags & M_NOWAIT). Reviewed by: ae MFC after: 2 weeks Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D10942 Notes: svn path=/head/; revision=319216
* | | Fix two places in the ICMP6 code where we could dereference a NULL pointerJonathan T. Looney2017-05-301-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the icmp6_input() function. When processing an ICMP6_ECHO_REQUEST, if IP6_EXTHDR_GET fails, it will set nicmp6 and n to NULL. Therefore, we should condition our modification to nicmp6 on n being not NULL. And, when processing an ICMP6_WRUREQUEST in the (mode != FQDN) case, if m_dup_pkthdr() fails, the code will set n to NULL. However, the very next line dereferences n. Therefore, when m_dup_pkthdr() fails, we should discontinue further processing and follow the same path as when m_gethdr() fails. Reported by: clang static analyzer Reviewed by: ae MFC after: 2 weeks Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D10941 Notes: svn path=/head/; revision=319215
* | | Enforce the limit on ICMP messages before doing work to formulate theJonathan T. Looney2017-05-302-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | response. Delete an unneeded rate limit for UDP under IPv6. Because ICMP6 messages have their own rate limit, it is unnecessary to apply a second rate limit to UDP messages. Reviewed by: glebius MFC after: 2 weeks Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D10387 Notes: svn path=/head/; revision=319214
* | | fix indentationAndriy Gapon2017-05-301-1/+1
| | | | | | | | | | | | | | | | | | | | | MFC after: 4 days Notes: svn path=/head/; revision=319212
* | | Introduce additional locks when releasing TX resources and buffers in ENAZbigniew Bodek2017-05-301-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There could be race condition with TX cleaning routine when cleaning mbufs, when it was called directly from main sending thread (ena_mq_start). Submitted by: Michal Krawczyk <mk@semihalf.com> Obtained from: Semihalf Sponsored by: Amazon.com Inc. Differential revision: https://reviews.freebsd.org/D10927 Notes: svn path=/head/; revision=319201
* | | Move ENA's hw stats updating routine to separate taskZbigniew Bodek2017-05-302-16/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initially, stats were being updated each time OS was requesting for the first statistic. To read statistics from hw, condvar was used. cv_timedwait cannot be called when unsleepable lock is held, and this happens when FreeBSD is requesting statistic. Seperate task is reading statistics from NIC each 1 second. Submitted by: Michal Krawczyk <mk@semihalf.com> Obtained from: Semihalf Sponsored by: Amazon.com Inc. Differential revision: https://reviews.freebsd.org/D10926 Notes: svn path=/head/; revision=319200
* | | Add error handling to the ENA driver if init of the reset task failsZbigniew Bodek2017-05-301-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, to simplify cleaning routine, reset task is initialized before allocating statistics and other resources. Submitted by: Michal Krawczyk <mk@semihalf.com> Obtained from: Semihalf Sponsored by: Amazon.com Inc. Differential revision: https://reviews.freebsd.org/D10925 Notes: svn path=/head/; revision=319199
* | | Add locks before each ena_up and ena_downZbigniew Bodek2017-05-301-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lock only ena_up and ena_down calls in ioctl handler, instead of whole ioctl. Locking ioctl with sx lock that is sleepable, is not allowed in some cases, e.g. when multicast options are being changed. Additional locking was added in deatch function to prevent race condition with ioctl function. Submitted by: Michal Krawczyk <mk@semihalf.com> Obtained from: Semihalf Sponsored by: Amazon.com Inc. Differential revision: https://reviews.freebsd.org/D10924 Notes: svn path=/head/; revision=319198
* | | Add mbuf defragmentation to the ENA driverZbigniew Bodek2017-05-303-16/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When mbuf chain is too long and device cannot handle that number of segments in DMA transaction, mbuf chain will be defragmented. Initially, driver was dropping all mbuf chains that were exceeding supported number of segments. Submitted by: Michal Krawczyk <mk@semihalf.com> Obtained from: Semihalf Sponsored by: Amazon.com Inc. Differential revision: https://reviews.freebsd.org/D10923 Notes: svn path=/head/; revision=319197
* | | mtx: fix whitespace damage in _mtx_trylock_flags_Mateusz Guzik2017-05-301-4/+4
| | | | | | | | | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=319167
* | | psm: add support for evdev protocolVladimir Kondratyev2017-05-291-24/+582
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both relative and absolute multitouch modes are supported. To enable psm(4) evdev support one should: 1. Add `device evdev` and `options EVDEV_SUPPORT` to kernel config file 2. Add hw.psm.elantech_support=1 or hw.psm.synaptics_support=1 to /boot/loader.conf for activation of absolute mode on touchpads 3. Add kern.evdev.rcpt_mask=12 to /etc/sysctl.conf to enable psm event sourcing and disable sysmouse Reviewed by: gonzo Approved by: gonzo (mentor) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D10265 Tested by: wulf, Jan Kokemueller (Lenovo devs) Notes: svn path=/head/; revision=319162
* | | Also add libzfs and libmilter to the 64-bit inode library bump list.Koop Mast2017-05-291-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Make the comment more generic. Approved by: emaste@ Notes: svn path=/head/; revision=319161
* | | 64-bit inode commit bumped libarchive library version, record the old one.Koop Mast2017-05-291-0/+2
| | | | | | | | | | | | | | | | | | | | | Approved by: emaste@ Notes: svn path=/head/; revision=319160
* | | :dnvlist_get_string__default_value: fix a bogus string comparison testEnji Cooper2017-05-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check actual_value vs "5", not "5" vs itself. MFC after: 3 days Reported by: Coverity CID: 1362021 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319159
* | | logarithm_test: assert that feclearexcept succeedsEnji Cooper2017-05-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This helps ensure that test preconditons are fulfilled. MFC after: 3 days Reported by: Coverity CID: 1346572 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319158
* | | fma_test: mute a warning about unreachable code on amd64 by restructuringEnji Cooper2017-05-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the #ifdef block to only handle the rest of the logic in the loop in the #else case. MFC after: 3 days Reported by: Coverity CID: 1346844 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319157