Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1687377 > unrolled thread

[PATCH 0/2] Avoid crashes by early (boot) consoles using init memory

Started byPetr Mladek <pmladek@suse.com>
First post2017-07-14 15:00 +0200
Last post2017-07-14 15:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/2] Avoid crashes by early (boot) consoles using init memory Petr Mladek <pmladek@suse.com> - 2017-07-14 15:00 +0200

#1687377 — [PATCH 0/2] Avoid crashes by early (boot) consoles using init memory

FromPetr Mladek <pmladek@suse.com>
Date2017-07-14 15:00 +0200
Subject[PATCH 0/2] Avoid crashes by early (boot) consoles using init memory
Message-ID<u38mm-3Ag-9@gated-at.bofh.it>
Some early consoles have code and data in the init section. It makes some
sense but this might cause problems when they are not replaced by
the real console in time. The two patches fix the safequard and
help to avoid the problems.

I though about removing keep_bootcon option completely. But it is useful
at least for now. There is not an easy way to disable a particular bootconsole
when the related real console is installed. Instead all bootconsoles are
removed when the preferred (last on the commandline) console is registered.
But this is a bit cumbersome and non-intuitive.

In addition, the same problems might happen when the real console is
registered using a deferred probe or when it is not registered at all
for some reason.

The patchset is based on and inspired by the original patch from
Matt Redfearn, see the discussion starting by the mail
https://lkml.kernel.org/r/1499337481-19397-1-git-send-email-matt.redfearn@imgtec.com

Matt Redfearn (1):
  printk/console: Always disable boot consoles that use init memory
    before it is freed

Petr Mladek (1):
  printk/console: Enhance the check for consoles using init memory

 kernel/printk/printk.c | 28 +++++++++++++++++-----------
 1 file changed, 17 insertions(+), 11 deletions(-)

-- 
1.8.5.6

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web