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

From: Christian Brauner
Date: Mon May 15 2023 - 07:05:09 EST


On Fri, May 05, 2023 at 08:24:50PM +0800, Zhihao Cheng wrote:
> Zhihao Cheng (2):
> ovl: get_acl: Fix null pointer dereference at realinode in rcu-walk
> mode
> ovl: ovl_permission: Fix null pointer dereference at realinode in
> rcu-walk mode
>
> fs/overlayfs/inode.c | 14 +++++++++-----
> 1 file changed, 9 insertions(+), 5 deletions(-)

Seems fine to me. Thanks for fixing this,
Reviewed-by: Christian Brauner <brauner@xxxxxxxxxx>

(One thing that might be possible is to move this into a tiny static
inline helper but might not be worth it.)