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 308982 Details for
Bug 446777
pthread_mutex_unlock returns EPERM due to earlier EFAULT from futex lock
[?]
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]
debug patch to get more info about the EPERM issue
futex-debug.patch (text/plain), 1.12 KB, created by
Thomas Gleixner
on 2008-06-11 19:29:49 UTC
(
hide
)
Description:
debug patch to get more info about the EPERM issue
Filename:
MIME Type:
Creator:
Thomas Gleixner
Created:
2008-06-11 19:29:49 UTC
Size:
1.12 KB
patch
obsolete
>--- > kernel/futex.c | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > >Index: linux-2.6.24/kernel/futex.c >=================================================================== >--- linux-2.6.24.orig/kernel/futex.c >+++ linux-2.6.24/kernel/futex.c >@@ -227,8 +227,12 @@ static int get_futex_key(u32 __user *uad > /* > * Permissions. > */ >- if (unlikely((vma->vm_flags & (VM_IO|VM_READ)) != VM_READ)) >+ if (unlikely((vma->vm_flags & (VM_IO|VM_READ)) != VM_READ)) { >+ printk(KERN_INFO >+ "get_futex_key: vmf 0x%08lx, uad %p TID %d\n", >+ vma->vm_flags, uaddr, task_pid_vnr(current)); > return (vma->vm_flags & VM_IO) ? -EPERM : -EACCES; >+ } > > /* > * Private mappings are handled in a simple way. >@@ -1638,8 +1642,12 @@ retry: > /* > * We release only a lock we actually own: > */ >- if ((uval & FUTEX_TID_MASK) != task_pid_vnr(current)) >+ if ((uval & FUTEX_TID_MASK) != task_pid_vnr(current)) { >+ printk(KERN_INFO >+ "futex_unlock_pi: uval 0x%08x, uad %p TID %d\n", >+ (unsigned int) uval, uaddr, task_pid_vnr(current)); > return -EPERM; >+ } > /* > * First take all the futex related locks: > */
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 446777
:
308695
|
308696
|
308719
|
308757
|
308759
|
308893
| 308982 |
308997
|
309012
|
309042
|
309095
|
309124
|
310758
|
310767
|
313695