All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adam Greenblatt <adam.greenblatt@gmail.com>
To: akpm@linux-foundation.org, jack@ucw.cz, linux-kernel@vger.kernel.org
Subject: [PATCH 2.6.26] isofs: fix minor filesystem corruption
Date: Tue, 15 Jul 2008 18:41:29 -1000	[thread overview]
Message-ID: <487D7BF9.60509@gmail.com> (raw)

Some iso9660 images contain files with rockridge data that is either 
incorrect or
incompletely parsed.  Prior to commit 
f2966632a134e865db3c819346a1dc7d96e05309,
(included with kernel 2.6.13) the kernel ignored the rockridge data for 
these files,
while still allowing the files to be accessed under their non-rockridge 
names.  That commit
inadvertently changed things so that files with invalid rockridge data 
could not be accessed
at all.  (I ran across the problem when comparing some old CDs with hard 
disk copies I had
made long ago under kernel 2.4: a few of the files on the hard disk 
copies were no longer
visible on the CDs.)

This change reverts to the pre-2.6.13 behavior.

Signed-off-by: Adam Greenblatt <adam.greenblatt@gmail.com>
---
--- linux-2.6.26/fs/isofs/rock.c.orig   2008-07-15 18:19:36.000000000 -1000
+++ linux-2.6.26/fs/isofs/rock.c        2008-07-15 18:16:56.000000000 -1000
@@ -217,7 +217,7 @@ repeat:
                rs.chr += rr->len;
                rs.len -= rr->len;
                if (rs.len < 0)
-                       goto eio;       /* corrupted isofs */
+                       goto out;       /* corrupted isofs */
 
                switch (sig) {
                case SIG('R', 'R'):


             reply	other threads:[~2008-07-16  4:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-16  4:41 Adam Greenblatt [this message]
2008-07-16  7:04 ` [PATCH 2.6.26] isofs: fix minor filesystem corruption Pekka Enberg

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=487D7BF9.60509@gmail.com \
    --to=adam.greenblatt@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=jack@ucw.cz \
    --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.