CVE-2026-74389: RDMA/hns: Fix log flood after cmd_mbox failure
In the Linux kernel, the following vulnerability has been resolved:
RDMA/hns: Fix log flood after cmdmbox failure
hnsrocecmdmbox() is the command interface between driver and hardware. When hardware is abnormal, the unlimited error printings after hnsrocecmdmbox() failure will cause log flood and even system crash.
Replace ibdeverr() and ibdevwarn() with their ratelimited versions in the error handling path after hnsrocecmdmbox() (and its wrappers hnsrocecreatehwctx/hnsrocedestroyhwctx) fails.
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
In the RDMA/hns code path, replace ibdev_err() and ibdev_warn() with ratelimited equivalents so that error logging after hns_roce_cmd_mbox() failure does not produce an unlimited log flood.
Linux kernel (RDMA/hns driver) Replace ibdev_err()/ibdev_warn() with their ratelimited versions = Use ratelimited variants for device error/warning printing