[Bug 247020] [panic][lixux]: kernel panic in linux_thread_detach at /usr/src/sys/compat/linux/linux_fork.c:462

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jun 18 20:50:55 UTC 2020


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

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

Author: kib
Date: Thu Jun 18 20:49:57 UTC 2020
New revision: 362342
URL: https://svnweb.freebsd.org/changeset/base/362342

Log:
  Fix execution of linux binary from multithreaded non-Linux process.

  If multithreaded non-Linux process execs Linux binary, then non-Linux
  threads different from the one that execing are cleared by
  single-threading at boundary, and then terminating them in
  post_execve(). Since at that time the process is already switched to
  linux ABI, linuxolator is involved in the thread clearing on boundary,
  but cannot find the emul data.

  Handle it by pre-creating emuldata for all threads in the execing process.

  Also remove a code in linux_proc_exec() handler that cleared emul data
  for other threads when execing from multithreaded Linux process. It is
  excessive.

  PR:   247020
  Reported by:  Martin FIlla <freebsd at sysctl.cz>
  Reported by:  Henrique L. Amorim, Independent Security Researcher
  Reported by:  Rodrigo Rubira Branco (BSDaemon), Amazon Web Services
  Reviewed by:  markj
  Tested by:    trasz
  Sponsored by: The FreeBSD Foundation
  MFC after:    1 week
  Differential revision:        https://reviews.freebsd.org/D25293

Changes:
  head/sys/compat/linux/linux_emul.c

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


More information about the freebsd-emulation mailing list