From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753473AbcHAMYO (ORCPT ); Mon, 1 Aug 2016 08:24:14 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50925 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753424AbcHAMYM (ORCPT ); Mon, 1 Aug 2016 08:24:12 -0400 Date: Mon, 1 Aug 2016 14:24:24 +0200 From: Greg KH To: zijun_hu 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 Message-ID: <20160801122424.GA18162@kroah.com> References: <579F197B.80101@zoho.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <579F197B.80101@zoho.com> User-Agent: Mutt/1.6.2 (2016-07-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > 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 > --- > arch/arm64/mm/mmu.c | 14 ++++++++++++-- > 1 file changed, 12 insertions(+), 2 deletions(-) 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.