Bug 570093 - kernel: NFS: Fix an Oops when truncating a file
Summary: kernel: NFS: Fix an Oops when truncating a file
Status: CLOSED DUPLICATE of bug 567184
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2010-03-03 09:34 UTC by Eugene Teo (Security Response)
Modified: 2010-03-03 09:35 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-03-03 09:35:41 UTC

Attachments (Terms of Use)

Description Eugene Teo (Security Response) 2010-03-03 09:34:05 UTC
Description of problem:
The VM/VFS does not allow mapping->a_ops->invalidatepage() to fail. Unfortunately, nfs_wb_page_cancel() may fail if a fatal signal occurs. Since the NFS code assumes that the page stays mapped for as long as the writeback is active, we can end up Oopsing (among other things).
The only safe fix here is to convert nfs_wait_on_request(), so as to make it uninterruptible (as is already the case with wait_on_page_writeback()).

Comment 1 Eugene Teo (Security Response) 2010-03-03 09:35:41 UTC
I forgot I filed this already ;)

*** This bug has been marked as a duplicate of bug 567184 ***

Note You need to log in before you can comment on or make changes to this bug.