[Bug 199518] [patch] use uninitialized field td_sel of struct thread

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Apr 18 17:22:10 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199518

--- Comment #1 from commit-hook at freebsd.org ---
A commit references this bug:

Author: kib
Date: Sat Apr 18 17:21:13 UTC 2015
New revision: 281696
URL: https://svnweb.freebsd.org/changeset/base/281696

Log:
  Initialize td_sel in the thread_init().  Struct thread is not zeroed
  on the initial allocation, but seltdinit() assumes that td_sel is NULL
  or a valid pointer.  Note that thread_fini()/seltdfini() also relies
  on this, but correctly resets td_sel to NULL.

  Submitted by:    luke.tw at gmail.com
  PR:    199518
  MFC after:    1 week

Changes:
  head/sys/kern/kern_thread.c

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list