lkml.org 
[lkml]   [2022]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] atm: idt77252: fix use-after-free bugs caused by tst_timer
From
Date
Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Fri, 5 Aug 2022 15:00:08 +0800 you wrote:
> There are use-after-free bugs caused by tst_timer. The root cause
> is that there are no functions to stop tst_timer in idt77252_exit().
> One of the possible race conditions is shown below:
>
> (thread 1) | (thread 2)
> | idt77252_init_one
> | init_card
> | fill_tst
> | mod_timer(&card->tst_timer, ...)
> idt77252_exit | (wait a time)
> | tst_timer
> |
> | ...
> kfree(card) // FREE |
> | card->soft_tst[e] // USE
>
> [...]

Here is the summary with links:
- atm: idt77252: fix use-after-free bugs caused by tst_timer
https://git.kernel.org/netdev/net/c/3f4093e2bf46

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html


\
 
 \ /
  Last update: 2022-08-09 06:01    [W:0.043 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site