Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Mar 2011 13:32:26 +0200
From:      Svatopluk Kraus <onwahe@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock
Message-ID:  <AANLkTimEiOW%2BkSZD6n1MHiRou3UWibU6Oy3fr9RO4_O4@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

  I've got a page fault (because of NULL td_lock) in
thread_lock_flags() called from schedcpu() in /sys/kern/sched_4bsd.c
file. During process fork, new thread is linked to new process which
is linked to allproc list and both allproc_lock and new process lock
are unlocked before sched_fork() is called, where new thread td_lock
is initialized. Only PRS_NEW process status is on sentry but not
checked in schedcpu().

    Svata



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimEiOW%2BkSZD6n1MHiRou3UWibU6Oy3fr9RO4_O4>