Sorry, I noticed number of stack entry is poe->numlower in previous version, so I must be missing redirect related thing here, please just drop the patch. > 在 2018年4月11日,上午11:42,Chengguang Xu <cgxu519@xxxxxxx> 写道: > > In ovl_lookup, the number of lowerstack entry is no bigger > than poe->numlower, so adjust memory allocation size for stack. > > Signed-off-by: Chengguang Xu <cgxu519@xxxxxxx> > --- > fs/overlayfs/namei.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/overlayfs/namei.c b/fs/overlayfs/namei.c > index 2dba29e..81dbc3f 100644 > --- a/fs/overlayfs/namei.c > +++ b/fs/overlayfs/namei.c > @@ -888,7 +888,7 @@ struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry, > > if (!d.stop && poe->numlower) { > err = -ENOMEM; > - stack = kcalloc(ofs->numlower, sizeof(struct ovl_path), > + stack = kcalloc(poe->numlower, sizeof(struct ovl_path), > GFP_KERNEL); > if (!stack) > goto out_put_upper; > -- > 1.8.3.1 > -- To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html