search for: tls_size

Displaying 20 results from an estimated 44 matches for "tls_size".

2013 May 30
5
[LLVMdev] compiler-rt tests in cmake?
...out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp 2>&1 -- Exit Code: 1 Command Output (stdout): -- ==19600==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf6111030, 0xf6111000) #0 0x8069d63 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x8069d63) #1 0x806d30b (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/l...
2013 May 30
0
[LLVMdev] compiler-rt tests in cmake?
On Thu, May 30, 2013 at 10:05 PM, Greg Fitzgerald <garious at gmail.com> wrote: > The sanitizer common and asan that mention 'thread' are failing for me > this morning. How are your bots looking? Last good commit here was > 512c616cacf70ca029a2bf719a482b902f3687cd. > Hm, our bots seem to be green. Could you refer to guilty svn revision? > > > You could try
2013 May 30
2
[LLVMdev] compiler-rt tests in cmake?
The sanitizer common and asan that mention 'thread' are failing for me this morning. How are your bots looking? Last good commit here was 512c616cacf70ca029a2bf719a482b902f3687cd. > You could try preprocessing your report with perl or sed to fix paths > to your binaries. It would be great to have an option for that in > asan_symbolize.py. > > As for addr2line, we just
2007 Apr 18
0
[PATCH 3/12] tls-is-ugly
...asm-i386/desc.h =================================================================== --- linux-2.6.13.orig/include/asm-i386/desc.h 2005-08-08 14:12:48.000000000 -0700 +++ linux-2.6.13/include/asm-i386/desc.h 2005-08-08 14:53:11.000000000 -0700 @@ -106,15 +106,9 @@ ldt[entry].b = entry_b; } -#if TLS_SIZE != 24 -# error update this code. -#endif - static inline void load_TLS(struct thread_struct *t, unsigned int cpu) { -#define C(i) per_cpu(cpu_gdt_table, cpu)[GDT_ENTRY_TLS_MIN + i] = t->tls_array[i] - C(0); C(1); C(2); -#undef C + memcpy(&per_cpu(cpu_gdt_table, cpu)[GDT_ENTRY_TLS_MIN], t-&...
2007 Apr 18
0
[PATCH 2/14] i386 / Remove ugly tls code
...=============================================================== --- linux-2.6.13.orig/include/asm-i386/mach-default/mach_desc.h 2005-08-09 18:37:58.000000000 -0700 +++ linux-2.6.13/include/asm-i386/mach-default/mach_desc.h 2005-08-10 20:44:46.000000000 -0700 @@ -70,15 +70,9 @@ return 0; } -#if TLS_SIZE != 24 -# error update this code. -#endif - static inline void load_TLS(struct thread_struct *t, unsigned int cpu) { -#define C(i) per_cpu(cpu_gdt_table, cpu)[GDT_ENTRY_TLS_MIN + i] = t->tls_array[i] - C(0); C(1); C(2); -#undef C + memcpy(&per_cpu(cpu_gdt_table, cpu)[GDT_ENTRY_TLS_MIN], t-&...
2007 Apr 18
0
[PATCH 3/12] tls-is-ugly
...asm-i386/desc.h =================================================================== --- linux-2.6.13.orig/include/asm-i386/desc.h 2005-08-08 14:12:48.000000000 -0700 +++ linux-2.6.13/include/asm-i386/desc.h 2005-08-08 14:53:11.000000000 -0700 @@ -106,15 +106,9 @@ ldt[entry].b = entry_b; } -#if TLS_SIZE != 24 -# error update this code. -#endif - static inline void load_TLS(struct thread_struct *t, unsigned int cpu) { -#define C(i) per_cpu(cpu_gdt_table, cpu)[GDT_ENTRY_TLS_MIN + i] = t->tls_array[i] - C(0); C(1); C(2); -#undef C + memcpy(&per_cpu(cpu_gdt_table, cpu)[GDT_ENTRY_TLS_MIN], t-&...
2007 Apr 18
0
[PATCH 2/14] i386 / Remove ugly tls code
...=============================================================== --- linux-2.6.13.orig/include/asm-i386/mach-default/mach_desc.h 2005-08-09 18:37:58.000000000 -0700 +++ linux-2.6.13/include/asm-i386/mach-default/mach_desc.h 2005-08-10 20:44:46.000000000 -0700 @@ -70,15 +70,9 @@ return 0; } -#if TLS_SIZE != 24 -# error update this code. -#endif - static inline void load_TLS(struct thread_struct *t, unsigned int cpu) { -#define C(i) per_cpu(cpu_gdt_table, cpu)[GDT_ENTRY_TLS_MIN + i] = t->tls_array[i] - C(0); C(1); C(2); -#undef C + memcpy(&per_cpu(cpu_gdt_table, cpu)[GDT_ENTRY_TLS_MIN], t-&...
2013 Aug 19
2
[LLVMdev] [cfe-dev] -fsanitize=address on centos 6.4
...4. By "like" I mean it asserts anytime a >>> thread is created. With errors like: >>> >>> ==18015==AddressSanitizer CHECK failed: >>> clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:251 >>> "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf2f7d030, >>> 0xf2f7d000) >>> >>> If I use the llvm+clang 3.3 version it works properly. >>> - >>> This message is intended only for the addressee and may contain >>> information that is company confide...
2007 Apr 18
0
[PATCH 11/12] subarch-desc
...ine void write_ldt_entry(struct desc_struct *ldt, int entry, __u32 entry_a, __u32 entry_b) -{ - ldt[entry].a = entry_a; - ldt[entry].b = entry_b; -} - -static inline void load_TLS(struct thread_struct *t, unsigned int cpu) -{ - memcpy(&get_cpu_gdt_table(cpu)[GDT_ENTRY_TLS_MIN], t->tls_array, TLS_SIZE); -} - static inline void clear_LDT(void) { int cpu = get_cpu(); Index: linux-2.6.13/include/asm-i386/mach-default/mach_desc.h =================================================================== --- linux-2.6.13.orig/include/asm-i386/mach-default/mach_desc.h 2005-08-08 15:45:27.000000000 -0700...
2007 Apr 18
0
[PATCH 11/12] subarch-desc
...ine void write_ldt_entry(struct desc_struct *ldt, int entry, __u32 entry_a, __u32 entry_b) -{ - ldt[entry].a = entry_a; - ldt[entry].b = entry_b; -} - -static inline void load_TLS(struct thread_struct *t, unsigned int cpu) -{ - memcpy(&get_cpu_gdt_table(cpu)[GDT_ENTRY_TLS_MIN], t->tls_array, TLS_SIZE); -} - static inline void clear_LDT(void) { int cpu = get_cpu(); Index: linux-2.6.13/include/asm-i386/mach-default/mach_desc.h =================================================================== --- linux-2.6.13.orig/include/asm-i386/mach-default/mach_desc.h 2005-08-08 15:45:27.000000000 -0700...
2007 Apr 18
0
[PATCH 7/12] gdt-accessor
...desc(&get_cpu_gdt_table(cpu)[GDT_ENTRY_LDT], (int)addr, ((size << 3)-1), 0x82); } #define LDT_entry_a(info) \ @@ -112,7 +114,7 @@ static inline void load_TLS(struct thread_struct *t, unsigned int cpu) { - memcpy(&per_cpu(cpu_gdt_table, cpu)[GDT_ENTRY_TLS_MIN], t->tls_array, TLS_SIZE); + memcpy(&get_cpu_gdt_table(cpu)[GDT_ENTRY_TLS_MIN], t->tls_array, TLS_SIZE); } static inline void clear_LDT(void) Index: linux-2.6.13/arch/i386/kernel/apm.c =================================================================== --- linux-2.6.13.orig/arch/i386/kernel/apm.c 2005-08-08 17:0...
2007 Apr 18
0
[PATCH 7/12] gdt-accessor
...desc(&get_cpu_gdt_table(cpu)[GDT_ENTRY_LDT], (int)addr, ((size << 3)-1), 0x82); } #define LDT_entry_a(info) \ @@ -112,7 +114,7 @@ static inline void load_TLS(struct thread_struct *t, unsigned int cpu) { - memcpy(&per_cpu(cpu_gdt_table, cpu)[GDT_ENTRY_TLS_MIN], t->tls_array, TLS_SIZE); + memcpy(&get_cpu_gdt_table(cpu)[GDT_ENTRY_TLS_MIN], t->tls_array, TLS_SIZE); } static inline void clear_LDT(void) Index: linux-2.6.13/arch/i386/kernel/apm.c =================================================================== --- linux-2.6.13.orig/arch/i386/kernel/apm.c 2005-08-08 17:0...
2007 Apr 18
2
[PATCH 8/14] i386 / Add a per cpu gdt accessor
...dr, ((size << 3)-1), 0x82); } static inline int write_ldt_entry(void *ldt, int entry, __u32 entry_a, __u32 entry_b) @@ -72,7 +72,7 @@ static inline void load_TLS(struct thread_struct *t, unsigned int cpu) { - memcpy(&per_cpu(cpu_gdt_table, cpu)[GDT_ENTRY_TLS_MIN], t->tls_array, TLS_SIZE); + memcpy(&get_cpu_gdt_table(cpu)[GDT_ENTRY_TLS_MIN], t->tls_array, TLS_SIZE); } #endif Index: linux-2.6.13/arch/i386/kernel/apm.c =================================================================== --- linux-2.6.13.orig/arch/i386/kernel/apm.c 2005-08-09 20:17:21.000000000 -0700 +++ l...
2007 Apr 18
2
[PATCH 8/14] i386 / Add a per cpu gdt accessor
...dr, ((size << 3)-1), 0x82); } static inline int write_ldt_entry(void *ldt, int entry, __u32 entry_a, __u32 entry_b) @@ -72,7 +72,7 @@ static inline void load_TLS(struct thread_struct *t, unsigned int cpu) { - memcpy(&per_cpu(cpu_gdt_table, cpu)[GDT_ENTRY_TLS_MIN], t->tls_array, TLS_SIZE); + memcpy(&get_cpu_gdt_table(cpu)[GDT_ENTRY_TLS_MIN], t->tls_array, TLS_SIZE); } #endif Index: linux-2.6.13/arch/i386/kernel/apm.c =================================================================== --- linux-2.6.13.orig/arch/i386/kernel/apm.c 2005-08-09 20:17:21.000000000 -0700 +++ l...
2007 Apr 18
3
[RFC, PATCH 10/24] i386 Vmi descriptor changes
...inline void set_ldt_desc(unsigned (info)->seg_not_present == 1 && \ (info)->useable == 0 ) -static inline void write_ldt_entry(void *ldt, int entry, __u32 entry_a, __u32 entry_b) -{ - __u32 *lp = (__u32 *)((char *)ldt + entry*8); - *lp = entry_a; - *(lp+1) = entry_b; -} - -#if TLS_SIZE != 24 -# error update this code. -#endif - -static inline void load_TLS(struct thread_struct *t, unsigned int cpu) -{ -#define C(i) get_cpu_gdt_table(cpu)[GDT_ENTRY_TLS_MIN + i] = t->tls_array[i] - C(0); C(1); C(2); -#undef C -} - static inline void clear_LDT(void) { int cpu = get_cpu(); Ind...
2007 Apr 18
3
[RFC, PATCH 10/24] i386 Vmi descriptor changes
...inline void set_ldt_desc(unsigned (info)->seg_not_present == 1 && \ (info)->useable == 0 ) -static inline void write_ldt_entry(void *ldt, int entry, __u32 entry_a, __u32 entry_b) -{ - __u32 *lp = (__u32 *)((char *)ldt + entry*8); - *lp = entry_a; - *(lp+1) = entry_b; -} - -#if TLS_SIZE != 24 -# error update this code. -#endif - -static inline void load_TLS(struct thread_struct *t, unsigned int cpu) -{ -#define C(i) get_cpu_gdt_table(cpu)[GDT_ENTRY_TLS_MIN + i] = t->tls_array[i] - C(0); C(1); C(2); -#undef C -} - static inline void clear_LDT(void) { int cpu = get_cpu(); Ind...
2013 Aug 19
2
[LLVMdev] [cfe-dev] -fsanitize=address on centos 6.4
...sion of clang+llvm does not like -fsanitize=address on centos 6.4. By "like" I mean it asserts anytime a thread is created. With errors like: ==18015==AddressSanitizer CHECK failed: clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:251 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf2f7d030, 0xf2f7d000) If I use the llvm+clang 3.3 version it works properly. - This message is intended only for the addressee and may contain information that is company confidential or privileged. Any technical data in this message may be exported only...
2007 Apr 18
1
[PATCH 2/12] ldt-accessors
...ct, cpu_gdt_table[GDT_ENTRIES]); @@ -96,6 +100,12 @@ (info)->seg_not_present == 1 && \ (info)->useable == 0 ) +static inline void write_ldt_entry(struct desc_struct *ldt, int entry, __u32 entry_a, __u32 entry_b) +{ + ldt[entry].a = entry_a; + ldt[entry].b = entry_b; +} + #if TLS_SIZE != 24 # error update this code. #endif @@ -140,12 +150,12 @@ put_cpu(); } -static inline unsigned long get_desc_base(unsigned long *desc) +static inline unsigned long get_desc_base(struct desc_struct *desc) { unsigned long base; - base = ((desc[0] >> 16) & 0x0000ffff) | - ((de...
2007 Apr 18
1
[PATCH 2/12] ldt-accessors
...ct, cpu_gdt_table[GDT_ENTRIES]); @@ -96,6 +100,12 @@ (info)->seg_not_present == 1 && \ (info)->useable == 0 ) +static inline void write_ldt_entry(struct desc_struct *ldt, int entry, __u32 entry_a, __u32 entry_b) +{ + ldt[entry].a = entry_a; + ldt[entry].b = entry_b; +} + #if TLS_SIZE != 24 # error update this code. #endif @@ -140,12 +150,12 @@ put_cpu(); } -static inline unsigned long get_desc_base(unsigned long *desc) +static inline unsigned long get_desc_base(struct desc_struct *desc) { unsigned long base; - base = ((desc[0] >> 16) & 0x0000ffff) | - ((de...
2007 Apr 18
1
[RFC/PATCH PV_OPS X86_64 05/17] pravirt_ops - segments
...efine FS_TLS_SEL ((GDT_ENTRY_TLS_MIN+FS_TLS)*8 + 3) +#define __HV_CS 0x80 /* 16*8 */ +#define __HV_DS 0x88 /* 17*8 */ + +#define GDT_ENTRY_HV_CS 16 +#define GDT_ENTRY_HV_DS 17 + #define IDT_ENTRIES 256 -#define GDT_ENTRIES 16 +#define GDT_ENTRIES 18 #define GDT_SIZE (GDT_ENTRIES * 8) #define TLS_SIZE (GDT_ENTRY_TLS_ENTRIES * 8) --