[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 30.046511] random: sshd: uninitialized urandom read (32 bytes read) [ 30.544671] audit: type=1400 audit(1553652630.396:6): avc: denied { map } for pid=1760 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 [ 30.652827] random: sshd: uninitialized urandom read (32 bytes read) [ 31.194489] random: sshd: uninitialized urandom read (32 bytes read) [ 31.426346] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.53' (ECDSA) to the list of known hosts. [ 37.101446] random: sshd: uninitialized urandom read (32 bytes read) [ 37.190639] audit: type=1400 audit(1553652637.046:7): avc: denied { map } for pid=1778 comm="syz-execprog" path="/root/syz-execprog" dev="sda1" ino=1426 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 2019/03/27 02:10:37 parsed 1 programs [ 38.039208] audit: type=1400 audit(1553652637.886:8): avc: denied { map } for pid=1778 comm="syz-execprog" path="/sys/kernel/debug/kcov" dev="debugfs" ino=5005 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:debugfs_t:s0 tclass=file permissive=1 [ 38.656176] random: cc1: uninitialized urandom read (8 bytes read) 2019/03/27 02:10:40 executed programs: 0 [ 40.271509] audit: type=1400 audit(1553652640.126:9): avc: denied { map } for pid=1778 comm="syz-execprog" path="/root/syzkaller-shm529358953" dev="sda1" ino=16461 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:file_t:s0 tclass=file permissive=1 [ 41.957140] audit: type=1400 audit(1553652641.806:10): avc: denied { map } for pid=2313 comm="syz-executor.2" path="/dev/binder0" dev="devtmpfs" ino=5423 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=chr_file permissive=1 [ 41.984361] ------------[ cut here ]------------ [ 41.989397] kernel BUG at drivers/android/binder_alloc.c:1130! [ 42.017493] invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 42.023429] Modules linked in: [ 42.026629] CPU: 1 PID: 2316 Comm: syz-executor.2 Not tainted 4.14.108+ #38 [ 42.033823] task: ffff8881c9acde00 task.stack: ffff8881c93d8000 [ 42.039916] RIP: 0010:binder_alloc_do_buffer_copy+0xc7/0x500 [ 42.045713] RSP: 0018:ffff8881c93df5d0 EFLAGS: 00010297 [ 42.051082] RAX: ffff8881c9acde00 RBX: 0000000020001000 RCX: cad4000000440000 [ 42.058365] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881da8ee1d8 [ 42.065641] RBP: 0000000000000020 R08: ffff8881c93df8b0 R09: 0000000000000028 [ 42.072913] R10: ffffed103927bf06 R11: ffff8881c93df837 R12: ffff8881c9388298 [ 42.080195] R13: 0000000000000028 R14: cad4000000440000 R15: ffff8881c93df8b0 [ 42.087477] FS: 00007f1ab1541700(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000 [ 42.095706] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 42.101595] CR2: 00007f0502e221c4 CR3: 00000001ca958006 CR4: 00000000001606a0 [ 42.108871] Call Trace: [ 42.111465] ? binder_alloc_do_buffer_copy+0x1ef/0x500 [ 42.116768] binder_get_object+0x90/0x190 [ 42.120943] binder_transaction+0x1e2d/0x5640 [ 42.125459] ? binder_inc_ref_for_node+0xba0/0xba0 [ 42.130398] ? trace_hardirqs_on+0x10/0x10 [ 42.134636] ? finish_task_switch+0x1b7/0x620 [ 42.139162] ? _raw_spin_unlock_irq+0x24/0x50 [ 42.143664] ? __save_stack_trace+0x7a/0xf0 [ 42.147996] ? __might_fault+0x104/0x1b0 [ 42.152070] ? lock_downgrade+0x5d0/0x5d0 [ 42.156230] ? lock_acquire+0x10f/0x380 [ 42.160245] ? __might_fault+0xd4/0x1b0 [ 42.164241] ? __might_fault+0x177/0x1b0 [ 42.168315] ? binder_thread_write+0x512/0x1f90 [ 42.173036] ? drop_futex_key_refs.isra.0+0x17/0xa0 [ 42.178062] ? binder_transaction+0x5640/0x5640 [ 42.182769] ? lock_downgrade+0x5d0/0x5d0 [ 42.186928] ? lock_acquire+0x10f/0x380 [ 42.190910] ? __might_fault+0xd4/0x1b0 [ 42.194898] ? __might_fault+0x177/0x1b0 [ 42.198968] ? binder_ioctl+0xd48/0x14ea [ 42.203042] ? binder_poll+0x230/0x230 [ 42.206938] ? __lock_acquire+0x56a/0x3fa0 [ 42.211172] ? trace_hardirqs_on+0x10/0x10 [ 42.215413] ? trace_hardirqs_on+0x10/0x10 [ 42.219649] ? uprobe_apply+0x130/0x130 [ 42.223635] ? binder_poll+0x230/0x230 [ 42.227531] ? do_vfs_ioctl+0xabe/0x1040 [ 42.231593] ? selinux_file_ioctl+0x426/0x590 [ 42.236092] ? selinux_file_ioctl+0x116/0x590 [ 42.240599] ? ioctl_preallocate+0x1e0/0x1e0 [ 42.245012] ? selinux_parse_skb.constprop.0+0x16b0/0x16b0 [ 42.250638] ? __fget+0x1ff/0x360 [ 42.254098] ? lock_downgrade+0x5d0/0x5d0 [ 42.258259] ? lock_acquire+0x10f/0x380 [ 42.262238] ? __fget+0x44/0x360 [ 42.265605] ? check_preemption_disabled+0x35/0x1f0 [ 42.270651] ? security_file_ioctl+0x7c/0xb0 [ 42.275069] ? SyS_ioctl+0x7f/0xb0 [ 42.278617] ? do_vfs_ioctl+0x1040/0x1040 [ 42.282765] ? do_syscall_64+0x19b/0x4b0 [ 42.286835] ? entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 42.292198] Code: 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 0d 04 00 00 48 8b 6d 58 48 29 dd e8 33 33 0d ff 49 39 ed 76 07 e8 29 33 0d ff <0f> 0b e8 22 33 0d ff 4c 29 ed 49 39 ee 77 ec e8 15 33 0d ff 41 [ 42.311411] RIP: binder_alloc_do_buffer_copy+0xc7/0x500 RSP: ffff8881c93df5d0 [ 42.321035] audit: type=1400 audit(1553652641.846:11): avc: denied { set_context_mgr } for pid=2313 comm="syz-executor.2" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=binder permissive=1 [ 42.359536] audit: type=1400 audit(1553652641.846:12): avc: denied { call } for pid=2313 comm="syz-executor.2" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=binder permissive=1 [ 42.385292] ---[ end trace 9fcb44ca26752e8d ]--- [ 42.393961] Kernel panic - not syncing: Fatal exception [ 42.399670] Kernel Offset: 0x35e00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 42.410844] Rebooting in 86400 seconds..