Revision 0da9a0c2638c8476b4a5021841912f249e3187dc authored by Tommi Rantala on 15 November 2012, 03:49:05 UTC, committed by David S. Miller on 15 November 2012, 18:56:05 UTC
Commit 13d782f ("sctp: Make the proc files per network namespace.")
changed the /proc/net/sctp/ struct file_operations opener functions to
use single_open_net() and seq_open_net().

Avoid leaking memory by using single_release_net() and seq_release_net()
as the release functions.

Discovered with Trinity (the syscall fuzzer).

Signed-off-by: Tommi Rantala <tt.rantala@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 80d1178
History
File Mode Size
Makefile -rw-r--r-- 394 bytes
compat.c -rw-r--r-- 18.4 KB
compat_mq.c -rw-r--r-- 4.1 KB
ipc_sysctl.c -rw-r--r-- 6.0 KB
ipcns_notifier.c -rw-r--r-- 2.2 KB
mq_sysctl.c -rw-r--r-- 2.7 KB
mqueue.c -rw-r--r-- 35.1 KB
msg.c -rw-r--r-- 21.1 KB
msgutil.c -rw-r--r-- 2.7 KB
namespace.c -rw-r--r-- 4.3 KB
sem.c -rw-r--r-- 42.3 KB
shm.c -rw-r--r-- 29.9 KB
syscall.c -rw-r--r-- 2.3 KB
util.c -rw-r--r-- 23.1 KB
util.h -rw-r--r-- 5.3 KB

back to top