From: akpm@linux-foundation.org Subject: + procfs-also-fix-proc_reg_get_unmapped_area-for-mmu-case-fix.patch added to -mm tree Date: Mon, 25 Nov 2013 14:13:45 -0800 Message-ID: <5293cb99.OXQjttMD3AwZmeZZ%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:56856 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752727Ab3KYWNq (ORCPT ); Mon, 25 Nov 2013 17:13:46 -0500 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org, jbeulich@suse.com, davem@davemloft.net, d.hatayama@jp.fujitsu.com, adobriyan@gmail.com, akpm@linux-foundation.org Subject: + procfs-also-fix-proc_reg_get_unmapped_area-for-mmu-case-fix.patch added to -mm tree To: akpm@linux-foundation.org,adobriyan@gmail.com,d.hatayama@jp.fujitsu.com,davem@davemloft.net,jbeulich@suse.com From: akpm@linux-foundation.org Date: Mon, 25 Nov 2013 14:13:45 -0800 The patch titled Subject: procfs-also-fix-proc_reg_get_unmapped_area-for-mmu-case-fix has been added to the -mm tree. Its filename is procfs-also-fix-proc_reg_get_unmapped_area-for-mmu-case-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/procfs-also-fix-proc_reg_get_unmapped_area-for-mmu-case-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/procfs-also-fix-proc_reg_get_unmapped_area-for-mmu-case-fix.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: Andrew Morton Subject: procfs-also-fix-proc_reg_get_unmapped_area-for-mmu-case-fix Cc: Alexey Dobriyan Cc: David S. Miller Cc: HATAYAMA Daisuke Cc: Jan Beulich Signed-off-by: Andrew Morton --- fs/proc/inode.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff -puN fs/proc/inode.c~procfs-also-fix-proc_reg_get_unmapped_area-for-mmu-case-fix fs/proc/inode.c --- a/fs/proc/inode.c~procfs-also-fix-proc_reg_get_unmapped_area-for-mmu-case-fix +++ a/fs/proc/inode.c @@ -294,17 +294,18 @@ proc_reg_get_unmapped_area(struct file * unsigned long rv = -EIO; if (use_pde(pde)) { - typeof(proc_reg_get_unmapped_area) *get_area + typeof(proc_reg_get_unmapped_area) *get_area; + + get_area = pde->proc_fops->get_unmapped_area; #ifdef CONFIG_MMU - = pde->proc_fops->get_unmapped_area - ?: current->mm->get_unmapped_area; -#else - = pde->proc_fops->get_unmapped_area; + if (!get_area) + get_area = current->mm->get_unmapped_area; #endif - rv = get_area - ? get_area(file, orig_addr, len, pgoff, flags) - : orig_addr; + if (get_area) + rv = get_area(file, orig_addr, len, pgoff, flags); + else + rv = orig_addr; unuse_pde(pde); } return rv; _ Patches currently in -mm which might be from akpm@linux-foundation.org are origin.patch arch-alpha-kernel-systblss-remove-debug-check.patch i-need-old-gcc.patch procfs-also-fix-proc_reg_get_unmapped_area-for-mmu-case-fix.patch kernel-time-tick-commonc-document-tick_do_timer_cpu.patch input-route-kbd-leds-through-the-generic-leds-layer-fix.patch drivers-block-ccissc-cciss_init_one-use-proper-errnos.patch block-blk-mq-cpuc-use-hotcpu_notifier.patch mtd-cmdlinepart-use-cmdline-partition-parser-lib-fix-fix.patch posix_acl-uninlining.patch mm.patch mm-hugetlbc-simplify-pageheadhuge-and-pagehuge.patch mm-swapc-reorganize-put_compound_page.patch mm-get-rid-of-unnecessary-pageblock-scanning-in-setup_zone_migrate_reserve-fix.patch mm-memory-failure-fix-the-typo-in-me_pagecache_dirty-fix.patch arch-um-kernel-sysrqc-rename-print_stack_trace.patch lib-parserc-put-export_symbols-in-the-conventional-place.patch kernel-paramsc-improve-standard-definitions-checkpatch-fixes.patch kmod-run-usermodehelpers-only-on-cpus-allowed-for-kthreadd-v2-fix.patch kmod-run-usermodehelpers-only-on-cpus-allowed-for-kthreadd-v2-checkpatch-fixes.patch linux-next.patch debugging-keep-track-of-page-owners.patch journal_add_journal_head-debug.patch kernel-forkc-export-kernel_thread-to-modules.patch mutex-subsystem-synchro-test-module.patch slab-leaks3-default-y.patch put_bh-debug.patch