opnsense-src/sys
Hans Petter Selasky 191a0e65a0 mlx4: Map core_clock page to user space only when allowed
Currently when we map the hca_core_clock page to the user space,
there are vulnerable registers, one of which is semaphore, on
this page as well. If user read the wrong offset, it can modify the
above semaphore and hang the device.

Hence, mapping the hca_core_clock page to the user space only when
user required it specifically.

After this patch, mlx4 core_clock won't be mapped to user space by
default. Oppose to current state, where mlx4 core_clock is always mapped
to user space.

Reviewed by:	kib
Sponsored by:	Mellanox Technologies // NVIDIA Networking

(cherry picked from commit c8301cbb0f)
2021-07-26 18:04:33 +02:00
..
amd64 Do not call FreeBSD-ABI specific code for all ABIs 2021-07-22 01:11:52 +03:00
arm arm: dedup counter(9) address calculation 2021-07-25 07:00:14 +00:00
arm64 arm64: allwinner: Add r_intc driver 2021-07-22 19:30:21 +02:00
bsm
cam mmc_sim: Make XPT_MMC_GET_TRAN_SETTINGS fully async 2021-07-22 19:26:47 +02:00
cddl fbt: Remove some handling for multiple CTF containers 2021-04-15 21:27:24 -04:00
compat cloudabi and linux ABIs: do not call umtx_thread_cleanup() from thr_exit syscall 2021-07-22 01:11:52 +03:00
conf arm64: allwinner: Add r_intc driver 2021-07-22 19:30:21 +02:00
contrib ibcore: Declare ib_post_send() and ib_post_recv() arguments const 2021-07-26 18:04:32 +02:00
crypto armv8crypto: note derivation in armv8_crypto_wrap.c 2021-03-22 13:14:51 -03:00
ddb ddb: reliably fail with ambiguous commands 2021-07-02 14:13:24 -07:00
dev mlx4: Map core_clock page to user space only when allowed 2021-07-26 18:04:33 +02:00
dts arm: allwinner: dtb: Add overlays to disable SD/MMC node 2021-07-22 19:29:21 +02:00
fs nfscl: Avoid KASSERT() panic in cache_enter_time() 2021-07-25 14:45:05 -07:00
gdb gdb: report specific stop reason for watchpoints 2021-04-21 10:20:33 -03:00
geom gmultipath: make physpath distinct from the underlying providers' 2021-06-17 12:39:14 -06:00
gnu
i386 Do not call FreeBSD-ABI specific code for all ABIs 2021-07-22 01:11:52 +03:00
isa Remove more remnants of sio(4) 2021-04-14 09:19:49 -04:00
kern cache: add cache_enter_time_flags 2021-07-25 06:59:56 +00:00
kgssapi
libkern Remove incorrect __restricted labels from strcspn 2021-07-21 10:13:10 -06:00
mips Do not call FreeBSD-ABI specific code for all ABIs 2021-07-22 01:11:52 +03:00
modules zfs: update zfs_gitrev.h 2021-07-23 03:29:33 +02:00
net pf: embed a pointer to the lock in struct pf_kstate 2021-07-25 07:00:37 +00:00
net80211 net80211/LinuxKPI: add more radiotap definitions 2021-07-18 00:35:03 +00:00
netgraph Consistently use the SOLISTENING() macro 2021-06-21 09:14:40 -04:00
netinet tcp: fix RACK and BBR when using VIMAGE enabled kernel 2021-07-22 11:13:31 +02:00
netinet6 sctp: Fix errno in case of association setup failures 2021-07-13 20:30:57 +02:00
netipsec Add missing sockaddr length and family validation to various protocols 2021-05-17 13:43:07 -04:00
netpfil pf: embed a pointer to the lock in struct pf_kstate 2021-07-25 07:00:37 +00:00
netsmb netsmb: Avoid a read-after-free in smb_t2_request_int() 2021-06-02 09:34:47 -04:00
nfs
nfsclient
nfsserver
nlm
ofed ibcore: Add some functions and definitions for selecting and querying retryable ucontext cleanup. 2021-07-26 18:04:33 +02:00
opencrypto cryptodev: Fix some input validation bugs 2021-05-14 09:58:54 -04:00
powerpc Do not call FreeBSD-ABI specific code for all ABIs 2021-07-22 01:11:52 +03:00
riscv Do not call FreeBSD-ABI specific code for all ABIs 2021-07-22 01:11:52 +03:00
rpc krpc: Acquire ref count of CLIENT for backchannel use 2021-06-26 16:03:41 -07:00
security mac: cheaper check for ifnet_create_mbuf and ifnet_check_transmit 2021-07-05 11:32:14 +00:00
sys cache: add cache_enter_time_flags 2021-07-25 06:59:56 +00:00
teken
tests tests: Revise FIB lookups per second benchmarking routines 2021-06-20 13:27:17 +02:00
tools makesyscalls.lua: improve generated file style(9) compliance 2021-05-19 20:31:54 -04:00
ufs ffs_softdep: force sync if journal is low in journal_check_space 2021-07-07 13:50:44 +03:00
vm Un-staticise vm_page_init_page() 2021-06-24 05:20:33 +03:00
x86 Consolidate machine/endian.h definitions 2021-06-24 20:42:56 -03:00
xdr
xen
Makefile