10.0-RC1, armv6: "pfctl -s state" crashes on BeagleBone Black due to unaligned access

Gleb Smirnoff glebius at FreeBSD.org
Thu Jan 9 11:43:18 UTC 2014


  Guy,

On Sat, Jan 04, 2014 at 03:06:02PM +0200, Guy Yur wrote:
G> sizeof(struct pfsync_state_key) is 36
G> sizeof(struct pfsync_state_peer) is 32
G> sizeof(struct pf_addr) is 16
G> sizeof(struct pfsync_state) is 242

I am also afraid that the pfsync(4) itself isn't alignment safe. And
receiving and processing a pfsync packet with couple of states would
panic an arm box.

Is it possible for you to check this?

-- 
Totus tuus, Glebius.


More information about the freebsd-net mailing list