From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Kees Cook <keescook@chromium.org>
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>,
Liu hua <sdu.liu@huawei.com>, Rob Herring <robherring2@gmail.com>,
wangnan0 <wangnan0@huawei.com>,
Laura Abbott <lauraa@codeaurora.org>,
peifeiyue <peifeiyue@huawei.com>,
Will Deacon <will.deacon@arm.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Vitaly Andrianov <vitalya@ti.com>, Rabin Vincent <rabin@rab.in>,
Santosh Shilimkar <santosh.shilimkar@ti.com>,
"liusdu@126.com" <liusdu@126.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Mark Salter <msalter@redhat.com>
Subject: Re: [PATCH v3 2/2] ARM : change fixmap mapping region to support 32 CPUs
Date: Wed, 6 Aug 2014 23:16:48 +0100 [thread overview]
Message-ID: <20140806221648.GT30282@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <CAGXu5jJN9w=Md3aMkYwFcBVanXfSGL1BdZGZ74ic945B_ocuqg@mail.gmail.com>
On Wed, Aug 06, 2014 at 10:28:37AM -0700, Kees Cook wrote:
> That's what I was thinking. I tried this, and things are still weird,
> though I think I'm narrowing it down. I made the early_pte_alloc
> happen, but after boot it doesn't show up in
> /sys/kernel/debug/kernel_page_tables. When I attempt a fixmap text
> poke, I get this out of dmesg (lkdtm is reporting the address returned
> from the patch mapping):
>
> lkdtm: 80421ac0 mapped RW via ffdefac0
> Unable to handle kernel paging request at virtual address ffdefac0
> pgd = 9e888000
> [ffdefac0] *pgd=9fffc811, *pte=00000000, *ppte=00000000
> Internal error: Oops: 807 [#1] SMP ARM
>
> The target address (0xffdefac0) is correct; it's in the range set aside:
>
> #define FIXADDR_START 0xffc00000UL
> #define FIXADDR_END 0xffe00000UL
> #define FIXADDR_TOP (FIXADDR_END - PAGE_SIZE)
>
> enum fixed_addresses {
> /* Support 16 CPUs for kmap as the first region of fixmap entries. */
> FIX_KMAP_BEGIN,
> FIX_KMAP_END = 15,
>
> /* Support writing RO kernel text via kprobes, jump labels, etc. */
> FIX_TEXT_POKE0,
> FIX_TEXT_POKE1,
>
> __end_of_fixed_addresses
> };
>
> But the resulting PTE is in totally the wrong location as reported by
> /sys/kernel/debug/kernel_page_tables:
>
> ---[ Fixmap Area ]---
> 0xfffef000-0xffff0000 4K RW NX SHD MEM/CACHED/WBWA
>
> I continue to dig...
This sounds like you have an erroneous merge conflict resolution. You
seem to be poking into TOP_PTE rather than fixmap_page_table.
--
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.
next prev parent reply other threads:[~2014-08-06 22:17 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-15 11:06 [PATCH v3 0/2] change ARM linux memory layout " Liu Hua
2014-04-15 11:06 ` [PATCH v3 1/2] ARM : fixmap : remove FIX_KMAP_BEGIN and FIX_KMAP_END Liu Hua
2014-04-15 11:06 ` [PATCH v3 2/2] ARM : change fixmap mapping region to support 32 CPUs Liu Hua
2014-04-15 15:06 ` Nicolas Pitre
2014-05-30 15:33 ` Rob Herring
2014-05-30 18:02 ` Will Deacon
2014-05-30 19:25 ` Nicolas Pitre
2014-06-10 6:52 ` Liu hua
2014-08-06 2:51 ` Kees Cook
2014-08-06 3:11 ` Nicolas Pitre
2014-08-06 3:40 ` Liu hua
2014-08-06 16:37 ` Kees Cook
2014-08-06 17:21 ` Nicolas Pitre
2014-08-06 17:28 ` Kees Cook
2014-08-06 22:16 ` Russell King - ARM Linux [this message]
2014-08-06 23:22 ` Kees Cook
2014-04-22 21:31 ` [PATCH v3 0/2] change ARM linux memory layout " Russell King - ARM Linux
2014-04-22 23:50 ` Nicolas Pitre
2014-05-04 2:34 ` Liu hua
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=20140806221648.GT30282@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=keescook@chromium.org \
--cc=lauraa@codeaurora.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liusdu@126.com \
--cc=msalter@redhat.com \
--cc=nicolas.pitre@linaro.org \
--cc=peifeiyue@huawei.com \
--cc=rabin@rab.in \
--cc=robherring2@gmail.com \
--cc=santosh.shilimkar@ti.com \
--cc=sdu.liu@huawei.com \
--cc=vitalya@ti.com \
--cc=wangnan0@huawei.com \
--cc=will.deacon@arm.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
all inboxes | Powered by JetHome®