Re: [PATCH nf-next v2] netfilter: nf_table_offload: Fix the incorrect rcu usage in nft_indr_block_get_and_ing_cmd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



在 2019/8/26 16:38, Pablo Neira Ayuso 写道:
> On Mon, Aug 19, 2019 at 09:22:32PM +0800, wenxu@xxxxxxxxx wrote:
>> From: wenxu <wenxu@xxxxxxxxx>
>>
>> The flow_block_ing_cmd() needs to call blocking functions while iterating
>> block_ing_cb_list, nft_indr_block_get_and_ing_cmd is in the cb_list,
>> So it is the incorrect rcu case. To fix it just traverse the list under
>> the commit mutex.
> The flow_indr_block_call() is called from a path that already holds
> this lock.

The flow_indr_block_call already hodls this lock. But the flow_block_ing_cmd is not called

by flow_indr_block_call. It is called by offloaded driver with unregister event for indr_dev.

>



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux