[....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 19.840732] random: sshd: uninitialized urandom read (32 bytes read) [ 20.138186] audit: type=1400 audit(1536850235.550:6): avc: denied { map } for pid=1766 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 [ 20.171962] random: sshd: uninitialized urandom read (32 bytes read) [ 20.672600] random: sshd: uninitialized urandom read (32 bytes read) [ 31.267387] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.28' (ECDSA) to the list of known hosts. [ 36.922425] random: sshd: uninitialized urandom read (32 bytes read) [ 37.037350] audit: type=1400 audit(1536850252.450:7): avc: denied { map } for pid=1790 comm="syz-executor611" path="/root/syz-executor611837720" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported Error: argument "bridge0" is wrong: Device does not exist Error: argument "bridge0" is wrong: Device does not exist Cannot find device "veth0_to_bridge" Cannot find device "veth1_to_bridge" RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported Error: argument "bond0" is wrong: Device does not exist Error: argument "bond0" is wrong: Device does not exist Cannot find device "veth0_to_bond" Cannot find device "veth1_to_bond" RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported Error: argument "team0" is wrong: Device does not exist Error: argument "team0" is wrong: Device does not exist Cannot find device "veth0_to_team" Cannot find device "veth1_to_team" Cannot find device "bridge_slave_0" Cannot find device "bridge_slave_1" RTNETLINK answers: Operation not supported Cannot find device "bridge0" Cannot find device "bridge0" Cannot find device "bridge0" Cannot find device "bridge0" Cannot find device "vcan0" Cannot find device "vcan0" Cannot find device "vcan0" Cannot find device "vcan0" Cannot find device "tunl0" Cannot find device "tunl0" Cannot find device "tunl0" Cannot find device "tunl0" Cannot find device "gre0" Cannot find device "gre0" Cannot find device "gre0" Cannot find device "gre0" Cannot find device "gretap0" Cannot find device "gretap0" Cannot find device "gretap0" Cannot find device "gretap0" RTNETLINK answers: Operation not supported RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument Cannot find device "ip6gre0" Cannot find device "ip6gre0" Cannot find device "ip6gre0" Cannot find device "ip6gre0" Cannot find device "ip6gretap0" Cannot find device "ip6gretap0" Cannot find device "ip6gretap0" Cannot find device "ip6gretap0" Cannot find device "erspan0" Cannot find device "erspan0" Cannot find device "erspan0" Cannot find device "erspan0" Cannot find device "bond0" Cannot find device "bond0" Cannot find device "bond0" Cannot find device "bond0" Cannot find device "veth0" Cannot find device "veth0" Cannot find device "veth0" Cannot find device "veth0" Cannot find device "veth1" Cannot find device "veth1" Cannot find device "veth1" Cannot find device "veth1" Cannot find device "team0" Cannot find device "team0" Cannot find device "team0" Cannot find device "team0" Cannot find device "veth0_to_bridge" Cannot find device "veth0_to_bridge" Cannot find device "veth0_to_bridge" Cannot find device "veth0_to_bridge" Cannot find device "veth1_to_bridge" Cannot find device "veth1_to_bridge" Cannot find device "veth1_to_bridge" Cannot find device "veth1_to_bridge" Cannot find device "veth0_to_bond" Cannot find device "veth0_to_bond" Cannot find device "veth0_to_bond" Cannot find device "veth0_to_bond" Cannot find device "veth1_to_bond" Cannot find device "veth1_to_bond" Cannot find device "veth1_to_bond" Cannot find device "veth1_to_bond" Cannot find device "veth0_to_team" Cannot find device "veth0_to_team" Cannot find device "veth0_to_team" Cannot find device "veth0_to_team" Cannot find device "veth1_to_team" Cannot find device "veth1_to_team" Cannot find device "veth1_to_team" Cannot find device "veth1_to_team" executing program [ 38.700309] ================================================================== [ 38.700866] audit: type=1400 audit(1536850254.110:8): avc: denied { prog_load } for pid=1791 comm="syz-executor611" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=bpf permissive=1 [ 38.700881] audit: type=1400 audit(1536850254.110:9): avc: denied { prog_run } for pid=1791 comm="syz-executor611" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=bpf permissive=1 [ 38.752490] BUG: KASAN: slab-out-of-bounds in _decode_session6+0x124c/0x1370 [ 38.759653] Read of size 1 at addr ffff8801ca01bd87 by task syz-executor611/1791 [ 38.767168] [ 38.768783] CPU: 1 PID: 1791 Comm: syz-executor611 Not tainted 4.14.69+ #5 [ 38.775765] Call Trace: [ 38.778333] dump_stack+0xb9/0x11b [ 38.781852] print_address_description+0x60/0x22b [ 38.786681] kasan_report.cold.6+0x11b/0x2dd [ 38.791068] ? _decode_session6+0x124c/0x1370 [ 38.795540] _decode_session6+0x124c/0x1370 [ 38.799845] __xfrm_decode_session+0x64/0x100 [ 38.804315] vti6_tnl_xmit+0x31b/0x15b0 [ 38.808390] ? kasan_kmalloc.part.1+0xa9/0xd0 [ 38.812910] ? kasan_kmalloc.part.1+0x4f/0xd0 [ 38.817490] ? skb_network_protocol+0xd8/0x410 [ 38.822052] ? __kmalloc_reserve.isra.8+0x2f/0xc0 [ 38.826887] ? pskb_expand_head+0x117/0xb30 [ 38.831227] ? skb_ensure_writable+0x237/0x2e0 [ 38.835789] ? bpf_clone_redirect+0x119/0x2b0 [ 38.840260] ? vti6_update+0x620/0x620 [ 38.844131] dev_hard_start_xmit+0x191/0x890 [ 38.848523] ? check_preemption_disabled+0x34/0x160 [ 38.853523] __dev_queue_xmit+0x13d9/0x1f40 [ 38.857845] ? netdev_pick_tx+0x2a0/0x2a0 [ 38.861971] ? rcu_read_lock_sched_held+0x102/0x120 [ 38.866963] ? __kmalloc_track_caller+0x29d/0x300 [ 38.871780] ? skb_release_data+0xed/0x610 [ 38.875991] ? skb_headers_offset_update+0x110/0x240 [ 38.881085] ? pskb_expand_head+0x734/0xb30 [ 38.885398] __bpf_redirect+0x5b0/0x990 [ 38.889355] bpf_clone_redirect+0x1d4/0x2b0 [ 38.893658] ___bpf_prog_run+0x248e/0x5c70 [ 38.897871] ? __free_insn_slot+0x490/0x490 [ 38.902184] ? bpf_jit_compile+0x30/0x30 [ 38.906240] ? depot_save_stack+0x20a/0x428 [ 38.910546] ? __bpf_prog_run512+0x99/0xe0 [ 38.914766] ? ___bpf_prog_run+0x5c70/0x5c70 [ 38.919159] ? __lock_acquire+0x619/0x4320 [ 38.923427] ? trace_hardirqs_on+0x10/0x10 [ 38.927664] ? trace_hardirqs_on+0x10/0x10 [ 38.931880] ? __lock_acquire+0x619/0x4320 [ 38.936124] ? lock_downgrade+0x560/0x560 [ 38.940250] ? __lru_cache_add+0x174/0x250 [ 38.944470] ? bpf_test_run+0x57/0x350 [ 38.948342] ? lock_acquire+0x10f/0x380 [ 38.952295] ? check_preemption_disabled+0x34/0x160 [ 38.957373] ? bpf_test_run+0xab/0x350 [ 38.961252] ? bpf_prog_test_run_skb+0x6b0/0x8c0 [ 38.965989] ? bpf_test_init.isra.1+0xc0/0xc0 [ 38.970843] ? __fget_light+0x163/0x1f0 [ 38.974795] ? bpf_prog_add+0x42/0xa0 [ 38.978573] ? bpf_test_init.isra.1+0xc0/0xc0 [ 38.983049] ? SyS_bpf+0x79d/0x3640 [ 38.986666] ? bpf_prog_get+0x20/0x20 [ 38.990450] ? __do_page_fault+0x485/0xb60 [ 38.994678] ? lock_downgrade+0x560/0x560 [ 38.998910] ? up_read+0x17/0x30 [ 39.002266] ? __do_page_fault+0x64c/0xb60 [ 39.006482] ? do_syscall_64+0x43/0x4b0 [ 39.010435] ? bpf_prog_get+0x20/0x20 [ 39.014209] ? do_syscall_64+0x19b/0x4b0 [ 39.018252] ? entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 39.023670] [ 39.025282] Allocated by task 1791: [ 39.028890] kasan_kmalloc.part.1+0x4f/0xd0 [ 39.033368] __kmalloc_track_caller+0x104/0x300 [ 39.038080] __kmalloc_reserve.isra.8+0x2f/0xc0 [ 39.042733] pskb_expand_head+0x117/0xb30 [ 39.046858] skb_ensure_writable+0x237/0x2e0 [ 39.051247] bpf_clone_redirect+0x119/0x2b0 [ 39.055895] ___bpf_prog_run+0x248e/0x5c70 [ 39.060180] [ 39.061807] Freed by task 484: [ 39.065133] kasan_slab_free+0xac/0x190 [ 39.069090] kfree+0xf5/0x310 [ 39.072175] load_elf_binary+0x1c4c/0x4530 [ 39.076390] search_binary_handler+0x13f/0x6c0 [ 39.080953] do_execveat_common.isra.14+0x1109/0x1d60 [ 39.086124] SyS_execve+0x34/0x40 [ 39.089554] do_syscall_64+0x19b/0x4b0 [ 39.093418] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 39.098584] [ 39.100201] The buggy address belongs to the object at ffff8801ca01bb80 [ 39.100201] which belongs to the cache kmalloc-512 of size 512 [ 39.112845] The buggy address is located 7 bytes to the right of [ 39.112845] 512-byte region [ffff8801ca01bb80, ffff8801ca01bd80) [ 39.125094] The buggy address belongs to the page: [ 39.130013] page:ffffea0007280680 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 39.139968] flags: 0x4000000000008100(slab|head) [ 39.144722] raw: 4000000000008100 0000000000000000 0000000000000000 00000001800c000c [ 39.152672] raw: 0000000000000000 0000000200000001 ffff8801da802c00 0000000000000000 [ 39.160529] page dumped because: kasan: bad access detected [ 39.166216] [ 39.167865] Memory state around the buggy address: [ 39.172778] ffff8801ca01bc80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 39.180116] ffff8801ca01bd00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 39.187448] >ffff8801ca01bd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 39.194783] ^ [ 39.198124] ffff8801ca01be00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 39.205460] ffff8801ca01be80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 39.212792] ================================================================== [ 39.220128] Disabling lock debugging due to kernel taint [ 39.225613] Kernel panic - not syncing: panic_on_warn set ... [ 39.225613] [ 39.232957] CPU: 1 PID: 1791 Comm: syz-executor611 Tainted: G B 4.14.69+ #5 [ 39.241342] Call Trace: [ 39.243912] dump_stack+0xb9/0x11b [ 39.247432] panic+0x1bf/0x3a4 [ 39.250621] ? add_taint.cold.4+0x16/0x16 [ 39.254753] kasan_end_report+0x43/0x49 [ 39.258705] kasan_report.cold.6+0x77/0x2dd [ 39.263003] ? _decode_session6+0x124c/0x1370 [ 39.267474] _decode_session6+0x124c/0x1370 [ 39.271860] __xfrm_decode_session+0x64/0x100 [ 39.276341] vti6_tnl_xmit+0x31b/0x15b0 [ 39.280294] ? kasan_kmalloc.part.1+0xa9/0xd0 [ 39.284772] ? kasan_kmalloc.part.1+0x4f/0xd0 [ 39.289260] ? skb_network_protocol+0xd8/0x410 [ 39.293817] ? __kmalloc_reserve.isra.8+0x2f/0xc0 [ 39.298632] ? pskb_expand_head+0x117/0xb30 [ 39.302929] ? skb_ensure_writable+0x237/0x2e0 [ 39.307485] ? bpf_clone_redirect+0x119/0x2b0 [ 39.311958] ? vti6_update+0x620/0x620 [ 39.315825] dev_hard_start_xmit+0x191/0x890 [ 39.320215] ? check_preemption_disabled+0x34/0x160 [ 39.325211] __dev_queue_xmit+0x13d9/0x1f40 [ 39.329510] ? netdev_pick_tx+0x2a0/0x2a0 [ 39.333633] ? rcu_read_lock_sched_held+0x102/0x120 [ 39.338624] ? __kmalloc_track_caller+0x29d/0x300 [ 39.343446] ? skb_release_data+0xed/0x610 [ 39.347660] ? skb_headers_offset_update+0x110/0x240 [ 39.352737] ? pskb_expand_head+0x734/0xb30 [ 39.357036] __bpf_redirect+0x5b0/0x990 [ 39.361047] bpf_clone_redirect+0x1d4/0x2b0 [ 39.365466] ___bpf_prog_run+0x248e/0x5c70 [ 39.369688] ? __free_insn_slot+0x490/0x490 [ 39.373985] ? bpf_jit_compile+0x30/0x30 [ 39.378023] ? depot_save_stack+0x20a/0x428 [ 39.382322] ? __bpf_prog_run512+0x99/0xe0 [ 39.386530] ? ___bpf_prog_run+0x5c70/0x5c70 [ 39.390931] ? __lock_acquire+0x619/0x4320 [ 39.395153] ? trace_hardirqs_on+0x10/0x10 [ 39.399366] ? trace_hardirqs_on+0x10/0x10 [ 39.403640] ? __lock_acquire+0x619/0x4320 [ 39.407856] ? lock_downgrade+0x560/0x560 [ 39.411980] ? __lru_cache_add+0x174/0x250 [ 39.416200] ? bpf_test_run+0x57/0x350 [ 39.420065] ? lock_acquire+0x10f/0x380 [ 39.424102] ? check_preemption_disabled+0x34/0x160 [ 39.429106] ? bpf_test_run+0xab/0x350 [ 39.432973] ? bpf_prog_test_run_skb+0x6b0/0x8c0 [ 39.437712] ? bpf_test_init.isra.1+0xc0/0xc0 [ 39.442263] ? __fget_light+0x163/0x1f0 [ 39.446222] ? bpf_prog_add+0x42/0xa0 [ 39.450003] ? bpf_test_init.isra.1+0xc0/0xc0 [ 39.454478] ? SyS_bpf+0x79d/0x3640 [ 39.458084] ? bpf_prog_get+0x20/0x20 [ 39.461860] ? __do_page_fault+0x485/0xb60 [ 39.466070] ? lock_downgrade+0x560/0x560 [ 39.470202] ? up_read+0x17/0x30 [ 39.473613] ? __do_page_fault+0x64c/0xb60 [ 39.477833] ? do_syscall_64+0x43/0x4b0 [ 39.481786] ? bpf_prog_get+0x20/0x20 [ 39.485560] ? do_syscall_64+0x19b/0x4b0 [ 39.489608] ? entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 39.495372] Dumping ftrace buffer: [ 39.498887] (ftrace buffer empty) [ 39.502627] Kernel Offset: 0x1ae00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 39.513579] Rebooting in 86400 seconds..