Re: [patch net-next] net: sched: fix use-after-free in tcf_block_put_ext

2017-12-08 Thread Cong Wang
On Fri, Dec 8, 2017 at 10:27 AM, Jiri Pirko wrote: > From: Jiri Pirko > > Since the block is freed with last chain being put, once we reach the > end of iteration of list_for_each_entry_safe, the block may be > already freed. I'm hitting this only by creating and deleting clsact: List is still t

Re: [patch net-next] net: sched: fix use-after-free in tcf_block_put_ext

2017-12-08 Thread David Miller
From: Jiri Pirko Date: Fri, 8 Dec 2017 19:27:27 +0100 > From: Jiri Pirko > > Since the block is freed with last chain being put, once we reach the > end of iteration of list_for_each_entry_safe, the block may be > already freed. I'm hitting this only by creating and deleting clsact: ... > Fix

[patch net-next] net: sched: fix use-after-free in tcf_block_put_ext

2017-12-08 Thread Jiri Pirko
From: Jiri Pirko Since the block is freed with last chain being put, once we reach the end of iteration of list_for_each_entry_safe, the block may be already freed. I'm hitting this only by creating and deleting clsact: [ 202.171952]