search for: entry_number

Displaying 20 results from an estimated 46 matches for "entry_number".

2007 Apr 18
0
[PATCH 20/21] i386 Ldt cleanups 3
...rent->mm->context; __u32 entry_1, entry_2; int error; struct user_desc ldt_info; + int page_number; error = -EINVAL; if (bytecount != sizeof(ldt_info)) @@ -198,9 +204,11 @@ static int write_ldt(void __user * ptr, goto out; } - down(&mm->context.sem); - if (ldt_info.entry_number >= mm->context.size) { - error = alloc_ldt(&current->mm->context, ldt_info.entry_number+1, 1); + page_number = ldt_info.entry_number / LDT_ENTRIES_PER_PAGE; + down(&pc->sem); + if (page_number >= pc->ldt_pages) { + error = alloc_ldt(pc, pc->ldt_pages, + page_...
2007 Apr 18
0
[PATCH 20/21] i386 Ldt cleanups 3
...rent->mm->context; __u32 entry_1, entry_2; int error; struct user_desc ldt_info; + int page_number; error = -EINVAL; if (bytecount != sizeof(ldt_info)) @@ -198,9 +204,11 @@ static int write_ldt(void __user * ptr, goto out; } - down(&mm->context.sem); - if (ldt_info.entry_number >= mm->context.size) { - error = alloc_ldt(&current->mm->context, ldt_info.entry_number+1, 1); + page_number = ldt_info.entry_number / LDT_ENTRIES_PER_PAGE; + down(&pc->sem); + if (page_number >= pc->ldt_pages) { + error = alloc_ldt(pc, pc->ldt_pages, + page_...
2007 Apr 18
0
[PATCH 11/14] i386 / Eliminate yet another redundant accessor
...) -#define GET_USEABLE(desc) (((desc)->b >> 20) & 1) - asmlinkage int sys_get_thread_area(struct user_desc __user *u_info) { struct user_desc info; @@ -932,16 +912,7 @@ memset(&info, 0, sizeof(info)); desc = current->thread.tls_array + idx - GDT_ENTRY_TLS_MIN; - - info.entry_number = idx; - info.base_addr = GET_BASE(desc); - info.limit = GET_LIMIT(desc); - info.seg_32bit = GET_32BIT(desc); - info.contents = GET_CONTENTS(desc); - info.read_exec_only = !GET_WRITABLE(desc); - info.limit_in_pages = GET_LIMIT_PAGES(desc); - info.seg_not_present = !GET_PRESENT(desc); - info.useable...
2007 Apr 18
0
[PATCH 11/14] i386 / Eliminate yet another redundant accessor
...) -#define GET_USEABLE(desc) (((desc)->b >> 20) & 1) - asmlinkage int sys_get_thread_area(struct user_desc __user *u_info) { struct user_desc info; @@ -932,16 +912,7 @@ memset(&info, 0, sizeof(info)); desc = current->thread.tls_array + idx - GDT_ENTRY_TLS_MIN; - - info.entry_number = idx; - info.base_addr = GET_BASE(desc); - info.limit = GET_LIMIT(desc); - info.seg_32bit = GET_32BIT(desc); - info.contents = GET_CONTENTS(desc); - info.read_exec_only = !GET_WRITABLE(desc); - info.limit_in_pages = GET_LIMIT_PAGES(desc); - info.seg_not_present = !GET_PRESENT(desc); - info.useable...
2007 Apr 18
1
[PATCH 2/12] ldt-accessors
...efine __KERNEL__ #include <asm/page.h> void main(void) { struct user_desc desc; char *code; unsigned long long tsc; code = (char *)mmap(0, 8192, PROT_EXEC|PROT_READ|PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); desc.entry_number = 0; desc.base_addr = code; desc.limit = 1; desc.seg_32bit = 1; desc.contents = MODIFY_LDT_CONTENTS_CODE; desc.read_exec_only = 0; desc.limit_in_pages = 1; desc.seg_not_present = 0; desc.useable = 1; if (modify_ldt(1, &desc...
2007 Apr 18
1
[PATCH 2/12] ldt-accessors
...efine __KERNEL__ #include <asm/page.h> void main(void) { struct user_desc desc; char *code; unsigned long long tsc; code = (char *)mmap(0, 8192, PROT_EXEC|PROT_READ|PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); desc.entry_number = 0; desc.base_addr = code; desc.limit = 1; desc.seg_32bit = 1; desc.contents = MODIFY_LDT_CONTENTS_CODE; desc.read_exec_only = 0; desc.limit_in_pages = 1; desc.seg_not_present = 0; desc.useable = 1; if (modify_ldt(1, &desc...
2007 Apr 18
2
[PATCH 16/21] i386 Eliminate duplicate segment macros
...1) - asmlinkage int sys_get_thread_area(struct user_desc __user *u_info) { struct user_desc info; @@ -913,19 +893,8 @@ asmlinkage int sys_get_thread_area(struc return -EINVAL; memset(&info, 0, sizeof(info)); - desc = current->thread.tls_array + idx - GDT_ENTRY_TLS_MIN; - - info.entry_number = idx; - info.base_addr = GET_BASE(desc); - info.limit = GET_LIMIT(desc); - info.seg_32bit = GET_32BIT(desc); - info.contents = GET_CONTENTS(desc); - info.read_exec_only = !GET_WRITABLE(desc); - info.limit_in_pages = GET_LIMIT_PAGES(desc); - info.seg_not_present = !GET_PRESENT(desc); - info.useable...
2007 Apr 18
2
[PATCH 16/21] i386 Eliminate duplicate segment macros
...1) - asmlinkage int sys_get_thread_area(struct user_desc __user *u_info) { struct user_desc info; @@ -913,19 +893,8 @@ asmlinkage int sys_get_thread_area(struc return -EINVAL; memset(&info, 0, sizeof(info)); - desc = current->thread.tls_array + idx - GDT_ENTRY_TLS_MIN; - - info.entry_number = idx; - info.base_addr = GET_BASE(desc); - info.limit = GET_LIMIT(desc); - info.seg_32bit = GET_32BIT(desc); - info.contents = GET_CONTENTS(desc); - info.read_exec_only = !GET_WRITABLE(desc); - info.limit_in_pages = GET_LIMIT_PAGES(desc); - info.seg_not_present = !GET_PRESENT(desc); - info.useable...
2007 Apr 18
0
[PATCH 12/14] i386 / Move context switch inline
...- if (mm->context.size*LDT_ENTRY_SIZE > PAGE_SIZE) - vfree(mm->context.ldt); - else - kfree(mm->context.ldt); - mm->context.size = 0; - } } static int read_ldt(void __user * ptr, unsigned long bytecount) @@ -200,7 +179,8 @@ down(&mm->context.sem); if (ldt_info.entry_number >= mm->context.size) { - error = alloc_ldt(&current->mm->context, ldt_info.entry_number+1, 1); + error = alloc_ldt(&current->mm->context, mm->context.size, + ldt_info.entry_number+1, 1); if (error < 0) goto out_unlock; } Index: linux-2.6.13/include/asm...
2007 Apr 18
0
[PATCH 12/14] i386 / Move context switch inline
...- if (mm->context.size*LDT_ENTRY_SIZE > PAGE_SIZE) - vfree(mm->context.ldt); - else - kfree(mm->context.ldt); - mm->context.size = 0; - } } static int read_ldt(void __user * ptr, unsigned long bytecount) @@ -200,7 +179,8 @@ down(&mm->context.sem); if (ldt_info.entry_number >= mm->context.size) { - error = alloc_ldt(&current->mm->context, ldt_info.entry_number+1, 1); + error = alloc_ldt(&current->mm->context, mm->context.size, + ldt_info.entry_number+1, 1); if (error < 0) goto out_unlock; } Index: linux-2.6.13/include/asm...
2007 Apr 18
2
[PATCH 1/14] i386 / Make write ldt return error code
...============================ --- linux-2.6.13.orig/arch/i386/kernel/ldt.c 2005-08-09 18:19:37.000000000 -0700 +++ linux-2.6.13/arch/i386/kernel/ldt.c 2005-08-09 18:22:56.000000000 -0700 @@ -221,8 +221,7 @@ /* Install the new entry ... */ install: - write_ldt_entry(mm->context.ldt, ldt_info.entry_number, entry_1, entry_2); - error = 0; + error = write_ldt_entry(mm->context.ldt, ldt_info.entry_number, entry_1, entry_2); out_unlock: up(&mm->context.sem);
2007 Apr 18
2
[PATCH 1/14] i386 / Make write ldt return error code
...============================ --- linux-2.6.13.orig/arch/i386/kernel/ldt.c 2005-08-09 18:19:37.000000000 -0700 +++ linux-2.6.13/arch/i386/kernel/ldt.c 2005-08-09 18:22:56.000000000 -0700 @@ -221,8 +221,7 @@ /* Install the new entry ... */ install: - write_ldt_entry(mm->context.ldt, ldt_info.entry_number, entry_1, entry_2); - error = 0; + error = write_ldt_entry(mm->context.ldt, ldt_info.entry_number, entry_1, entry_2); out_unlock: up(&mm->context.sem);
2007 Apr 18
0
[PATCH 10/12] yet-another-redundant-accessor
...desc) (((desc)->b >> 15) & 1) -#define GET_USEABLE(desc) (((desc)->b >> 20) & 1) - asmlinkage int sys_get_thread_area(struct user_desc __user *u_info) { struct user_desc info; @@ -934,7 +914,7 @@ desc = current->thread.tls_array + idx - GDT_ENTRY_TLS_MIN; info.entry_number = idx; - info.base_addr = GET_BASE(desc); + info.base_addr = get_desc_base(desc); info.limit = GET_LIMIT(desc); info.seg_32bit = GET_32BIT(desc); info.contents = GET_CONTENTS(desc); Index: linux-2.6.13/arch/i386/kernel/ptrace.c =================================================================...
2007 Apr 18
0
[PATCH 10/12] yet-another-redundant-accessor
...desc) (((desc)->b >> 15) & 1) -#define GET_USEABLE(desc) (((desc)->b >> 20) & 1) - asmlinkage int sys_get_thread_area(struct user_desc __user *u_info) { struct user_desc info; @@ -934,7 +914,7 @@ desc = current->thread.tls_array + idx - GDT_ENTRY_TLS_MIN; info.entry_number = idx; - info.base_addr = GET_BASE(desc); + info.base_addr = get_desc_base(desc); info.limit = GET_LIMIT(desc); info.seg_32bit = GET_32BIT(desc); info.contents = GET_CONTENTS(desc); Index: linux-2.6.13/arch/i386/kernel/ptrace.c =================================================================...
2004 Apr 28
1
Segmentation Fault when using dig, nslookup, host...
...OT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4043e000 old_mmap(0x4044a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xb000) = 0x4044a000 close(3) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4044c000 set_thread_area({entry_number:-1 -> -1, base_addr:0x4044c080, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = -1 ENOSYS (Function not implemented) modify_ldt(1, {entry_number:0, base_addr:0x4044c080, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, lim...
2007 Apr 18
2
[PATCH 3/6] i386 virtualization - Make ldt a desc struct
...? > @@ -166,6 +167,7 @@ > __u32 entry_1, entry_2; > int error; > struct user_desc ldt_info; > + int page_number; > > error = -EINVAL; > if (bytecount != sizeof(ldt_info)) > @@ -184,10 +186,11 @@ > goto out; > } > > + page_number = ldt_info.entry_number / LDT_ENTRIES_PER_PAGE; > down(&mm->context.sem); > - if (ldt_info.entry_number >= mm->context.size) { > - error = alloc_ldt(&current->mm->context, mm->context.size, > - ldt_info.entry_number+1, 1); > + if (page_number >= mm->context.ldt_pages)...
2007 Apr 18
2
[PATCH 3/6] i386 virtualization - Make ldt a desc struct
...? > @@ -166,6 +167,7 @@ > __u32 entry_1, entry_2; > int error; > struct user_desc ldt_info; > + int page_number; > > error = -EINVAL; > if (bytecount != sizeof(ldt_info)) > @@ -184,10 +186,11 @@ > goto out; > } > > + page_number = ldt_info.entry_number / LDT_ENTRIES_PER_PAGE; > down(&mm->context.sem); > - if (ldt_info.entry_number >= mm->context.size) { > - error = alloc_ldt(&current->mm->context, mm->context.size, > - ldt_info.entry_number+1, 1); > + if (page_number >= mm->context.ldt_pages)...
2006 Oct 11
1
Problem with ZAPTEL-1.4.0-beta1 and WCT100P card
...0 old_mmap(0x85b000, 7148, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_ANONYMO US, -1, 0) = 0x85b000 close(3) = 0 mprotect(0x857000, 8192, PROT_READ) = 0 mprotect(0x886000, 4096, PROT_READ) = 0 mprotect(0x73e000, 4096, PROT_READ) = 0 set_thread_area({entry_number:-1 -> 6, base_addr:0xf6ff5820, limit: 1048575, seg_ 32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, usea ble:1}) = 0 munmap(0xf6ff6000, 38549) = 0 open("/dev/zap/ctl", O_RDWR) = 3 brk(0) = 0x843700...
2005 Jul 12
1
problem mounting ocfs2: heartbeat
When attempting to mount the OCFS2 file system I'm getting the following error message: ocfs2_hb_ctl: Internal logic failure while starting heartbeat mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl: "Operation not permitted" I followed the steps given in the users_guide: modprobe ocfs2_dlmfs mount -t configfs none /config mount -t ocfs2_dlmfs none /dlm o2cb_ctl
2008 Jan 17
1
convert plugin fails - drops root privileges then tries to create file in /
...RIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13a) = 0xa9a000 mmap2(0xa9d000, 9636, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xa9d000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f20000 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7f206c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 mprotect(0xa9a000, 8192, PROT_READ) = 0 mprotect(0x95c000, 4096, PROT_READ) = 0 munmap(0xb7f22000, 21917) = 0 time(NULL)...