Re: [PATCH v3 0/3] ovl: Fix null ptr dereference at realinode in rcu-walk

From: Christian Brauner
Date: Tue May 16 2023 - 11:42:43 EST


On Tue, May 16, 2023 at 10:16:16PM +0800, Zhihao Cheng wrote:
> v1->v2:
> Extract a helper to get realpath and real inode from ovl inode.
> Get realinode from realpath in do_ovl_get_acl().
> v2->v3:
> Modify original helper ovl_i_path_real() to return the realinode.
>
> Zhihao Cheng (3):
> ovl: Let helper ovl_i_path_real() return the realinode
> ovl: ovl_permission: Fix null pointer dereference at realinode in
> rcu-walk mode
> ovl: get_acl: Fix null pointer dereference at realinode in rcu-walk
> mode
>
> fs/overlayfs/inode.c | 17 ++++++++---------
> fs/overlayfs/overlayfs.h | 2 +-
> fs/overlayfs/util.c | 7 ++++---
> 3 files changed, 13 insertions(+), 13 deletions(-)

Looks good to me,
Reviewed-by: Christian Brauner <brauner@xxxxxxxxxx>