mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Jiri Kosina <jkosina@suse.cz>,
	kernel-testers@vger.kernel.org, linux-next@vger.kernel.org,
	LKML <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Rusty Russell <rusty@rustcorp.com.au>
Subject: Re: linux-next: Tree for June 25
Date: Fri, 27 Jun 2008 00:21:00 +1000	[thread overview]
Message-ID: <20080627002100.396d5cbb.sfr@canb.auug.org.au> (raw)
In-Reply-To: <200806261249.24340.rjw@sisk.pl>

[-- Attachment #1: Type: text/plain, Size: 1420 bytes --]

On Thu, 26 Jun 2008 12:49:23 +0200 "Rafael J. Wysocki" <rjw@sisk.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@suse.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@suse.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@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2008-06-26 14:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-25 14:35 Stephen Rothwell
2008-06-26  0:28 ` Rafael J. Wysocki
2008-06-26  2:02   ` Stephen Rothwell
2008-06-26  6:01     ` Rafael J. Wysocki
2008-06-26  6:59       ` Rafael J. Wysocki
2008-06-26 10:03         ` Jiri Kosina
2008-06-26 10:49           ` Rafael J. Wysocki
2008-06-26 14:21             ` Stephen Rothwell [this message]
2008-06-26 18:23               ` Rafael J. Wysocki
2008-06-27  3:01           ` Rusty Russell
2009-06-25  5:38 Stephen Rothwell
2010-06-25  3:40 Stephen Rothwell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080627002100.396d5cbb.sfr@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=akpm@linux-foundation.org \
    --cc=jkosina@suse.cz \
    --cc=kernel-testers@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=rjw@sisk.pl \
    --cc=rusty@rustcorp.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®