TO: Herbert Xu <[email protected]>

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   d7e5a72b951a4ef6d97b2aa43cad37f237ba8030
commit: 7b4ce2353467fdab6e003be7a3129fb09b09deac [6618/6788] rhashtable: Add 
parent argument to mutex_is_held
:::::: branch date: 16 hours ago
:::::: commit date: 28 hours ago

lib/rhashtable.c:585 rhashtable_init() error: __builtin_memcpy() 'params' too 
small (48 vs 52)

git remote add next 
git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update next
git checkout 7b4ce2353467fdab6e003be7a3129fb09b09deac
vim +/params +585 lib/rhashtable.c

7e1e7763 Thomas Graf 2014-08-02  569    if ((params->key_len && 
!params->hashfn) ||
7e1e7763 Thomas Graf 2014-08-02  570        (!params->key_len && 
!params->obj_hashfn))
7e1e7763 Thomas Graf 2014-08-02  571            return -EINVAL;
7e1e7763 Thomas Graf 2014-08-02  572  
94000176 Ying Xue    2014-09-03  573    params->min_shift = max_t(size_t, 
params->min_shift,
94000176 Ying Xue    2014-09-03  574                              
ilog2(HASH_MIN_SIZE));
94000176 Ying Xue    2014-09-03  575  
7e1e7763 Thomas Graf 2014-08-02  576    if (params->nelem_hint)
94000176 Ying Xue    2014-09-03  577            size = 
rounded_hashtable_size(params);
7e1e7763 Thomas Graf 2014-08-02  578  
7e1e7763 Thomas Graf 2014-08-02  579    tbl = bucket_table_alloc(size, 
GFP_KERNEL);
7e1e7763 Thomas Graf 2014-08-02  580    if (tbl == NULL)
7e1e7763 Thomas Graf 2014-08-02  581            return -ENOMEM;
7e1e7763 Thomas Graf 2014-08-02  582  
7e1e7763 Thomas Graf 2014-08-02  583    memset(ht, 0, sizeof(*ht));
7e1e7763 Thomas Graf 2014-08-02  584    ht->shift = ilog2(tbl->size);
7e1e7763 Thomas Graf 2014-08-02 @585    memcpy(&ht->p, params, sizeof(*params));
7e1e7763 Thomas Graf 2014-08-02  586    RCU_INIT_POINTER(ht->tbl, tbl);
7e1e7763 Thomas Graf 2014-08-02  587  
7e1e7763 Thomas Graf 2014-08-02  588    if (!ht->p.hash_rnd)
7e1e7763 Thomas Graf 2014-08-02  589            
get_random_bytes(&ht->p.hash_rnd, sizeof(ht->p.hash_rnd));
7e1e7763 Thomas Graf 2014-08-02  590  
7e1e7763 Thomas Graf 2014-08-02  591    return 0;
7e1e7763 Thomas Graf 2014-08-02  592  }
7e1e7763 Thomas Graf 2014-08-02  593  EXPORT_SYMBOL_GPL(rhashtable_init);

:::::: The code at line 585 was first introduced by commit
:::::: 7e1e77636e36075ebf118298855268468f1028e8 lib: Resizable, Scalable, 
Concurrent Hash Table

:::::: TO: Thomas Graf <[email protected]>
:::::: CC: David S. Miller <[email protected]>

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

Reply via email to