Bug#932381: libdbus-1-3: lidbus _dbus_marshal_write_basic uses implementation defined behaviour (unaligned read)

2019-07-20 Thread Simon McVittie
On Fri, 19 Jul 2019 at 10:25:56 +0200, Witold Baryluk wrote: > I do see real world misaligned reads on alpha, and I did trace it to mentioned > function . Thus the bug. Are you able to reproduce this by running the dbus test suite? If not, are you able to reproduce it with an application? Which o

Bug#932381: libdbus-1-3: lidbus _dbus_marshal_write_basic uses implementation defined behaviour (unaligned read)

2019-07-19 Thread Witold Baryluk
Depends on architecture. On i386 and amd64 there is zero impact for exams. 32 bit arm would be impacted, but considering dbus is not heavily used by anything in the first place, and there is 1000 other instructions around, the impact would be extremely small if any. Most likely it will be actually

Bug#932381: libdbus-1-3: lidbus _dbus_marshal_write_basic uses implementation defined behaviour (unaligned read)

2019-07-18 Thread Simon McVittie
Control: severity -1 normal Control: tags -1 + upstream On Thu, 18 Jul 2019 at 17:15:09 +0200, Witold Baryluk wrote: > In this case, value is often not aligned to native uint64 alignement, > and dereference does lead to a CPU trap on some architectures > and some compilers. Do you have evidence o

Bug#932381: libdbus-1-3: lidbus _dbus_marshal_write_basic uses implementation defined behaviour (unaligned read)

2019-07-18 Thread Witold Baryluk
Package: libdbus-1-3 Version: 1.12.16-1 Severity: important Hi, in libdbus in function _dbus_marshal_write_basic (in file dbus-marshal-basic.c around lines 859-881). for cases INT16, INT32, INT64 and DOUBLE, the function uses implementation defined behaviour of converting void pointer to intege