tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Patches fixing unaligned access in the networking code



Please review:

http://netbsd.org/~kamil/patch-00115-tcp_input.2.txt

http://netbsd.org/~kamil/patch-00117-netinet6.txt

Both patches contain the original messages from kUBSan.

The first patch is rather obvious, but the 2nd one is unclear for me.

In in6.h, we are following the approach from in.h and we are adding
__packed to in6_addr struct, reproducing the code for struct in_addr.

The patch-00117-netinet6.txt patch has been authored by Akul Pillai.

These patches are required to get clean state in the networking stack
under kUBSan.

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index