From: Ying Xue Date: Tue, 2 Dec 2014 07:00:27 +0000 (+0800) Subject: tipc: any name table member must be protected under name table lock X-Git-Tag: omap-for-v3.20/drop-legacy-3517~122^2~87^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3493d25cfb5eee9d0045c2720878a26dcbeafa73;p=pandora-kernel.git tipc: any name table member must be protected under name table lock As tipc_nametbl_lock is used to protect name_table structure, the lock must be held while all members of name_table structure are accessed. However, the lock is not obtained while a member of name_table structure - local_publ_count is read in tipc_nametbl_publish(), as a consequence, an inconsistent value of local_publ_count might be got. Signed-off-by: Ying Xue Reviewed-by: Erik Hugne Reviewed-by: Jon Maloy Tested-by: Erik Hugne Signed-off-by: David S. Miller --- Reading git-diff-tree failed