bisecting cause commit starting from 42fd8df9d1d9c83046226e771a4f5f3d05a706ff building syzkaller on 09aeeba49f9105ef18e4e1bd136492a57b7e7b6b testing commit 42fd8df9d1d9c83046226e771a4f5f3d05a706ff with gcc (GCC) 8.1.0 all runs: crashed: kernel panic: MAC Initialization failed. testing release v4.20 testing commit 8fe28cb58bcb235034b64cbbb7550a8a43fd88be with gcc (GCC) 8.1.0 all runs: OK # git bisect start 42fd8df9d1d9c83046226e771a4f5f3d05a706ff v4.20 Bisecting: 12673 revisions left to test after this (roughly 14 steps) [58156ba4468f1d0de166a4330374bc9df9b74efc] kbuild: skip 'addtree' and 'flags' magic for external module build testing commit 58156ba4468f1d0de166a4330374bc9df9b74efc with gcc (GCC) 8.1.0 all runs: OK # git bisect good 58156ba4468f1d0de166a4330374bc9df9b74efc Bisecting: 5670 revisions left to test after this (roughly 13 steps) [7c3eb312dbd9653e6a932eec87ae55d0a0cc43b6] Merge remote-tracking branch 'net-next/master' testing commit 7c3eb312dbd9653e6a932eec87ae55d0a0cc43b6 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 7c3eb312dbd9653e6a932eec87ae55d0a0cc43b6 Bisecting: 2895 revisions left to test after this (roughly 12 steps) [f7ae930a8cb9ca6429ac096c7fdac52560732524] Merge remote-tracking branch 'spi/for-next' testing commit f7ae930a8cb9ca6429ac096c7fdac52560732524 with gcc (GCC) 8.1.0 all runs: crashed: kernel panic: MAC Initialization failed. # git bisect bad f7ae930a8cb9ca6429ac096c7fdac52560732524 Bisecting: 1320 revisions left to test after this (roughly 11 steps) [45821a15aebf0d27a37dfa9e8fc0ed4e6bfa9307] Merge remote-tracking branch 'drm/drm-next' testing commit 45821a15aebf0d27a37dfa9e8fc0ed4e6bfa9307 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 45821a15aebf0d27a37dfa9e8fc0ed4e6bfa9307 Bisecting: 624 revisions left to test after this (roughly 9 steps) [426b32e87c5a217cd45914044eb60d42b95ddc84] Merge remote-tracking branch 'block/for-next' testing commit 426b32e87c5a217cd45914044eb60d42b95ddc84 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 426b32e87c5a217cd45914044eb60d42b95ddc84 Bisecting: 342 revisions left to test after this (roughly 8 steps) [f371fe739274f9a9fdebf668fe4fcaff74baa262] Merge remote-tracking branch 'regulator/for-next' testing commit f371fe739274f9a9fdebf668fe4fcaff74baa262 with gcc (GCC) 8.1.0 all runs: OK # git bisect good f371fe739274f9a9fdebf668fe4fcaff74baa262 Bisecting: 183 revisions left to test after this (roughly 8 steps) [beefe332c2ddbb87c04a32b689f53118ed9053a7] Merge remote-tracking branch 'watchdog/master' testing commit beefe332c2ddbb87c04a32b689f53118ed9053a7 with gcc (GCC) 8.1.0 all runs: crashed: kernel panic: MAC Initialization failed. # git bisect bad beefe332c2ddbb87c04a32b689f53118ed9053a7 Bisecting: 79 revisions left to test after this (roughly 6 steps) [19199883732d469fb092f25f6d3ddfe89926c19d] Merge branch 'next-general' into next-testing testing commit 19199883732d469fb092f25f6d3ddfe89926c19d with gcc (GCC) 8.1.0 all runs: OK # git bisect good 19199883732d469fb092f25f6d3ddfe89926c19d Bisecting: 39 revisions left to test after this (roughly 5 steps) [cfb1f7ee3b35e6ba9e9e2de53a8668ced6397f88] KEYS: trusted: fix -Wvarags warning testing commit cfb1f7ee3b35e6ba9e9e2de53a8668ced6397f88 with gcc (GCC) 8.1.0 all runs: OK # git bisect good cfb1f7ee3b35e6ba9e9e2de53a8668ced6397f88 Bisecting: 21 revisions left to test after this (roughly 4 steps) [876c6a9568ff702391603a767c565d52ac66dddb] Merge remote-tracking branch 'security/next-testing' testing commit 876c6a9568ff702391603a767c565d52ac66dddb with gcc (GCC) 8.1.0 all runs: crashed: kernel panic: MAC Initialization failed. # git bisect bad 876c6a9568ff702391603a767c565d52ac66dddb Bisecting: 7 revisions left to test after this (roughly 3 steps) [db9ed620ddea720d0d2d0ba1ae3c9b4e06110cc9] Merge branch 'next-integrity' into next-testing testing commit db9ed620ddea720d0d2d0ba1ae3c9b4e06110cc9 with gcc (GCC) 8.1.0 all runs: OK # git bisect good db9ed620ddea720d0d2d0ba1ae3c9b4e06110cc9 Bisecting: 3 revisions left to test after this (roughly 2 steps) [89a9684ea158dd7eef1728be9f0aed9a7d41cf19] LSM: Ignore "security=" when "lsm=" is specified testing commit 89a9684ea158dd7eef1728be9f0aed9a7d41cf19 with gcc (GCC) 8.1.0 all runs: crashed: kernel panic: MAC Initialization failed. # git bisect bad 89a9684ea158dd7eef1728be9f0aed9a7d41cf19 Bisecting: 1 revision left to test after this (roughly 1 step) [09186e503486da4a17f16f2f7c679e6e3e2a32f4] security: mark expected switch fall-throughs and add a missing break testing commit 09186e503486da4a17f16f2f7c679e6e3e2a32f4 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 09186e503486da4a17f16f2f7c679e6e3e2a32f4 Bisecting: 0 revisions left to test after this (roughly 0 steps) [e88ed488af0a70cbc925d2cce60788378bbe26e3] LSM: Update function documentation for cap_capable testing commit e88ed488af0a70cbc925d2cce60788378bbe26e3 with gcc (GCC) 8.1.0 all runs: OK # git bisect good e88ed488af0a70cbc925d2cce60788378bbe26e3 89a9684ea158dd7eef1728be9f0aed9a7d41cf19 is the first bad commit commit 89a9684ea158dd7eef1728be9f0aed9a7d41cf19 Author: Kees Cook Date: Tue Feb 12 10:23:18 2019 -0800 LSM: Ignore "security=" when "lsm=" is specified To avoid potential confusion, explicitly ignore "security=" when "lsm=" is used on the command line, and report that it is happening. Suggested-by: Tetsuo Handa Signed-off-by: Kees Cook Acked-by: Casey Schaufler Acked-by: John Johansen Signed-off-by: James Morris :040000 040000 5225bd785b3db40f48278fa367d0aba53bd055fa 6e3d5834794f5192c04578a2e1e9c871ecb89fb2 M Documentation :040000 040000 56e37aa05ec5f56cdecac96d966540bd8b6a74d1 22dee42a66e66ce9cb0fd29b712d188047538603 M security revisions tested: 16, total time: 3h35m22.516135122s (build: 1h31m24.023068163s, test: 1h59m47.304329642s) first bad commit: 89a9684ea158dd7eef1728be9f0aed9a7d41cf19 LSM: Ignore "security=" when "lsm=" is specified cc: ["casey@schaufler-ca.com" "james.morris@microsoft.com" "john.johansen@canonical.com" "keescook@chromium.org"] crash: kernel panic: MAC Initialization failed. R13: 00000000004a557b R14: 00000000006e1a58 R15: 0000000000000004 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 ERROR: Out of memory at tomoyo_realpath_from_path. kobject: 'loop3' (00000000b6abcc7c): fill_kobj_path: path = '/devices/virtual/block/loop3' Kernel panic - not syncing: MAC Initialization failed. CPU: 1 PID: 7173 Comm: syz-executor.0 Not tainted 5.0.0-rc3+ #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x16e/0x1f6 lib/dump_stack.c:113 panic+0x2ad/0x632 kernel/panic.c:214 tomoyo_warn_oom.cold.1+0x35/0x3f security/tomoyo/memory.c:28 tomoyo_realpath_from_path+0x489/0x730 security/tomoyo/realpath.c:320 tomoyo_realpath_nofollow+0xc8/0xdb security/tomoyo/realpath.c:336 tomoyo_find_next_domain+0x296/0x1fbb security/tomoyo/domain.c:725 tomoyo_bprm_check_security+0x122/0x190 security/tomoyo/tomoyo.c:107 security_bprm_check+0x4c/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.34+0x15bc/0x2480 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:1974 [inline] __se_sys_execveat fs/exec.c:1966 [inline] __x64_sys_execveat+0xed/0x130 fs/exec.c:1966 do_syscall_64+0x103/0x600 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457629 Code: 8d b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 5b b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f35aa48fc88 EFLAGS: 00000246 ORIG_RAX: 0000000000000142 RAX: ffffffffffffffda RBX: 000000000071bf00 RCX: 0000000000457629 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00007f35aa48fca0 R08: 0000000000001000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f35aa4906d4 R13: 00000000004a557b R14: 00000000006e1a58 R15: 0000000000000004 Kernel Offset: disabled Rebooting in 86400 seconds..