From: Nathan Lynch <ntl@pobox.com>
To: Michael Ellerman <michael@ellerman.id.au>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] scanlog_init cleanup, minor fixes
Date: Wed, 26 Mar 2008 18:09:59 -0500 [thread overview]
Message-ID: <20080326230959.GI7137@localdomain> (raw)
In-Reply-To: <1206571210.7482.0.camel@concordia.ozlabs.ibm.com>
Michael Ellerman wrote:
> > + /* Ideally we could allocate a buffer < 4G */
> > + data = kzalloc(RTAS_DATA_BUF_SIZE, GFP_KERNEL);
> > + if (!data)
> > + goto err;
>
> Not your bug, but what happens if data is > 4G? Kaboom?
An old RPA doc (scan-log-dump isn't specified in PAPR) says the buffer
should be "contiguous real storage", so... yeah, probably. That's why
I preserved the comment. Will fix if I get access to a machine to
test this code more thoroughly (plenty of other issues in this file,
too).
next prev parent reply other threads:[~2008-03-26 23:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-23 22:51 [PATCH] scanlog_init cleanup, minor fixes Nathan Lynch
2008-03-26 22:40 ` Michael Ellerman
2008-03-26 23:09 ` Nathan Lynch [this message]
2008-03-26 23:21 ` Michael Ellerman
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=20080326230959.GI7137@localdomain \
--to=ntl@pobox.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=michael@ellerman.id.au \
/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).