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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140212162653.19dcded1d0249ce48c997db9@skynet.be>
Date:	Wed, 12 Feb 2014 16:26:53 +0800
From:	Fabian Frederick <fabf@...net.be>
To:	Andrew Morton <akpm@...ux-foundation.org>
Cc:	linux-kernel@...r.kernel.org, rdunlap <rdunlap@...radead.org>
Subject: Re: [PATCH 1/1] kernel: panic: display reason at end + pr_emerg

On Tue, 11 Feb 2014 15:34:45 -0800
Andrew Morton <akpm@...ux-foundation.org> wrote:

> On Sat, 8 Feb 2014 15:45:22 +0800 Fabian Frederick <fabf@...net.be> wrote:
> 
> > Currently, booting without initrd specified on 80x25 screen
> > gives a call trace followed by atkbd : Spurious ACK.
> > Original message ("VFS: Unable to mount root fs") is not available.
> > Of course this could happen in other situations...
> > 
> > -This patch displays panic reason after call trace which could help
> > lot of people even if it's not the very last line on screen.
> 
> Fair enough.  Hate it when that happens!
I was sure I was not the only one :)

> 
> > -Converting all panic.c printk(KERN_EMERG to pr_emerg(
> 
> You missed a couple.
Thanks a lot for addition and patch fix.
What a pleasure to see such professionalism !

> 
> --- a/kernel/panic.c~kernel-panicc-display-reason-at-end-pr_emerg-fix
> +++ a/kernel/panic.c
> @@ -275,8 +275,7 @@ unsigned long get_taint(void)
>  void add_taint(unsigned flag, enum lockdep_ok lockdep_ok)
>  {
>  	if (lockdep_ok == LOCKDEP_NOW_UNRELIABLE && __debug_locks_off())
> -		printk(KERN_WARNING
> -		       "Disabling lock debugging due to kernel taint\n");
> +		pr_warn("Disabling lock debugging due to kernel taint\n");
>  
>  	set_bit(flag, &tainted_mask);
>  }
> @@ -381,8 +380,7 @@ late_initcall(init_oops_id);
>  void print_oops_end_marker(void)
>  {
>  	init_oops_id();
> -	printk(KERN_WARNING "---[ end trace %016llx ]---\n",
> -		(unsigned long long)oops_id);
> +	pr_warn("---[ end trace %016llx ]---\n", (unsigned long long)oops_id);
>  }
>  
>  /*
> _
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ