FreeBSD

共692篇文章。

对牛弹琴

Life

最近在CU论坛的历险记。

讨论最开始是由有位大哥求助如何在FreeBSD中移去sendmail引发的。嗯,这将导致不幸,提醒一下。

接下来老大说sendmail是系统自带的,不像Solaris或Linux那样用包安装,但他要弄掉,弄得很干净。

呃……显然啊,FreeBSD不是一个组装的玩意,它提供了很多内建的东西,不过对于那些热爱自己DIY的人还是应该鼓励一下,于是回帖说用NO_SENDMAIL阻止构建,然后installworld之后删除没有碰过的文件。最后出于好意提醒了一句,「默认安装的留在那不会给你带来很大的损失,但删除可能会带来意想不到的后果。」

阅读全文…:对牛弹琴(本文约1870字,阅读大致需要4分钟)

升级了FreeBSDChina.org的论坛

Security

没完没了的phpBB漏洞!!再也不能忍下去了!

今天终于找到alu跟他要了www的root,然后开始升级。

首先import新版本。

然后开始合并冲突,phpBB这群家伙居然到了这么多的patchlevel还在改表结构,真不知道他们的大脑是用来想什么的,预想www必然会出问题,果然,不过一切在掌控之中。

阅读全文…:升级了FreeBSDChina.org的论坛(本文约174字,阅读大致需要1分钟)

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

keys of (j),(z), etc. in FreeBSD scheduler related stuff's comments

Cheatsheets

You can obtain latest list from sys/sys/proc.h:

参与评论:keys of (j),(z), etc. in FreeBSD scheduler related stuff's comments
搜索文章…(按ESC退出)