chiark / gitweb /
bus: align kdbus ioctl parameters to 8byte
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 22 Sep 2014 10:49:47 +0000 (12:49 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Mon, 22 Sep 2014 12:27:02 +0000 (14:27 +0200)
commit7f3d3ba1a61f28a951ca5fbe59ed15c7ce55219c
tree9370d82e5ca140322c15e2c70af75c67de64511b
parent95d78c7e7c81a6b788f28c33ef2cafd87471a0d7
bus: align kdbus ioctl parameters to 8byte

All kdbus ioctl arguments must be 8byte aligned. Make sure we use
alloca_align() and _alignas_(8) in all situations where gcc doesn't
guarantee 8-byte alignment.

Note that objects on the stack are always 8byte aligned as we put
_alignas_(8) into the structure definition in kdbus.h.
src/libsystemd/sd-bus/bus-control.c
src/libsystemd/sd-bus/bus-kernel.c
src/libsystemd/sd-bus/bus-message.c