From cc1abc88f9fbe2b853d99dcecbe1d65095fa3329 Mon Sep 17 00:00:00 2001 From: Sravan Kumar Kairam Date: Wed, 16 May 2018 15:22:34 +0530 Subject: [PATCH] qcacld-3.0: Fix information leak in IPA res info and stats Currently in functions to show IPA resource info and IPA stats there are information related to IPA resources memory address. This may be lead to potential information leak to the location of IPA resources. Remove the addresses information from the logs in res info and stats function. Change-Id: I75d756211c8aaaea300fb207e40a08f5b1ca81e3 CRs-Fixed: 2225361 --- components/ipa/core/src/wlan_ipa_stats.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/components/ipa/core/src/wlan_ipa_stats.c b/components/ipa/core/src/wlan_ipa_stats.c index 6ba8b62afe90..9364cba06dce 100644 --- a/components/ipa/core/src/wlan_ipa_stats.c +++ b/components/ipa/core/src/wlan_ipa_stats.c @@ -622,17 +622,13 @@ void wlan_ipa_print_fw_wdi_stats(struct wlan_ipa_priv *ipa_ctx, struct ipa_uc_fw_stats *uc_fw_stat) { ipa_info("\n==== WLAN FW WDI TX STATS ====\n" - "COMP RING BASE: 0x%x\n" "COMP RING SIZE: %d\n" - "COMP RING DBELL : 0x%x\n" "COMP RING DBELL IND VAL : %d\n" "COMP RING DBELL CACHED VAL : %d\n" "PKTS ENQ : %d\n" "PKTS COMP : %d\n" "IS SUSPEND : %d\n", - uc_fw_stat->tx_comp_ring_base, uc_fw_stat->tx_comp_ring_size, - uc_fw_stat->tx_comp_ring_dbell_addr, uc_fw_stat->tx_comp_ring_dbell_ind_val, uc_fw_stat->tx_comp_ring_dbell_cached_val, uc_fw_stat->tx_pkts_enqueued, @@ -640,12 +636,9 @@ void wlan_ipa_print_fw_wdi_stats(struct wlan_ipa_priv *ipa_ctx, uc_fw_stat->tx_is_suspend); ipa_info("\n==== WLAN FW WDI RX STATS ====\n" - "IND RING BASE: 0x%x\n" "IND RING SIZE: %d\n" - "IND RING DBELL : 0x%x\n" "IND RING DBELL IND VAL : %d\n" "IND RING DBELL CACHED VAL : %d\n" - "RDY IND ADDR : 0x%x\n" "RDY IND CACHE VAL : %d\n" "RFIL IND : %d\n" "NUM PKT INDICAT : %d\n" @@ -653,12 +646,9 @@ void wlan_ipa_print_fw_wdi_stats(struct wlan_ipa_priv *ipa_ctx, "NUM DROP NO SPC : %d\n" "NUM DROP NO BUF : %d\n" "IS SUSPND : %d\n", - uc_fw_stat->rx_ind_ring_base, uc_fw_stat->rx_ind_ring_size, - uc_fw_stat->rx_ind_ring_dbell_addr, uc_fw_stat->rx_ind_ring_dbell_ind_val, uc_fw_stat->rx_ind_ring_dbell_ind_cached_val, - uc_fw_stat->rx_ind_ring_rdidx_addr, uc_fw_stat->rx_ind_ring_rd_idx_cached_val, uc_fw_stat->rx_refill_idx, uc_fw_stat->rx_num_pkts_indicated,