diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2018-09-10 12:43:29 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2018-09-10 13:55:49 +0300 |
commit | 8c25741aaad8be6fbe51510e917c740e0059cf83 (patch) | |
tree | 7f376965701e9e17bf83cea45fe0b62b94ae519c /fs/overlayfs/util.c | |
parent | b833a3660394876541d2513ce2736debc7c6797a (diff) | |
download | linux-8c25741aaad8be6fbe51510e917c740e0059cf83.tar.xz |
ovl: fix oopses in ovl_fill_super() failure paths
ovl_free_fs() dereferences ofs->workbasedir and ofs->upper_mnt in cases when
those might not have been initialized yet.
Fix the initialization order for these fields.
Reported-by: syzbot+c75f181dc8429d2eb887@syzkaller.appspotmail.com
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Cc: <stable@vger.kernel.org> # v4.15
Fixes: 95e6d4177cb7 ("ovl: grab reference to workbasedir early")
Fixes: a9075cdb467d ("ovl: factor out ovl_free_fs() helper")
Diffstat (limited to 'fs/overlayfs/util.c')
0 files changed, 0 insertions, 0 deletions