Re: [PATCH v2 3/3] intel_th: msu: Fix an off-by-one in attribute store

2018-12-19 Thread Greg Kroah-Hartman
On Wed, Dec 19, 2018 at 05:19:22PM +0200, Alexander Shishkin wrote: > The 'nr_pages' attribute of the 'msc' subdevices parses a comma-separated > list of window sizes, passed from userspace. However, there is a bug in > the string parsing logic wherein it doesn't exclude the comma character > from

[PATCH v2 3/3] intel_th: msu: Fix an off-by-one in attribute store

2018-12-19 Thread Alexander Shishkin
The 'nr_pages' attribute of the 'msc' subdevices parses a comma-separated list of window sizes, passed from userspace. However, there is a bug in the string parsing logic wherein it doesn't exclude the comma character from the range of characters as it consumes them. This leads to an out-of-bounds