Re: [PATCH] ISDN: eicon: fix array-bounds warning properly

2017-07-31 Thread Arnd Bergmann
On Mon, Jul 31, 2017 at 9:38 PM, wrote: > Hi Arnd, > > I think you are right, but removing this is maybe the wrong fix. > > The issue is, that CAPI messages are packed byte streams and yes the > 64bit extension of CAPI is not very good designed for modern CPU > constrains with alignment, since th

Re: [PATCH] ISDN: eicon: fix array-bounds warning properly

2017-07-31 Thread isdn
Hi Arnd, I think you are right, but removing this is maybe the wrong fix. The issue is, that CAPI messages are packed byte streams and yes the 64bit extension of CAPI is not very good designed for modern CPU constrains with alignment, since the data pointer for the buffer is not on a 64bit bounda

[PATCH] ISDN: eicon: fix array-bounds warning properly

2017-07-31 Thread Arnd Bergmann
I patched a variant of this warning before, but now saw it come back in a different configuration with gcc-7 and UBSAN: drivers/isdn/hardware/eicon/message.c: In function 'mixer_notify_update': drivers/isdn/hardware/eicon/message.c:11162:54: error: array subscript is above array bounds [-Werror=a