[....] Starting enhanced syslogd: rsyslogd[ 13.584727] audit: type=1400 audit(1515910522.600:5): avc: denied { syslog } for pid=3512 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.485785] audit: type=1400 audit(1515910529.501:6): avc: denied { map } for pid=3652 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.15.243' (ECDSA) to the list of known hosts. executing program [ 26.781764] audit: type=1400 audit(1515910535.797:7): avc: denied { map } for pid=3667 comm="syzkaller630339" path="/root/syzkaller630339589" 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 [ 26.950559] [ 26.952226] ========================= [ 26.955992] WARNING: held lock freed! [ 26.959759] 4.15.0-rc7-mm1+ #56 Not tainted [ 26.964055] ------------------------- [ 26.967831] syzkaller630339/3671 is freeing memory 0000000069559c73-00000000eb6a077c, with a lock still held there! [ 26.978368] (sk_lock-AF_INET6){+.+.}, at: [<000000003e34c458>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 26.987278] 1 lock held by syzkaller630339/3671: [ 26.991998] #0: (sk_lock-AF_INET6){+.+.}, at: [<000000003e34c458>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 27.001335] [ 27.001335] stack backtrace: [ 27.005802] CPU: 0 PID: 3671 Comm: syzkaller630339 Not tainted 4.15.0-rc7-mm1+ #56 [ 27.013478] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.022804] Call Trace: [ 27.025366] dump_stack+0x194/0x257 [ 27.028961] ? arch_local_irq_restore+0x53/0x53 [ 27.033607] debug_check_no_locks_freed+0x32f/0x3c0 [ 27.038599] kmem_cache_free+0x68/0x2b0 [ 27.042545] __sk_destruct+0x622/0x910 [ 27.046399] ? kfree+0xd9/0x260 [ 27.049648] ? sock_rfree+0x160/0x160 [ 27.053416] ? sock_sendmsg+0xca/0x110 [ 27.057271] ? SyS_sendto+0x40/0x50 [ 27.060869] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.065767] ? debug_check_no_obj_freed+0x611/0xf1f [ 27.070753] ? check_noncircular+0x20/0x20 [ 27.074957] ? print_irqtrace_events+0x270/0x270 [ 27.079686] ? __local_bh_enable_ip+0x121/0x230 [ 27.084333] ? sctp_put_port+0x495/0x640 [ 27.088365] ? sctp_poll+0xc00/0xc00 [ 27.092049] ? refcount_sub_and_test+0x115/0x1b0 [ 27.096774] ? refcount_inc+0x50/0x50 [ 27.100543] ? refcount_inc+0x50/0x50 [ 27.104312] sk_destruct+0x47/0x80 [ 27.107822] __sk_free+0xf1/0x2b0 [ 27.111246] sk_free+0x2a/0x40 [ 27.114408] sctp_association_put+0x14c/0x2f0 [ 27.118870] ? sctp_association_hold+0x20/0x20 [ 27.123420] ? lock_sock_nested+0x91/0x110 [ 27.127623] ? trace_hardirqs_on+0xd/0x10 [ 27.131738] ? __local_bh_enable_ip+0x121/0x230 [ 27.136380] sctp_wait_for_sndbuf+0x673/0x8d0 [ 27.140848] ? sctp_init_sock+0x13b0/0x13b0 [ 27.145139] ? do_raw_spin_trylock+0x190/0x190 [ 27.149689] ? __local_bh_enable_ip+0x121/0x230 [ 27.154326] ? sctp_prsctp_prune+0x97/0x790 [ 27.158619] ? prepare_to_wait+0x4d0/0x4d0 [ 27.162823] ? trace_hardirqs_on+0xd/0x10 [ 27.166944] sctp_sendmsg+0x28f7/0x33f0 [ 27.170898] ? sctp_id2assoc+0x390/0x390 [ 27.174930] ? avc_has_perm+0x43e/0x680 [ 27.178875] ? avc_has_perm_noaudit+0x520/0x520 [ 27.183515] ? __fget+0x35c/0x570 [ 27.186942] ? iterate_fd+0x3f0/0x3f0 [ 27.190715] ? find_held_lock+0x35/0x1d0 [ 27.194750] ? sock_has_perm+0x2a4/0x420 [ 27.198783] ? lock_release+0x9a2/0xa40 [ 27.202726] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.208583] ? __check_object_size+0x8b/0x530 [ 27.213052] inet_sendmsg+0x11f/0x5e0 [ 27.216819] ? inet_sendmsg+0x11f/0x5e0 [ 27.220760] ? __might_sleep+0x95/0x190 [ 27.224703] ? inet_create+0xf50/0xf50 [ 27.228561] ? selinux_socket_sendmsg+0x36/0x40 [ 27.233199] ? security_socket_sendmsg+0x89/0xb0 [ 27.237923] ? inet_create+0xf50/0xf50 [ 27.241779] sock_sendmsg+0xca/0x110 [ 27.245462] SYSC_sendto+0x361/0x5c0 [ 27.249146] ? SYSC_connect+0x4a0/0x4a0 [ 27.253090] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 27.258423] ? __do_page_fault+0x3d6/0xc90 [ 27.262630] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 27.267890] ? SyS_futex+0x269/0x390 [ 27.271572] ? SyS_setsockopt+0x215/0x360 [ 27.275688] ? do_futex+0x22a0/0x22a0 [ 27.279464] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 27.284289] SyS_sendto+0x40/0x50 [ 27.287725] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.292450] RIP: 0033:0x4457e9 [ 27.295620] RSP: 002b:00007f058988fda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 27.303296] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 27.310534] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 27.317775] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 27.325020] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 27.332257] R13: 00007ffefa77150f R14: 00007f05898909c0 R15: 0000000000000001 [ 27.339633] ================================================================== [ 27.346993] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 27.353652] Read of size 4 at addr ffff8801d950208c by task syzkaller630339/3671 [ 27.361166] [ 27.362773] CPU: 0 PID: 3671 Comm: syzkaller630339 Not tainted 4.15.0-rc7-mm1+ #56 [ 27.370465] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.379809] Call Trace: [ 27.382374] dump_stack+0x194/0x257 [ 27.385984] ? arch_local_irq_restore+0x53/0x53 [ 27.390656] ? show_regs_print_info+0x18/0x18 [ 27.395139] ? lock_acquire+0x1d5/0x580 executing program [ 27.399083] ? trace_hardirqs_on+0xd/0x10 [ 27.403197] ? do_raw_spin_lock+0x1e0/0x220 [ 27.407489] print_address_description+0x73/0x250 [ 27.412300] ? do_raw_spin_lock+0x1e0/0x220 [ 27.416598] kasan_report+0x23b/0x360 [ 27.420370] __asan_report_load4_noabort+0x14/0x20 [ 27.425277] do_raw_spin_lock+0x1e0/0x220 [ 27.429410] _raw_spin_lock_bh+0x39/0x40 [ 27.433445] ? release_sock+0x74/0x2a0 [ 27.437301] release_sock+0x74/0x2a0 [ 27.440984] ? sctp_prsctp_prune+0x97/0x790 [ 27.445289] ? __release_sock+0x360/0x360 [ 27.449409] ? trace_hardirqs_on+0xd/0x10 [ 27.453533] sctp_sendmsg+0x2993/0x33f0 [ 27.457485] ? sctp_id2assoc+0x390/0x390 [ 27.461519] ? avc_has_perm+0x43e/0x680 [ 27.465465] ? avc_has_perm_noaudit+0x520/0x520 [ 27.470116] ? __fget+0x35c/0x570 [ 27.473550] ? iterate_fd+0x3f0/0x3f0 [ 27.477331] ? find_held_lock+0x35/0x1d0 [ 27.481366] ? sock_has_perm+0x2a4/0x420 [ 27.485398] ? lock_release+0x9a2/0xa40 [ 27.489341] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.495196] ? __check_object_size+0x8b/0x530 [ 27.499663] inet_sendmsg+0x11f/0x5e0 [ 27.503432] ? inet_sendmsg+0x11f/0x5e0 [ 27.507376] ? __might_sleep+0x95/0x190 [ 27.511321] ? inet_create+0xf50/0xf50 [ 27.515180] ? selinux_socket_sendmsg+0x36/0x40 [ 27.519818] ? security_socket_sendmsg+0x89/0xb0 [ 27.524545] ? inet_create+0xf50/0xf50 [ 27.528405] sock_sendmsg+0xca/0x110 [ 27.532088] SYSC_sendto+0x361/0x5c0 [ 27.535783] ? SYSC_connect+0x4a0/0x4a0 [ 27.540354] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 27.545706] ? __do_page_fault+0x3d6/0xc90 [ 27.549913] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 27.555174] ? SyS_futex+0x269/0x390 [ 27.558859] ? SyS_setsockopt+0x215/0x360 [ 27.562979] ? do_futex+0x22a0/0x22a0 [ 27.566769] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 27.571584] SyS_sendto+0x40/0x50 [ 27.575016] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.579754] RIP: 0033:0x4457e9 [ 27.582913] RSP: 002b:00007f058988fda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 27.590590] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 27.597828] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 27.605067] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 27.612305] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 27.619544] R13: 00007ffefa77150f R14: 00007f05898909c0 R15: 0000000000000001 [ 27.626792] [ 27.628391] Allocated by task 3676: [ 27.631992] save_stack+0x43/0xd0 [ 27.635416] kasan_kmalloc+0xad/0xe0 [ 27.639096] kasan_slab_alloc+0x12/0x20 [ 27.643038] kmem_cache_alloc+0x12e/0x760 [ 27.647153] sk_prot_alloc+0x65/0x2a0 [ 27.650921] sk_alloc+0x105/0x1440 [ 27.654432] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 27.659246] sctp_accept+0x5c4/0x970 [ 27.662927] inet_accept+0x12c/0x930 [ 27.666609] SYSC_accept4+0x38d/0x870 [ 27.670376] SyS_accept+0x26/0x30 [ 27.673799] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.678519] [ 27.680114] Freed by task 3671: [ 27.683363] save_stack+0x43/0xd0 [ 27.686784] __kasan_slab_free+0x11a/0x170 [ 27.690988] kasan_slab_free+0xe/0x10 [ 27.694758] kmem_cache_free+0x86/0x2b0 [ 27.698699] __sk_destruct+0x622/0x910 [ 27.702551] sk_destruct+0x47/0x80 [ 27.706056] __sk_free+0xf1/0x2b0 [ 27.709476] sk_free+0x2a/0x40 [ 27.712641] sctp_association_put+0x14c/0x2f0 [ 27.717103] sctp_wait_for_sndbuf+0x673/0x8d0 [ 27.721566] sctp_sendmsg+0x28f7/0x33f0 [ 27.725508] inet_sendmsg+0x11f/0x5e0 [ 27.729273] sock_sendmsg+0xca/0x110 [ 27.732955] SYSC_sendto+0x361/0x5c0 [ 27.736636] SyS_sendto+0x40/0x50 [ 27.740059] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.744781] [ 27.746399] The buggy address belongs to the object at ffff8801d9502000 [ 27.746399] which belongs to the cache SCTPv6 of size 1888 [ 27.758675] The buggy address is located 140 bytes inside of [ 27.758675] 1888-byte region [ffff8801d9502000, ffff8801d9502760) [ 27.770602] The buggy address belongs to the page: [ 27.775500] page:ffffea0007654080 count:1 mapcount:0 mapping:ffff8801d9502000 index:0x0 [ 27.783621] flags: 0x2fffc0000000100(slab) [ 27.787835] raw: 02fffc0000000100 ffff8801d9502000 0000000000000000 0000000100000002 [ 27.795684] raw: ffffea00074bea60 ffffea0007655d60 ffff8801d2f9f500 0000000000000000 [ 27.803529] page dumped because: kasan: bad access detected [ 27.809203] [ 27.810798] Memory state around the buggy address: [ 27.815694] ffff8801d9501f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.823021] ffff8801d9502000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.830368] >ffff8801d9502080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.837693] ^ [ 27.841286] ffff8801d9502100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.848613] ffff8801d9502180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.855935] ================================================================== [ 27.863304] Kernel panic - not syncing: panic_on_warn set ... [ 27.863304] [ 27.870660] CPU: 0 PID: 3671 Comm: syzkaller630339 Tainted: G B 4.15.0-rc7-mm1+ #56 [ 27.879681] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.889010] Call Trace: [ 27.891592] dump_stack+0x194/0x257 [ 27.895211] ? arch_local_irq_restore+0x53/0x53 [ 27.899851] ? trace_hardirqs_on_thunk+0x1a/0x1c executing program [ 27.904574] ? vsnprintf+0x1ed/0x1900 [ 27.908342] ? do_raw_spin_lock+0x140/0x220 [ 27.912640] panic+0x1e4/0x41c [ 27.915821] ? refcount_error_report+0x214/0x214 [ 27.920545] ? add_taint+0x1c/0x50 [ 27.924054] ? add_taint+0x1c/0x50 [ 27.927563] ? do_raw_spin_lock+0x1e0/0x220 [ 27.931854] kasan_end_report+0x50/0x50 [ 27.935798] kasan_report+0x148/0x360 [ 27.939573] __asan_report_load4_noabort+0x14/0x20 [ 27.944471] do_raw_spin_lock+0x1e0/0x220 [ 27.948599] _raw_spin_lock_bh+0x39/0x40 [ 27.952634] ? release_sock+0x74/0x2a0 [ 27.956491] release_sock+0x74/0x2a0 [ 27.960175] ? sctp_prsctp_prune+0x97/0x790 [ 27.964468] ? __release_sock+0x360/0x360 [ 27.968588] ? trace_hardirqs_on+0xd/0x10 [ 27.972711] sctp_sendmsg+0x2993/0x33f0 [ 27.976661] ? sctp_id2assoc+0x390/0x390 [ 27.980694] ? avc_has_perm+0x43e/0x680 [ 27.984639] ? avc_has_perm_noaudit+0x520/0x520 [ 27.989278] ? __fget+0x35c/0x570 [ 27.992704] ? iterate_fd+0x3f0/0x3f0 [ 27.996478] ? find_held_lock+0x35/0x1d0 [ 28.000513] ? sock_has_perm+0x2a4/0x420 [ 28.004546] ? lock_release+0x9a2/0xa40 [ 28.008489] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.014342] ? __check_object_size+0x8b/0x530 [ 28.018811] inet_sendmsg+0x11f/0x5e0 [ 28.022581] ? inet_sendmsg+0x11f/0x5e0 [ 28.026527] ? __might_sleep+0x95/0x190 [ 28.030472] ? inet_create+0xf50/0xf50 [ 28.034329] ? selinux_socket_sendmsg+0x36/0x40 [ 28.038969] ? security_socket_sendmsg+0x89/0xb0 [ 28.043693] ? inet_create+0xf50/0xf50 [ 28.047552] sock_sendmsg+0xca/0x110 [ 28.051237] SYSC_sendto+0x361/0x5c0 [ 28.054920] ? SYSC_connect+0x4a0/0x4a0 [ 28.058866] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 28.064211] ? __do_page_fault+0x3d6/0xc90 [ 28.068417] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 28.073681] ? SyS_futex+0x269/0x390 [ 28.077364] ? SyS_setsockopt+0x215/0x360 [ 28.081485] ? do_futex+0x22a0/0x22a0 [ 28.085258] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 28.090073] SyS_sendto+0x40/0x50 [ 28.093500] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 28.098225] RIP: 0033:0x4457e9 [ 28.101383] RSP: 002b:00007f058988fda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 28.109060] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 28.116300] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 28.123547] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 28.130785] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 28.138024] R13: 00007ffefa77150f R14: 00007f05898909c0 R15: 0000000000000001 [ 28.145702] Dumping ftrace buffer: [ 28.149217] (ftrace buffer empty) [ 28.152898] Kernel Offset: disabled [ 28.156494] Rebooting in 86400 seconds..