* FAILED: patch "[PATCH] arm64: hugetlb: fix the wrong return value for" failed to apply to 4.9-stable tree
@ 2017-01-17 9:47 gregkh
2017-01-18 2:09 ` Huang Shijie
0 siblings, 1 reply; 3+ messages in thread
From: gregkh @ 2017-01-17 9:47 UTC (permalink / raw)
To: shijie.huang, catalin.marinas, stable; +Cc: stable
The patch below does not apply to the 4.9-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to <stable@vger.kernel.org>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
>From 69d012345a1a32d3f03957f14d972efccc106a98 Mon Sep 17 00:00:00 2001
From: Huang Shijie <shijie.huang@arm.com>
Date: Wed, 11 Jan 2017 14:02:00 +0800
Subject: [PATCH] arm64: hugetlb: fix the wrong return value for
huge_ptep_set_access_flags
In current code, the @changed always returns the last one's status for
the huge page with the contiguous bit set. This is really not what we
want. Even one of the PTEs is changed, we should tell it to the caller.
This patch fixes this issue.
Fixes: 66b3923a1a0f ("arm64: hugetlb: add support for PTE contiguous bit")
Cc: <stable@vger.kernel.org> # 4.5.x-
Signed-off-by: Huang Shijie <shijie.huang@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
diff --git a/arch/arm64/mm/hugetlbpage.c b/arch/arm64/mm/hugetlbpage.c
index 964b7549af5c..e25584d72396 100644
--- a/arch/arm64/mm/hugetlbpage.c
+++ b/arch/arm64/mm/hugetlbpage.c
@@ -239,7 +239,7 @@ int huge_ptep_set_access_flags(struct vm_area_struct *vma,
ncontig = find_num_contig(vma->vm_mm, addr, cpte,
*cpte, &pgsize);
for (i = 0; i < ncontig; ++i, ++cpte, addr += pgsize) {
- changed = ptep_set_access_flags(vma, addr, cpte,
+ changed |= ptep_set_access_flags(vma, addr, cpte,
pfn_pte(pfn,
hugeprot),
dirty);
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: FAILED: patch "[PATCH] arm64: hugetlb: fix the wrong return value for" failed to apply to 4.9-stable tree
2017-01-17 9:47 FAILED: patch "[PATCH] arm64: hugetlb: fix the wrong return value for" failed to apply to 4.9-stable tree gregkh
@ 2017-01-18 2:09 ` Huang Shijie
2017-01-18 7:26 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Huang Shijie @ 2017-01-18 2:09 UTC (permalink / raw)
To: gregkh; +Cc: catalin.marinas, stable, nd
Hi Greg,
On Tue, Jan 17, 2017 at 10:47:05AM +0100, gregkh@linuxfoundation.org wrote:
>
> The patch below does not apply to the 4.9-stable tree.
Please try to apply two others patches before apply this one:
0c2f0afe3582 arm64: hugetlb: fix the wrong address for several functions
20156ce2365d arm64: hugetlb: remove the wrong pmd check in find_num_contig()
Thanks
Huang Shijie
> If someone wants it applied there, or to any other stable or longterm
> tree, then please email the backport, including the original git commit
> id to <stable@vger.kernel.org>.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: FAILED: patch "[PATCH] arm64: hugetlb: fix the wrong return value for" failed to apply to 4.9-stable tree
2017-01-18 2:09 ` Huang Shijie
@ 2017-01-18 7:26 ` Greg KH
0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2017-01-18 7:26 UTC (permalink / raw)
To: Huang Shijie; +Cc: catalin.marinas, stable, nd
On Wed, Jan 18, 2017 at 10:09:35AM +0800, Huang Shijie wrote:
> Hi Greg,
>
> On Tue, Jan 17, 2017 at 10:47:05AM +0100, gregkh@linuxfoundation.org wrote:
> >
> > The patch below does not apply to the 4.9-stable tree.
> Please try to apply two others patches before apply this one:
> 0c2f0afe3582 arm64: hugetlb: fix the wrong address for several functions
> 20156ce2365d arm64: hugetlb: remove the wrong pmd check in find_num_contig()
Yes, that worked great, thanks.
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-01-18 7:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-17 9:47 FAILED: patch "[PATCH] arm64: hugetlb: fix the wrong return value for" failed to apply to 4.9-stable tree gregkh
2017-01-18 2:09 ` Huang Shijie
2017-01-18 7:26 ` Greg KH
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).