[Bug 245870] panic during startup of squid inside jail

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue May 19 18:36:11 UTC 2020


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

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

Author: markj
Date: Tue May 19 18:35:09 UTC 2020
New revision: 361263
URL: https://svnweb.freebsd.org/changeset/base/361263

Log:
  Define a module version for accept filter modules.

  Otherwise accept filters compiled into the kernel do not preempt
  preloaded accept filter modules.  Then, the preloaded file registers its
  accept filter module before the kernel, and the kernel's attempt fails
  since duplicate accept filter list entries are not permitted.  This
  causes the preloaded file's module to be released, since
  module_register_init() does a lookup by name, so the preloaded file is
  unloaded, and the accept filter's callback points to random memory since
  preload_delete_name() unmaps the file on x86 as of r336505.

  Add a new ACCEPT_FILTER_DEFINE macro which wraps the accept filter and
  module definitions, and ensures that a module version is defined.

  PR:           245870
  Reported by:  Thomas von Dein <freebsd at daemon.de>
  MFC after:    2 weeks
  Sponsored by: The FreeBSD Foundation

Changes:
  head/sys/netinet/accf_data.c
  head/sys/netinet/accf_dns.c
  head/sys/netinet/accf_http.c
  head/sys/sys/socketvar.h

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


More information about the freebsd-bugs mailing list