]> 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)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 9 Jun 2015 17:43:50 +0000 (13:43 -0400)
commitce8d4a6371aa570bbe7ecaf618868cc4f6d5b437
tree976cc5f9b205891610a7da1f87287301f9634658
parent08fb8020b96c0dd8d6199b48c783d9ecb51d1956
fs, omfs: add NULL terminator in the end up the token list

[ Upstream commit dcbff39da3d815f08750552fdd04f96b51751129 ]

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
fs/omfs/inode.c