android_kernel_motorola_sm6375/net/netlink
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Thomas Graf 6c8f7e7083 netlink: hold nl_sock_hash_lock during diag dump
Although RCU protection would be possible during diag dump, doing
so allows for concurrent table mutations which can render the
in-table offset between individual Netlink messages invalid and
thus cause legitimate sockets to be skipped in the dump.

Since the diag dump is relatively low volume and consistency is
more important than performance, the table mutex is held during
dump.

Reported-by: Andrey Wagin <[email protected]>
Signed-off-by: Thomas Graf <[email protected]>
Fixes: e341694e3e ("netlink: Convert netlink_lookup() to use RCU protected hash table")
Signed-off-by: David S. Miller <[email protected]>
2014-08-06 19:17:44 -07:00
..
af_netlink.c netlink: hold nl_sock_hash_lock during diag dump 2014-08-06 19:17:44 -07:00
af_netlink.h netlink: hold nl_sock_hash_lock during diag dump 2014-08-06 19:17:44 -07:00
diag.c netlink: hold nl_sock_hash_lock during diag dump 2014-08-06 19:17:44 -07:00
genetlink.c genetlink: remove superfluous assignment 2014-06-02 10:36:18 -07:00
Kconfig netlink: kconfig: move mmap i/o into netlink kconfig 2013-05-01 15:02:42 -04:00
Makefile netlink: Diag core and basic socket info dumping (v2) 2013-03-21 12:38:03 -04:00