Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 500a9b7c authored by Michael Bestas's avatar Michael Bestas
Browse files

Merge tag 'LA.UM.9.12.r1-15200-SMxx50.QSSI13.0' of...

Merge tag 'LA.UM.9.12.r1-15200-SMxx50.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/qcom-opensource/wlan/qca-wifi-host-cmn into android13-4.19-kona

"LA.UM.9.12.r1-15200-SMxx50.QSSI13.0"

* tag 'LA.UM.9.12.r1-15200-SMxx50.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/qcom-opensource/wlan/qca-wifi-host-cmn:
  qcacmn: Add a tid check for RX to avoid of OOB access

Change-Id: Icabe78abf8ea7cc4dc6e2e7f312a560bb20c636b
parents 25308284 20e0d383
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -2408,8 +2408,15 @@ uint32_t dp_rx_process(struct dp_intr *int_ctx, hal_ring_handle_t hal_ring_hdl,
		}

		/* Get TID from struct cb->tid_val, save to tid */
		if (qdf_nbuf_is_rx_chfrag_start(nbuf))
		if (qdf_nbuf_is_rx_chfrag_start(nbuf)) {
			tid = qdf_nbuf_get_tid_val(nbuf);
			if (tid >= CDP_MAX_DATA_TIDS) {
				DP_STATS_INC(soc, rx.err.rx_invalid_tid_err, 1);
				qdf_nbuf_free(nbuf);
				nbuf = next;
				continue;
			}
		}

		peer_id =  QDF_NBUF_CB_RX_PEER_ID(nbuf);

+2 −0
Original line number Diff line number Diff line
@@ -6133,6 +6133,8 @@ dp_print_soc_rx_stats(struct dp_soc *soc)
		       soc->stats.rx.err.reo_cmd_send_fail);

	DP_PRINT_STATS("Rx BAR frames:%d", soc->stats.rx.bar_frame);
	DP_PRINT_STATS("Rx invalid TID count:%d",
		       soc->stats.rx.err.rx_invalid_tid_err);
}

#ifdef FEATURE_TSO_STATS
+2 −0
Original line number Diff line number Diff line
@@ -875,6 +875,8 @@ struct dp_soc_stats {
			uint32_t peer_unauth_rx_pkt_drop;
			/* MSDU len err count */
			uint32_t msdu_len_err;
			/* Rx invalid tid count */
			uint32_t rx_invalid_tid_err;
		} err;

		/* packet count per core - per ring */