From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miklos Szeredi Subject: Re: [PATCH] ovl: Fix info leak in ovl_lookup_temp() Date: Wed, 21 Sep 2016 16:38:55 +0200 Message-ID: References: <1474019124-11340-1-git-send-email-richard@nod.at> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Kees Cook Cc: Richard Weinberger , "linux-unionfs@vger.kernel.org" , LKML List-Id: linux-unionfs@vger.kernel.org On Fri, Sep 16, 2016 at 10:36 PM, Kees Cook wrote: > On Fri, Sep 16, 2016 at 2:45 AM, Richard Weinberger wrote: >> The function uses the memory address of a struct dentry as unique id. >> While the address-based directory entry is only visible to root >> it is IMHO still worth fixing since the temporary name does not have >> to be a kernel address. It can be any unique number. Replace it by an >> atomic integer which is allowed to wrap around. >> >> Signed-off-by: Richard Weinberger Thanks, applied and pushed to #overlayfs-next. Thanks, Miklos