zhuorao yang <alex…@gmail.com> wrote:
> An unconfirmed conntrack is mutable and assumes exclusive skb ownership. > Cloned skbs can otherwise reach nft_ct extension paths concurrently and > call nf_ct_ext_add() on the same ct->ext. Since nf_ct_ext_add() uses > krealloc(), this can free and replace one allocation while another CPU > still uses it. > > Reject packets that reference a shared unconfirmed conntrack before any > nft_ct extension allocation is attempted. This covers helper, expect, > timeout, and event-cache extensions without adding a lock to the generic > helper API.
Nak. Playing whack-a-mole with stunts like this is getting us nowhere. There are dozen of similar bugs like this all over conntrack. It'll take time to rewrite the core assumptions cleanly. Changes in dozen different places is not the way to go.