]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: dereferencing freed pointers in ocfs2_reflink()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 14 Apr 2015 22:43:19 +0000 (15:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Apr 2015 23:48:57 +0000 (16:48 -0700)
commitdb0c4302f50ce0ef3c8d0a13f7e373e9ecc3a1ff
tree312f2d7e424362beb03ead1bdd39c50e5612b8c1
parent5ff9714301c45be2d76fe382ba2aa7570a9ad27f
ocfs2: dereferencing freed pointers in ocfs2_reflink()

The code at the "out" label assumes that "default_acl" and "acl" are NULL,
but actually the pointers can be NULL, unitialized, or freed.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/refcounttree.c