mirror of
https://github.com/opnsense/src.git
synced 2026-05-15 18:49:57 -04:00
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
|
||
|---|---|---|
| .. | ||
| mlx4_core | ||
| mlx4_en | ||
| mlx4_ib | ||
| cmd.h | ||
| cq.h | ||
| device.h | ||
| doorbell.h | ||
| driver.h | ||
| qp.h | ||
| srq.h | ||
| stats.h | ||