1
0
Files
linux/arch/ia64/kernel
Ian Wienand e384f41409 [IA64] set_thread_area fails in IA32 chroot
I tried to upgrade an IA32 chroot on my IA64 to a new glibc with TLS.
It kept dying because set_thread_area was returning -ESRCH
(bugs.debian.org/451939).

I instrumented arch/ia64/ia32/sys_ia32.c:get_free_idx() and ended up
seeing output like

[pid] idx   desc->a  desc->b
-----------------------------
[2710] 0 -> c6b0ffff 40dff31b
[2710] 1 -> 0 0
[2710] 2 -> 0 0

[2710] 0 -> c6b0ffff 40dff31b
[2710] 1 -> c6b0ffff 40dff31b
[2710] 2 -> 0 0

[2711] 0 -> c6b0ffff 40dff31b
[2711] 1 -> c6b0ffff 40dff31b
[2711] 2 -> 48c0ffff 40dff317

which suggested to me that TLS pointers were surviving exec() calls,
leading to GDT pointers filling up and the eventual failure of
get_free_idx().

I think the solution is flushing the tls array on exec.

Signed-Off-By: Ian Wienand <ianw@gelato.unsw.edu.au>
Signed-off-by: Tony Luck <tony.luck@intel.com>
2007-12-19 11:06:40 -08:00
..
2007-05-11 05:38:25 -04:00
2007-07-19 13:48:00 -07:00
2007-05-10 09:35:30 -07:00
2006-06-21 11:19:22 -07:00
2006-06-21 11:19:22 -07:00
2007-12-07 14:28:02 -08:00
2007-07-09 13:37:44 -07:00
2007-07-25 13:08:26 -07:00
2007-07-29 17:09:29 -07:00
2007-05-11 14:55:43 -07:00
2007-11-06 15:40:52 -08:00
2006-12-12 12:00:55 -08:00
2007-10-17 14:28:38 -07:00
2007-05-11 14:55:43 -07:00
2007-05-11 14:55:43 -07:00
2006-12-07 10:48:19 -08:00
2007-05-11 14:55:43 -07:00
2007-12-07 16:11:49 -08:00
2007-05-08 14:51:59 -07:00
2007-06-26 13:33:10 -07:00