From: "Gabor Janak (g.janak@agilion.de)" <g.janak@agilion.de>
To: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Is this a barebox bootm memory release Bug ?
Date: Wed, 18 Mar 2015 16:28:26 +0000 [thread overview]
Message-ID: <DB3PR03MB0826E47A0EE5FF439BDD67B698000@DB3PR03MB0826.eurprd03.prod.outlook.com> (raw)
Hi,
I have one little question.
In [barebox.git] / common / bootm.c Line 201
196 if (data->verify) {
197 ret = uimage_verify(data->os);
198 if (ret) {
199 printf("Checking data crc failed with %s\n",
200 strerror(-ret));
201 uimage_close(data->os);
202 return ret;
203 }
204 }
The uimage is closed but data->os is not set to NULL.
If this function is called from bootm_boot in
472 ret = handler->bootm(data);
and
482 if (data->os)
483 uimage_close(data->os);
will crash free something ....
Will end in a possible
unable to handle paging request at address 0xfe148f0e
Is this a correct analyze ?
If yes, it's enough to add an data->os=NULL after uimage_close ?
I would ask this here before submitting a patch.
In best regards
Gabor Janak
[Hannover Messe]<http://www.hannovermesse.de/aussteller/agilion/H465093?source=dl_ban>
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2015-03-18 16:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-18 16:28 Gabor Janak (g.janak@agilion.de) [this message]
2015-03-18 18:55 ` Sascha Hauer
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=DB3PR03MB0826E47A0EE5FF439BDD67B698000@DB3PR03MB0826.eurprd03.prod.outlook.com \
--to=g.janak@agilion.de \
--cc=barebox@lists.infradead.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