The patch titled
     fix page release issue in filemap_fault
has been added to the -mm tree.  Its filename is
     fix-page-release-issue-in-filemap_fault.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: fix page release issue in filemap_fault
From: "Yan Zheng" <[EMAIL PROTECTED]>

find_lock_page increases page's usage count, we should decrease it
before return VM_FAULT_SIGBUS

Signed-off-by: Yan Zheng<[EMAIL PROTECTED]>
Cc: Nick Piggin <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 mm/filemap.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN mm/filemap.c~fix-page-release-issue-in-filemap_fault mm/filemap.c
--- a/mm/filemap.c~fix-page-release-issue-in-filemap_fault
+++ a/mm/filemap.c
@@ -1388,6 +1388,7 @@ retry_find:
        size = (i_size_read(inode) + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT;
        if (unlikely(vmf->pgoff >= size)) {
                unlock_page(page);
+               page_cache_release(page);
                goto outside_data_content;
        }
 
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

fix-vm_can_nonlinear-check-in-sys_remap_file_pages.patch
fix-page-release-issue-in-filemap_fault.patch
anon-inodes-use-open-coded-atomic_inc-for-the-shared-inode.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to