From: Cristian Stoica <cristian.stoica@freescale.com>
To: Scott Wood <scottwood@freescale.com>
Cc: <linuxppc-dev@lists.ozlabs.org>, <linux-kernel@vger.kernel.org>,
<horia.geanta@freescale.com>
Subject: Re: [PATCH v2] powerpc: support sizes greater than an unsigned long
Date: Fri, 12 Jun 2015 10:53:25 +0300 [thread overview]
Message-ID: <557A8FF5.10709@freescale.com> (raw)
In-Reply-To: <1434058075.2477.178.camel@freescale.com>
On 06/12/2015 12:27 AM, Scott Wood wrote:
> Dropping the upper bits of the size harms the ability to detect error
> scenarios where unmappably large -- but not power-of-two -- regions
> are requested to be mapped.
>
> However, this patch doesn't fix that. It just postpones the loss of
> the upper 32 bits until __ioremap_caller() calls get_vm_area_caller().
>
> There's also no error checking at all for the size of ioremap() done
> during early boot (!slab_is_available()).
Thanks for the explanation. I'll have a another look at the code.
> Don't just blindly turn static analyzer reports into patches -- and
> why didn't the analyzer complain about the call to
> get_vm_area_caller() after this patch?
The analysis that lead to this patch was targeted to a specific driver - in hindsight this is probably not the best
approach.
Cristian S.
prev parent reply other threads:[~2015-06-12 7:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-14 16:24 [PATCH] powerpc: support sizes greater than an unsigned long Cristian Stoica
2015-05-15 9:44 ` [PATCH v2] " Cristian Stoica
2015-06-11 14:42 ` Cristian Stoica
2015-06-11 15:38 ` Greg KH
2015-06-11 16:10 ` Cristian Stoica
2015-06-11 16:17 ` Greg KH
2015-06-11 21:27 ` Scott Wood
2015-06-12 7:53 ` Cristian Stoica [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=557A8FF5.10709@freescale.com \
--to=cristian.stoica@freescale.com \
--cc=horia.geanta@freescale.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=scottwood@freescale.com \
/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).