| 191a0e65 | 16-Jun-2021 |
Hans Petter Selasky <[email protected]> |
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
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 c8301cbb0fa25d03c1b6b2d056497d5a1580a8b4)
show more ...
|
| cd08d4c5 | 16-Jun-2021 |
Hans Petter Selasky <[email protected]> |
mlx4ib and mlx5ib: Set slid to zero in Ethernet completion struct
IB spec says that a lid should be ignored when link layer is Ethernet, for example when building or parsing a CM request message (CA
mlx4ib and mlx5ib: Set slid to zero in Ethernet completion struct
IB spec says that a lid should be ignored when link layer is Ethernet, for example when building or parsing a CM request message (CA17-34). However, since ib_lid_be16() and ib_lid_cpu16() validates the slid, not only when link layer is IB, we set the slid to zero to prevent false warnings in the kernel log.
Linux commit: 65389322b28f81cc137b60a41044c2d958a7b950
Reviewed by: kib Sponsored by: Mellanox Technologies // NVIDIA Networking
(cherry picked from commit 30416d4e827341be32c3e415f16c73f252a68d85)
show more ...
|
| 70c9c543 | 26-May-2021 |
Bjoern A. Zeeb <[email protected]> |
mlx4: replace LinuxKPI macros with ifnet functions
The LinuxKPI net_device actually is an ifnet; in order to further clean that up so we can extend "net_device" replace the few macros inline in mlx
mlx4: replace LinuxKPI macros with ifnet functions
The LinuxKPI net_device actually is an ifnet; in order to further clean that up so we can extend "net_device" replace the few macros inline in mlx4.
Sponsored by: The FreeBSD Foundation Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D30476
(cherry picked from commit 60afad6fc307815ad2b70a9974d908b6d5d50674)
show more ...
|