]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gfs2: Avoid alignment hole in struct lm_lockname
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 6 Mar 2017 17:58:42 +0000 (12:58 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Mar 2017 11:08:12 +0000 (13:08 +0200)
commita69813714424f0cbbf1d7440b84c5fe4ae3d69af
tree91eabc6627b2fe1ee7aaf2e7f193167f999514d0
parentd369c16ffb4650c87e19e1295db9f980d2a9b013
gfs2: Avoid alignment hole in struct lm_lockname

commit 28ea06c46fbcab63fd9a55531387b7928a18a590 upstream.

Commit 88ffbf3e03 switches to using rhashtables for glocks, hashing over
the entire struct lm_lockname instead of its individual fields.  On some
architectures, struct lm_lockname contains a hole of uninitialized
memory due to alignment rules, which now leads to incorrect hash values.
Get rid of that hole.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/gfs2/incore.h