opnsense-src/sys/dev/mlx4/mlx4_ib
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_ib.h ibcore: Declare ib_post_send() and ib_post_recv() arguments const 2021-07-12 14:22:33 +02:00
mlx4_ib_ah.c mlx4: replace LinuxKPI macros with ifnet functions 2021-05-27 12:26:01 +00:00
mlx4_ib_alias_GUID.c Update mlx4ib(4) to Linux 4.9. 2017-11-13 10:49:18 +00:00
mlx4_ib_cm.c Update mlx4ib(4) to Linux 4.9. 2017-11-13 10:49:18 +00:00
mlx4_ib_cq.c mlx4ib and mlx5ib: Set slid to zero in Ethernet completion struct 2021-07-12 14:22:34 +02:00
mlx4_ib_doorbell.c
mlx4_ib_mad.c ibcore: Declare ib_post_send() and ib_post_recv() arguments const 2021-07-12 14:22:33 +02:00
mlx4_ib_main.c mlx4: Map core_clock page to user space only when allowed 2021-07-12 14:22:35 +02:00
mlx4_ib_mcg.c Update mlx4ib(4) to Linux 4.9. 2017-11-13 10:49:18 +00:00
mlx4_ib_mr.c Update mlx4ib(4) to Linux 4.9. 2017-11-13 10:49:18 +00:00
mlx4_ib_qp.c ibcore: Declare ib_post_send() and ib_post_recv() arguments const 2021-07-12 14:22:33 +02:00
mlx4_ib_srq.c ibcore: Declare ib_post_send() and ib_post_recv() arguments const 2021-07-12 14:22:33 +02:00
mlx4_ib_sysfs.c Update mlx4ib(4) to Linux 4.9. 2017-11-13 10:49:18 +00:00
mlx4_ib_wc.c
wc.h