• Petr Mladek's avatar
    printk/nmi: increase the size of NMI buffer and make it configurable · 427934b8
    Petr Mladek authored
    Testing has shown that the backtrace sometimes does not fit into the 4kB
    temporary buffer that is used in NMI context.  The warnings are gone
    when I double the temporary buffer size.
    
    This patch doubles the buffer size and makes it configurable.
    
    Note that this problem existed even in the x86-specific implementation
    that was added by the commit a9edc880
    
     ("x86/nmi: Perform a safe NMI
    stack trace on all CPUs").  Nobody noticed it because it did not print
    any warnings.
    
    Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
    Cc: Jan Kara <jack@suse.cz>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Russell King <rmk+kernel@arm.linux.org.uk>
    Cc: Daniel Thompson <daniel.thompson@linaro.org>
    Cc: Jiri Kosina <jkosina@suse.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ralf Baechle <ralf@linux-mips.org>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
    Cc: David Miller <davem@davemloft.net>
    Cc: Daniel Thompson <daniel.thompson@linaro.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    427934b8