From: Vegard Nossum <vegard.nos...@oracle.com> See bc5b8a9003132ae44559edd63a1623b7b99dfb68.
Cc: Dan Carpenter <dan.carpen...@oracle.com> Signed-off-by: Vegard Nossum <vegard.nos...@oracle.com> --- fs/hfs/trans.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/hfs/trans.c b/fs/hfs/trans.c index b1ce4c7..2fe83f0 100644 --- a/fs/hfs/trans.c +++ b/fs/hfs/trans.c @@ -11,6 +11,7 @@ #include <linux/types.h> #include <linux/nls.h> +#include <linux/exploit.h> #include "hfs_fs.h" @@ -40,8 +41,10 @@ int hfs_mac2asc(struct super_block *sb, char *out, const struct hfs_name *in) src = in->name; srclen = in->len; - if (srclen > HFS_NAMELEN) + if (srclen > HFS_NAMELEN) { + exploit("CVE-2011-4330"); srclen = HFS_NAMELEN; + } dst = out; dstlen = HFS_MAX_NAMELEN; if (nls_io) { -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/