lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAH2r5mud1Y1dWDzr6zn2aD5y0HtPhn_CKP-ZQVR-QNQDWxpqOg@mail.gmail.com>
Date:	Tue, 7 Feb 2012 22:26:42 -0600
From:	Steve French <smfrench@...il.com>
To:	Jeff Layton <jlayton@...hat.com>
Cc:	Jesper Juhl <jj@...osbits.net>, linux-cifs@...r.kernel.org,
	samba-technical@...ts.samba.org, linux-kernel@...r.kernel.org,
	Steve French <sfrench@...ba.org>
Subject: Re: [PATCH] CIFS: Fix NULL pointer dereference in cifs_construct_tcon()

It should be merged now.

In addition, jeff's more recent 3 patches are now in cifs-2.6.git

On Sun, Feb 5, 2012 at 5:22 AM, Jeff Layton <jlayton@...hat.com> wrote:
>
> On Sun, 5 Feb 2012 00:35:19 +0100 (CET)
> Jesper Juhl <jj@...osbits.net> wrote:
>
> > If the call to kcalloc() fails and returns NULL we'll dereference a
> > NULL 'vol_info' after we jump to the 'out:' label.
> >
> > Signed-off-by: Jesper Juhl <jj@...osbits.net>
> > ---
> >  fs/cifs/connect.c |    4 ++--
> >  1 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
> > index 986709a..bd67b7c 100644
> > --- a/fs/cifs/connect.c
> > +++ b/fs/cifs/connect.c
> > @@ -3859,7 +3859,7 @@ cifs_construct_tcon(struct cifs_sb_info *cifs_sb, uid_t fsuid)
> >       vol_info = kzalloc(sizeof(*vol_info), GFP_KERNEL);
> >       if (vol_info == NULL) {
> >               tcon = ERR_PTR(-ENOMEM);
> > -             goto out;
> > +             goto out2;
> >       }
> >
> >       vol_info->local_nls = cifs_sb->local_nls;
> > @@ -3901,7 +3901,7 @@ out:
> >       kfree(vol_info->username);
> >       kfree(vol_info->password);
> >       kfree(vol_info);
> > -
> > +out2:
> >       return tcon;
> >  }
> >
>
> Thanks. Dan Carpenter already sent a patch a couple of weeks ago to fix
> this. Steve has it in his tree, but hasn't pushed it to Linus yet.
>
> Steve, is there a reason you're waiting?
>
> --
> Jeff Layton <jlayton@...hat.com>




--
Thanks,

Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ