Subject: + arch-parisc-mm-faultc-fix-uninitialized-variable-usage.patch added to -mm tree To: felipensp@xxxxxxxxx,deller@xxxxxx,hannes@xxxxxxxxxxx,jejb@xxxxxxxxxxxxxxxx,mhocko@xxxxxxx,torvalds@xxxxxxxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Wed, 25 Sep 2013 15:38:07 -0700 The patch titled Subject: arch/parisc/mm/fault.c: fix uninitialized variable usage has been added to the -mm tree. Its filename is arch-parisc-mm-faultc-fix-uninitialized-variable-usage.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/arch-parisc-mm-faultc-fix-uninitialized-variable-usage.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/arch-parisc-mm-faultc-fix-uninitialized-variable-usage.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Felipe Pena <felipensp@xxxxxxxxx> Subject: arch/parisc/mm/fault.c: fix uninitialized variable usage The FAULT_FLAG_WRITE flag has been set based on uninitialized variable. Fixes regression added by : commit 759496ba6407c6994d6a5ce3a5e74937d7816208 : Author: Johannes Weiner <hannes@xxxxxxxxxxx> : AuthorDate: Thu Sep 12 15:13:39 2013 -0700 : Commit: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> : CommitDate: Thu Sep 12 15:38:01 2013 -0700 : : arch: mm: pass userspace fault flag to generic fault handler Signed-off-by: Felipe Pena <felipensp@xxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxx> Cc: "James E.J. Bottomley" <jejb@xxxxxxxxxxxxxxxx> Cc: Helge Deller <deller@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/parisc/mm/fault.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -puN arch/parisc/mm/fault.c~arch-parisc-mm-faultc-fix-uninitialized-variable-usage arch/parisc/mm/fault.c --- a/arch/parisc/mm/fault.c~arch-parisc-mm-faultc-fix-uninitialized-variable-usage +++ a/arch/parisc/mm/fault.c @@ -182,6 +182,9 @@ void do_page_fault(struct pt_regs *regs, if (user_mode(regs)) flags |= FAULT_FLAG_USER; + + acc_type = parisc_acctyp(code, regs->iir); + if (acc_type & VM_WRITE) flags |= FAULT_FLAG_WRITE; retry: @@ -196,8 +199,6 @@ retry: good_area: - acc_type = parisc_acctyp(code,regs->iir); - if ((vma->vm_flags & acc_type) != acc_type) goto bad_area; _ Patches currently in -mm which might be from felipensp@xxxxxxxxx are arch-parisc-mm-faultc-fix-uninitialized-variable-usage.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html