netfilter: nf_tables: fix wrong transaction ordering in set elements
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 22 May 2014 10:36:03 +0000 (12:36 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 2 Jun 2014 08:54:25 +0000 (10:54 +0200)
commit46bbafceb201df635b7c0a9d7a0e526cb2f8cb75
tree83072842019888714b8457ebbd1c9782087f14b2
parent4c552a64dfc2063ef060cf45788cd4250eea3596
netfilter: nf_tables: fix wrong transaction ordering in set elements

The transaction needs to be placed at the end of the commit list,
otherwise event notifications are reordered and we may crash when
releasing object via call_rcu.

This problem was introduced in 60319eb ("netfilter: nf_tables: use new
transaction infrastructure to handle elements").

Reported-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c