From: will.deacon@arm.com (Will Deacon)
To: linux-arm-kernel@lists.infradead.org
Subject: question about iotable_init( ) function
Date: Mon, 1 Jul 2013 10:27:24 +0100 [thread overview]
Message-ID: <20130701092723.GE14027@mudshark.cambridge.arm.com> (raw)
In-Reply-To: <35FD53F367049845BC99AC72306C23D19441BF586F@CNBJMBX05.corpusers.net>
On Mon, Jul 01, 2013 at 08:31:38AM +0100, Wang, Yalin wrote:
> Hi Will,
>
> I have a question about iotable_init() function (arch/arm/mm/mmu.c)
> I found in this function it only allocate a vm_struct and insert it into vmlist ,
> But it didn?t allocate a vmap_area to insert it into vmap_area_root tree (mm/vmalloc.c).
>
> So this means that the virtual address reserverd by iotable_init is not declared
> In vmap_area_root , this is not safe , maybe some driver will use this virtual address as vmalloc again,
> I think it ?s not safe in this condition , should also add a vmap_area node into vmap_area_root to
> Hold this virtual address not used by others .
The vmap_area structures are allocated and inserted later on by vmalloc_init
(iotable init is for static mappings early during boot).
Will
next parent reply other threads:[~2013-07-01 9:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <35FD53F367049845BC99AC72306C23D19441BF586F@CNBJMBX05.corpusers.net>
2013-07-01 9:27 ` Will Deacon [this message]
2013-07-01 9:30 ` question about iotable_init( ) function Wang, Yalin
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=20130701092723.GE14027@mudshark.cambridge.arm.com \
--to=will.deacon@arm.com \
--cc=linux-arm-kernel@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