Bug 152560 - CAN-2005-0937 futex mmap_sem deadlock
Summary: CAN-2005-0937 futex mmap_sem deadlock
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel
Version: 4.0
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
: ---
Assignee: Jason Baron
QA Contact: Brian Brock
URL:
Whiteboard: impact=important,public=20050222,repo...
Depends On:
Blocks: 147461
TreeView+ depends on / blocked
 
Reported: 2005-03-30 12:30 UTC by Mark J. Cox
Modified: 2013-03-06 05:58 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-07-26 12:21:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Mark J. Cox 2005-03-30 12:30:37 UTC
"Some futex functions do get_user calls while holding mmap_sem
        for reading. If get_user() faults, and another thread happens
        to be in mmap (or somewhere else holding waiting on down_write
        for the same semaphore), then do_page_fault will
        deadlock. Most architectures seem to be exposed to this."

        http://lkml.org/lkml/2005/2/22/123
        http://lkml.org/lkml/2005/2/22/185

        fixed=2.6-bk (cset@421cfc11zFsK9gxvSJ2t__FCmuUd3Q)

This would allow a local user to easily cause a system crash.  CVE applied for.

Comment 1 Mark J. Cox 2005-07-26 12:21:51 UTC
This is fixed by linux-2.6.9-futex-mmap_sem-deadlock.patch in RHSA-2005:420


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