Re: [PATCH] crash on unaligned access in dhcp6_makemessage on BeagleBone Black running FreeBSD
Roy Marples
Sun Sep 28 20:35:54 2014Hi Guy On Sunday 28 Sep 2014 23:21:02 Guy Yur wrote: > 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. Fixed here: http://roy.marples.name/projects/dhcpcd/ci/66cf2788dd402348fa56643811f1585614734da9?sbs=0 Thanks for the patch! Roy
Archive administrator: postmaster@marples.name