spinlock'ing of "struct nf_conn"->custom_buffer_ptr within xt_match.match callback

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

 



I have implemented a custom extension  for conntrack. It is basically
extra pointer which resides in "struct nf_conn".
The pointer references a slab buffer and it is used/modified in custom
netfilter match extension.
I'm not sure whether it is possible that different skbs with the same
nf_conn can be simultaneously handled on different CPUs.
My question is, should I protect the buffer (custom_buffer_ptr) with a
spinlock in the match callback of the extension (struct
xt_match.match)?



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux