From: "Jason Munro" <jason@stdbev.com>
To: Andrew Morton <akpm@osdl.org>
Cc: <linux-kernel@vger.kernel.org>, <elenstev@mesatop.com>
Subject: Re: 2.6.12-rc1-mm3 (cannot read cd-rom, 2.6.12-rc1 is OK)
Date: Fri, 25 Mar 2005 16:43:50 -0600 [thread overview]
Message-ID: <f2efeeee48c1ed6eb1438b103c5a5559@stdbev.com> (raw)
In-Reply-To: <20050325142336.12687e09.akpm@osdl.org>
On 4:23:36 pm 03/25/05 Andrew Morton <akpm@osdl.org> wrote:
> Andrew Morton <akpm@osdl.org> wrote:
> >
> > It's the new rock-ridge bounds checking.
>
> Try this, please?
>
> diff -puN fs/isofs/rock.c~rock-handle-directory-overflows-fix
> fs/isofs/rock.c --- 25/fs/isofs/rock.c~rock-handle-directory-overflows
> -fix Fri Mar 25 14:21:32 2005
> +++ 25-akpm/fs/isofs/rock.c Fri Mar 25 14:22:01 2005
> @@ -218,12 +218,12 @@ repeat:
> if (rr->len < 3)
> goto out; /* Something got screwed up here */
> sig = isonum_721(rs.chr);
> + if (rock_check_overflow(&rs, sig))
> + goto eio;
> rs.chr += rr->len;
> rs.len -= rr->len;
> if (rs.len < 0)
> goto eio; /* corrupted isofs */
> - if (rock_check_overflow(&rs, sig))
> - goto eio;
>
> switch (sig) {
> case SIG('R', 'R'):
> @@ -316,12 +316,12 @@ repeat:
> if (rr->len < 3)
> goto out; /* Something got screwed up here */
> sig = isonum_721(rs.chr);
> + if (rock_check_overflow(&rs, sig))
> + goto eio;
> rs.chr += rr->len;
> rs.len -= rr->len;
> if (rs.len < 0)
> goto eio; /* corrupted isofs */
> - if (rock_check_overflow(&rs, sig))
> - goto eio;
>
> switch (sig) {
> #ifndef CONFIG_ZISOFS /* No flag for SF or ZF */
> @@ -694,12 +694,12 @@ repeat:
> if (rr->len < 3)
> goto out; /* Something got screwed up here */
> sig = isonum_721(rs.chr);
> + if (rock_check_overflow(&rs, sig))
> + goto out;
> rs.chr += rr->len;
> rs.len -= rr->len;
> if (rs.len < 0)
> goto out; /* corrupted isofs */
> - if (rock_check_overflow(&rs, sig))
> - goto out;
>
> switch (sig) {
> case SIG('R', 'R'):
> _
This fixes it here.
\__ Jason Munro
\__ jason@stdbev.com
\__ http://hastymail.sourceforge.net/
next prev parent reply other threads:[~2005-03-25 22:44 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-25 8:21 2.6.12-rc1-mm3 Andrew Morton
2005-03-25 10:46 ` 2.6.12-rc1-mm3 Brice Goglin
2005-03-25 11:29 ` 2.6.12-rc1-mm3: box hangs solid on resume from disk while resuming device drivers Rafael J. Wysocki
2005-05-02 22:54 ` Andrew Morton
2005-05-03 19:34 ` Rafael J. Wysocki
2005-03-25 16:46 ` 2.6.12-rc1-mm3 Borislav Petkov
2005-03-31 13:05 ` 2.6.12-rc1-mm3 Borislav Petkov
2005-03-31 20:11 ` 2.6.12-rc1-mm3 Andrew Morton
2005-03-31 20:57 ` 2.6.12-rc1-mm3 Borislav Petkov
2005-03-25 18:17 ` 2.6.12-rc1-mm3 Barry K. Nathan
2005-03-25 19:50 ` 2.6.12-rc1-mm3 (cannot read cd-rom, 2.6.12-rc1 is OK) Steven Cole
2005-03-25 20:17 ` Steven Cole
2005-03-25 20:24 ` Andrew Morton
2005-03-25 21:22 ` Steven Cole
2005-03-25 21:49 ` Andrew Morton
2005-03-25 22:31 ` Steven Cole
2005-03-25 21:49 ` Jason Munro
2005-03-25 22:06 ` Andrew Morton
2005-03-25 22:23 ` Andrew Morton
2005-03-25 22:43 ` Steven Cole
2005-03-25 22:43 ` Jason Munro [this message]
2005-03-25 22:58 ` Andrew Morton
2005-03-25 22:27 ` Chris Wright
2005-03-25 22:27 ` Jason Munro
2005-03-25 22:30 ` Jason Munro
2005-03-26 1:43 ` 2.6.12-rc1-mm3 Jason Uhlenkott
[not found] ` <20050326014327.GB207782-MxuHJOjpcnauM61iycY1Zzbuus4N2nEH@public.gmane.org>
2005-03-26 1:56 ` 2.6.12-rc1-mm3 Len Brown
2005-03-26 1:56 ` [ACPI] " Len Brown
2005-03-26 2:02 ` Jason Uhlenkott
[not found] ` <20050326020212.GC207782-MxuHJOjpcnauM61iycY1Zzbuus4N2nEH@public.gmane.org>
2005-03-26 2:24 ` Len Brown
2005-03-26 2:24 ` [ACPI] " Len Brown
2005-03-26 2:57 ` Jason Uhlenkott
[not found] ` <20050326025704.GE207782-MxuHJOjpcnauM61iycY1Zzbuus4N2nEH@public.gmane.org>
2005-03-26 3:40 ` Jesse Barnes
2005-03-26 3:40 ` [ACPI] " Jesse Barnes
2005-03-26 4:12 ` Len Brown
2005-03-26 5:52 ` Jason Uhlenkott
2005-03-26 5:52 ` [ACPI] " Jason Uhlenkott
2005-03-26 10:19 ` 2.6.12-rc1-mm3, sound card lost id Jean Delvare
2005-03-29 12:24 ` Takashi Iwai
2005-03-29 12:24 ` [Alsa-devel] " Takashi Iwai
2005-03-29 17:57 ` Jean Delvare
2005-03-29 17:57 ` [Alsa-devel] " Jean Delvare
2005-03-29 20:17 ` Lee Revell
2005-03-29 20:17 ` [Alsa-devel] " Lee Revell
2005-03-29 20:46 ` Jean Delvare
2005-03-29 20:46 ` [Alsa-devel] " Jean Delvare
2005-03-29 20:52 ` Lee Revell
2005-03-29 20:52 ` [Alsa-devel] " Lee Revell
2005-03-29 21:13 ` Jean Delvare
2005-03-29 21:13 ` [Alsa-devel] " Jean Delvare
2005-03-29 21:18 ` Lee Revell
2005-03-29 21:18 ` [Alsa-devel] " Lee Revell
2005-03-29 20:53 ` James Courtier-Dutton
2005-03-30 7:18 ` Jaroslav Kysela
2005-03-30 12:24 ` Takashi Iwai
2005-03-30 12:24 ` [Alsa-devel] " Takashi Iwai
2005-03-26 10:19 ` Jean Delvare
2005-03-26 19:39 ` PCMCIA Oops (was Re: 2.6.12-rc1-mm3) Sean Neakums
2005-03-26 22:00 ` Dominik Brodowski
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=f2efeeee48c1ed6eb1438b103c5a5559@stdbev.com \
--to=jason@stdbev.com \
--cc=akpm@osdl.org \
--cc=elenstev@mesatop.com \
--cc=linux-kernel@vger.kernel.org \
/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.