From: Michal Kubecek Date: Fri, 18 Jan 2013 15:03:48 +0000 (+0100) Subject: xfrm: fix freed block size calculation in xfrm_policy_fini() X-Git-Tag: v3.8-rc6~20^2~23^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b653b2a1c3b5634368fde2df958a1398481e580;p=pandora-kernel.git xfrm: fix freed block size calculation in xfrm_policy_fini() Missing multiplication of block size by sizeof(struct hlist_head) can cause xfrm_hash_free() to be called with wrong second argument so that kfree() is called on a block allocated with vzalloc() or __get_free_pages() or free_pages() is called with wrong order when a namespace with enough policies is removed. Bug introduced by commit a35f6c5d, i.e. versions >= 2.6.29 are affected. Signed-off-by: Michal Kubecek Signed-off-by: Steffen Klassert --- Reading git-diff-tree failed