syzbot


kernel panic: MAC Initialization failed. (3)

Status: fixed on 2019/06/11 09:53
Subsystems: tomoyo
[Documentation on labels]
Reported-by: syzbot+2ee3f8974c2e7dc69feb@syzkaller.appspotmail.com
Fix commit: e80b18599a39 tomoyo: Add a kernel config option for fuzzing testing.
First crash: 2105d, last: 2031d
Cause bisection: introduced by (bisect log) :
commit 89a9684ea158dd7eef1728be9f0aed9a7d41cf19
Author: Kees Cook <keescook@chromium.org>
Date: Tue Feb 12 18:23:18 2019 +0000

  LSM: Ignore "security=" when "lsm=" is specified

Crash: kernel panic: MAC Initialization failed. (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] kconfig: Add kernel config option for fuzz testing. 26 (26) 2020/02/27 22:15
kernel panic: MAC Initialization failed. (3) 1 (3) 2019/03/11 13:45
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel panic: MAC Initialization failed. (2) tomoyo C 2 2106d 2106d 25/28 closed as dup on 2019/02/28 10:11
upstream kernel panic: MAC Initialization failed. kernel C 4 2106d 2106d 0/28 closed as invalid on 2019/02/27 22:37

Sample crash report:
RIP: 0033:0x440fe9
Code: e8 0c ad 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 bb 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc37062bd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000142
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000440fe9
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 00007ffc37062bf0 R08: 0000000000001000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000
ERROR: Out of memory at tomoyo_realpath_from_path.
Kernel panic - not syncing: MAC Initialization failed.
CPU: 0 PID: 7764 Comm: syz-executor980 Not tainted 5.0.0-rc8-next-20190228 #45
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x172/0x1f0 lib/dump_stack.c:113
 panic+0x2cb/0x65c kernel/panic.c:214
 tomoyo_warn_oom.cold+0x35/0x43 security/tomoyo/memory.c:28
 tomoyo_realpath_from_path+0x3a8/0x730 security/tomoyo/realpath.c:320
 tomoyo_realpath_nofollow+0xc8/0xdb security/tomoyo/realpath.c:336
 tomoyo_find_next_domain+0x28c/0x1f8a security/tomoyo/domain.c:725
 tomoyo_bprm_check_security security/tomoyo/tomoyo.c:107 [inline]
 tomoyo_bprm_check_security+0x12a/0x1b0 security/tomoyo/tomoyo.c:97
 security_bprm_check+0x69/0xb0 security/security.c:751
 search_binary_handler+0x77/0x570 fs/exec.c:1644
 exec_binprm fs/exec.c:1698 [inline]
 __do_execve_file.isra.0+0x1394/0x23f0 fs/exec.c:1818
 do_execveat_common fs/exec.c:1865 [inline]
 do_execveat fs/exec.c:1893 [inline]
 __do_sys_execveat fs/exec.c:1969 [inline]
 __se_sys_execveat fs/exec.c:1961 [inline]
 __x64_sys_execveat+0xed/0x130 fs/exec.c:1961
 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440fe9
Code: e8 0c ad 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 bb 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc37062bd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000142
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000440fe9
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 00007ffc37062bf0 R08: 0000000000001000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (799):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/02/28 14:06 linux-next 42fd8df9d1d9 09aeeba4 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/05/04 04:38 upstream a4ccb5f9dc6c d28f4ce5 .config console log report ci-upstream-kasan-gce-root
2019/05/04 00:21 upstream a4ccb5f9dc6c d28f4ce5 .config console log report ci-upstream-kasan-gce-smack-root
2019/05/03 14:53 upstream ea9866793d1e 1bfa09b9 .config console log report ci-upstream-kasan-gce-root
2019/05/03 10:18 upstream ea9866793d1e 1bfa09b9 .config console log report ci-upstream-kasan-gce
2019/05/03 04:27 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce-root
2019/05/03 03:05 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce-smack-root
2019/05/03 01:34 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce-root
2019/05/02 20:21 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce-root
2019/05/02 17:01 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-selinux-root
2019/05/02 14:38 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-root
2019/05/02 11:24 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-selinux-root
2019/05/02 05:59 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-root
2019/05/02 05:58 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-selinux-root
2019/05/01 23:20 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce
2019/05/01 20:33 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce
2019/05/01 15:06 upstream f2bc9c908dfe 618456b4 .config console log report ci-upstream-kasan-gce
2019/05/01 10:40 upstream f2bc9c908dfe 618456b4 .config console log report ci-upstream-kasan-gce-selinux-root
2019/05/01 08:06 upstream bf3bd966dfd7 618456b4 .config console log report ci-upstream-kasan-gce-selinux-root
2019/05/01 04:19 upstream bf3bd966dfd7 618456b4 .config console log report ci-upstream-kasan-gce-selinux-root
2019/04/30 19:26 upstream 83a50840e72a 618456b4 .config console log report ci-upstream-kasan-gce-root
2019/04/30 16:07 upstream 83a50840e72a 20f16bef .config console log report ci-upstream-kasan-gce-root
2019/04/30 10:22 upstream 83a50840e72a 20f16bef .config console log report ci-upstream-kasan-gce-root
2019/04/30 08:53 upstream 83a50840e72a 20f16bef .config console log report ci-upstream-kasan-gce-root
2019/05/14 00:10 upstream a13f0655503a 7c305b44 .config console log report ci-upstream-kasan-gce-386
2019/05/12 19:00 upstream 47782361aca2 5f302c04 .config console log report ci-upstream-kasan-gce-386
2019/05/12 01:33 upstream 8148c17b179d 0637a7f0 .config console log report ci-upstream-kasan-gce-386
2019/05/12 00:27 upstream 8148c17b179d 0637a7f0 .config console log report ci-upstream-kasan-gce-386
2019/05/11 14:23 upstream 1fb3b526df3b 46caad94 .config console log report ci-upstream-kasan-gce-386
2019/05/11 07:53 upstream 1fb3b526df3b 46caad94 .config console log report ci-upstream-kasan-gce-386
2019/05/10 23:20 upstream b970afcfcabd cfeec859 .config console log report ci-upstream-kasan-gce-386
2019/05/10 20:01 upstream b970afcfcabd cfeec859 .config console log report ci-upstream-kasan-gce-386
2019/05/10 12:33 upstream 601e6bcc4ef0 018207ef .config console log report ci-upstream-kasan-gce-386
2019/05/10 08:52 upstream 601e6bcc4ef0 018207ef .config console log report ci-upstream-kasan-gce-386
2019/05/09 23:28 upstream a2d635decbfa 6fc130d3 .config console log report ci-upstream-kasan-gce-386
2019/05/09 03:41 upstream 80f232121b69 1ab4c999 .config console log report ci-upstream-kasan-gce-386
2019/05/09 01:09 upstream 80f232121b69 1ab4c999 .config console log report ci-upstream-kasan-gce-386
2019/05/08 02:56 upstream 8ff468c29e9a a7383bfa .config console log report ci-upstream-kasan-gce-386
2019/05/04 07:54 upstream a4ccb5f9dc6c d28f4ce5 .config console log report ci-upstream-kasan-gce-386
2019/05/03 00:57 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce-386
2019/05/02 21:39 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce-386
2019/05/02 10:12 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-386
2019/05/02 09:07 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-386
2019/05/01 06:05 upstream bf3bd966dfd7 618456b4 .config console log report ci-upstream-kasan-gce-386
2019/04/30 22:25 upstream bf3bd966dfd7 618456b4 .config console log report ci-upstream-kasan-gce-386
2019/04/30 14:45 upstream 83a50840e72a 20f16bef .config console log report ci-upstream-kasan-gce-386
2019/05/04 05:21 linux-next 76a893bbbf75 d28f4ce5 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/03 15:55 linux-next 76a893bbbf75 1bfa09b9 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/03 12:09 linux-next 76a893bbbf75 1bfa09b9 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/03 07:47 linux-next e8b243ea3b19 1bfa09b9 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/02 07:27 linux-next bf2c8035bd8b 7516d9fa .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 18:41 linux-next bf2c8035bd8b 7516d9fa .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 16:31 linux-next bf2c8035bd8b 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 12:11 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/28 12:54 linux-next 42fd8df9d1d9 09aeeba4 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.