Re: [PATCH] fs, omfs: add NULL terminator in the end up the token list

2015-03-12 Thread Bob Copeland
On Thu, Mar 12, 2015 at 04:11:09PM -0400, Sasha Levin wrote: > match_token() expects a NULL terminator at the end of the token list so that > it would know where to stop. Not having one causes it to overrun to invalid > memory. > > In practice, passing a mount option that omfs didn't recognize wou

[PATCH] fs, omfs: add NULL terminator in the end up the token list

2015-03-12 Thread Sasha Levin
match_token() expects a NULL terminator at the end of the token list so that it would know where to stop. Not having one causes it to overrun to invalid memory. In practice, passing a mount option that omfs didn't recognize would sometimes panic the system. Signed-off-by: Sasha Levin --- fs/omf