Red Hat Bugzilla – Bug 651373
NULL pointer dereference in reading vs. truncating race
Last modified: 2015-08-31 23:50:48 EDT
A read() with concurrent truncation opens up a tiny race window that crashes the kernel. If the read() path finds a page in the page cache that is not yet fully read from disk but truncated again before the reader acquires the page lock, the kernel will crash with a NULL pointer dereference.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
Patch(es) available on kernel-2.6.32-83.el6
*** Bug 661892 has been marked as a duplicate of this bug. ***
------- Comment From sbest@us.ibm.com 2010-11-04 08:41 EDT------- Dave, thanks for posting upstream. http://www.spinics.net/lists/linux-mm/msg10985.html ------- Comment From sbest@us.ibm.com 2010-11-09 10:54 EDT------- Johannes Weiner at RH just posted this patch to rh kernel mailing list. rh bz is https://bugzilla.redhat.com/show_bug.cgi?id=651373 ------- Comment From haveblue@us.ibm.com 2010-11-10 19:22 EDT------- The patch is in -mm. Unless something major happens, it's headed into Linus's tree pretty quickly. ------- Comment From haveblue@us.ibm.com 2010-11-16 14:46 EDT------- Just hit Linus's tree: http://git.kernel.org/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8d056cb965b8fb7c53c564abf28b1962d1061cd3
Created attachment 487830 [details] proposed patch
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-0542.html