Re: [PATCH] PCI/sysfs: off by two and memory corruption in driver_override parameter

2015-01-03 Thread Bjorn Helgaas
On Thu, Jan 1, 2015 at 5:27 PM, Sasha Levin wrote: > There are two different issues fixed here: > > - On nun-NULL terminated input a random byte of memory would get flipped > from '\n' to '\0'. > - When printing the driver_override parameter when it is 4095 and 4094 bytes > long the printing

Re: [PATCH] PCI/sysfs: off by two and memory corruption in driver_override parameter

2015-01-03 Thread Bjorn Helgaas
On Thu, Jan 1, 2015 at 5:27 PM, Sasha Levin sasha.le...@oracle.com wrote: There are two different issues fixed here: - On nun-NULL terminated input a random byte of memory would get flipped from '\n' to '\0'. - When printing the driver_override parameter when it is 4095 and 4094 bytes long

[PATCH] PCI/sysfs: off by two and memory corruption in driver_override parameter

2015-01-01 Thread Sasha Levin
There are two different issues fixed here: - On nun-NULL terminated input a random byte of memory would get flipped from '\n' to '\0'. - When printing the driver_override parameter when it is 4095 and 4094 bytes long the printing code would access invalid memory. Signed-off-by: Sasha Levin

[PATCH] PCI/sysfs: off by two and memory corruption in driver_override parameter

2015-01-01 Thread Sasha Levin
There are two different issues fixed here: - On nun-NULL terminated input a random byte of memory would get flipped from '\n' to '\0'. - When printing the driver_override parameter when it is 4095 and 4094 bytes long the printing code would access invalid memory. Signed-off-by: Sasha Levin