aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Grammar fixes for r347690.Konstantin Belousov2019-05-171-3/+3
| | | | | | | | Submitted by: alc MFC after: 3 days Notes: svn path=/head/; revision=347946
* netmap: align if_ptnet to the changes introduced by r347233Vincenzo Maffione2019-05-171-12/+2
| | | | | | | | | | This removes non-functional SCTP checksum offload support. More information in the log message of r347233. MFC after: 2 weeks Notes: svn path=/head/; revision=347944
* powerpc/dtrace: Actually fix stack tracesJustin Hibbits2019-05-172-22/+25
| | | | | | | | | | | | | Fix stack unwinding such that requesting N stack frames in lockstat will actually give you N frames, not anywhere from 0-3 as had been before. lockstat prints the mutex function instead of the caller as the reported locker, but the stack frame is detailed enough to find the real caller. MFC after: 2 weeks Notes: svn path=/head/; revision=347943
* Add a new ioctl for the larger params struct that includes the label.Stephen J. Kiernan2019-05-175-57/+140
| | | | | | | | | | | | | | | We need to make the find_veriexec_file() function available publicly, so rename it to mac_veriexec_metadata_find_file_info() and make it non-static. Bump the version of the veriexec device interface so user space will know the labelized version of fingerprint loading is available. Approved by: sjg Obtained from: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D20295 Notes: svn path=/head/; revision=347942
* Add command to get version of the ioctl interface for the veriexec device.Stephen J. Kiernan2019-05-172-1/+12
| | | | | | | | Obtained from: Juniper Networks, Inc. MFC after: 1 week Notes: svn path=/head/; revision=347941
* Remove the notice that ae(4) will be removed in FreeBSD 13.Brooks Davis2019-05-171-9/+1
| | | | Notes: svn path=/head/; revision=347940
* Better formatting for the logpage sectionScott Long2019-05-171-6/+20
| | | | Notes: svn path=/head/; revision=347939
* Obtain a shared lock instead of exclusive in the MAC/veriexecStephen J. Kiernan2019-05-171-1/+2
| | | | | | | | | | | | | | | | | | | | MAC_VERIEXEC_CHECK_PATH_SYSCALL per-MAC policy system call. When we are checking the status of the fingerprint on a vnode using the per-MAC-policy syscall, we do not need an exclusive lock on the vnode. Even if there is more than one thread requesting the status at the same time, the worst we can end up doing is processing the file more than once. This can potentially be improved in the future with offloading the fingerprint evaluation to a separate thread and blocking until the update completes. But for now the race is acceptable. Obtained from: Juniper Networks, Inc. MFC after: 1 week Notes: svn path=/head/; revision=347938
* sysctls which should be restricted when securelevel is raised should alsoStephen J. Kiernan2019-05-171-2/+20
| | | | | | | | | | | | be restricted when veriexec is enforced. Add mpo_system_check_sysctl method to mac_veriexec which does this. Obtained from: Juniper Networks, Inc. MFC after: 1 week Notes: svn path=/head/; revision=347936
* Fix format strings for some debug messages that could have arguments thatStephen J. Kiernan2019-05-171-9/+12
| | | | | | | | | | | are different types across architectures by using %ju and typecasting to uintmax_t, where appropriate. Obtained from: Juniper Networks, Inc. MFC after: 1 week Notes: svn path=/head/; revision=347935
* Protect commands that are considered dangerous with checks for kmem writeStephen J. Kiernan2019-05-171-11/+33
| | | | | | | | | | | priv. This allows for MAC/veriexec to prevent apps that are not "trusted" from using these commands. Obtained from: Juniper Networks, Inc. MFC after: 1 week Notes: svn path=/head/; revision=347934
* Ensure we have obtained a lock on the process before callingStephen J. Kiernan2019-05-171-1/+10
| | | | | | | | | | | mac_veriexec_get_executable_flags(). Only try locking/unlocking if the caller has not already acquired the process lock. Obtained from: Juniper Networks, Inc. MFC after: 1 week Notes: svn path=/head/; revision=347933
* Instead of individual conditional statements to look for each hypervisorStephen J. Kiernan2019-05-174-23/+70
| | | | | | | | | | | | | | | | | type, use a table to make it easier to add more in the future, if needed. Add VirtualBox detection to the table ("VBoxVBoxVBox" is the hypervisor vendor string to look for.) Also add VM_GUEST_VBOX to the VM_GUEST enumeration to indicate VirtualBox. Save the CPUID base for the hypervisor entry that we detected. Driver code may need to know about it in order to obtain additional CPUID features. Approved by: bryanv, jhb Differential Revision: https://reviews.freebsd.org/D16305 Notes: svn path=/head/; revision=347932
* Free microcode memory later.Konstantin Belousov2019-05-171-1/+1
| | | | | | | | | | | | | | With lockless DI, pmap_remove() requires operational thread lock, which is initialized at SI_SUB_RUN_QUEUE for thread0. Move it even later where APs are started, the moment after which other boot memory like trampoline stacks is already being freed. Reported by: gtetlow Sponsored by: The FreeBSD Foundation MFC after: 30 days Notes: svn path=/head/; revision=347931
* pci: ecam: Correctly parse memory and IO regionEmmanuel Vadot2019-05-172-8/+7
| | | | | | | | | | | | When activating a resource do not compare the resource id to the adress. Treat IO region as MEMORY region too. Submitted by: Tuan Phan <tphan@amperecomputing.com> (Original Version) Sponsored by: Ampere Computing, LLC Differential Revision: https://reviews.freebsd.org/D20214 Notes: svn path=/head/; revision=347930
* pci: ecam: Do not warn on mismatch of bus_endEmmanuel Vadot2019-05-171-8/+4
| | | | | | | | | | | | | | We cannot know the bus end number before parsing the MCFG table so don't set the bus_end before that. If the MCFG table doesn't exist we will set the configuration base address based on the _CBA value and set the bus_end to the maximal number allowed by PCI. Sponsored by: Ampere Computing, LLC Differential Revision: https://reviews.freebsd.org/D20213 Notes: svn path=/head/; revision=347929
* Implement the ffs and fls functions, and their longer counterparts, inDoug Moore2019-05-172-6/+57
| | | | | | | | | | | | | | cpufunc, in terms of __builtin_ffs and the like, for arm64 architectures, and use those, rather than the simple libkern implementations, in building arm64 kernels. Tested by: greg_unrelenting.technology (earlier version) Reviewed by: alc Approved by: kib (mentor) Differential Revision: https://reviews.freebsd.org/D20250 Notes: svn path=/head/; revision=347927
* FCP-101: correct date of device driver removal.Brooks Davis2019-05-171-1/+1
| | | | Notes: svn path=/head/; revision=347926
* FCP-101: Bump __FreeBSD_version for device removal.Brooks Davis2019-05-171-1/+1
| | | | | | | | | Bump accidentally omitted from r347924 due to a rebase accident. Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347925
* FCP-101: Bump __FreeBSD_version for driver removal.Brooks Davis2019-05-172-5/+0
| | | | | | | | | Remove gone_by_fcp101_dev macro. Remove orphaned comment. Notes: svn path=/head/; revision=347924
* FCP-101: Remove xe(4)Brooks Davis2019-05-1712-3459/+2
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347923
* FCP-101: Remove wb(4)Brooks Davis2019-05-1712-2308/+1
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347922
* FCP-101: Remove vx(4).Brooks Davis2019-05-1713-1926/+2
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347921
* FCP-101: Remove txp(4).Brooks Davis2019-05-1713-8253/+2
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347920
* FCP-101: Remove tx(4).Brooks Davis2019-05-1713-2402/+2
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347919
* FCP-101: Remove tl(4).Brooks Davis2019-05-1712-3055/+2
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347918
* FCP-101: Remove sn(4).Brooks Davis2019-05-1714-2888/+2
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347917
* FCP-101: Remove sf(4).Brooks Davis2019-05-1714-4321/+2
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347916
* FCP-101: Remove pcn(4).Brooks Davis2019-05-1712-2279/+2
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347915
* FCP-101: Remove fe(4).Brooks Davis2019-05-1714-4709/+1
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347914
* FCP-101: Remove ex(4).Brooks Davis2019-05-1713-2130/+1
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347913
* FCP-101: Remove ep(4).Brooks Davis2019-05-1716-2569/+1
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347912
* FCP-101: Remove ed(4).Brooks Davis2019-05-1725-7689/+2
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347911
* FCP-101: Remove de(4).Brooks Davis2019-05-1713-6694/+2
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347910
* FCP-101: Remove cs(4).Brooks Davis2019-05-1713-2323/+1
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347909
* FCP-101: Remove bm(4).Brooks Davis2019-05-1711-1695/+1
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347908
* FCP-101: remove obsolete 10 and 10/100 Ethernet drivers.Brooks Davis2019-05-171-0/+1
| | | | | | | | | | | | Initial commit adding comment to ObsoleteFiles. Each driver will be removed in a seperate commit to allow later reverts if required. FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347907
* Remove unused define.Tycho Nightingale2019-05-171-8/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=347903
* Fix integer overflow in r346386.Tycho Nightingale2019-05-161-1/+1
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=347896
* Remove resolver_qual from DEFINE_IFUNC/DEFINE_UIFUNC macros.Konstantin Belousov2019-05-1619-82/+76
| | | | | | | | | | | | | In all practical situations, the resolver visibility is static. Requested by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: so (emaste) Differential revision: https://reviews.freebsd.org/D20281 Notes: svn path=/head/; revision=347895
* Fix mergemaster after r347638 and the master.passwd / group move.Brad Davis2019-05-162-4/+9
| | | | | | | | | | | | | | | Check the legacy directory and use it instead if present. Install these first if using beinstall. UPDATING entry to follow. Approved by: allanjude (mentor, in person) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D20279 Notes: svn path=/head/; revision=347893
* LinuxKPI: Finalize import of seq_file.Johannes Lundberg2019-05-162-3/+21
| | | | | | | | | | | | | | seq_file.h and linux_seq_file.c was imported form ports earlier but linux_seq_file.c was never compiled in with the module. With this commit base seq_file will replace ports seq_file and it required a few modifications to not break functionality and build. Reviewed by: hps Approved by: imp (mentor), hps MFC after: 1 week Notes: svn path=/head/; revision=347892
* LinuxKPI: Add in_task macro.Johannes Lundberg2019-05-161-0/+2
| | | | | | | | | | | | This patch is part of D19565 Reviewed by: hps, bwidawsk Approved by: imp (mentor), hps Obtained from: bwidawsk MFC after: 1 week Notes: svn path=/head/; revision=347891
* reinstate 4GB DMA boundary workarounds for bge and aacTycho Nightingale2019-05-163-7/+39
| | | | | | | | | Reviewed by: kib Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D20277 Notes: svn path=/head/; revision=347890
* LinuxKPI: Fix build on powerpc/sparc.Johannes Lundberg2019-05-161-4/+1
| | | | | | | | | | | | Use cmpset instead of testandset in tasklet lock code. Reviewed by: hps Approved by: imp (mentor), hps Obtained from: hps MFC after: 1 week Notes: svn path=/head/; revision=347889
* mips: Implement basic pmap_kenter_device, pmap_kremove_deviceConrad Meyer2019-05-162-0/+40
| | | | | | | | | | | Unbreak mips.BERI_DE4_SDROOT build, which uses device xdma. Device xdma depends on the pmap_kenter_device APIs. Reported by: tinderbox (local) Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=347888
* Fix hostname to be returned in an ICMPv6 NI Reply message definedHiroki Sato2019-05-161-14/+19
| | | | | | | | | | | | | | | | | | | | | in RFC 4620, ICMPv6 Node Information Queries. A vnet jail with an IPv6 address sent a hostname of the host environment, not the jail, even if another hostname was set to the jail. This change can be tested by the following commands: # ifconfig epair0 create # jail -c -n j1 vnet host.hostname=vnetjail path=/ persist # ifconfig epair0b vnet j1 # ifconfig epair0a inet6 -ifdisabled auto_linklocal up # jexec j1 ifconfig epair0b inet6 -ifdisabled auto_linklocal up # ping6 -w ff02::1%epair0a Differential Revision: https://reviews.freebsd.org/D20207 MFC after: 1 week Notes: svn path=/head/; revision=347887
* Announce OpenBSD 6.5.Ollivier Robert2019-05-161-0/+2
| | | | Notes: svn path=/head/; revision=347886
* LinuxKPI: Updates to tasklets for Linux 5.0.Johannes Lundberg2019-05-162-22/+67
| | | | | | | | | | | | | | DRM drivers expect tasklets to have a counter for enable/disable calls. Also, add a few more tasklet locking functions. This patch is part of D19565 Reviewed by: hps Approved by: imp (mentor), hps MFC after: 1 week Notes: svn path=/head/; revision=347852
* LinuxKPI: Add group_leader member to struct task_struct.Johannes Lundberg2019-05-162-0/+2
| | | | | | | | | | | | | Assign self as group leader at creation to act as the only member of a new process group. This patch is part of D19565 Reviewed by: hps Approved by: imp (mentor), hps MFC after: 1 week Notes: svn path=/head/; revision=347843