Skip to contentSkip to conversation

Patch "unicore32: mm: Add missing parameter to arch_vma_access_permitted" has been added to the 4.7-stable tree

PATCH [email protected] 1 participant 1 message Aug 18, 2016 Stable branch

lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

unicore32: mm: Add missing parameter to arch_vma_access_permitted

to the 4.7-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
unicore32-mm-add-missing-parameter-to-arch_vma_access_permitted.patch
and it can be found in the queue-4.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 783011b13095430262333fd64e17666954064664 Mon Sep 17 00:00:00 2001

From: Guenter Roeck <[email protected]>
Date: Mon, 21 Mar 2016 04:20:53 -0700
Subject: unicore32: mm: Add missing parameter to arch_vma_access_permitted
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

From: Guenter Roeck <[email protected]>

commit 783011b13095430262333fd64e17666954064664 upstream.

unicore32 fails to compile with the following errors.

mm/memory.c: In function ‘__handle_mm_fault’:
mm/memory.c:3381: error:
too many arguments to function ‘arch_vma_access_permitted’
mm/gup.c: In function ‘check_vma_flags’:
mm/gup.c:456: error:
too many arguments to function ‘arch_vma_access_permitted’
mm/gup.c: In function ‘vma_permits_fault’:
mm/gup.c:640: error:
too many arguments to function ‘arch_vma_access_permitted’

Fixes d61172b4b695b ("mm/core, x86/mm/pkeys: Differentiate instruction fetches")
Cc Dave Hansen <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
---
 arch/unicore32/include/asm/mmu_context.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/unicore32/include/asm/mmu_context.h +1 -1
@@ -98,7 +98,7 @@ static inline void arch_bprm_mm_init(str
 }
 
 static inline bool arch_vma_access_permitted(struct vm_area_struct *vma,
-		bool write, bool foreign)
+		bool write, bool execute, bool foreign)
 {
 	/* by default, allow everything */
 	return true;

Patches currently in stable-queue which might be from [email protected] are

queue-4.7/unicore32-mm-add-missing-parameter-to-arch_vma_access_permitted.patch