All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Oleg Drokin <oleg.drokin@intel.com>,
	Patrick Farrell <paf@cray.com>,
	lustre-devel@lists.lustre.org, Bobi Jam <bobijam@hotmail.com>,
	James Simmons <uja.ornl@yahoo.com>, Olaf Weber <olaf@sgi.com>,
	James Simmons <jsimmons@infradead.org>,
	Jinshan Xiong <jinshan.xiong@intel.com>,
	"John L . Hammond" <john.hammond@intel.com>,
	Liang Zhen <liang.zhen@intel.com>,
	Andreas Dilger <andreas.dilger@intel.com>,
	Shivani Bhardwaj <shivanib134@gmail.com>,
	Andriy Skulysh <Andriy_Skulysh@xyratex.com>,
	devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: [lustre-devel] [PATCH v2 1/2] staging: lustre: remove broken dead code in cfs_cpt_table_create_pattern
Date: Thu, 27 Oct 2016 15:36:04 +0200	[thread overview]
Message-ID: <2652666.mQoRF2ExRO@wuerfel> (raw)
In-Reply-To: <20161027131242.GA11187@kroah.com>

On Thursday, October 27, 2016 3:12:42 PM CEST Greg Kroah-Hartman wrote:
> On Tue, Oct 25, 2016 at 11:22:30PM +0200, Arnd Bergmann wrote:
> > After a recent bugfix, we get a warning about the use of an uninitialized
> > variable:
> > 
> > drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c: In function 'cfs_cpt_table_create_pattern':
> > drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c:833:7: error: 'str' may be used uninitialized in this function [-Werror=maybe-uninitialized]
> > 
> > This part of the function used to not do anything as we would reassign
> > the 'str' pointer to something else right away, but now we pass an
> > uninitialized pointer into 'strchr', which can cause a kernel page fault
> > or worse.
> > 
> > Fixes: 239fd5d41f9b ("staging: lustre: libcfs: shortcut to create CPT from NUMA topology")
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> > ---
> >  drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c | 7 -------
> >  1 file changed, 7 deletions(-)
> 
> Hm, I already applied the v1 versions of these, right?  What changed
> with these, they seem identical to me...

The patches you applied were fine, they just had not made it into linux-next
by Tuesday, and I thought they got lost as I had sent them as part of a longer
series and I screwed up one of the two changelogs initially (you applied the
fixed v2 patch I sent immediately afterwards).

Sorry about the confusion.

	Arnd

WARNING: multiple messages have this Message-ID (diff)
From: Arnd Bergmann <arnd@arndb.de>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Oleg Drokin <oleg.drokin@intel.com>,
	Patrick Farrell <paf@cray.com>,
	lustre-devel@lists.lustre.org, Bobi Jam <bobijam@hotmail.com>,
	James Simmons <uja.ornl@yahoo.com>, Olaf Weber <olaf@sgi.com>,
	James Simmons <jsimmons@infradead.org>,
	Jinshan Xiong <jinshan.xiong@intel.com>,
	"John L . Hammond" <john.hammond@intel.com>,
	Liang Zhen <liang.zhen@intel.com>,
	Andreas Dilger <andreas.dilger@intel.com>,
	Shivani Bhardwaj <shivanib134@gmail.com>,
	Andriy Skulysh <Andriy_Skulysh@xyratex.com>,
	devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] staging: lustre: remove broken dead code in cfs_cpt_table_create_pattern
Date: Thu, 27 Oct 2016 15:36:04 +0200	[thread overview]
Message-ID: <2652666.mQoRF2ExRO@wuerfel> (raw)
In-Reply-To: <20161027131242.GA11187@kroah.com>

On Thursday, October 27, 2016 3:12:42 PM CEST Greg Kroah-Hartman wrote:
> On Tue, Oct 25, 2016 at 11:22:30PM +0200, Arnd Bergmann wrote:
> > After a recent bugfix, we get a warning about the use of an uninitialized
> > variable:
> > 
> > drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c: In function 'cfs_cpt_table_create_pattern':
> > drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c:833:7: error: 'str' may be used uninitialized in this function [-Werror=maybe-uninitialized]
> > 
> > This part of the function used to not do anything as we would reassign
> > the 'str' pointer to something else right away, but now we pass an
> > uninitialized pointer into 'strchr', which can cause a kernel page fault
> > or worse.
> > 
> > Fixes: 239fd5d41f9b ("staging: lustre: libcfs: shortcut to create CPT from NUMA topology")
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> > ---
> >  drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c | 7 -------
> >  1 file changed, 7 deletions(-)
> 
> Hm, I already applied the v1 versions of these, right?  What changed
> with these, they seem identical to me...

The patches you applied were fine, they just had not made it into linux-next
by Tuesday, and I thought they got lost as I had sent them as part of a longer
series and I screwed up one of the two changelogs initially (you applied the
fixed v2 patch I sent immediately afterwards).

Sorry about the confusion.

	Arnd

  reply	other threads:[~2016-10-27 13:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-25 21:22 [lustre-devel] [PATCH v2 1/2] staging: lustre: remove broken dead code in cfs_cpt_table_create_pattern Arnd Bergmann
2016-10-25 21:22 ` Arnd Bergmann
2016-10-25 21:22 ` [lustre-devel] [PATCH v2 2/2] staging: lustre: restore initialization of return code Arnd Bergmann
2016-10-25 21:22   ` Arnd Bergmann
2016-10-27 13:12 ` [lustre-devel] [PATCH v2 1/2] staging: lustre: remove broken dead code in cfs_cpt_table_create_pattern Greg Kroah-Hartman
2016-10-27 13:12   ` Greg Kroah-Hartman
2016-10-27 13:36   ` Arnd Bergmann [this message]
2016-10-27 13:36     ` Arnd Bergmann

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=2652666.mQoRF2ExRO@wuerfel \
    --to=arnd@arndb.de \
    --cc=Andriy_Skulysh@xyratex.com \
    --cc=andreas.dilger@intel.com \
    --cc=bobijam@hotmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jinshan.xiong@intel.com \
    --cc=john.hammond@intel.com \
    --cc=jsimmons@infradead.org \
    --cc=liang.zhen@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lustre-devel@lists.lustre.org \
    --cc=olaf@sgi.com \
    --cc=oleg.drokin@intel.com \
    --cc=paf@cray.com \
    --cc=shivanib134@gmail.com \
    --cc=uja.ornl@yahoo.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.