-
- Downloads
ANDROID: Add untag hacks to inet_release function
To prevent protential risk of memory leak caused by closing socket with
out untag it from qtaguid module, the qtaguid module now do not hold any
socket file reference count. Instead, it will increase the sk_refcnt of
the sk struct to prevent a reuse of the socket pointer. And when a socket
is released. It will delete the tag if the socket is previously tagged so
no more resources is held by xt_qtaguid moudle.
Bug: 36374484
Test: compile and run test under system/extra/test/iptables
Signed-off-by:
Chenbo Feng <fengc@google.com>
Change-Id: I40223b9970c89274c3b5bd339d27e1d013492421
Showing
- include/linux/netfilter/xt_qtaguid.h 1 addition, 0 deletionsinclude/linux/netfilter/xt_qtaguid.h
- net/ipv4/af_inet.c 4 additions, 0 deletionsnet/ipv4/af_inet.c
- net/netfilter/xt_qtaguid.c 41 additions, 46 deletionsnet/netfilter/xt_qtaguid.c
- net/netfilter/xt_qtaguid_internal.h 0 additions, 2 deletionsnet/netfilter/xt_qtaguid_internal.h
- net/netfilter/xt_qtaguid_print.c 4 additions, 4 deletionsnet/netfilter/xt_qtaguid_print.c
Loading
Please register or sign in to comment