All of lore.kernel.org
 help / color / mirror / Atom feed
* lowlatency patch question
@ 2004-01-11  3:31 shai
  2004-01-11  9:48 ` Arjan van de Ven
  0 siblings, 1 reply; 2+ messages in thread
From: shai @ 2004-01-11  3:31 UTC (permalink / raw)
  To: linux-kernel

Hi,

I think the following is a bug that can affect kernels patched with
lowlatency, such as Audio… and RedHat AS2.1.

lowlatency patch added conditional_schedule() to be called from
close_files(…) at kernel/exit.c, which seems to raise a problem if the
process had LDT entries.
If it had LDT, at the stage of close_files(…) the tsk->mm already zeroed
(__exit_mm(…), which comes before __exit_files(…) in do_exit(…)).  If
conditional_schedule() at close_files(…) will succeed, switching back into
this process (that now have zeroed tsk->mm) will fail since the kernel will
not use the right LDT (since tsk->mm was zeroed, so switch_mm(…) will not be
called to load the LDT at schedule()).

Switching back to a process that had a register that used the LDT will fail
since the register probably points to non-valid LDT entry (since we are
using the wrong LDT), which will lead to a segmentation fault.
 
--Shai



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-11  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-11  3:31 lowlatency patch question shai
2004-01-11  9:48 ` Arjan van de Ven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.