RE: UBSAN whinge in ihci-hub.c

2016-05-23 Thread David Laight
From: Andrey Ryabinin > Sent: 18 May 2016 13:21 ... > >> $ 6.5.6.8 > >>"If both the pointer operand and the result point to elements of > >> the same array object, > >> or one past the last element of the array object, the evaluation > >> shall not produce an overflow; > >>

RE: UBSAN whinge in ihci-hub.c

2016-05-23 Thread David Laight
From: Andrey Ryabinin > Sent: 18 May 2016 13:21 ... > >> $ 6.5.6.8 > >>"If both the pointer operand and the result point to elements of > >> the same array object, > >> or one past the last element of the array object, the evaluation > >> shall not produce an overflow; > >>

Re: UBSAN whinge in ihci-hub.c

2016-05-19 Thread Alan Stern
On Thu, 19 May 2016, Andrey Ryabinin wrote: > 2016-05-18 22:28 GMT+03:00 Alan Stern : > > On Wed, 18 May 2016, Andrey Ryabinin wrote: > > > >> 2016-05-18 19:09 GMT+03:00 Alan Stern : > >> > On Wed, 18 May 2016, Andrey Ryabinin wrote: > >> > >

Re: UBSAN whinge in ihci-hub.c

2016-05-19 Thread Alan Stern
On Thu, 19 May 2016, Andrey Ryabinin wrote: > 2016-05-18 22:28 GMT+03:00 Alan Stern : > > On Wed, 18 May 2016, Andrey Ryabinin wrote: > > > >> 2016-05-18 19:09 GMT+03:00 Alan Stern : > >> > On Wed, 18 May 2016, Andrey Ryabinin wrote: > >> > > >> >> 2016-05-18 17:40 GMT+03:00 Alan Stern : > >> >>

Re: UBSAN whinge in ihci-hub.c

2016-05-19 Thread Andrey Ryabinin
2016-05-18 22:28 GMT+03:00 Alan Stern : > On Wed, 18 May 2016, Andrey Ryabinin wrote: > >> 2016-05-18 19:09 GMT+03:00 Alan Stern : >> > On Wed, 18 May 2016, Andrey Ryabinin wrote: >> > >> >> 2016-05-18 17:40 GMT+03:00 Alan Stern

Re: UBSAN whinge in ihci-hub.c

2016-05-19 Thread Andrey Ryabinin
2016-05-18 22:28 GMT+03:00 Alan Stern : > On Wed, 18 May 2016, Andrey Ryabinin wrote: > >> 2016-05-18 19:09 GMT+03:00 Alan Stern : >> > On Wed, 18 May 2016, Andrey Ryabinin wrote: >> > >> >> 2016-05-18 17:40 GMT+03:00 Alan Stern : >> >> >> >> > All right, I'm getting very tired of all these bug

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Alan Stern
On Wed, 18 May 2016, Andrey Ryabinin wrote: > 2016-05-18 19:09 GMT+03:00 Alan Stern : > > On Wed, 18 May 2016, Andrey Ryabinin wrote: > > > >> 2016-05-18 17:40 GMT+03:00 Alan Stern : > >> > >> > All right, I'm getting very tired of all these

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Alan Stern
On Wed, 18 May 2016, Andrey Ryabinin wrote: > 2016-05-18 19:09 GMT+03:00 Alan Stern : > > On Wed, 18 May 2016, Andrey Ryabinin wrote: > > > >> 2016-05-18 17:40 GMT+03:00 Alan Stern : > >> > >> > All right, I'm getting very tired of all these bug reports. Besides, > >> > Andrey has a point:

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Andrey Ryabinin
2016-05-18 19:09 GMT+03:00 Alan Stern : > On Wed, 18 May 2016, Andrey Ryabinin wrote: > >> 2016-05-18 17:40 GMT+03:00 Alan Stern : >> >> > All right, I'm getting very tired of all these bug reports. Besides, >> > Andrey has a point: Unless

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Andrey Ryabinin
2016-05-18 19:09 GMT+03:00 Alan Stern : > On Wed, 18 May 2016, Andrey Ryabinin wrote: > >> 2016-05-18 17:40 GMT+03:00 Alan Stern : >> >> > All right, I'm getting very tired of all these bug reports. Besides, >> > Andrey has a point: Unless you're Linus, arguing against the C standard >> > is

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Alan Stern
On Wed, 18 May 2016, Andrey Ryabinin wrote: > 2016-05-18 17:40 GMT+03:00 Alan Stern : > > > All right, I'm getting very tired of all these bug reports. Besides, > > Andrey has a point: Unless you're Linus, arguing against the C standard > > is futile. (Even though

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Alan Stern
On Wed, 18 May 2016, Andrey Ryabinin wrote: > 2016-05-18 17:40 GMT+03:00 Alan Stern : > > > All right, I'm getting very tired of all these bug reports. Besides, > > Andrey has a point: Unless you're Linus, arguing against the C standard > > is futile. (Even though the language dialect used in

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Andrey Ryabinin
2016-05-18 17:40 GMT+03:00 Alan Stern : > All right, I'm getting very tired of all these bug reports. Besides, > Andrey has a point: Unless you're Linus, arguing against the C standard > is futile. (Even though the language dialect used in the kernel is not > standard

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Andrey Ryabinin
2016-05-18 17:40 GMT+03:00 Alan Stern : > All right, I'm getting very tired of all these bug reports. Besides, > Andrey has a point: Unless you're Linus, arguing against the C standard > is futile. (Even though the language dialect used in the kernel is not > standard C.) > > Does this patch

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Alan Stern
On Wed, 18 May 2016, Andrey Ryabinin wrote: > 2016-05-18 13:19 GMT+03:00 Oliver Neukum : > > On Wed, 2016-05-18 at 12:16 +0300, Andrey Ryabinin wrote: > >> 2016-05-18 11:18 GMT+03:00 Oliver Neukum : > >> > On Wed, 2016-05-18 at 10:40 +0300, Andrey Ryabinin

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Alan Stern
On Wed, 18 May 2016, Andrey Ryabinin wrote: > 2016-05-18 13:19 GMT+03:00 Oliver Neukum : > > On Wed, 2016-05-18 at 12:16 +0300, Andrey Ryabinin wrote: > >> 2016-05-18 11:18 GMT+03:00 Oliver Neukum : > >> > On Wed, 2016-05-18 at 10:40 +0300, Andrey Ryabinin wrote: > >> >> 2016-05-18 1:16 GMT+03:00

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Andrey Ryabinin
2016-05-18 13:19 GMT+03:00 Oliver Neukum : > On Wed, 2016-05-18 at 12:16 +0300, Andrey Ryabinin wrote: >> 2016-05-18 11:18 GMT+03:00 Oliver Neukum : >> > On Wed, 2016-05-18 at 10:40 +0300, Andrey Ryabinin wrote: >> >> 2016-05-18 1:16 GMT+03:00 Greg Kroah-Hartman

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Andrey Ryabinin
2016-05-18 13:19 GMT+03:00 Oliver Neukum : > On Wed, 2016-05-18 at 12:16 +0300, Andrey Ryabinin wrote: >> 2016-05-18 11:18 GMT+03:00 Oliver Neukum : >> > On Wed, 2016-05-18 at 10:40 +0300, Andrey Ryabinin wrote: >> >> 2016-05-18 1:16 GMT+03:00 Greg Kroah-Hartman : >> >> > On Tue, May 17, 2016 at

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Oliver Neukum
On Wed, 2016-05-18 at 12:16 +0300, Andrey Ryabinin wrote: > 2016-05-18 11:18 GMT+03:00 Oliver Neukum : > > On Wed, 2016-05-18 at 10:40 +0300, Andrey Ryabinin wrote: > >> 2016-05-18 1:16 GMT+03:00 Greg Kroah-Hartman : > >> > On Tue, May 17, 2016 at

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Oliver Neukum
On Wed, 2016-05-18 at 12:16 +0300, Andrey Ryabinin wrote: > 2016-05-18 11:18 GMT+03:00 Oliver Neukum : > > On Wed, 2016-05-18 at 10:40 +0300, Andrey Ryabinin wrote: > >> 2016-05-18 1:16 GMT+03:00 Greg Kroah-Hartman : > >> > On Tue, May 17, 2016 at 05:52:40PM -0400, Valdis Kletnieks wrote: > >> >>

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Andrey Ryabinin
2016-05-18 11:18 GMT+03:00 Oliver Neukum : > On Wed, 2016-05-18 at 10:40 +0300, Andrey Ryabinin wrote: >> 2016-05-18 1:16 GMT+03:00 Greg Kroah-Hartman : >> > On Tue, May 17, 2016 at 05:52:40PM -0400, Valdis Kletnieks wrote: >> >> So, not content in the

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Andrey Ryabinin
2016-05-18 11:18 GMT+03:00 Oliver Neukum : > On Wed, 2016-05-18 at 10:40 +0300, Andrey Ryabinin wrote: >> 2016-05-18 1:16 GMT+03:00 Greg Kroah-Hartman : >> > On Tue, May 17, 2016 at 05:52:40PM -0400, Valdis Kletnieks wrote: >> >> So, not content in the amount of breakage I generate already, I >>

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Oliver Neukum
On Wed, 2016-05-18 at 10:40 +0300, Andrey Ryabinin wrote: > 2016-05-18 1:16 GMT+03:00 Greg Kroah-Hartman : > > On Tue, May 17, 2016 at 05:52:40PM -0400, Valdis Kletnieks wrote: > >> So, not content in the amount of breakage I generate already, I > >> compiled with UBSAN

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Oliver Neukum
On Wed, 2016-05-18 at 10:40 +0300, Andrey Ryabinin wrote: > 2016-05-18 1:16 GMT+03:00 Greg Kroah-Hartman : > > On Tue, May 17, 2016 at 05:52:40PM -0400, Valdis Kletnieks wrote: > >> So, not content in the amount of breakage I generate already, I > >> compiled with UBSAN enabled... > >> > >> The

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Andrey Ryabinin
2016-05-18 1:16 GMT+03:00 Greg Kroah-Hartman : > On Tue, May 17, 2016 at 05:52:40PM -0400, Valdis Kletnieks wrote: >> So, not content in the amount of breakage I generate already, I >> compiled with UBSAN enabled... >> >> The immediately relevant part: >> >> [

Re: UBSAN whinge in ihci-hub.c

2016-05-18 Thread Andrey Ryabinin
2016-05-18 1:16 GMT+03:00 Greg Kroah-Hartman : > On Tue, May 17, 2016 at 05:52:40PM -0400, Valdis Kletnieks wrote: >> So, not content in the amount of breakage I generate already, I >> compiled with UBSAN enabled... >> >> The immediately relevant part: >> >> [2.418576] >>

Re: UBSAN whinge in ihci-hub.c

2016-05-17 Thread Greg Kroah-Hartman
On Tue, May 17, 2016 at 05:52:40PM -0400, Valdis Kletnieks wrote: > So, not content in the amount of breakage I generate already, I > compiled with UBSAN enabled... > > The immediately relevant part: > > [2.418576] >

Re: UBSAN whinge in ihci-hub.c

2016-05-17 Thread Greg Kroah-Hartman
On Tue, May 17, 2016 at 05:52:40PM -0400, Valdis Kletnieks wrote: > So, not content in the amount of breakage I generate already, I > compiled with UBSAN enabled... > > The immediately relevant part: > > [2.418576] >

UBSAN whinge in ihci-hub.c

2016-05-17 Thread Valdis Kletnieks
So, not content in the amount of breakage I generate already, I compiled with UBSAN enabled... The immediately relevant part: [2.418576] [2.418579] UBSAN: Undefined behaviour in

UBSAN whinge in ihci-hub.c

2016-05-17 Thread Valdis Kletnieks
So, not content in the amount of breakage I generate already, I compiled with UBSAN enabled... The immediately relevant part: [2.418576] [2.418579] UBSAN: Undefined behaviour in