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)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:24:31 +0000 (12:24 -0800)
commiteef4a0a29d240f41838fc1e4525b6dd234abf85a
tree3fa5267df4616a4b1c28df46acb93642774dec90
parent6202c2789c401f3b8e4aa1fd61e78277b4574fea
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