Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1697889 > unrolled thread

Re: [-next] rtlwifi: kfree entry until after entry->bssid has been accessed

Started byKalle Valo <kvalo@codeaurora.org>
First post2017-07-27 13:00 +0200
Last post2017-07-27 13:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [-next] rtlwifi: kfree entry until after entry->bssid has been  accessed Kalle Valo <kvalo@codeaurora.org> - 2017-07-27 13:00 +0200

#1697889 — Re: [-next] rtlwifi: kfree entry until after entry->bssid has been accessed

FromKalle Valo <kvalo@codeaurora.org>
Date2017-07-27 13:00 +0200
SubjectRe: [-next] rtlwifi: kfree entry until after entry->bssid has been accessed
Message-ID<u7OGl-556-1@gated-at.bofh.it>
Colin Ian King <colin.king@canonical.com> wrote:

> From: Colin Ian King <colin.king@canonical.com>
> 
> The current code kfree's entry and then dereferences it by accessing
> entry->bssid.  Avoid the dereference-after-free by moving the kfree
> after the access to entry->bssid.
> 
> Detected by CoverityScan, CID#1448600 ("Read from pointer after free")
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Patch applied to wireless-drivers-next.git, thanks.

d0116f6f7b30 rtlwifi: kfree entry until after entry->bssid has been accessed

-- 
https://patchwork.kernel.org/patch/9819083/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web