netfilter: xt_qtaguid: fix crash after using delete ctrl command
authorJP Abgrall <jpa@google.com>
Mon, 26 Sep 2011 02:24:02 +0000 (19:24 -0700)
committerJP Abgrall <jpa@google.com>
Mon, 26 Sep 2011 02:24:14 +0000 (19:24 -0700)
commitc843dede96adbf1299de8f4edf05e893408ef5e3
treeaee91e1d681a6093d0ee6f9e88dffa128c1253ae
parentb1d0d5fe07a4c96d791f3126bbfc8d0131d1aa32
netfilter: xt_qtaguid: fix crash after using delete ctrl command

* Crash fix
The delete command would delete a socket tag entry without removing it
from the proc_qtu_data { ..., sock_tag_list, }.
This in turn would cause an exiting process to crash while cleaning up
its matching proc_qtu_data.

* Added more aggressive tracking/cleanup of proc_qtu_data
This should allow one process to cleanup qtu_tag_data{} left around from
processes that didn't use resource tracking via /dev/xt_qtaguid.

* Debug printing tweaks
Better code inclusion/exclusion handling,
and extra debug out of full state.

Change-Id: I735965af2962ffcd7f3021cdc0068b3ab21245c2
Signed-off-by: JP Abgrall <jpa@google.com>
net/netfilter/xt_qtaguid.c
net/netfilter/xt_qtaguid_internal.h
net/netfilter/xt_qtaguid_print.c
net/netfilter/xt_qtaguid_print.h