From: Hin-Tak Leung <hintak_leung@yahoo.co.uk>
To: Pekka Enberg <penberg@kernel.org>
Cc: linux-fsdevel@vger.kernel.org, Naohiro Aota <naota@elisp.net>,
linux-kernel@vger.kernel.org, Christoph Hellwig <hch@tuxera.com>
Subject: Re: [PATCH] hfsplus: Add record offset check
Date: Thu, 14 Jul 2011 06:06:54 +0100 (BST) [thread overview]
Message-ID: <1310620014.9822.YahooMailClassic@web29502.mail.ird.yahoo.com> (raw)
In-Reply-To: <CAOJsxLHi_5yuqvOEoGuGQbz86TTuMpinbHzuNEtmvZaZMhcJYA@mail.gmail.com>
--- On Wed, 13/7/11, Pekka Enberg <penberg@kernel.org> wrote:
> From: Pekka Enberg <penberg@kernel.org>
> Subject: Re: [PATCH] hfsplus: Add record offset check
> To: "Hin-Tak Leung" <hintak_leung@yahoo.co.uk>
> Cc: linux-fsdevel@vger.kernel.org, "Naohiro Aota" <naota@elisp.net>, linux-kernel@vger.kernel.org, "Christoph Hellwig" <hch@tuxera.com>
> Date: Wednesday, 13 July, 2011, 7:06
> On Wed, Jul 13, 2011 at 6:58 AM,
> Hin-Tak Leung <hintak_leung@yahoo.co.uk>
> wrote:
> >> Corrupted disk may return record offset which is
> larger
> >> than node size
> >> and cause general protection fault like below:
> >
> > <snipped>
> >
> >> This patch add guard for this situation.
> >>
> >> Signed-off-by: Naohiro Aota <naota@elisp.net>
> >
> > Nacked. This isn't acceptable. Explained above.
>
> 'recoff' is read from disk which can be easily fuzzed to
> have an
> offset that's larger than node_size, no? The kernel
> shouldn't oops in
> that cases so what's the problem with the patch? (The
> changelog is
> terribly vague, though, and needs to be fixed).
You have put your finger one problem of the patch - 'The changelog is terribly vague, though, and needs to be fixed'.
The other issue is that, while the kernel should not oops no matter what, the patch (or the changelog itself) made no attempts at explaining why this specific approach. e.g. What happens after 'return 0'? For example.
next prev parent reply other threads:[~2011-07-14 5:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-11 18:46 Naohiro Aota
2011-07-13 3:58 ` Hin-Tak Leung
2011-07-13 6:06 ` Pekka Enberg
2011-07-14 5:06 ` Hin-Tak Leung [this message]
2011-07-13 22:20 ` Naohiro Aota
2011-07-14 7:30 ` Pekka Enberg
2011-07-14 8:07 ` Hin-Tak Leung
2011-07-14 14:53 ` Christoph Hellwig
2011-07-17 22:08 ` [PATCH v2] hfsplus: Add additional range check to handle on-disk corruptions Naohiro Aota
2011-07-18 15:12 ` Christoph Hellwig
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=1310620014.9822.YahooMailClassic@web29502.mail.ird.yahoo.com \
--to=hintak_leung@yahoo.co.uk \
--cc=hch@tuxera.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=naota@elisp.net \
--cc=penberg@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
all inboxes | Powered by JetHome®