search for: entry_1

Displaying 19 results from an estimated 19 matches for "entry_1".

Did you mean: entry_b
2007 Apr 18
1
[PATCH 2/12] ldt-accessors
...-2.6.13.orig/arch/i386/kernel/ldt.c 2005-08-08 13:50:20.000000000 -0700 +++ linux-2.6.13/arch/i386/kernel/ldt.c 2005-08-08 13:53:28.000000000 -0700 @@ -177,7 +177,7 @@ static int write_ldt(void __user * ptr, unsigned long bytecount, int oldmode) { struct mm_struct * mm = current->mm; - __u32 entry_1, entry_2, *lp; + __u32 entry_1, entry_2; int error; struct user_desc ldt_info; @@ -205,8 +205,6 @@ goto out_unlock; } - lp = (__u32 *) ((ldt_info.entry_number << 3) + (char *) mm->context.ldt); - /* Allow LDTs to be cleared by the user. */ if (ldt_info.base_addr ==...
2007 Apr 18
1
[PATCH 2/12] ldt-accessors
...-2.6.13.orig/arch/i386/kernel/ldt.c 2005-08-08 13:50:20.000000000 -0700 +++ linux-2.6.13/arch/i386/kernel/ldt.c 2005-08-08 13:53:28.000000000 -0700 @@ -177,7 +177,7 @@ static int write_ldt(void __user * ptr, unsigned long bytecount, int oldmode) { struct mm_struct * mm = current->mm; - __u32 entry_1, entry_2, *lp; + __u32 entry_1, entry_2; int error; struct user_desc ldt_info; @@ -205,8 +205,6 @@ goto out_unlock; } - lp = (__u32 *) ((ldt_info.entry_number << 3) + (char *) mm->context.ldt); - /* Allow LDTs to be cleared by the user. */ if (ldt_info.base_addr ==...
2007 Apr 18
0
[PATCH 12/12] xen-ldt
...ned int nr) +{ +} + +static inline void make_pages_writable(void *va, unsigned int nr) +{ +} + +static inline void add_context_to_unpinned(struct mm_struct *mm) +{ +} + +static inline void del_context_from_unpinned(struct mm_struct *mm) +{ +} + +static inline int install_ldt_entry (__u32 *lp, __u32 entry_1, __u32 entry_2) +{ + *lp = entry_1; + *(lp+1) = entry_2; + return 0; +} + +#endif /* __ASM_HYPERVISOR_HOOKS_H */ Index: linux-2.6.13/include/asm-i386/mach-xen/hypervisor_hooks.h =================================================================== --- linux-2.6.13.orig/include/asm-i386/mach-xen/h...
2007 Apr 18
0
[PATCH 12/12] xen-ldt
...ned int nr) +{ +} + +static inline void make_pages_writable(void *va, unsigned int nr) +{ +} + +static inline void add_context_to_unpinned(struct mm_struct *mm) +{ +} + +static inline void del_context_from_unpinned(struct mm_struct *mm) +{ +} + +static inline int install_ldt_entry (__u32 *lp, __u32 entry_1, __u32 entry_2) +{ + *lp = entry_1; + *(lp+1) = entry_2; + return 0; +} + +#endif /* __ASM_HYPERVISOR_HOOKS_H */ Index: linux-2.6.13/include/asm-i386/mach-xen/hypervisor_hooks.h =================================================================== --- linux-2.6.13.orig/include/asm-i386/mach-xen/h...
2007 Apr 18
1
Descriptor table patches integrated
...rom Chris and Martin into the -mm tree. I'll be sending out the patches shortly after testing with my (still in progress!) Linux LDT test suite. First interface quirk came up. It looks like Xen wants to return errors from hypercalls: +static inline int install_ldt_entry (__u32 *lp, __u32 entry_1, __u32 entry_2) +{ + unsigned long mach_lp = arbitrary_virt_to_machine(lp); + + return HYPERVISOR_update_descriptor(mach_lp, entry_1, entry_2); +} While this is fine here, this could be problematic in terms of forcing error checking in lots of situations where there used to be no error checking...
2007 Apr 18
1
Descriptor table patches integrated
...rom Chris and Martin into the -mm tree. I'll be sending out the patches shortly after testing with my (still in progress!) Linux LDT test suite. First interface quirk came up. It looks like Xen wants to return errors from hypercalls: +static inline int install_ldt_entry (__u32 *lp, __u32 entry_1, __u32 entry_2) +{ + unsigned long mach_lp = arbitrary_virt_to_machine(lp); + + return HYPERVISOR_update_descriptor(mach_lp, entry_1, entry_2); +} While this is fine here, this could be problematic in terms of forcing error checking in lots of situations where there used to be no error checking...
2007 Apr 18
0
[PATCH 20/21] i386 Ldt cleanups 3
...goto error_return; if (size != bytecount) { @@ -176,10 +181,11 @@ static int read_default_ldt(void __user static int write_ldt(void __user * ptr, unsigned long bytecount, int oldmode) { - struct mm_struct * mm = current->mm; + mm_context_t *pc = &current->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)...
2007 Apr 18
0
[PATCH 20/21] i386 Ldt cleanups 3
...goto error_return; if (size != bytecount) { @@ -176,10 +181,11 @@ static int read_default_ldt(void __user static int write_ldt(void __user * ptr, unsigned long bytecount, int oldmode) { - struct mm_struct * mm = current->mm; + mm_context_t *pc = &current->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)...
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
2
[PATCH 12/12; UPDATED] xen-ldt
...sm-i386/mach-xen/mach_desc.h 2005-08-08 21:17:02.000000000 -0700 +++ linux-2.6.13/include/asm-i386/mach-xen/mach_desc.h 2005-08-08 21:19:43.000000000 -0700 @@ -0,0 +1,11 @@ +#ifndef __MACH_DESC_H +#define __MACH_DESC_H + +static inline void write_ldt_entry (struct desc_struct *ldt, int entry, __u32 entry_1, __u32 entry_2) +{ + unsigned long mach_lp = arbitrary_virt_to_machine(&ldt[entry]); + + return HYPERVISOR_update_descriptor(mach_lp, entry_1, entry_2); +} + +#endif
2007 Apr 18
2
[PATCH 12/12; UPDATED] xen-ldt
...sm-i386/mach-xen/mach_desc.h 2005-08-08 21:17:02.000000000 -0700 +++ linux-2.6.13/include/asm-i386/mach-xen/mach_desc.h 2005-08-08 21:19:43.000000000 -0700 @@ -0,0 +1,11 @@ +#ifndef __MACH_DESC_H +#define __MACH_DESC_H + +static inline void write_ldt_entry (struct desc_struct *ldt, int entry, __u32 entry_1, __u32 entry_2) +{ + unsigned long mach_lp = arbitrary_virt_to_machine(&ldt[entry]); + + return HYPERVISOR_update_descriptor(mach_lp, entry_1, entry_2); +} + +#endif
2007 Apr 18
3
[PATCH] abstract out bits of ldt.c
Chris Wright wrote: >* Zachary Amsden (zach@vmware.com) wrote: > > >>Does Xen assume page aligned descriptor tables? I assume from this >> >> > >Yes. > > > >>patch and snippets I have gathered from others, that is a yes, and other >>things here imply that DT pages are not shadowed. If so, Xen itself >>must have live segments
2007 Apr 18
3
[PATCH] abstract out bits of ldt.c
Chris Wright wrote: >* Zachary Amsden (zach@vmware.com) wrote: > > >>Does Xen assume page aligned descriptor tables? I assume from this >> >> > >Yes. > > > >>patch and snippets I have gathered from others, that is a yes, and other >>things here imply that DT pages are not shadowed. If so, Xen itself >>must have live segments
2005 Dec 31
0
File_column and multiple file select
...s error when I submit my form undefined method `stringify_keys!'' for #<File:C:/DOCUME~1/ssomasun/LOCALS~1/Temp/CGI6048.1> Request *Parameters*: {"entry_0"=>#<File:C:/DOCUME~1/ssomasun/LOCALS~1/Temp/CGI6048.1>, "Save"=>"Submit Query", "entry_1"=>#<File:C:/DOCUME~1/ssomasun/LOCALS~1/Temp/CGI6048.0>} My view is as below <head> <!-- Include the javascript --> <%= javascript_include_tag "multifile" %> </head> <body> <%= start_form_tag ({ :action => "create&quot...
2007 Dec 06
51
[PATCH 0/19] desc_struct integration
Hi, this is a series of patches that unify the struct desc_struct and friends across x86_64 and i386. As usual, it provides paravirt capabilities as a side-effect for x86_64. I consider the main goal, namely, of unifying the desc_struct, an ongoing effort, being this the beginning. A lot of old code has to be touched to accomplish that. I don't consider this patch ready for inclusion.
2007 Dec 06
51
[PATCH 0/19] desc_struct integration
Hi, this is a series of patches that unify the struct desc_struct and friends across x86_64 and i386. As usual, it provides paravirt capabilities as a side-effect for x86_64. I consider the main goal, namely, of unifying the desc_struct, an ongoing effort, being this the beginning. A lot of old code has to be touched to accomplish that. I don't consider this patch ready for inclusion.
2007 Apr 18
2
[PATCH 3/6] i386 virtualization - Make ldt a desc struct
...This now looks like you can leak data? Since full page is unlikely used, but accounting is done in page sizes. Asking to read_ldt with bytcount of PAGE_SIZE could give some uninitialzed data back to user. Did I miss the spot where this is always zero-filled? > @@ -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...
2007 Apr 18
2
[PATCH 3/6] i386 virtualization - Make ldt a desc struct
...This now looks like you can leak data? Since full page is unlikely used, but accounting is done in page sizes. Asking to read_ldt with bytcount of PAGE_SIZE could give some uninitialzed data back to user. Did I miss the spot where this is always zero-filled? > @@ -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...