[PATCH] crash on unaligned access in dhcp6_makemessage on BeagleBone Black running FreeBSD
Guy Yur
Sun Sep 28 20:21:03 2014Hi, I am running dhcpcd 6.4.3 on a BeagleBone Black with FreeBSD. Configuration is IPv6 only, prefix delegation, no router solicitation. dhcpcd crashes on trying to write a 16-bit value to a byte aligned address. dhcpcd[2251]: ng0: soliciting a DHCPv6 lease dhcpcd[2251]: ng0: ADV ::/56 from fe80::WWWW:XXXX:YYYY:ZZZZ Bus error (core dumped) (gdb) p u16 $1 = (uint16_t *) 0x2083e1d9 Attached patch to use u16 as an unsigned integer instead of a pointer and use memcpy to set 16-bit values in dhcp6_makemessage. Changes for trunk dhcp6.c 222cd9cc1317c054d425b680b747bc5b474f99f6. Thanks, Guy
Attachment:
dhcp6_unaligned_access.patch
Description: Binary data
Archive administrator: postmaster@marples.name