tree:   git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   bc6aaa14e11304b629ae8b0c0c71737cf24114b7
commit: fb9962f3cefeba8c5addc96dceb8bc360062ab50 [1345/1380] tipc: ensure all 
name sequences are properly protected with its lock

net/tipc/name_table.c:980 tipc_purge_publications() error: double lock 
'spin_lock:&seq->lock'

git remote add net-next 
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
git remote update net-next
git checkout fb9962f3cefeba8c5addc96dceb8bc360062ab50
vim +980 net/tipc/name_table.c

1bb8dce5 Erik Hugne 2014-03-06  964   */
1bb8dce5 Erik Hugne 2014-03-06  965  static void tipc_purge_publications(struct 
name_seq *seq)
1bb8dce5 Erik Hugne 2014-03-06  966  {
1bb8dce5 Erik Hugne 2014-03-06  967     struct publication *publ, *safe;
1bb8dce5 Erik Hugne 2014-03-06  968     struct sub_seq *sseq;
1bb8dce5 Erik Hugne 2014-03-06  969     struct name_info *info;
1bb8dce5 Erik Hugne 2014-03-06  970  
fb9962f3 Ying Xue   2014-12-02  971     spin_lock_bh(&seq->lock);
1bb8dce5 Erik Hugne 2014-03-06  972     sseq = seq->sseqs;
1bb8dce5 Erik Hugne 2014-03-06  973     info = sseq->info;
1bb8dce5 Erik Hugne 2014-03-06  974     list_for_each_entry_safe(publ, safe, 
&info->zone_list, zone_list) {
1bb8dce5 Erik Hugne 2014-03-06  975             
tipc_nametbl_remove_publ(publ->type, publ->lower, publ->node,
1bb8dce5 Erik Hugne 2014-03-06  976                                      
publ->ref, publ->key);
1621b94d Ying Xue   2014-04-29  977             kfree(publ);
1bb8dce5 Erik Hugne 2014-03-06  978     }
38622f41 Ying Xue   2014-12-02  979     hlist_del_init(&seq->ns_list);
fb9962f3 Ying Xue   2014-12-02 @980     spin_lock_bh(&seq->lock);
fb9962f3 Ying Xue   2014-12-02  981  
38622f41 Ying Xue   2014-12-02  982     kfree(seq->sseqs);
38622f41 Ying Xue   2014-12-02  983     kfree(seq);
1bb8dce5 Erik Hugne 2014-03-06  984  }
1bb8dce5 Erik Hugne 2014-03-06  985  
4323add6 Per Liden  2006-01-18  986  void tipc_nametbl_stop(void)
b97bf3fd Per Liden  2006-01-02  987  {
b97bf3fd Per Liden  2006-01-02  988     u32 i;

---
0-DAY kernel test infrastructure                Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation
_______________________________________________
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild

Reply via email to