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

--- Comment #6 from Marius Strobl <mar...@freebsd.org> ---
(In reply to Michael Moll from comment #2)

That patch is overly complicated for solving the unaligned access triggered by
config_link(); it's way simpler to just fix do_config() to properly align
dn_link before passing it on in the first place. Moreover, the latter also is
the actual culprit here as do_config() casts a random chunk of memory to a
struct dn_link pointer. Note, though, that the config_link() triggered
unaligned access is only one instance of dummynet(4) misaligning dn_link. The
following is a complete fix in that regard:
http://people.freebsd.org/~marius/dummynet_unfuck_dn_link.diff

However, the same incorrect patterns are used for virtually all of dn_<foo> and
additionally in some other stuff like flow ID related functions. So someone
still needs to sit down and go through the entirety of ip_dummynet.c, fixing
all other unaligned accesses.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to