]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs, omfs: add NULL terminator in the end up the token list
authorSasha Levin <sasha.levin@oracle.com>
Thu, 28 May 2015 22:44:29 +0000 (15:44 -0700)
committerJiri Slaby <jslaby@suse.cz>
Wed, 3 Jun 2015 09:33:07 +0000 (11:33 +0200)
commit1f6a5cfb178e69cfd86018bb9a66675f1207f84f
tree707888f54013e95e0488b57be42be3c337548704
parentaf0cc4dcf7516ee72b6333a4172798e504c4ace3
fs, omfs: add NULL terminator in the end up the token list

commit dcbff39da3d815f08750552fdd04f96b51751129 upstream.

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 <sasha.levin@oracle.com>
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/omfs/inode.c