]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
console: Fix console name size mismatch
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 1 Mar 2015 15:11:05 +0000 (10:11 -0500)
committerJiri Slaby <jslaby@suse.cz>
Thu, 9 Apr 2015 11:14:02 +0000 (13:14 +0200)
commit90fe09d0c8adf33924940dfca77ad3ddbbae50c2
tree86217fbc71dc1e5d87f7b44b6faf5cbe0a5f89cd
parentc32bbf2aee45716769a80f4e39d6f829976e1a69
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: Jiri Slaby <jslaby@suse.cz>
kernel/printk/console_cmdline.h
kernel/printk/printk.c