]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: fix error handling in ovl_verify_set_fh()
authorAmir Goldstein <amir73il@gmail.com>
Wed, 10 Oct 2018 16:10:06 +0000 (19:10 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 26 Oct 2018 21:34:39 +0000 (23:34 +0200)
commitcb1af2faeccc169dacc1554c24675492e662c8aa
tree74103db8c537314f7c56708ed36aa54961993fc1
parent2e09106ae1b4c0fe2085211973677140da5ec823
ovl: fix error handling in ovl_verify_set_fh()

We hit a BUG on kfree of an ERR_PTR()...

Reported-by: syzbot+ff03fe05c717b82502d0@syzkaller.appspotmail.com
Fixes: 0d5cdc04b382 ("ovl: verify upper root dir matches lower root dir")
Cc: <stable@vger.kernel.org> # v4.13
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/namei.c