Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Nov 2008 15:00:40 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/compat/linux linux_emul.c
Message-ID:  <200811131500.mADF0sRg032167@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2008-11-13 15:00:40 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/compat/linux     linux_emul.c 
  Log:
  SVN rev 184924 on 2008-11-13 15:00:40Z by kib
  
  MFC r184501:
  The code in linux_proc_exit() contains a race when multiple linux based
  processes exits at the same time. The linux_emuldata structure is freed
  but p->p_emuldata is left as a dangling pointer to the just freed
  memory.
  
  The check for W_EXIT in the loop scanning the child processes isn't safe
  since the state of the child process can change right afterwards. Lock
  the process and check the W_EXIT before delivering signal.
  
  Approved by:    re (kensmith)
  
  Revision  Changes    Path
  1.20.2.1  +3 -3      src/sys/compat/linux/linux_emul.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811131500.mADF0sRg032167>