From: gregkh@linuxfoundation.org (Greg KH)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm64: fix address fault during mapping fdt region
Date: Mon, 1 Aug 2016 14:24:24 +0200 [thread overview]
Message-ID: <20160801122424.GA18162@kroah.com> (raw)
In-Reply-To: <579F197B.80101@zoho.com>
On Mon, Aug 01, 2016 at 05:42:19PM +0800, zijun_hu wrote:
> >From 07b9216ec3494515e7a6c41e0333eb8782427db3 Mon Sep 17 00:00:00 2001
> From: zijun_hu <zijun_hu@htc.com>
> Date: Mon, 1 Aug 2016 17:04:59 +0800
> Subject: [PATCH] arm64: fix address fault during mapping fdt region
>
> fdt_check_header() accesses other fileds of fdt header but
> the first 8 bytes such as version; so accessing unmapped
> address fault happens if fdt region locates below align
> boundary nearly during mapping fdt region, or expressed as
> (offset + sizeof(struct fdt_header)) > SWAPPER_BLOCK_SIZE
>
> fdt header size at least is mapped in order to avoid the issue
>
> Signed-off-by: zijun_hu <zijun_hu@htc.com>
> ---
> arch/arm64/mm/mmu.c | 14 ++++++++++++--
> 1 file changed, 12 insertions(+), 2 deletions(-)
<formletter>
This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read Documentation/stable_kernel_rules.txt
for how to do this properly.
</formletter>
WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@linuxfoundation.org>
To: zijun_hu <zijun_hu@zoho.com>
Cc: catalin.marinas@arm.com, will.deacon@arm.com,
linux-arm-kernel@lists.infradead.org, ard.biesheuvel@linaro.org,
mark.rutland@arm.com, labbott@fedoraproject.org,
suzuki.poulose@arm.com, jeremy.linton@arm.com, tj@kernel.org,
linux-kernel@vger.kernel.org, stable@vger.kernel.org,
akpm@linux-foundation.org, zijun_hu@htc.com
Subject: Re: [PATCH] arm64: fix address fault during mapping fdt region
Date: Mon, 1 Aug 2016 14:24:24 +0200 [thread overview]
Message-ID: <20160801122424.GA18162@kroah.com> (raw)
In-Reply-To: <579F197B.80101@zoho.com>
On Mon, Aug 01, 2016 at 05:42:19PM +0800, zijun_hu wrote:
> >From 07b9216ec3494515e7a6c41e0333eb8782427db3 Mon Sep 17 00:00:00 2001
> From: zijun_hu <zijun_hu@htc.com>
> Date: Mon, 1 Aug 2016 17:04:59 +0800
> Subject: [PATCH] arm64: fix address fault during mapping fdt region
>
> fdt_check_header() accesses other fileds of fdt header but
> the first 8 bytes such as version; so accessing unmapped
> address fault happens if fdt region locates below align
> boundary nearly during mapping fdt region, or expressed as
> (offset + sizeof(struct fdt_header)) > SWAPPER_BLOCK_SIZE
>
> fdt header size at least is mapped in order to avoid the issue
>
> Signed-off-by: zijun_hu <zijun_hu@htc.com>
> ---
> arch/arm64/mm/mmu.c | 14 ++++++++++++--
> 1 file changed, 12 insertions(+), 2 deletions(-)
<formletter>
This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read Documentation/stable_kernel_rules.txt
for how to do this properly.
</formletter>
next prev parent reply other threads:[~2016-08-01 12:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-01 9:42 [PATCH] arm64: fix address fault during mapping fdt region zijun_hu
2016-08-01 9:42 ` zijun_hu
2016-08-01 9:50 ` Ard Biesheuvel
2016-08-01 9:50 ` Ard Biesheuvel
2016-08-01 10:59 ` zijun_hu
2016-08-01 10:59 ` zijun_hu
2016-08-01 11:24 ` Mark Rutland
2016-08-01 11:24 ` Mark Rutland
2016-08-01 13:17 ` zijun_hu
2016-08-01 13:17 ` zijun_hu
2016-08-01 13:31 ` Mark Rutland
2016-08-01 13:31 ` Mark Rutland
2016-08-01 11:06 ` Mark Rutland
2016-08-01 11:06 ` Mark Rutland
2016-08-01 12:24 ` Greg KH [this message]
2016-08-01 12:24 ` Greg KH
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=20160801122424.GA18162@kroah.com \
--to=gregkh@linuxfoundation.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.