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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080627002100.396d5cbb.sfr@canb.auug.org.au>
Date:	Fri, 27 Jun 2008 00:21:00 +1000
From:	Stephen Rothwell <sfr@...b.auug.org.au>
To:	"Rafael J. Wysocki" <rjw@...k.pl>
Cc:	Jiri Kosina <jkosina@...e.cz>, kernel-testers@...r.kernel.org,
	linux-next@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Rusty Russell <rusty@...tcorp.com.au>
Subject: Re: linux-next: Tree for June 25

On Thu, 26 Jun 2008 12:49:23 +0200 "Rafael J. Wysocki" <rjw@...k.pl> wrote:
>
> > I guess this got in through Rusty's tree, right?
> > 
> > Does the patch below fix it please?
> 
> Yes, it does.

I have applied this patch to today's linux-next tree.

Rusty can you put this in you tree (or amend the patch that needs this)?

> > From: Jiri Kosina <jkosina@...e.cz>
> > Subject: [PATCH] module: fix NULL pointer dereference in find_symbol()
> > 
> > The patch that introduces each_symbol() iterator forgets to
> > test the NULL value of the output parameters (which the original
> > code did).
> > 
> > This patch restores the correct checks.
> > 
> > Signed-off-by: Jiri Kosina <jkosina@...e.cz>
> > ---
> >   kernel/module.c |    6 ++++--
> >   1 files changed, 4 insertions(+), 2 deletions(-)
> > 
> > diff --git a/kernel/module.c b/kernel/module.c
> > index 880409f..a3354ca 100644
> > --- a/kernel/module.c
> > +++ b/kernel/module.c
> > @@ -304,8 +304,10 @@ static unsigned long find_symbol(const char *name,
> >   	fsa.warn = warn;
> > 
> >   	if (each_symbol(find_symbol_in_section, &fsa)) {
> > -		*owner = fsa.owner;
> > -		*crc = fsa.crc;
> > +		if (owner)
> > +			*owner = fsa.owner;
> > +		if (crc)
> > +			*crc = fsa.crc;
> >   		return fsa.value;
> >   	}

-- 
Cheers,
Stephen Rothwell                    sfr@...b.auug.org.au
http://www.canb.auug.org.au/~sfr/

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ