Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 272781 Details for
Bug 404201
remap_file_pages02 system call fails on FC8GA
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Patch for invalid pgoff
Patch_for_Invalid_pgoff (text/plain), 828 bytes, created by
IBM Bug Proxy
on 2007-11-29 10:50:34 UTC
(
hide
)
Description:
Patch for invalid pgoff
Filename:
MIME Type:
Creator:
IBM Bug Proxy
Created:
2007-11-29 10:50:34 UTC
Size:
828 bytes
patch
obsolete
>Signed-off-by: Supriya Kannery <supriyak@in.ibm.com> > >--- linux-2.6.23/mm/fremap.c.orig 2007-11-22 00:56:09.000000000 -0600 >+++ linux-2.6.23/mm/fremap.c 2007-11-26 03:08:55.000000000 -0600 >@@ -124,6 +124,7 @@ asmlinkage long sys_remap_file_pages(uns > struct vm_area_struct *vma; > int err = -EINVAL; > int has_write_lock = 0; >+ unsigned long f_size = 0; > > if (__prot) > return err; >@@ -181,6 +182,14 @@ asmlinkage long sys_remap_file_pages(uns > goto retry; > } > mapping = vma->vm_file->f_mapping; >+ >+ f_size = i_size_read(mapping->host) + PAGE_CACHE_SIZE - 1; >+ f_size = f_size >> PAGE_CACHE_SHIFT; >+ if ((pgoff + size >> PAGE_CACHE_SHIFT) > f_size) { >+ err = -EINVAL; >+ goto out; >+ } >+ > /* > * page_mkclean doesn't work on nonlinear vmas, so if > * dirty pages need to be accounted, emulate with linear
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 404201
: 272781