HomeFreeBSD

qlnx: qlnxe: Fix kernel address leakage

Description

qlnx: qlnxe: Fix kernel address leakage

In function qlnx_rdma_deregister_if,
the address of object rdma_if will be printed out.
rdma_if is the address of a global variable qlnxr_drv,
which is passed from dev/qlnx/qlnxr/qlnxr_os.c
A kernel address leakage happens.
Fix this by removing the printf statement.

PR: 238646

(cherry picked from commit 9370f49ad1c4625cd73c4d84d3e42ed3e20fabbf)

Details

Provenance
Fuqian Huang <huangfq.daxian@gmail.com>Authored on May 28 2024, 5:45 AM
Kevin Bowling <kbowling@FreeBSD.org>Committed on Sep 29 2024, 3:59 AM
Parents
rG73f5d59061ab: qlxge: replace device_printf with QL_DPRINT2
Branches
Unknown
Tags
Unknown

Event Timeline

Kevin Bowling <kbowling@FreeBSD.org> committed rG288ad162e68c: qlnx: qlnxe: Fix kernel address leakage (authored by Fuqian Huang <huangfq.daxian@gmail.com>).Sep 29 2024, 3:59 AM