Page MenuHomeFreeBSD

bnxt_en: fix FTQM/STQM pg_info alias on reset
Needs ReviewPublic

Authored by chandrakanth.patil_broadcom.com on Aug 21 2025, 4:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 28, 7:04 PM
Unknown Object (File)
Tue, Apr 28, 7:01 PM
Unknown Object (File)
Mar 22 2026, 11:34 PM
Unknown Object (File)
Mar 18 2026, 1:35 AM
Unknown Object (File)
Mar 4 2026, 12:32 AM
Unknown Object (File)
Mar 2 2026, 12:31 AM
Unknown Object (File)
Feb 16 2026, 4:04 AM
Unknown Object (File)
Nov 9 2025, 12:41 PM
Subscribers
None

Details

Summary

On reset, copying STQM config into FTQM also copied the pg_info pointer.
Since STQM pg_info was non-NULL, FTQM ended up sharing the same pointer.
This caused the allocator to skip FTQM allocation, and later FTQM accesses
went out of bounds, leading to DMA address faults and page crashes.

Example reset logs:

STQM pg_info = 0xfffffe0286049000
FTQM pg_info = 0xfffffe0286049000 <-- same pointer

Clear FTQM->pg_info after memcpy so that FTQM always allocates
its own backing store.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped