mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "James Lamanna" <jlamanna@gmail.com>
To: "Joerg Schilling" <Joerg.Schilling@fokus.fraunhofer.de>
Cc: linux-kernel@vger.kernel.org, ismail@pardus.org.tr
Subject: Re: Linux ISO-9660 Rock Ridge bug needs fix
Date: Tue, 17 Oct 2006 14:51:58 -0700	[thread overview]
Message-ID: <aa4c40ff0610171451l5597dc55i97fcad4cf111acd2@mail.gmail.com> (raw)
In-Reply-To: <45354bf7.Lo5w3vkS8/cH+1PI%Joerg.Schilling@fokus.fraunhofer.de>

On 10/17/06, Joerg Schilling <Joerg.Schilling@fokus.fraunhofer.de> wrote:
> James Lamanna <jlamanna@gmail.com> wrote:
>
> >
> > Joerg Shilling wrote:
[snip...]
> >
> > Hi Joerg,
> >
> > I am unable to duplicate this bug that supposedly exists even on older
> > kernels.
> > For instance, on a 2.6.16 kernel I do the following:
>
> Mm, I did not test, I did only check the source and it seems that I did
> interpret the check
>
>         len += offsetof(struct rock_ridge, u);
>         if (len > rs->len) {
>                 printk(KERN_NOTICE "rock: directory entry would overflow "
>                                 "storage\n");
>                 printk(KERN_NOTICE "rock: sig=0x%02x, size=%d, remaining=%d\n",
>                                 sig, len, rs->len);
>                 return -EIO;
>         }
>
> the wrong way.... because the error text is wrong. It should be corrected into
>
> "rock: directory entry would _underflow_ storage\n"

Yes I saw this check and misinterpreted it initially also.

I actually think 'overflow' is still correct since its testing for the
calcuated size (directory entry) being larger than the size reported
by the filesystem (storage).

I still submit my patch to Linus et. al. for consideration that also
detects overflow in the case of a v 1.12 PX entry. I may have time to
build a git kernel today or tomorrow and actually test it against a RR
iso image.

>
>
> Using the inode field from RRip 1.12 is definitely not trivial as it may affect
> many parts of the source and needs intensive testing.

Yes. If it is actually correct it allows for the use of iget_locked()
in isofs/inode.c instead of iget5_locked() (per
Documentation/filesystems/vfs.txt). Though I'll let a real VFS person
decide if that has any advantages.

-- James

  reply	other threads:[~2006-10-17 21:52 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-17 14:45 Joerg Schilling
2006-10-17 17:41 ` Ismail Donmez
2006-10-17 18:02   ` Luca Tettamanti
2006-10-17 18:14     ` Ismail Donmez
2006-10-17 18:16       ` Joerg Schilling
2006-10-17 18:32         ` Ismail Donmez
2006-10-17 19:50         ` Luca Tettamanti
2006-10-17 19:38     ` Pekka Enberg
2006-10-19 21:31       ` H. Peter Anvin
2006-10-17 18:12   ` Joerg Schilling
2006-10-17 18:28     ` Ismail Donmez
2006-10-17 18:32       ` Joerg Schilling
2006-10-17 18:39         ` Ismail Donmez
2006-10-17 21:07         ` James Lamanna
2006-10-17 21:32           ` Joerg Schilling
2006-10-17 21:51             ` James Lamanna [this message]
2006-10-17 22:24               ` Joerg Schilling
2006-10-17 23:06                 ` Alan Cox
2006-10-18 15:07                 ` Joerg Schilling
2006-10-17 19:53       ` Jan Engelhardt
2006-10-17 18:37 ` James Lamanna
     [not found] <771eN-VK-9@gated-at.bofh.it>
     [not found] ` <771yn-1XU-65@gated-at.bofh.it>
2006-10-17 23:09   ` Bodo Eggert
2006-10-18 15:14     ` Joerg Schilling
2006-10-18 22:45       ` Bodo Eggert
2006-10-18 23:29         ` Joerg Schilling
2006-10-19 21:16           ` Bodo Eggert
2006-10-19 21:39             ` Joerg Schilling
2006-10-19 21:49               ` Alan Cox

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=aa4c40ff0610171451l5597dc55i97fcad4cf111acd2@mail.gmail.com \
    --to=jlamanna@gmail.com \
    --cc=Joerg.Schilling@fokus.fraunhofer.de \
    --cc=ismail@pardus.org.tr \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome