X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fstring.c;h=ebbb99c775bdab12e6036a85bed06d7521cf94b4;hb=6f71a925761e7843965a704eb6682ea337abb4a5;hp=1c1fc9187b054ccae0d55f6678a23971de109718;hpb=900a88ef348803cd2ad2aeb13ffe06e807c6ce65;p=mirror_ubuntu-artful-kernel.git diff --git a/lib/string.c b/lib/string.c index 1c1fc9187b05..ebbb99c775bd 100644 --- a/lib/string.c +++ b/lib/string.c @@ -978,3 +978,10 @@ char *strreplace(char *s, char old, char new) return s; } EXPORT_SYMBOL(strreplace); + +void fortify_panic(const char *name) +{ + pr_emerg("detected buffer overflow in %s\n", name); + BUG(); +} +EXPORT_SYMBOL(fortify_panic);