From: Kalle Valo <kvalo@codeaurora.org>
To: Colin Ian King <colin.king@canonical.com>
Cc: Maharaja Kennadyrajan <mkenna@codeaurora.org>,
Govindaraj Saminathan <gsamin@codeaurora.org>,
Rajkumar Manoharan <rmanohar@codeaurora.org>,
Bhagavathi Perumal S <bperumal@codeaurora.org>,
Miles Hu <milehu@codeaurora.org>,
Anilkumar Kolli <akolli@codeaurora.org>,
ath11k@lists.infradead.org,
Pradeep Kumar Chitrapu <pradeepc@codeaurora.org>,
Venkateswara Naralasetty <vnaralas@codeaurora.org>,
Manikanta Pubbisetty <mpubbise@codeaurora.org>,
Muna Sinada <msinada@codeaurora.org>,
Jakub Kicinski <kuba@kernel.org>,
Sathishkumar Muruganandam <murugana@codeaurora.org>,
Karthikeyan Periyasamy <periyasa@codeaurora.org>,
"David S. Miller" <davem@davemloft.net>,
Vasanthakumar Thiagarajan <vthiagar@codeaurora.org>
Subject: Re: ath11k: driver for Qualcomm IEEE 802.11ax devices
Date: Mon, 21 Sep 2020 12:16:11 +0300 [thread overview]
Message-ID: <875z87bick.fsf@codeaurora.org> (raw)
In-Reply-To: <33a79f41-e113-1315-871b-97842776a2a4@canonical.com> (Colin Ian King's message of "Fri, 18 Sep 2020 15:11:53 +0100")
+ ath11k
Colin Ian King <colin.king@canonical.com> writes:
> Hi,
>
> Static analysis with Coverity has detected an issue with the following
> commit:
>
> commit d5c65159f2895379e11ca13f62feabe93278985d
> Author: Kalle Valo <kvalo@codeaurora.org>
> Date: Sat Nov 23 09:58:40 2019 +0200
>
> ath11k: driver for Qualcomm IEEE 802.11ax devices
>
> The analysis is as follows:
>
> 4623 static struct sk_buff *
> 4624 ath11k_dp_rx_mon_merg_msdus(struct ath11k *ar,
> 4625 u32 mac_id, struct sk_buff *head_msdu,
> 4626 struct sk_buff *last_msdu,
> 4627 struct ieee80211_rx_status *rxs)
> 4628 {
> 4629 struct sk_buff *msdu, *mpdu_buf, *prev_buf;
> 4630 u32 decap_format, wifi_hdr_len;
> 4631 struct hal_rx_desc *rx_desc;
> 4632 char *hdr_desc;
> 4633 u8 *dest;
> 4634 struct ieee80211_hdr_3addr *wh;
> 4635
>
> assignment: Assigning: mpdu_buf = NULL.
>
> 4636 mpdu_buf = NULL;
>
> 4718 err_merge_fail:
> null: At condition mpdu_buf, the value of mpdu_buf must be NULL.
> dead_error_condition: The condition mpdu_buf cannot be true.
>
> 'Constant' variable guards dead code (DEADCODE)
> dead_error_line: Execution cannot reach the expression decap_format !=
> DP_RX_DECAP_TYPE_RAW inside this statement: if (mpdu_buf && decap_forma....
>
> Local variable mpdu_buf is assigned only once, to a constant value,
> making it effectively constant throughout its scope. If this is not the
> intent, examine the logic to see if there is a missing assignment that
> would make mpdu_buf not remain constant.
>
> 4719 if (mpdu_buf && decap_format != DP_RX_DECAP_TYPE_RAW) {
> 4720 ath11k_dbg(ar->ab, ATH11K_DBG_DATA,
> 4721 "err_merge_fail mpdu_buf %pK", mpdu_buf);
> 4722 /* Free the head buffer */
> 4723 dev_kfree_skb_any(mpdu_buf);
> 4724 }
>
> Is this indended?
Yeah, this is suspicious and something is wrong in
ath11k_dp_rx_mon_merg_msdus(). Can someone take a look, please?
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
--
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
parent reply other threads:[~2020-09-21 9:16 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <33a79f41-e113-1315-871b-97842776a2a4@canonical.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875z87bick.fsf@codeaurora.org \
--to=kvalo@codeaurora.org \
--cc=akolli@codeaurora.org \
--cc=ath11k@lists.infradead.org \
--cc=bperumal@codeaurora.org \
--cc=colin.king@canonical.com \
--cc=davem@davemloft.net \
--cc=gsamin@codeaurora.org \
--cc=kuba@kernel.org \
--cc=milehu@codeaurora.org \
--cc=mkenna@codeaurora.org \
--cc=mpubbise@codeaurora.org \
--cc=msinada@codeaurora.org \
--cc=murugana@codeaurora.org \
--cc=periyasa@codeaurora.org \
--cc=pradeepc@codeaurora.org \
--cc=rmanohar@codeaurora.org \
--cc=vnaralas@codeaurora.org \
--cc=vthiagar@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox