Re: [PATCH net] net: sched: fix use-after-free in tc_new_tfilter()
From: Eric Dumazet <edumazet@google.com>
Date: 2022-01-31 19:31:43
From: Eric Dumazet <edumazet@google.com>
Date: 2022-01-31 19:31:43
On Mon, Jan 31, 2022 at 11:28 AM Vlad Buslov [off-list ref] wrote:
Yeah, but I also didn't get how the "chain" variable can get reused in that other function (tcf_new_tfilter()). It seems to always be unconditionally assigned with return value of tcf_chain_get().
This is why I removed the chain=NULL initialization which is not needed. The potential issue about replay was really about @q variable.