1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-26 07:55:01 +00:00
freebsd/sys/dev/mlx4
Hans Petter Selasky c8301cbb0f 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.

MFC after:	1 week
Reviewed by:	kib
Sponsored by:	Mellanox Technologies // NVIDIA Networking
2021-07-12 14:22:35 +02:00
..
mlx4_core mlx4: Map core_clock page to user space only when allowed 2021-07-12 14:22:35 +02:00
mlx4_en mlx4/OFED: replace the struct net_device with struct ifnet 2021-06-18 21:20:08 +00:00
mlx4_ib mlx4: Map core_clock page to user space only when allowed 2021-07-12 14:22:35 +02:00
cmd.h Update the mlx4 core and mlx4en(4) modules towards Linux v4.9. 2017-11-15 11:14:39 +00:00
cq.h sys/dev/mlx[45]: fix uses of 1 << 31 2018-01-12 06:36:44 +00:00
device.h mlx4: Map core_clock page to user space only when allowed 2021-07-12 14:22:35 +02:00
doorbell.h
driver.h mlx4en: Add support for netdump. 2018-12-05 13:32:15 +00:00
qp.h sys/dev/mlx[45]: fix uses of 1 << 31 2018-01-12 06:36:44 +00:00
srq.h
stats.h Update the mlx4 core and mlx4en(4) modules towards Linux v4.9. 2017-11-15 11:14:39 +00:00