Re: [Xenomai-core] Potential heap corruption on thread cleanup

2010-03-05 Thread Wolfgang Mauerer
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Hi Gilles, I'm pushing your findings to the list, also as my colleagues showed strong interest - this thing may explain rare

Re: [Xenomai-core] Potential heap corruption on thread cleanup

2010-03-05 Thread Gilles Chanteperdrix
Wolfgang Mauerer wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Hi Gilles, I'm pushing your findings to the list, also as my colleagues showed strong interest - this thing

Re: [Xenomai-core] Potential heap corruption on thread cleanup

2010-03-05 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Hi Gilles, I'm pushing your findings to the list, also as my colleagues showed

[Xenomai-core] [RFC][PATCH] Allow for deregistering current mode user space address

2010-03-05 Thread Jan Kiszka
This adds __xn_sys_drop_u_mode, a syscall to deregister the u_mode user space address passed on shadow creation for the current thread. We need this in order to safely shut down a thread that wants to release its u_mode memory (either malloc'ed or TLS-allocated). So far, the kernel might have

Re: [Xenomai-core] Potential heap corruption on thread cleanup

2010-03-05 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Hi Gilles, I'm pushing your findings

Re: [Xenomai-core] Potential heap corruption on thread cleanup

2010-03-05 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Hi Gilles,

Re: [Xenomai-core] [RFC][PATCH v2] Allow for deregistering current mode user space address

2010-03-05 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: This adds __xn_sys_drop_u_mode, a syscall to deregister the u_mode user space address passed on shadow creation for the current thread. We need this in order to safely shut down a thread that wants to