console: Fix console name size mismatch
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 1 Mar 2015 15:11:05 +0000 (10:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Apr 2015 08:10:51 +0000 (10:10 +0200)
commit391f1c610abe2db94c3e5c7ae20528ebf9ed682f
tree972cb70cca828fb609efba31a56107cedbe1e4d3
parent94efa6abf172d13d70c167388f327f4b5cee7e02
console: Fix console name size mismatch

commit 30a22c215a0007603ffc08021f2e8b64018517dd upstream.

commit 6ae9200f2cab7 ("enlarge console.name") increased the storage
for the console name to 16 bytes, but not the corresponding
struct console_cmdline::name storage. Console names longer than
8 bytes cause read beyond end-of-string and failure to match
console; I'm not sure if there are other unexpected consequences.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/printk.c