All of lore.kernel.org
 help / color / mirror / Atom feed
From: Casey Schaufler <casey@schaufler-ca.com>
To: lkp@lists.01.org
Subject: Re: [LSM] Kernel panic - not syncing: No working init found.
Date: Mon, 17 Nov 2014 08:28:24 -0800	[thread overview]
Message-ID: <546A2228.1080509@schaufler-ca.com> (raw)
In-Reply-To: <20141117060836.GB3938@yliu-dev.sh.intel.com>

[-- Attachment #1: Type: text/plain, Size: 3206 bytes --]

On 11/16/2014 10:08 PM, Yuanhan Liu wrote:
> FYI, we noticed the below changes on(TBH, I don't know the bisect is
> correct or not; sorry for the noise if not)

The patch below fixes this problem.

>
> git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git lsm/stacking
> commit 58c4f9e3be81a85839ea229b1dd36bf55232d440 ("LSM: Refactor existing LSM stacking")
>
>
> +------------------------------------------------+------------+------------+
> |                                                | c9979f3c6e | 58c4f9e3be |
> +------------------------------------------------+------------+------------+
> | boot_successes                                 | 15         | 0          |
> | early-boot-hang                                | 1          |            |
> | boot_failures                                  | 0          | 15         |
> | Kernel_panic-not_syncing:No_working_init_found | 0          | 15         |
> | backtrace:panic                                | 0          | 15         |
> +------------------------------------------------+------------+------------+
>
>
> [    3.437279] Starting init: /sbin/init exists but couldn't execute it (error -12)
> [    3.438655] Starting init: /etc/init exists but couldn't execute it (error -13)
> [    3.440136] Starting init: /bin/sh exists but couldn't execute it (error -12)
> [    3.441487] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
> [    3.443352] CPU: 0 PID: 1 Comm: swapper Not tainted 3.18.0-rc4-g49aba53 #1949
> [    3.443352]  00000000 f783d540 80017f88 8138c3bd 80017fa0 8138b30b 815e1f40 f783d540
> [    3.443352]  815e1f40 00000000 80017fac 81389523 8152ab4d 80016000 813918e0 81389474
> [    3.443352]  00000000 00000000 00000000 00000000 00000000 00000000 0000007b 0000007b
> [    3.443352] Call Trace:
> [    3.443352]  [<8138c3bd>] dump_stack+0x16/0x18
> [    3.443352]  [<8138b30b>] panic+0x86/0x19e
> [    3.443352]  [<81389523>] kernel_init+0xaf/0xb3
> [    3.443352]  [<813918e0>] ret_from_kernel_thread+0x20/0x30
> [    3.443352]  [<81389474>] ? rest_init+0xa2/0xa2
> [    3.443352] Kernel Offset: 0x0 from 0x81000000 (relocation range: 0x80000000-0x947fdfff)
>
> Elapsed time: 10
>
>
>
> 	--yliu
>
>
> _______________________________________________
> LKP mailing list
> LKP(a)linux.intel.com

 include/linux/security.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/security.h b/include/linux/security.h
index 5a6c839..5cd3e93 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -27,6 +27,7 @@
 #include <linux/slab.h>
 #include <linux/err.h>
 #include <linux/string.h>
+#include <linux/mm.h>
 
 struct linux_binprm;
 struct cred;
@@ -1995,7 +1996,7 @@ static inline int security_settime(const struct timespec *ts,
 
 static inline int security_vm_enough_memory_mm(struct mm_struct *mm, long pages)
 {
-	return cap_vm_enough_memory(mm, pages);
+	return __vm_enough_memory(mm, pages, cap_vm_enough_memory(mm, pages));
 }
 
 static inline int security_bprm_set_creds(struct linux_binprm *bprm)


[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 3805 bytes --]

  reply	other threads:[~2014-11-17 16:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-17  6:08 [LSM] Kernel panic - not syncing: No working init found Yuanhan Liu
2014-11-17  6:08 ` [LKP] " Yuanhan Liu
2014-11-17 16:28 ` Casey Schaufler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-11-05 11:16 Fengguang Wu
2014-11-05 18:15 ` Kees Cook
2014-11-12  0:10   ` Casey Schaufler
2014-11-03  7:00 Fengguang Wu
2014-11-03  7:00 ` Fengguang Wu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=546A2228.1080509@schaufler-ca.com \
    --to=casey@schaufler-ca.com \
    --cc=lkp@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.