From: Dave Anderson <anderson-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: "Discussion list for crash utility usage,
maintenance and development"
<crash-utility-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: olaf-QOLJcTWqO2uzQB+pC5nmwQ@public.gmane.org,
xen-devel-GuqFBffKawuULHF6PoxzQEEOCMrvLtNR@public.gmane.org,
konrad wilk <konrad.wilk-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>,
andrew cooper3
<andrew.cooper3-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org>,
ptesarik-AlSwsSmVLrQ@public.gmane.org,
jbeulich-IBi9RG/b67k@public.gmane.org,
kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH v2 0/6] crash: Bundle of fixes for Xen
Date: Tue, 14 Aug 2012 10:04:00 -0400 (EDT) [thread overview]
Message-ID: <1543188889.13757694.1344953040454.JavaMail.root@redhat.com> (raw)
In-Reply-To: <20120814061408.GA2471-UojuW/CpjwpdUOLzJiIvSsFoITBeLw/klGfBN0aaEZ+lPcVs/6D9LQ@public.gmane.org>
----- Original Message -----
> On Mon, Aug 13, 2012 at 03:16:53PM -0400, Dave Anderson wrote:
>
> [...]
>
> > OK good. It tests OK on a few older pvops kernels that I have on
> > hand.
> >
> > The only thing I've changed is to handle compiler warnings in x86_64.c and
> > x86.c by initializing p2m_top to NULL in x86_64_pvops_xendump_p2m_l3_create()
> > and x86_pvops_xendump_p2m_l3_create(). I also used GETBUF() in those two
> > functions to avoid having to add the malloc-failure line.
>
> No problem. However, I am a bit surprised that you have seen some warnings.
> I have not seen any. Did you compiled crash with extra options or something
> like that? Or maybe there is a diffrence in our compilers (mine is gcc version
> 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) - quite ancient).
Extra options (also with gcc 4.1.2) -- try building with "make warn". It adds:
WARNING_OPTIONS=-Wall -O2 -Wstrict-prototypes -Wmissing-prototypes -fstack-protector
or "make Warn", which adds -Werror to the above.
In those two functions there are "goto err" statements prior to allocating
p2m_top, and so the free(p2m_top) could receive a random stack value. Of
course even if it did get by the free() call in that highly unlikely case,
the crash session is just about to fatally shut itself down.
Thanks,
Dave
prev parent reply other threads:[~2012-08-14 14:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-10 13:23 [PATCH v2 0/6] crash: Bundle of fixes for Xen Daniel Kiper
[not found] ` <20120810132357.GA2576-UojuW/CpjwpdUOLzJiIvSsFoITBeLw/klGfBN0aaEZ+lPcVs/6D9LQ@public.gmane.org>
2012-08-10 19:11 ` Dave Anderson
[not found] ` <1568927206.9177777.1344625917898.JavaMail.root-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-08-13 7:37 ` Daniel Kiper
[not found] ` <20120813073754.GA2482-UojuW/CpjwpdUOLzJiIvSsFoITBeLw/klGfBN0aaEZ+lPcVs/6D9LQ@public.gmane.org>
2012-08-13 19:16 ` Dave Anderson
[not found] ` <1827880283.12350529.1344885413402.JavaMail.root-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-08-14 6:14 ` Daniel Kiper
[not found] ` <20120814061408.GA2471-UojuW/CpjwpdUOLzJiIvSsFoITBeLw/klGfBN0aaEZ+lPcVs/6D9LQ@public.gmane.org>
2012-08-14 14:04 ` Dave Anderson [this message]
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=1543188889.13757694.1344953040454.JavaMail.root@redhat.com \
--to=anderson-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=andrew.cooper3-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org \
--cc=crash-utility-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=jbeulich-IBi9RG/b67k@public.gmane.org \
--cc=kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=konrad.wilk-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org \
--cc=olaf-QOLJcTWqO2uzQB+pC5nmwQ@public.gmane.org \
--cc=ptesarik-AlSwsSmVLrQ@public.gmane.org \
--cc=xen-devel-GuqFBffKawuULHF6PoxzQEEOCMrvLtNR@public.gmane.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;
as well as URLs for NNTP newsgroup(s).