summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * MFC r329703:hselasky2018-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | Allow LinuxKPI character devices to receive mmap() calls from the Linux binary mode user-space emulation layer. This is a regression issue after r328436, when LinuxKPI character devices started to use DTYPE_DEV in the "f_type" field of the associated file structure(s). Found by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
| * MFC r329472:hselasky2018-02-251-1/+1
| | | | | | | | | | | | | | | | Allow the put_user() function macro to put constant values by using the existing __put_user() macro. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
| * MFC r329509:hselasky2018-02-252-40/+48
| | | | | | | | | | | | | | | | | | Update the ktime type in the LinuxKPI to be a signed 64-bit integer similarly to Linux, to avoid compilation issues. Implement ktime_get_real_seconds(). Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
| * MFC r329825:hselasky2018-02-256-47/+132
| | | | | | | | | | | | | | | | | | | | | | | | Return correct error code to user-space when a system call receives a signal in the LinuxKPI. The read(), write() and mmap() system calls can return either EINTR or ERESTART upon receiving a signal. Add code to figure out the correct return value by temporarily storing the return code from the relevant FreeBSD kernel APIs in the Linux task structure. Sponsored by: Mellanox Technologies
| * MFC r329584:hselasky2018-02-251-0/+3
| | | | | | | | | | | | | | | | Implement list_safe_reset_next() function macro in the LinuxKPI. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
| * MFC r329523 and r329524:hselasky2018-02-251-6/+35
| | | | | | | | | | | | | | Fix implementation of xchg() function macro in the LinuxKPI. The exchange operation must be atomic. Sponsored by: Mellanox Technologies
| * MFC r329519:hselasky2018-02-252-8/+66
| | | | | | | | | | | | | | Implement support for radix_tree_for_each_slot() and radix_tree_exception() in the LinuxKPI and use unsigned long type for the radix tree index. Sponsored by: Mellanox Technologies
| * MFC r329516:hselasky2018-02-251-0/+4
| | | | | | | | | | | | | | | | Implement the KMEM_CACHE() function macro in the LinuxKPI. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
| * MFC r329515:hselasky2018-02-252-1/+7
| | | | | | | | | | | | | | | | | | Make the vm_fault structure in the LinuxKPI compatible with newer versions of the Linux kernel. No functional change. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
| * MFC r329514:hselasky2018-02-251-2/+5
| | | | | | | | | | | | | | | | | | Implement the rcu_dereference_raw() function macro. Make sure all RCU dereferencing use the READ_ONCE() function macro. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
| * MFC r329513:hselasky2018-02-251-0/+5
| | | | | | | | | | | | | | | | | | Implement __GFP_BITS_SHIFT and __GFP_BITS_MASK macros in the LinuxKPI. Add compile time asserts to catch conflicts with native defines. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
| * MFC r329512:hselasky2018-02-251-0/+7
| | | | | | | | | | | | | | | | Implement __list_del_entry() helper functions in the LinuxKPI. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
| * MFC r329511:hselasky2018-02-251-0/+14
| | | | | | | | | | | | | | | | Implement file_inode() and call_mmap() helper functions in the LinuxKPI. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
| * MFC r329510:hselasky2018-02-252-5/+47
| | | | | | | | | | | | | | | | | | Refactor dentry structure into its own header file in the LinuxKPI similary to Linux. No functional change. Implement d_inode() helper function. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
| * MFC r329477:hselasky2018-02-251-0/+3
| | | | | | | | | | | | | | Implement spin_trylock_irq() function macro in the LinuxKPI. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
| * MFC r329476:hselasky2018-02-251-0/+5
| | | | | | | | | | | | | | Stub more lockdep function macros in the LinuxKPI. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
| * MFC r329475:hselasky2018-02-251-0/+5
| | | | | | | | | | | | | | Implement get_task_pid() function macro in the LinuxKPI. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
| * MFC r329470:hselasky2018-02-251-3/+9
| | | | | | | | | | | | | | | | | | Add support for printk_ratelimit() function macro and improve the existing printk_ratelimited() function macro to return a boolean stating if there was a printout, true, or not, false. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
| * MFC r329468:hselasky2018-02-251-0/+7
| | | | | | | | | | | | | | Add support for kref_read() function in the LinuxKPI. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
| * MFC r329467:hselasky2018-02-251-0/+6
| | | | | | | | | | | | | | Add support for mmgrab() function in the LinuxKPI. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
| * MFC r329466:hselasky2018-02-251-0/+2
| | | | | | | | | | | | | | Add support for __percpu and __weak macros in the LinuxKPI. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
| * MFC r329465:hselasky2018-02-253-5/+41
| | | | | | | | | | | | | | | | Move the IRQ_RETVAL() and irqreturn definitions to irqreturn.h in the LinuxKPI to be compatible with Linux. No functional change. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
| * MFC r329464:hselasky2018-02-251-3/+5
| | | | | | | | | | | | | | | | | | Add checks for valid IRQ tag before setting up or tearing down an interrupt handler in the LinuxKPI. This is needed when the interrupt handler is disabled before freeing the interrupt. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
| * MFC r329447:hselasky2018-02-251-4/+4
| | | | | | | | | | | | | | | | | | | | Compile in the LinuxKPI. Flexible array members are not allowed in a union. Use a zero length array instead. Reported by: jbeich@ Sponsored by: Mellanox Technologies
| * MFC r329378:hselasky2018-02-251-0/+15
| | | | | | | | | | | | | | Implement mutex_trylock_recursive() in the LinuxKPI. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
| * MFC r329377:hselasky2018-02-251-0/+16
| | | | | | | | | | | | | | Implement memdup_user_nul() in the LinuxKPI. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
| * MFC r329376:hselasky2018-02-252-0/+21
| | | | | | | | | | | | | | Implement tasklet_enable() and tasklet_disable() in the LinuxKPI. Requested by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
| * MFC r329372:hselasky2018-02-251-0/+32
| | | | | | | | | | | | | | Implement enable_irq() and disable_irq() in the LinuxKPI. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
| * MFC r329371:hselasky2018-02-251-30/+35
| | | | | | | | | | | | | | | | Allow the cmpxchg() macro in the LinuxKPI to work on pointers without generating compiler warnings, -Wint-conversion . Requested by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
| * MFC r329521:markj2018-02-251-1/+1
| | | | | | | | Don't include DMAR map entry zone items in kernel dumps.
| * MFC r329361:cy2018-02-242-3/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Document memset_s(3). memset_s(3) is defined in C11 standard (ISO/IEC 9899:2011) K.3.7.4.1 The memset_s function (p: 621-622) Fix memset(3) portion of the man page by replacing the first argument (destination) "b" with "dest", which is more descriptive than "b". This also makes it consistent with the term used in the memset_s() portion of the man page. See also http://en.cppreference.com/w/c/string/byte/memset. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D13682
| * MFC r329561:ae2018-02-241-1/+14
| | | | | | | | | | | | | | Check packet length to do not make out of bounds access. Also save ah_nxt value to use it later, since ah pointer can become invalid. Reported by: Maxime Villard <max at m00nbsd dot net>
| * MFC 327803: Flesh out static dtrace probes for /dev/crypto ioctl errors.jhb2018-02-231-18/+84
| | | | | | | | | | | | | | In particular, no probes were present for AEAD requests, but also for some other error cases in other ioctl requests. Sponsored by: Chelsio Communications
| * MFC of 329749.mckusick2018-02-231-1/+3
| | | | | | | | Fix a read past the end of a buffer in fsck.
| * MFC r323508:rpokala2018-02-231-8/+11
| | | | | | | | | | | | When doing a non-interactive installation, don't display an interactive warning about a filesystem which doesn't have a mountpoint. Presumably, the person who wrote the install script knew what they were doing.
| * MFC r329416:kib2018-02-231-9/+0
| | | | | | | | Remove unused symbols.
| * MFC r329091: Add sysctls for dnode block and indirect block shifts.mav2018-02-231-0/+6
| |
| * MFC r329295:rpokala2018-02-221-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Panasas discovered that ioctl(SIOCGLAGGPORT) returns ENOTTY for mxge(4) when the NIC is not a member of a lagg. This came as a surprise, because the SIOCGLAGGPORT handler in if_lagg.c only returns ENOENT (if run against the laggX interface, rather than a physical port) or EINVAL (if run against a non-member physical port). This behavior was not seen with other drivers, such as bge(4), igb(4), and cxl(4). When I compared their respective ioctl handlers, I found that they all called ether_ioctl() for the default (i.e. unhandled) case; by contrast, mxge(4) only calls ether_ioctl() for two specific cases, and returns ENOTTY for the default case. Remove the two cases which explicitly call ether_ioctl(), and let the default case call it instead. This matches what the vast majority of the NIC drivers do.
| * MFC r326633 r327282 r328085 r329311:eadler2018-02-221-73/+517
| | | | | | | | share: update pci_vendors to 2018.02.15
| * MFC r328605:asomers2018-02-221-1/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | zfsd: Don't spare a vdev that's being replaced If a zfs pool contains a replacing vdev (either created manually by "zpool replace" or by zfsd(8) via autoreplace by physical path) and then new spares get added to the pool, zfsd shouldn't use one to replace the drive that is already being replaced. That's a waste of resources that just slows down the rebuild. PR: 225547 Sponsored by: Spectra Logic Corp
| * MFC r328296:asomers2018-02-222-2/+2
| | | | | | | | | | | | sys/netinet6: fix typos in comments. No functional change. Sponsored by: Spectra Logic Corp
| * MFC r328266:asomers2018-02-222-21/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | mlock(2): correct documentation for error conditions. The man page is years out of date regarding errors. Our implementation _does_ allow unaligned addresses, and it _does_not_ check for negative lengths, because the length is unsigned. It checks for overflow instead. Update the tests accordingly. Reviewed by: bcr Differential Revision: https://reviews.freebsd.org/D13826
| * MFC r328108:asomers2018-02-225-11/+138
| | | | | | | | | | | | | | | | gnop(8): add the ability to set a nop provider's physical path While I'm here, expand the existing tests a bit. Differential Revision: https://reviews.freebsd.org/D13579
| * MFC r326399:asomers2018-02-221-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix assertion when ZFS fails to open certain devices "panic: vdev_geom_close_locked: cp->private is NULL" This panic will result if ZFS fails to open a device due to either of the following reasons: 1) The device's sector size is greater than 8KB. 2) ZFS wants to open the device RW, but it can't be opened for writing. The solution is to change the initialization order to ensure that the assertion will be satisfied. PR: 221066 Reported by: David NewHamlet <wheelcomplex@gmail.com> Reviewed by: avg Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D13278
| * MFC 323889: Place the AAD before the plaintext/ciphertext for CIOCRYPTAEAD.jhb2018-02-221-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | Software crypto implementations don't care how the buffer is laid out, but hardware implementations may assume that the AAD is always before the plain/cipher text and that the hash/tag is immediately after the end of the plain/cipher text. In particular, this arrangement matches the layout of both IPSec packets and TLS frames. Linux's crypto framework also assumes this layout for AEAD requests. Sponsored by: Chelsio Communications
| * MFC r323067, r323184, r323185, r323195, r323196 (by cem)truckman2018-02-2212-7/+358
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ------------------------------------------------------------------------ r323067 | cem | 2017-08-31 11:39:18 -0700 (Thu, 31 Aug 2017) | 4 lines amdtemp.4: Update BKDG URL to current location Sponsored by: Dell EMC Isilon ------------------------------------------------------------------------ r323184 | cem | 2017-09-05 08:13:41 -0700 (Tue, 05 Sep 2017) | 10 lines Add smn(4) driver for AMD System Management Network AMD Family 17h CPUs have an internal network used to communicate between the host CPU and the PSP and SMU coprocessors. It exposes a simple 32-bit register space. Reviewed by: avg (no +1), mjoras, truckman Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D12217 ------------------------------------------------------------------------ r323185 | cem | 2017-09-05 08:19:14 -0700 (Tue, 05 Sep 2017) | 13 lines amdtemp(4): Add support for Family 17h temperature sensor The sensor value is formatted similarly to previous models (same bitfield sizes, same units), but must be read off of the internal System Management Network (SMN) from the System Management Unit (SMU) co-processor. PR: 218264 Reported and tested by: Nils Beyer <nbe AT renzel.net> Reviewed by: avg (no +1), mjoras, truckman Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D12217 ------------------------------------------------------------------------ r323195 | cem | 2017-09-05 13:35:25 -0700 (Tue, 05 Sep 2017) | 8 lines amdtemp(4): Do not probe not matching hostbridges Some systems have hostbs that do not match our PCI device id criteria. Detect and ignore these devices in probe. PR: 218264 Sponsored by: Dell EMC Isilon ------------------------------------------------------------------------ r323196 | cem | 2017-09-05 14:00:33 -0700 (Tue, 05 Sep 2017) | 8 lines amdsmn(4): Do not probe not matching hostbridges Similar to r323195, but for amdsmn(4) driver (which borrowed some design). Ignore hostbs that do not match our PCI device id criteria. Sponsored by: Dell EMC Isilon PR: 218264 Differential Revision: https://reviews.freebsd.org/D12217
| * MFC r329525:brooks2018-02-213-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | Correct/improve the descriptions if kern.ipc.(shmsegs,sema,msqids). The description of kern.ipc.shmsegs was wrong since 2005. I updated the others (which were more correct) to match. PR: 225933 Reviewed by: cem Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14391
| * MFC r329256:kib2018-02-211-20/+7
| | | | | | | | Cleanup unused page argument for vm_reserv_break().
| * MFC r329254:kib2018-02-211-0/+4
| | | | | | | | Ensure memory consistency on COW.
| * MFC r329252:kib2018-02-211-0/+6
| | | | | | | | Do not call pmap_enter() with invalid protection mode.
OpenPOWER on IntegriCloud