Re: [PATCH] PM: declare __tracedata symbols as char[] rather than char

2016-02-21 Thread Rafael J. Wysocki
On Sunday, January 24, 2016 08:08:52 PM Eric Biggers wrote: > Accessing more than one byte from a symbol declared simply 'char' is undefined > behavior, as reported by UBSAN: > > UBSAN: Undefined behaviour in drivers/base/power/trace.c:178:18 > load of address 8203fc78 with ins

[PATCH] PM: declare __tracedata symbols as char[] rather than char

2016-01-24 Thread Eric Biggers
Accessing more than one byte from a symbol declared simply 'char' is undefined behavior, as reported by UBSAN: UBSAN: Undefined behaviour in drivers/base/power/trace.c:178:18 load of address 8203fc78 with insufficient space for an object of type 'char' Avoid this b