Skip to contentSkip to conversation

flowtable crash in nf_flow_table_indr_block_cb

DISCUSSION wenxu 1 participant 1 message Apr 5, 2020 1 message not in the archive netfilter

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

wenxu

author
#1 lore raw

Hi Pablo,

Flowtable will crash in nf_flow_table_indr_block_cb when the nf_tables modules is not in.

# modprobe act_ct

The act_ct will auto load the flowtable modules.

# ip l a dev gre type gretap external.

nf_flow_table_indr_block_cb will crash for the uninit in net->nft.tables.

I thinkthe following patch is not good a solution indeely

http://patchwork.ozlabs.org/patch/1257422/

The flowtable can be used by both nf_tables and act_ct.

But the nf_flow_table_indr_block_cb in flow_indr_block_entry

only be used for nf_tables.  So move the flow_indr_add_block_cb

to the nf_tables modules is a better solution? such as nf_tables_offload.c

or a new nf_flow_table_indr_offload.c?

And the flowtable modules don't need to include the nf_tables.h

BR

wenxu