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 148544 Details for
Bug 229304
[patch] vdso is in user's way when exec-shield is off
[?]
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]
linux-2.6-x86-vdso-place.patch
linux-2.6-x86-vdso-stacktop-0.patch (text/plain), 1.25 KB, created by
John Reiser
on 2007-02-21 22:13:33 UTC
(
hide
)
Description:
linux-2.6-x86-vdso-place.patch
Filename:
MIME Type:
Creator:
John Reiser
Created:
2007-02-21 22:13:33 UTC
Size:
1.25 KB
patch
obsolete
>--- ./arch/i386/kernel/sysenter.c.orig 2007-02-21 11:07:18.000000000 -0800 >+++ ./arch/i386/kernel/sysenter.c 2007-02-21 11:24:19.000000000 -0800 >@@ -106,11 +106,38 @@ > unsigned long start_code, unsigned long interp_map_address) > { > struct mm_struct *mm = current->mm; >- unsigned long addr; >- int ret; >- >+ unsigned long addr = 0ul; >+ unsigned long flags = 0ul; >+ int ret = 0; >+ >+ switch (vdso_enabled) { >+ case 0: /* no vdso at all */ >+ return ret; >+ case 1: /* random vdso */ >+ break; >+ case 2: /* vdso at STACK_TOP */ >+ addr = STACK_TOP; >+ flags = MAP_FIXED; >+ break; >+ >+ /* 0x111000: 1MB for vm86 mode, 64KB for DOS himem, 4KB for vdso */ >+ case 3: /* vdso just below .text of main, unless too low */ >+ if (0x111000<=start_code) >+ addr = start_code - PAGE_SIZE; >+ else >+ addr = STACK_TOP; >+ flags = MAP_FIXED; >+ break; >+ case 4: /* vdso just below .text of PT_INTERP, unless too low */ >+ if (0x111000<=interp_map_address) >+ addr = interp_map_address - PAGE_SIZE; >+ else >+ addr = STACK_TOP; >+ flags = MAP_FIXED; >+ break; >+ } > down_write(&mm->mmap_sem); >- addr = get_unmapped_area_prot(NULL, 0, PAGE_SIZE, 0, 0, 1); >+ addr = get_unmapped_area_prot(NULL, addr, PAGE_SIZE, 0, flags, 1); > if (IS_ERR_VALUE(addr)) { > ret = addr; > goto up_fail;
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 229304
:
148397
| 148544