From: "Thomas Schmitt" <scdbackup@gmx.net>
To: grub-devel@gnu.org
Cc: fengtao40@huawei.com,dkiper@net-space.pl
Subject: Re: Possible memory fault in fs/iso9660 (correction)
Date: Tue, 29 Nov 2022 20:12:00 +0100 [thread overview]
Message-ID: <31587388199100297735@scdbackup.webframe.org> (raw)
In-Reply-To: <20221129142607.h3pz24b2rxuyooss@tomti.i.net-space.pl>
Hi,
i wrote:
> > > I will think about creating such an ISO by help of xorriso and dd.
Daniel Kiper wrote:
> Yeah, that would be perfect...
I believe to have created one. But grub-fstest does not produce a memory
fault. See my mail
Date: Tue, 29 Nov 2022 19:47:22 +0100
Message-Id: <50363882005823433@scdbackup.webframe.org>
for the recipe to create that ISO.
I riddle:
- Would valgrind detect out-of-bounds reading in GRUB code ?
(Or does the code under grub-fstest allocate a large memory chunk on
which the memory management of GRUB operates ?)
- Is there a way to build the involved code for use under gdb ?
- How can i insert debug messages into grub-core/fs/iso9660.c ?
> > > [more opportunities to let the code derail]
> Huh! Could you fix these issues too?
I will try. But first i need to master grub-fstest or some other testbed
so that i can verify my theoretical considerations.
(The "- 1" problem is obvious from C code considerations. But the number
to replace the "1" is not so obvious and in general we should not fix
what is not broken.)
> > > In general:
> > > How mistrusting should GRUB be towards the bytes in the filesystem ?
> I think as little as possible. Especially if incorrect values may lead
> to OOB writes...
It is about out-of-bounds reads.
But i don't understand well the combination of your two sentences:
GRUB shall be credulent, especially if bad writes were involved ?
I would think that this is to be avoided most.
So please explain the philosopy a bit more verbous for an old programmer
or point me to examples.
(I would look into the other fs drivers if i would understand filesystems
other than ISO 9660.)
Have a nice day :)
Thomas
next prev parent reply other threads:[~2022-11-29 19:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-19 12:38 Possible memory fault in fs/iso9660 Thomas Schmitt
2022-11-19 12:57 ` Possible memory fault in fs/iso9660 (correction) Thomas Schmitt
2022-11-24 13:17 ` Daniel Kiper
2022-11-24 15:16 ` Thomas Schmitt
2022-11-29 9:32 ` Fengtao (fengtao, Euler)
2022-11-29 14:26 ` Daniel Kiper
2022-11-29 19:12 ` Thomas Schmitt [this message]
2022-11-29 18:47 ` Thomas Schmitt
2022-12-12 14:32 ` Daniel Kiper
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=31587388199100297735@scdbackup.webframe.org \
--to=scdbackup@gmx.net \
--cc=dkiper@net-space.pl \
--cc=fengtao40@huawei.com \
--cc=grub-devel@gnu.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.