ixgbe has uninitialized kstat fields
ixgbe creates a kstat based on the ixgbe_stat structure – but this structure has several fields that are only initialized if IXGBE_DEBUG is set rx_frame_error, rx_cksum_error, rx_exceed_pkt, tx_overload, tx_fail_no_tbd, tx_fail_no_tcb, tx_fail_dma_bind, tx_reschedule. The upshot is a zero'ed kstat that gets exported to user-level, potentially confusing kstat consumers that don't handle the edge case.
Updated by Electric Monk about 2 years ago
- Status changed from New to Closed
commit a9bfd41d542f15c474711abb8b0ca66a4cef9918 Author: Ryan Zezeski <firstname.lastname@example.org> Date: 2017-08-04T20:39:56.000Z 8501 ixgbe has uninitialized kstat fields Reviewed by: Patrick Mooney <email@example.com> Reviewed by: Jerry Jelinek <firstname.lastname@example.org> Reviewed by: Robert Mustacchi <email@example.com> Reviewed by: Yuri Pankov <firstname.lastname@example.org> Approved by: Richard Lowe <email@example.com>