All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: The development of GNU GRUB <grub-devel@gnu.org>, 634799@bugs.debian.org
Subject: Re: grub2 claims grub.cfg is out of partition
Date: Thu, 21 Jul 2011 00:31:51 +0200	[thread overview]
Message-ID: <4E275757.6010601@gmail.com> (raw)
In-Reply-To: <20110720222808.GE7303@const.famille.thibault.fr>

[-- Attachment #1: Type: text/plain, Size: 822 bytes --]

On 21.07.2011 00:28, Samuel Thibault wrote:
> tags 634799 + upstream patch
> thanks
>
> Hello,
>
I've looked into it and arrived to the similar conclusion that the
grub.cfg.new with inode = 0 is the problem. However I think no such
entries should be there in the first place. In any case GRUB must be
robust to such corruptions but I'd recommend to fix Hurd ext2
implementation as well.
> Digging a bit with the issue, it seems grub2 does not ignore entries
> with inode == 0 while it should. See linux' ext2_readdir() in
> fs/ext2/dir.c doing it:
>
> 		for ( ;(char*)de <= limit; de = ext2_next_entry(de)) {
> 			if (de->inode) {
> 			  ...
> 			}
> 		}
>
> The attached patch fixes it. Shall I commit it to upstream grub2?
>
> Samuel


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

  reply	other threads:[~2011-07-20 22:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-20 21:50 grub2 claims grub.cfg is out of partition Svante Signell
2011-07-20 22:02 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-07-20 22:17   ` Svante Signell
2011-07-20 22:28     ` Samuel Thibault
2011-07-20 22:31       ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2011-07-20 22:54         ` Samuel Thibault
2011-07-20 23:14           ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-07-20 22:33       ` Vladimir 'φ-coder/phcoder' Serbinenko

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=4E275757.6010601@gmail.com \
    --to=phcoder@gmail.com \
    --cc=634799@bugs.debian.org \
    --cc=grub-devel@gnu.org \
    --cc=samuel.thibault@ens-lyon.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.