[Bug 185617] pfctl(8): armv6: "pfctl -s state" crashes on BeagleBone Black due to unaligned access

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jan 30 22:03:31 UTC 2016


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

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

Author: ian
Date: Sat Jan 30 22:03:15 UTC 2016
New revision: 295086
URL: https://svnweb.freebsd.org/changeset/base/295086

Log:
  Make pfctl(8) work on strict-alignment platforms, by copying a pair of
  embedded structures out of a packed, unaligned struct into local copies
  on the stack which are aligned.

  The original patch to do this was submitted by Guy Yur <guyyur at gmail.com>,
  and this is conceptually the same change, but restructured with the
  #ifndef __NO_STRICT_ALIGNMENT wrapper, similar to how the same issue is
  handled in the kernel pf code.

  PR:           185617
  PR:           206658

Changes:
  head/sbin/pfctl/pf_print_state.c

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


More information about the freebsd-pf mailing list