Re: b050de0f98 ("fs/binfmt_elf.c: free PT_INTERP filename ASAP"): BUG: KASAN: null-ptr-deref in allow_write_access

From: Nikitas Angelinas
Date: Tue Apr 02 2019 - 12:17:23 EST


On Tue, Apr 02, 2019 at 08:53:42PM +0530, Mukesh Ojha wrote:
> I think, this may fix the problem.
>
> https://patchwork.kernel.org/patch/10878501/
>
>
> Thanks,
> Mukesh
>
> On 4/2/2019 8:24 PM, kernel test robot wrote:
> > Greetings,
> >
> > 0day kernel testing robot got the below dmesg and the first bad commit is
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> >
> > commit b050de0f986606011986698de504c0dbc12c40dc
> > Author: Alexey Dobriyan <adobriyan@xxxxxxxxx>
> > AuthorDate: Fri Mar 29 10:02:05 2019 +1100
> > Commit: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
> > CommitDate: Sat Mar 30 16:09:51 2019 +1100
> >
> > fs/binfmt_elf.c: free PT_INTERP filename ASAP
> > There is no reason for PT_INTERP filename to linger till the end of
> > the whole loading process.
> > Link: http://lkml.kernel.org/r/20190314204953.GD18143@avx2
> > Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
> > Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> > Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> > Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
> >
> > 46238614d8 fs/binfmt_elf.c: make scope of "pos" variable smaller
> > b050de0f98 fs/binfmt_elf.c: free PT_INTERP filename ASAP
> > 05d08e2995 Add linux-next specific files for 20190402
<snip>
> >
> > ---
> > 0-DAY kernel test infrastructure Open Source Technology Center
> > https://lists.01.org/pipermail/lkp Intel Corporation
>

Hi,

Yes, it should.

Andrew seems to have added the patch to the -mm tree.


P.S. Apologies to individual recipients for the double-posting. I am resending
this as the previous mail was rejected from linux-kernel and linux-fsdevel due
to HTML content.



Cheers,
Nikitas