summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2009-03-12 08:37:34 +0800
committerMark Fasheh <mfasheh@suse.com>2009-03-12 16:46:09 -0700
commit712e53e46a1da35fcd88c05aa0c675b10f7c0e9d (patch)
treef67f6aae06936bcf28c669b48e55ac39a6854be2 /init
parent74e77eb30d0ecbb12964d005b439c8b84a505b84 (diff)
downloadlinux-3.10-712e53e46a1da35fcd88c05aa0c675b10f7c0e9d.tar.gz
linux-3.10-712e53e46a1da35fcd88c05aa0c675b10f7c0e9d.tar.bz2
linux-3.10-712e53e46a1da35fcd88c05aa0c675b10f7c0e9d.zip
ocfs2: Use xs->bucket to set xattr value outside
A long time ago, xs->base is allocated a 4K size and all the contents in the bucket are copied to the it. Now we use ocfs2_xattr_bucket to abstract xattr bucket and xs->base is initialized to the start of the bu_bhs[0]. So xs->base + offset will overflow when the value root is stored outside the first block. Then why we can survive the xattr test by now? It is because we always read the bucket contiguously now and kernel mm allocate continguous memory for us. We are lucky, but we should fix it. So just get the right value root as other callers do. Signed-off-by: Tao Ma <tao.ma@oracle.com> Acked-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions