Re: [PATCH] fs: fs_parser: avoid NULL param->string to kstrtouint

2019-07-19 Thread YinFengwei
On Fri, Jul 19, 2019 at 07:38:11PM +0200, Greg KH wrote: > On Fri, Jul 19, 2019 at 08:43:29PM +0800, Yin Fengwei wrote: > > syzbot reported general protection fault in kstrtouint: > > https://lkml.org/lkml/2019/7/18/328 > > > > >From the log, if the mount option is something like: > >

Re: [PATCH] fs: fs_parser: avoid NULL param->string to kstrtouint

2019-07-19 Thread YinFengwei
On Fri, Jul 19, 2019 at 03:37:37PM +0200, Dmitry Vyukov wrote: > On Fri, Jul 19, 2019 at 2:44 PM Yin Fengwei wrote: > > > > syzbot reported general protection fault in kstrtouint: > > https://lkml.org/lkml/2019/7/18/328 > > > > From the log, if the mount option is something like: > >

Re: [PATCH] fs: fs_parser: avoid NULL param->string to kstrtouint

2019-07-19 Thread Greg KH
On Fri, Jul 19, 2019 at 08:43:29PM +0800, Yin Fengwei wrote: > syzbot reported general protection fault in kstrtouint: > https://lkml.org/lkml/2019/7/18/328 > > >From the log, if the mount option is something like: >fd, > > The default parameter (which has NULL

Re: [PATCH] fs: fs_parser: avoid NULL param->string to kstrtouint

2019-07-19 Thread Dmitry Vyukov
On Fri, Jul 19, 2019 at 2:44 PM Yin Fengwei wrote: > > syzbot reported general protection fault in kstrtouint: > https://lkml.org/lkml/2019/7/18/328 > > From the log, if the mount option is something like: >fd, > > The default parameter (which has NULL param->string) will

[PATCH] fs: fs_parser: avoid NULL param->string to kstrtouint

2019-07-19 Thread Yin Fengwei
syzbot reported general protection fault in kstrtouint: https://lkml.org/lkml/2019/7/18/328 >From the log, if the mount option is something like: fd, The default parameter (which has NULL param->string) will be passed to vfs_parse_fs_param. Finally, this NULL param->string