Re: [PATCH v2] net: macb: fix use after free on rmmod
From: patchwork-bot+netdevbpf
Date: Thu Sep 09 2021 - 06:00:23 EST
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Wed, 8 Sep 2021 12:02:32 -0700 you wrote:
> plat_dev->dev->platform_data is released by platform_device_unregister(),
> use of pclk and hclk is a use-after-free. Since device unregister won't
> need a clk device we adjust the function call sequence to fix this issue.
>
> [ 31.261225] BUG: KASAN: use-after-free in macb_remove+0x77/0xc6 [macb_pci]
> [ 31.275563] Freed by task 306:
> [ 30.276782] platform_device_release+0x25/0x80
>
> [...]
Here is the summary with links:
- [v2] net: macb: fix use after free on rmmod
https://git.kernel.org/netdev/net/c/d82d5303c4c5
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html