]> git.baikalelectronics.ru Git - kernel.git/commit
ext3: Fix format string issues
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 9 Mar 2013 14:28:44 +0000 (15:28 +0100)
committerJan Kara <jack@suse.cz>
Mon, 11 Mar 2013 21:05:56 +0000 (22:05 +0100)
commit04a11e57b1474d856767f1faef8e9d5e719833d6
tree033e8160101d5811cdcbd93981be28449c1cb783
parent7b843152572352af73479a55458ca2a0f3f18f32
ext3: Fix format string issues

ext3_msg() takes the printk prefix as the second parameter and the
format string as the third parameter. Two callers of ext3_msg omit the
prefix and pass the format string as the second parameter and the first
parameter to the format string as the third parameter. In both cases
this string comes from an arbitrary source. Which means the string may
contain format string characters, which will
lead to undefined and potentially harmful behavior.

The issue was introduced in commit 57188bbb12("ext3: Unify log messages
in ext3") and is fixed by this patch.

CC: stable@vger.kernel.org
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext3/super.c