Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1697889 > unrolled thread
| Started by | Kalle Valo <kvalo@codeaurora.org> |
|---|---|
| First post | 2017-07-27 13:00 +0200 |
| Last post | 2017-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.
Re: [-next] rtlwifi: kfree entry until after entry->bssid has been accessed Kalle Valo <kvalo@codeaurora.org> - 2017-07-27 13:00 +0200
| From | Kalle Valo <kvalo@codeaurora.org> |
|---|---|
| Date | 2017-07-27 13:00 +0200 |
| Subject | Re: [-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
Back to top | Article view | linux.kernel
csiph-web