lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 29 Mar 2017 18:25:03 +0900 From: Sergey Senozhatsky <sergey.senozhatsky@...il.com> To: Steven Rostedt <rostedt@...dmis.org>, Petr Mladek <pmladek@...e.com> Cc: Jan Kara <jack@...e.cz>, Andrew Morton <akpm@...ux-foundation.org>, Linus Torvalds <torvalds@...ux-foundation.org>, Peter Zijlstra <peterz@...radead.org>, "Rafael J . Wysocki" <rjw@...ysocki.net>, Eric Biederman <ebiederm@...ssion.com>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>, Jiri Slaby <jslaby@...e.com>, Pavel Machek <pavel@....cz>, Len Brown <len.brown@...el.com>, linux-kernel@...r.kernel.org, Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>, Sergey Senozhatsky <sergey.senozhatsky@...il.com> Subject: [RFC][PATCHv2 0/8] printk: introduce printing kernel thread Hello RFC This patch set adds a printk() kernel thread which lets us to print kernel messages to the console from a non-atomic/schedule-able context, avoiding different sort of lockups, stalls, etc. The biggest difference compared to v1 is a further expansion of "switch to old printk() mode", which we now call printk_emergency mode, annotations (pm, kexec, sysrq). We also have a bunch of other ideas to try out/consider (not in this patch set). E.g. automatic printk_emergency switch on printk_kthread stalls (when we can't run printk_kthread), moving klogd irq_work out of per-CPU memory, and so on. v1->v2: -- introduce printk_emergency mode and API to switch it on/off -- move printk_pending out of per-CPU memory -- add printk emergency_mode sysfs node -- switch sysrq handlers (some of them) to printk_emergency -- cleanus/etc. Sergey Senozhatsky (8): printk: move printk_pending out of per-cpu printk: introduce printing kernel thread printk: offload printing from wake_up_klogd_work_func() pm: switch to printk.emergency mode in unsafe places sysrq: switch to printk.emergency mode in unsafe places kexec: switch to printk.emergency mode in unsafe places printk: add printk emergency_mode parameter printk: enable printk offloading drivers/tty/sysrq.c | 7 ++ include/linux/console.h | 3 + kernel/kexec_core.c | 4 ++ kernel/power/hibernate.c | 8 +++ kernel/power/suspend.c | 4 ++ kernel/printk/printk.c | 178 +++++++++++++++++++++++++++++++++++++++++------ 6 files changed, 182 insertions(+), 22 deletions(-) -- 2.12.2
Powered by blists - more mailing lists