[....] Starting enhanced syslogd: rsyslogd[ 11.684281] audit: type=1400 audit(1515647038.523:5): avc: denied { syslog } for pid=3344 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: [ 20.399918] audit: type=1400 audit(1515647047.238:6): avc: denied { map } for pid=3483 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.25' (ECDSA) to the list of known hosts. executing program [ 26.933650] audit: type=1400 audit(1515647053.772:7): avc: denied { map } for pid=3497 comm="syzkaller166778" path="/root/syzkaller166778102" 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 [ 27.098508] [ 27.100160] ========================= [ 27.103925] WARNING: held lock freed! [ 27.107700] 4.15.0-rc7+ #257 Not tainted [ 27.111724] ------------------------- [ 27.115498] syzkaller166778/3501 is freeing memory 0000000033ae5e8f-00000000765dc8c0, with a lock still held there! [ 27.126040] (sk_lock-AF_INET6){+.+.}, at: [<00000000d8f1bd64>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 27.134952] 1 lock held by syzkaller166778/3501: [ 27.139676] #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000d8f1bd64>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 27.149003] [ 27.149003] stack backtrace: [ 27.153466] CPU: 0 PID: 3501 Comm: syzkaller166778 Not tainted 4.15.0-rc7+ #257 [ 27.160876] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.170198] Call Trace: [ 27.172760] dump_stack+0x194/0x257 [ 27.176358] ? arch_local_irq_restore+0x53/0x53 [ 27.181000] debug_check_no_locks_freed+0x32f/0x3c0 [ 27.185985] kmem_cache_free+0x68/0x2a0 [ 27.189930] __sk_destruct+0x622/0x910 [ 27.193789] ? kasan_slab_free+0x71/0xc0 [ 27.197817] ? sock_rfree+0x160/0x160 [ 27.201581] ? inet_sendmsg+0x11f/0x5e0 [ 27.205521] ? SYSC_sendto+0x361/0x5c0 [ 27.209374] ? SyS_sendto+0x40/0x50 [ 27.212967] ? entry_SYSCALL_64_fastpath+0x23/0x9a [ 27.217864] ? check_noncircular+0x20/0x20 [ 27.222072] ? print_irqtrace_events+0x270/0x270 [ 27.226811] ? free_obj_work+0x690/0x690 [ 27.231111] ? sctp_put_port+0x495/0x640 [ 27.235141] ? sctp_poll+0xc00/0xc00 [ 27.238824] ? refcount_sub_and_test+0x115/0x1b0 [ 27.243547] ? refcount_inc+0x50/0x50 [ 27.247331] ? refcount_inc+0x50/0x50 [ 27.251099] sk_destruct+0x47/0x80 [ 27.254606] __sk_free+0x57/0x230 [ 27.258023] sk_free+0x2a/0x40 [ 27.261189] sctp_association_put+0x14c/0x2f0 [ 27.265651] ? sctp_association_hold+0x20/0x20 [ 27.270199] ? lock_sock_nested+0x91/0x110 [ 27.274402] ? trace_hardirqs_on+0xd/0x10 [ 27.278517] ? __local_bh_enable_ip+0x121/0x230 [ 27.283156] sctp_wait_for_sndbuf+0x673/0x8d0 [ 27.287626] ? sctp_init_sock+0x13b0/0x13b0 [ 27.291915] ? do_raw_spin_trylock+0x190/0x190 [ 27.296463] ? __local_bh_enable_ip+0x121/0x230 [ 27.301104] ? sctp_prsctp_prune+0x97/0x6f0 [ 27.305401] ? prepare_to_wait+0x4d0/0x4d0 [ 27.309599] ? trace_hardirqs_on+0xd/0x10 [ 27.313716] sctp_sendmsg+0x277d/0x3360 [ 27.317664] ? put_pi_state+0x3c0/0x560 [ 27.321612] ? sctp_id2assoc+0x390/0x390 [ 27.325641] ? avc_has_perm+0x43e/0x680 [ 27.329583] ? avc_has_perm_noaudit+0x520/0x520 [ 27.334217] ? __fget+0x35c/0x570 [ 27.337641] ? iterate_fd+0x3f0/0x3f0 [ 27.341420] ? find_held_lock+0x35/0x1d0 [ 27.345453] ? sock_has_perm+0x2a4/0x420 [ 27.349481] ? lock_release+0x962/0xa40 [ 27.353426] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.359284] ? __check_object_size+0x25d/0x4f0 [ 27.363838] inet_sendmsg+0x11f/0x5e0 [ 27.367609] ? inet_sendmsg+0x11f/0x5e0 [ 27.371548] ? __might_sleep+0x95/0x190 [ 27.375496] ? inet_recvmsg+0x5f0/0x5f0 [ 27.379437] ? selinux_socket_sendmsg+0x36/0x40 [ 27.384070] ? security_socket_sendmsg+0x89/0xb0 [ 27.388790] ? inet_recvmsg+0x5f0/0x5f0 [ 27.392739] sock_sendmsg+0xca/0x110 [ 27.396420] SYSC_sendto+0x361/0x5c0 [ 27.400103] ? SYSC_connect+0x4a0/0x4a0 [ 27.404055] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 27.409387] ? __do_page_fault+0x3d6/0xc90 [ 27.413588] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 27.418841] ? SyS_futex+0x269/0x390 [ 27.422522] ? SyS_setsockopt+0x215/0x360 [ 27.426639] ? do_futex+0x22a0/0x22a0 [ 27.430407] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 27.435239] SyS_sendto+0x40/0x50 [ 27.438661] entry_SYSCALL_64_fastpath+0x23/0x9a [ 27.443387] RIP: 0033:0x4457e9 [ 27.446545] RSP: 002b:00007fae0ca00da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 27.454230] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 27.461466] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 27.468700] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 27.475935] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 27.483175] R13: 00007fff4e05d57f R14: 00007fae0ca019c0 R15: 0000000000000001 [ 27.490533] ================================================================== [ 27.497869] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 27.504512] Read of size 4 at addr ffff8801c028c08c by task syzkaller166778/3501 [ 27.512007] [ 27.513603] CPU: 0 PID: 3501 Comm: syzkaller166778 Not tainted 4.15.0-rc7+ #257 [ 27.521013] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.530332] Call Trace: [ 27.532886] dump_stack+0x194/0x257 [ 27.536488] ? arch_local_irq_restore+0x53/0x53 [ 27.541133] ? show_regs_print_info+0x18/0x18 [ 27.545594] ? lock_acquire+0x1d5/0x580 [ 27.549535] ? trace_hardirqs_on+0xd/0x10 [ 27.553648] ? do_raw_spin_lock+0x1e0/0x220 [ 27.557935] print_address_description+0x73/0x250 [ 27.562744] ? do_raw_spin_lock+0x1e0/0x220 [ 27.567040] kasan_report+0x25b/0x340 [ 27.570809] __asan_report_load4_noabort+0x14/0x20 [ 27.575706] do_raw_spin_lock+0x1e0/0x220 [ 27.579832] _raw_spin_lock_bh+0x39/0x40 [ 27.583858] ? release_sock+0x74/0x2a0 [ 27.587711] release_sock+0x74/0x2a0 [ 27.591391] ? sctp_prsctp_prune+0x97/0x6f0 [ 27.595680] ? __release_sock+0x360/0x360 [ 27.599792] ? trace_hardirqs_on+0xd/0x10 [ 27.603910] sctp_sendmsg+0x2c61/0x3360 [ 27.607849] ? put_pi_state+0x3c0/0x560 [ 27.611801] ? sctp_id2assoc+0x390/0x390 [ 27.615827] ? avc_has_perm+0x43e/0x680 [ 27.619768] ? avc_has_perm_noaudit+0x520/0x520 [ 27.624408] ? __fget+0x35c/0x570 [ 27.627829] ? iterate_fd+0x3f0/0x3f0 [ 27.631598] ? find_held_lock+0x35/0x1d0 [ 27.635635] ? sock_has_perm+0x2a4/0x420 [ 27.639664] ? lock_release+0x962/0xa40 [ 27.643604] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.649452] ? __check_object_size+0x25d/0x4f0 [ 27.654001] inet_sendmsg+0x11f/0x5e0 [ 27.657765] ? inet_sendmsg+0x11f/0x5e0 [ 27.661702] ? __might_sleep+0x95/0x190 [ 27.665640] ? inet_recvmsg+0x5f0/0x5f0 [ 27.669587] ? selinux_socket_sendmsg+0x36/0x40 [ 27.674235] ? security_socket_sendmsg+0x89/0xb0 [ 27.678964] ? inet_recvmsg+0x5f0/0x5f0 [ 27.682905] sock_sendmsg+0xca/0x110 [ 27.686593] SYSC_sendto+0x361/0x5c0 [ 27.690275] ? SYSC_connect+0x4a0/0x4a0 [ 27.694217] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 27.699552] ? __do_page_fault+0x3d6/0xc90 [ 27.703755] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 27.709016] ? SyS_futex+0x269/0x390 [ 27.712694] ? SyS_setsockopt+0x215/0x360 [ 27.716814] ? do_futex+0x22a0/0x22a0 [ 27.720580] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 27.725392] SyS_sendto+0x40/0x50 [ 27.728812] entry_SYSCALL_64_fastpath+0x23/0x9a [ 27.733537] RIP: 0033:0x4457e9 [ 27.736693] RSP: 002b:00007fae0ca00da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 27.744372] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 27.751607] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 27.758840] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 27.766163] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 27.773399] R13: 00007fff4e05d57f R14: 00007fae0ca019c0 R15: 0000000000000001 [ 27.780641] [ 27.782235] Allocated by task 3507: [ 27.785826] save_stack+0x43/0xd0 [ 27.789242] kasan_kmalloc+0xad/0xe0 [ 27.792921] kasan_slab_alloc+0x12/0x20 [ 27.796859] kmem_cache_alloc+0x12e/0x760 [ 27.800979] sk_prot_alloc+0x65/0x2a0 [ 27.804743] sk_alloc+0x105/0x1410 [ 27.808248] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 27.813057] sctp_accept+0x5c4/0x970 [ 27.816735] inet_accept+0x12c/0x930 [ 27.820420] SYSC_accept4+0x38d/0x870 [ 27.824184] SyS_accept+0x26/0x30 [ 27.827615] entry_SYSCALL_64_fastpath+0x23/0x9a [ 27.832334] [ 27.833930] Freed by task 3501: [ 27.837174] save_stack+0x43/0xd0 [ 27.840592] kasan_slab_free+0x71/0xc0 [ 27.844447] kmem_cache_free+0x83/0x2a0 [ 27.848394] __sk_destruct+0x622/0x910 [ 27.852244] sk_destruct+0x47/0x80 [ 27.855754] __sk_free+0x57/0x230 [ 27.859170] sk_free+0x2a/0x40 [ 27.862328] sctp_association_put+0x14c/0x2f0 [ 27.866787] sctp_wait_for_sndbuf+0x673/0x8d0 [ 27.871248] sctp_sendmsg+0x277d/0x3360 [ 27.875188] inet_sendmsg+0x11f/0x5e0 [ 27.878972] sock_sendmsg+0xca/0x110 [ 27.882653] SYSC_sendto+0x361/0x5c0 [ 27.886332] SyS_sendto+0x40/0x50 [ 27.889759] entry_SYSCALL_64_fastpath+0x23/0x9a [ 27.894476] [ 27.896069] The buggy address belongs to the object at ffff8801c028c000 [ 27.896069] which belongs to the cache SCTPv6 of size 1888 [ 27.908349] The buggy address is located 140 bytes inside of [ 27.908349] 1888-byte region [ffff8801c028c000, ffff8801c028c760) [ 27.920274] The buggy address belongs to the page: [ 27.925169] page:ffffea000700a300 count:1 mapcount:0 mapping:ffff8801c028c000 index:0x0 [ 27.933278] flags: 0x2fffc0000000100(slab) [ 27.937478] raw: 02fffc0000000100 ffff8801c028c000 0000000000000000 0000000100000002 [ 27.945325] raw: ffffea00074cb020 ffffea000705ef20 ffff8801d31d7b40 0000000000000000 [ 27.953171] page dumped because: kasan: bad access detected [ 27.958845] [ 27.960438] Memory state around the buggy address: [ 27.965332] ffff8801c028bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.972654] ffff8801c028c000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.979977] >ffff8801c028c080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.987300] ^ [ 27.990891] ffff8801c028c100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.998213] ffff8801c028c180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.005536] ================================================================== [ 28.012900] Kernel panic - not syncing: panic_on_warn set ... [ 28.012900] [ 28.020232] CPU: 0 PID: 3501 Comm: syzkaller166778 Tainted: G B 4.15.0-rc7+ #257 [ 28.028946] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.038265] Call Trace: [ 28.040820] dump_stack+0x194/0x257 [ 28.044426] ? arch_local_irq_restore+0x53/0x53 [ 28.049063] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.053788] ? vsnprintf+0x1ed/0x1900 [ 28.057564] ? do_raw_spin_lock+0x100/0x220 [ 28.061854] panic+0x1e4/0x41c [ 28.065016] ? refcount_error_report+0x214/0x214 [ 28.069737] ? add_taint+0x1c/0x50 [ 28.073243] ? add_taint+0x1c/0x50 [ 28.076750] ? do_raw_spin_lock+0x1e0/0x220 [ 28.081039] kasan_end_report+0x50/0x50 [ 28.084980] kasan_report+0x144/0x340 [ 28.088758] __asan_report_load4_noabort+0x14/0x20 [ 28.093653] do_raw_spin_lock+0x1e0/0x220 [ 28.097770] _raw_spin_lock_bh+0x39/0x40 [ 28.101796] ? release_sock+0x74/0x2a0 [ 28.105648] release_sock+0x74/0x2a0 [ 28.109326] ? sctp_prsctp_prune+0x97/0x6f0 [ 28.113613] ? __release_sock+0x360/0x360 [ 28.117729] ? trace_hardirqs_on+0xd/0x10 [ 28.121846] sctp_sendmsg+0x2c61/0x3360 [ 28.125792] ? put_pi_state+0x3c0/0x560 [ 28.129736] ? sctp_id2assoc+0x390/0x390 [ 28.133765] ? avc_has_perm+0x43e/0x680 [ 28.137713] ? avc_has_perm_noaudit+0x520/0x520 [ 28.142347] ? __fget+0x35c/0x570 [ 28.145768] ? iterate_fd+0x3f0/0x3f0 [ 28.149538] ? find_held_lock+0x35/0x1d0 [ 28.153569] ? sock_has_perm+0x2a4/0x420 [ 28.157604] ? lock_release+0x962/0xa40 [ 28.161544] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.167400] ? __check_object_size+0x25d/0x4f0 [ 28.171967] inet_sendmsg+0x11f/0x5e0 [ 28.175739] ? inet_sendmsg+0x11f/0x5e0 [ 28.179678] ? __might_sleep+0x95/0x190 [ 28.183616] ? inet_recvmsg+0x5f0/0x5f0 [ 28.187565] ? selinux_socket_sendmsg+0x36/0x40 [ 28.192206] ? security_socket_sendmsg+0x89/0xb0 [ 28.196926] ? inet_recvmsg+0x5f0/0x5f0 [ 28.200866] sock_sendmsg+0xca/0x110 [ 28.204545] SYSC_sendto+0x361/0x5c0 [ 28.208494] ? SYSC_connect+0x4a0/0x4a0 [ 28.212443] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 28.217772] ? __do_page_fault+0x3d6/0xc90 [ 28.221975] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 28.227232] ? SyS_futex+0x269/0x390 [ 28.230911] ? SyS_setsockopt+0x215/0x360 [ 28.235027] ? do_futex+0x22a0/0x22a0 [ 28.238795] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 28.243606] SyS_sendto+0x40/0x50 [ 28.247028] entry_SYSCALL_64_fastpath+0x23/0x9a [ 28.251748] RIP: 0033:0x4457e9 [ 28.254905] RSP: 002b:00007fae0ca00da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 28.262578] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 28.269813] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 28.277057] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 28.284294] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 28.291529] R13: 00007fff4e05d57f R14: 00007fae0ca019c0 R15: 0000000000000001 [ 28.298801] Dumping ftrace buffer: [ 28.302304] (ftrace buffer empty) [ 28.305980] Kernel Offset: disabled [ 28.309580] Rebooting in 86400 seconds..