public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>
To: Peter Osterlund <petero2@telia.com>,
	akpm@osdl.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.14-mm2 OOPS - packet writing
Date: Sat, 12 Nov 2005 23:28:36 +0100	[thread overview]
Message-ID: <43766C94.1060108@gmail.com> (raw)
In-Reply-To: <m3fyq2ug5h.fsf@telia.com>

Hi,

Peter Osterlund napisał(a):

>There is an old bug in the pkt_count_states() function that causes
>stack corruption. When compiling with gcc 3.x or 2.x it is harmless,
>but gcc 4 allocates local variables differently, which makes the bug
>visible. Fixed by this patch.
>
>Signed-off-by: Peter Osterlund <petero2@telia.com>
>---
>
> drivers/block/pktcdvd.c |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
>diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c
>index 391ced8..b5f67b1 100644
>--- a/drivers/block/pktcdvd.c
>+++ b/drivers/block/pktcdvd.c
>@@ -1188,7 +1188,7 @@ static void pkt_count_states(struct pktc
> 	struct packet_data *pkt;
> 	int i;
> 
>-	for (i = 0; i <= PACKET_NUM_STATES; i++)
>+	for (i = 0; i < PACKET_NUM_STATES; i++)
> 		states[i] = 0;
> 
> 	spin_lock(&pd->cdrw.active_list_lock);
>
>  
>
Great thanks, patch fixed problem. Can you send it to Linus?

Regards,
Michal Piotrowski

      reply	other threads:[~2005-11-12 22:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-12  0:01 2.6.14-mm2 OOPS - packet writing Michal Piotrowski
2005-11-12 13:52 ` Peter Osterlund
2005-11-12 22:28   ` Michal Piotrowski [this message]

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=43766C94.1060108@gmail.com \
    --to=michal.k.k.piotrowski@gmail.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=petero2@telia.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox