Kernel

共216篇文章。

The ULE issue

Kernel

Now I got (partially) the point:

  • A newly fork’ed thread grabs Giant
  • Subsequently, the mutex procedure will call turnstile_wait
  • However, the td->td_sched->ke_runq is NULL (means that some part of the new thread is not initialized completely)
  • So boom! panic.

Interestingly this does not happen in !PREEMPTION case.

Now my question are:

  1. who forks?
  2. is it the child? the parent?
  3. why the initialization is not completed with a wrong result?
参与评论:The ULE issue

Still ULE+PREEMPTION

Kernel

I have done several experiments/asserts to ensure that the panic is related to ULE+PREEMPTION case only.

  • ULE: no panic
  • 4BSD: no panic
  • 4BSD+PREEMPTION: no panic

My latest progress is that I found that sched_switch in ULE for the threaded case, can decide whether subsequent call would panic. Investigating.

参与评论:Still ULE+PREEMPTION

Working on ULE

Kernel

My company has offered me some test equipment (namely, a HP 360 with ILO, which is *great* for debugging at home!), and I has started to trip over the ULE code and find for bugs.

参与评论:Working on ULE

an(4) fixed

Kernel

Today quakelee@ has reported that an(4) is broken with a recent -CURRENT. I have identified that that was related to our recent ifnet change and has fixed it under scottl@’s approval.

参与评论:an(4) fixed
搜索文章…(按ESC退出)