[....] Starting enhanced syslogd: rsyslogd[ 13.680815] audit: type=1400 audit(1515909366.502:5): avc: denied { syslog } for pid=3531 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] 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.885138] audit: type=1400 audit(1515909372.706:6): avc: denied { map } for pid=3671 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 Warning: Permanently added '10.128.0.2' (ECDSA) to the list of known hosts. executing program [ 34.960457] audit: type=1400 audit(1515909387.782:7): avc: denied { map } for pid=3688 comm="syzkaller710311" path="/root/syzkaller710311586" 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 executing program executing program [ 35.131904] [ 35.133565] ========================= [ 35.137336] WARNING: held lock freed! [ 35.141114] 4.15.0-rc7+ #187 Not tainted [ 35.145144] ------------------------- [ 35.148920] syzkaller710311/3692 is freeing memory 0000000012c0cc4d-000000003cdaac81, with a lock still held there! [ 35.159462] (sk_lock-AF_INET6){+.+.}, at: [<000000005aca9170>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 35.168379] 1 lock held by syzkaller710311/3692: [ 35.173113] #0: (sk_lock-AF_INET6){+.+.}, at: [<000000005aca9170>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 35.182900] [ 35.182900] stack backtrace: [ 35.187378] CPU: 1 PID: 3692 Comm: syzkaller710311 Not tainted 4.15.0-rc7+ #187 [ 35.194793] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.204121] Call Trace: [ 35.206689] dump_stack+0x194/0x257 [ 35.210294] ? arch_local_irq_restore+0x53/0x53 [ 35.214981] debug_check_no_locks_freed+0x32f/0x3c0 [ 35.220010] kmem_cache_free+0x68/0x2a0 [ 35.223969] __sk_destruct+0x622/0x910 [ 35.227831] ? save_stack+0x43/0xd0 [ 35.231439] ? sock_rfree+0x160/0x160 [ 35.235212] ? sctp_sendmsg+0x28f7/0x33f0 [ 35.239333] ? sock_sendmsg+0xca/0x110 [ 35.243211] ? SYSC_sendto+0x361/0x5c0 [ 35.247073] ? SyS_sendto+0x40/0x50 [ 35.250678] ? entry_SYSCALL_64_fastpath+0x23/0x9a [ 35.255587] ? check_noncircular+0x20/0x20 [ 35.259796] ? print_irqtrace_events+0x270/0x270 [ 35.264530] ? __local_bh_enable_ip+0x121/0x230 [ 35.269176] ? sctp_put_port+0x495/0x640 [ 35.273213] ? sctp_poll+0xc00/0xc00 [ 35.276905] ? refcount_sub_and_test+0x115/0x1b0 [ 35.281634] ? refcount_inc+0x50/0x50 [ 35.285408] ? refcount_inc+0x50/0x50 [ 35.289193] sk_destruct+0x47/0x80 [ 35.292711] __sk_free+0xf1/0x2b0 [ 35.296141] sk_free+0x2a/0x40 [ 35.299311] sctp_association_put+0x14c/0x2f0 [ 35.303782] ? sctp_association_hold+0x20/0x20 [ 35.308354] ? lock_sock_nested+0x91/0x110 [ 35.312569] ? trace_hardirqs_on+0xd/0x10 [ 35.316693] ? __local_bh_enable_ip+0x121/0x230 [ 35.321369] sctp_wait_for_sndbuf+0x673/0x8d0 [ 35.325850] ? sctp_init_sock+0x13b0/0x13b0 [ 35.330167] ? do_raw_spin_trylock+0x190/0x190 [ 35.334733] ? __local_bh_enable_ip+0x121/0x230 [ 35.339383] ? sctp_prsctp_prune+0x97/0x790 [ 35.343682] ? prepare_to_wait+0x4d0/0x4d0 [ 35.347892] ? trace_hardirqs_on+0xd/0x10 [ 35.352017] sctp_sendmsg+0x28f7/0x33f0 [ 35.355976] ? sctp_id2assoc+0x390/0x390 [ 35.360011] ? avc_has_perm+0x43e/0x680 [ 35.363963] ? avc_has_perm_noaudit+0x520/0x520 [ 35.368609] ? __fget+0x35c/0x570 [ 35.372047] ? iterate_fd+0x3f0/0x3f0 [ 35.375864] ? find_held_lock+0x35/0x1d0 [ 35.379904] ? sock_has_perm+0x2a4/0x420 [ 35.383941] ? lock_release+0x9a2/0xa40 [ 35.387894] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.393754] ? __check_object_size+0x25d/0x4f0 [ 35.398317] inet_sendmsg+0x11f/0x5e0 [ 35.402091] ? inet_sendmsg+0x11f/0x5e0 [ 35.406051] ? __might_sleep+0x95/0x190 [ 35.409998] ? inet_create+0xf50/0xf50 [ 35.413862] ? selinux_socket_sendmsg+0x36/0x40 [ 35.418508] ? security_socket_sendmsg+0x89/0xb0 [ 35.423239] ? inet_create+0xf50/0xf50 [ 35.427103] sock_sendmsg+0xca/0x110 [ 35.430790] SYSC_sendto+0x361/0x5c0 [ 35.434479] ? SYSC_connect+0x4a0/0x4a0 [ 35.438428] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 35.443764] ? __do_page_fault+0x3d6/0xc90 [ 35.447981] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 35.453253] ? SyS_futex+0x269/0x390 [ 35.456941] ? SyS_setsockopt+0x215/0x360 [ 35.461066] ? do_futex+0x22a0/0x22a0 [ 35.464869] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 35.469689] SyS_sendto+0x40/0x50 [ 35.473117] entry_SYSCALL_64_fastpath+0x23/0x9a [ 35.477849] RIP: 0033:0x4457e9 [ 35.481009] RSP: 002b:00007f7a3fb7bda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 35.488692] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 35.495938] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 35.503198] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 35.510441] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 35.517688] R13: 00007ffc818ddb4f R14: 00007f7a3fb7c9c0 R15: 0000000000000001 [ 35.525063] ================================================================== [ 35.532415] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 35.539067] Read of size 4 at addr ffff8801d909108c by task syzkaller710311/3692 [ 35.546568] [ 35.548172] CPU: 1 PID: 3692 Comm: syzkaller710311 Not tainted 4.15.0-rc7+ #187 [ 35.555592] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.564932] Call Trace: [ 35.567501] dump_stack+0x194/0x257 [ 35.571105] ? arch_local_irq_restore+0x53/0x53 [ 35.575752] ? show_regs_print_info+0x18/0x18 executing program [ 35.580220] ? lock_acquire+0x1d5/0x580 [ 35.584169] ? trace_hardirqs_on+0xd/0x10 [ 35.588290] ? do_raw_spin_lock+0x1e0/0x220 [ 35.592590] print_address_description+0x73/0x250 [ 35.597415] ? do_raw_spin_lock+0x1e0/0x220 [ 35.601730] kasan_report+0x25b/0x340 [ 35.605507] __asan_report_load4_noabort+0x14/0x20 [ 35.610435] do_raw_spin_lock+0x1e0/0x220 [ 35.614566] _raw_spin_lock_bh+0x39/0x40 [ 35.618601] ? release_sock+0x74/0x2a0 [ 35.622479] release_sock+0x74/0x2a0 [ 35.626167] ? sctp_prsctp_prune+0x97/0x790 [ 35.630462] ? __release_sock+0x360/0x360 [ 35.634587] ? trace_hardirqs_on+0xd/0x10 [ 35.638714] sctp_sendmsg+0x2993/0x33f0 [ 35.642673] ? sctp_id2assoc+0x390/0x390 [ 35.646709] ? avc_has_perm+0x43e/0x680 [ 35.650659] ? avc_has_perm_noaudit+0x520/0x520 [ 35.655305] ? __fget+0x35c/0x570 [ 35.658736] ? iterate_fd+0x3f0/0x3f0 [ 35.662534] ? find_held_lock+0x35/0x1d0 [ 35.666576] ? sock_has_perm+0x2a4/0x420 [ 35.670625] ? lock_release+0x9a2/0xa40 [ 35.674575] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.680450] ? __check_object_size+0x25d/0x4f0 [ 35.685011] inet_sendmsg+0x11f/0x5e0 [ 35.688786] ? inet_sendmsg+0x11f/0x5e0 [ 35.692735] ? __might_sleep+0x95/0x190 [ 35.696697] ? inet_create+0xf50/0xf50 [ 35.700577] ? selinux_socket_sendmsg+0x36/0x40 [ 35.705219] ? security_socket_sendmsg+0x89/0xb0 [ 35.709951] ? inet_create+0xf50/0xf50 [ 35.713817] sock_sendmsg+0xca/0x110 [ 35.717512] SYSC_sendto+0x361/0x5c0 [ 35.721202] ? SYSC_connect+0x4a0/0x4a0 [ 35.725153] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 35.730493] ? __do_page_fault+0x3d6/0xc90 [ 35.734720] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 35.739985] ? SyS_futex+0x269/0x390 [ 35.743676] ? SyS_setsockopt+0x215/0x360 [ 35.747814] ? do_futex+0x22a0/0x22a0 [ 35.751612] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 35.756437] SyS_sendto+0x40/0x50 [ 35.759868] entry_SYSCALL_64_fastpath+0x23/0x9a [ 35.764595] RIP: 0033:0x4457e9 [ 35.767758] RSP: 002b:00007f7a3fb7bda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 35.775439] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 35.782685] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 35.789930] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 35.797188] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 35.804431] R13: 00007ffc818ddb4f R14: 00007f7a3fb7c9c0 R15: 0000000000000001 [ 35.811682] [ 35.813285] Allocated by task 3697: [ 35.816892] save_stack+0x43/0xd0 [ 35.820317] kasan_kmalloc+0xad/0xe0 [ 35.824005] kasan_slab_alloc+0x12/0x20 [ 35.827952] kmem_cache_alloc+0x12e/0x760 [ 35.832075] sk_prot_alloc+0x65/0x2a0 [ 35.835847] sk_alloc+0x105/0x1440 [ 35.839361] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 35.844198] sctp_accept+0x5c4/0x970 [ 35.847889] inet_accept+0x12c/0x930 [ 35.851577] SYSC_accept4+0x38d/0x870 [ 35.855365] SyS_accept+0x26/0x30 [ 35.858793] entry_SYSCALL_64_fastpath+0x23/0x9a [ 35.863520] [ 35.865122] Freed by task 3692: [ 35.868376] save_stack+0x43/0xd0 [ 35.871804] kasan_slab_free+0x71/0xc0 [ 35.875666] kmem_cache_free+0x83/0x2a0 [ 35.879615] __sk_destruct+0x622/0x910 [ 35.883475] sk_destruct+0x47/0x80 [ 35.886986] __sk_free+0xf1/0x2b0 [ 35.890413] sk_free+0x2a/0x40 [ 35.893580] sctp_association_put+0x14c/0x2f0 [ 35.898050] sctp_wait_for_sndbuf+0x673/0x8d0 [ 35.902519] sctp_sendmsg+0x28f7/0x33f0 [ 35.906468] inet_sendmsg+0x11f/0x5e0 [ 35.910241] sock_sendmsg+0xca/0x110 [ 35.913929] SYSC_sendto+0x361/0x5c0 [ 35.917616] SyS_sendto+0x40/0x50 [ 35.921047] entry_SYSCALL_64_fastpath+0x23/0x9a [ 35.925789] [ 35.927414] The buggy address belongs to the object at ffff8801d9091000 [ 35.927414] which belongs to the cache SCTPv6 of size 1888 [ 35.939699] The buggy address is located 140 bytes inside of [ 35.939699] 1888-byte region [ffff8801d9091000, ffff8801d9091760) [ 35.951634] The buggy address belongs to the page: [ 35.956543] page:ffffea0007642440 count:1 mapcount:0 mapping:ffff8801d9091000 index:0x0 [ 35.964662] flags: 0x2fffc0000000100(slab) [ 35.968872] raw: 02fffc0000000100 ffff8801d9091000 0000000000000000 0000000100000002 [ 35.976728] raw: ffffea00074b12e0 ffffea000764dfe0 ffff8801d2c439c0 0000000000000000 [ 35.984582] page dumped because: kasan: bad access detected [ 35.990263] [ 35.991879] Memory state around the buggy address: [ 35.996781] ffff8801d9090f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 36.004117] ffff8801d9091000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.011457] >ffff8801d9091080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.018803] ^ [ 36.022412] ffff8801d9091100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.029743] ffff8801d9091180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.037073] ================================================================== [ 36.044472] Kernel panic - not syncing: panic_on_warn set ... [ 36.044472] [ 36.051820] CPU: 1 PID: 3692 Comm: syzkaller710311 Tainted: G B 4.15.0-rc7+ #187 [ 36.060542] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.069868] Call Trace: [ 36.072439] dump_stack+0x194/0x257 [ 36.076044] ? arch_local_irq_restore+0x53/0x53 [ 36.080703] ? trace_hardirqs_on_thunk+0x1a/0x1c executing program [ 36.085438] ? vsnprintf+0x1ed/0x1900 [ 36.089220] ? do_raw_spin_lock+0x140/0x220 [ 36.093521] panic+0x1e4/0x41c [ 36.096689] ? refcount_error_report+0x214/0x214 [ 36.101419] ? add_taint+0x1c/0x50 [ 36.104933] ? add_taint+0x1c/0x50 [ 36.108449] ? do_raw_spin_lock+0x1e0/0x220 [ 36.112747] kasan_end_report+0x50/0x50 [ 36.116697] kasan_report+0x144/0x340 [ 36.120480] __asan_report_load4_noabort+0x14/0x20 [ 36.125384] do_raw_spin_lock+0x1e0/0x220 [ 36.129512] _raw_spin_lock_bh+0x39/0x40 [ 36.133551] ? release_sock+0x74/0x2a0 [ 36.137412] release_sock+0x74/0x2a0 [ 36.141102] ? sctp_prsctp_prune+0x97/0x790 [ 36.145400] ? __release_sock+0x360/0x360 [ 36.149521] ? trace_hardirqs_on+0xd/0x10 [ 36.153674] sctp_sendmsg+0x2993/0x33f0 [ 36.157629] ? sctp_id2assoc+0x390/0x390 [ 36.161668] ? avc_has_perm+0x43e/0x680 [ 36.165620] ? avc_has_perm_noaudit+0x520/0x520 [ 36.170264] ? __fget+0x35c/0x570 [ 36.173696] ? iterate_fd+0x3f0/0x3f0 [ 36.177476] ? find_held_lock+0x35/0x1d0 [ 36.181518] ? sock_has_perm+0x2a4/0x420 [ 36.185566] ? lock_release+0x9a2/0xa40 [ 36.189519] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 36.195384] ? __check_object_size+0x25d/0x4f0 [ 36.199949] inet_sendmsg+0x11f/0x5e0 [ 36.203723] ? inet_sendmsg+0x11f/0x5e0 [ 36.207671] ? __might_sleep+0x95/0x190 [ 36.211621] ? inet_create+0xf50/0xf50 [ 36.215487] ? selinux_socket_sendmsg+0x36/0x40 [ 36.220130] ? security_socket_sendmsg+0x89/0xb0 [ 36.224862] ? inet_create+0xf50/0xf50 [ 36.228727] sock_sendmsg+0xca/0x110 [ 36.232415] SYSC_sendto+0x361/0x5c0 [ 36.236101] ? SYSC_connect+0x4a0/0x4a0 [ 36.240049] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 36.245389] ? __do_page_fault+0x3d6/0xc90 [ 36.249600] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 36.254865] ? SyS_futex+0x269/0x390 [ 36.258551] ? SyS_setsockopt+0x215/0x360 [ 36.262673] ? do_futex+0x22a0/0x22a0 [ 36.266451] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 36.271273] SyS_sendto+0x40/0x50 [ 36.274705] entry_SYSCALL_64_fastpath+0x23/0x9a [ 36.279444] RIP: 0033:0x4457e9 [ 36.282626] RSP: 002b:00007f7a3fb7bda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 36.290326] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 36.297573] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 36.304827] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 36.312073] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 36.319319] R13: 00007ffc818ddb4f R14: 00007f7a3fb7c9c0 R15: 0000000000000001 [ 36.326958] Dumping ftrace buffer: [ 36.330476] (ftrace buffer empty) [ 36.334164] Kernel Offset: disabled [ 36.337769] Rebooting in 86400 seconds..