git: kernel - fix crash in smb mount

看板DFBSD_commit作者時間15年前 (2010/07/10 17:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit be36369df85afceebd0c8caca4b22f6e7a147f4f Author: Nicolas Thery <nthery@gmail.com> Date: Sat Jul 10 10:43:31 2010 +0200 kernel - fix crash in smb mount The samba kernel-side daemon smbiod is created with kthread_create_compat(). Kernel threads created with kthread_create_compat() have no td_ucred, as other kernel threads, but have td_proc != NULL because this function under the hood forks the process 0. prison_replace_wildcard() was assuming that if td_proc != NULL it is dealing with a user thread that has a valid td_ucred thus causing a NULL ptr dereference when operating on kthread_create_compat()-threads. Reported-and-fixed-by: Tero Jaasko Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1790> Summary of changes: sys/kern/kern_jail.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/be36369df85afceebd0c8caca4b22f6e7a147f4f -- DragonFly BSD source repository
文章代碼(AID): #1CE3uMlT (DFBSD_commit)