The patch titled printk: don't read beyond string arguments' terminating zero has been removed from the -mm tree. Its filename was printk-dont-read-beyond-string-arguments-terminating-zero.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: printk: don't read beyond string arguments' terminating zero From: Markus Armbruster <armbru@xxxxxxxxxx> Fix update_console_cmdline() not to to read beyond the terminating zero of its name argument. Signed-off-by: Markus Armbruster <armbru@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/printk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN kernel/printk.c~printk-dont-read-beyond-string-arguments-terminating-zero kernel/printk.c --- a/kernel/printk.c~printk-dont-read-beyond-string-arguments-terminating-zero +++ a/kernel/printk.c @@ -921,7 +921,7 @@ int update_console_cmdline(char *name, i if (strcmp(console_cmdline[i].name, name) == 0 && console_cmdline[i].index == idx) { c = &console_cmdline[i]; - memcpy(c->name, name_new, sizeof(c->name)); + strlcpy(c->name, name_new, sizeof(c->name)); c->name[sizeof(c->name) - 1] = 0; c->options = options; c->index = idx_new; _ Patches currently in -mm which might be from armbru@xxxxxxxxxx are origin.patch git-v9fs.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html