[....] Starting enhanced syslogd: rsyslogd[ 12.625657] audit: type=1400 audit(1515650926.565:5): avc: denied { syslog } for pid=3356 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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: [ 18.969299] audit: type=1400 audit(1515650932.908:6): avc: denied { map } for pid=3496 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.57' (ECDSA) to the list of known hosts. executing program [ 25.158724] audit: type=1400 audit(1515650939.098:7): avc: denied { map } for pid=3510 comm="syzkaller285967" path="/root/syzkaller285967562" 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 [ 25.340205] [ 25.341836] ========================= [ 25.345597] WARNING: held lock freed! [ 25.349376] 4.15.0-rc7-next-20180110+ #93 Not tainted [ 25.354531] ------------------------- [ 25.358300] syzkaller285967/3514 is freeing memory 000000007de4f33a-00000000e4898b57, with a lock still held there! [ 25.368840] (sk_lock-AF_INET6){+.+.}, at: [<0000000070478b6b>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 25.377753] 1 lock held by syzkaller285967/3514: [ 25.382472] #0: (sk_lock-AF_INET6){+.+.}, at: [<0000000070478b6b>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 25.391806] [ 25.391806] stack backtrace: [ 25.396312] CPU: 1 PID: 3514 Comm: syzkaller285967 Not tainted 4.15.0-rc7-next-20180110+ #93 [ 25.404859] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.414179] Call Trace: [ 25.416740] dump_stack+0x194/0x257 [ 25.420335] ? arch_local_irq_restore+0x53/0x53 [ 25.424979] debug_check_no_locks_freed+0x32f/0x3c0 [ 25.429985] kmem_cache_free+0x68/0x2b0 [ 25.433929] __sk_destruct+0x622/0x910 [ 25.437780] ? kfree+0xd9/0x260 [ 25.441034] ? sock_rfree+0x160/0x160 [ 25.444801] ? sock_sendmsg+0xca/0x110 [ 25.448655] ? SyS_sendto+0x40/0x50 [ 25.452258] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.457155] ? debug_check_no_obj_freed+0x611/0xf1f [ 25.462143] ? check_noncircular+0x20/0x20 [ 25.466353] ? print_irqtrace_events+0x270/0x270 [ 25.471090] ? __local_bh_enable_ip+0x121/0x230 [ 25.475726] ? sctp_put_port+0x495/0x640 [ 25.479761] ? sctp_poll+0xc00/0xc00 [ 25.483447] ? refcount_sub_and_test+0x115/0x1b0 [ 25.488170] ? refcount_inc+0x50/0x50 [ 25.491937] ? refcount_inc+0x50/0x50 [ 25.495706] sk_destruct+0x47/0x80 [ 25.499212] __sk_free+0xf1/0x2b0 [ 25.502636] sk_free+0x2a/0x40 [ 25.505798] sctp_association_put+0x14c/0x2f0 [ 25.510267] ? sctp_association_hold+0x20/0x20 [ 25.514813] ? lock_sock_nested+0x91/0x110 [ 25.519015] ? trace_hardirqs_on+0xd/0x10 [ 25.523142] ? __local_bh_enable_ip+0x121/0x230 [ 25.527781] sctp_wait_for_sndbuf+0x673/0x8d0 [ 25.532246] ? sctp_init_sock+0x13b0/0x13b0 [ 25.536533] ? do_raw_spin_trylock+0x190/0x190 [ 25.541079] ? __local_bh_enable_ip+0x121/0x230 [ 25.545712] ? sctp_prsctp_prune+0x97/0x790 [ 25.550002] ? prepare_to_wait+0x4d0/0x4d0 [ 25.554208] ? trace_hardirqs_on+0xd/0x10 [ 25.558329] sctp_sendmsg+0x28f7/0x33f0 [ 25.562287] ? sctp_id2assoc+0x390/0x390 [ 25.566318] ? avc_has_perm+0x43e/0x680 [ 25.570282] ? avc_has_perm_noaudit+0x520/0x520 [ 25.574919] ? __fget+0x35c/0x570 [ 25.578343] ? iterate_fd+0x3f0/0x3f0 [ 25.582131] ? find_held_lock+0x35/0x1d0 [ 25.586164] ? sock_has_perm+0x2a4/0x420 [ 25.590193] ? lock_release+0x982/0xa40 [ 25.594133] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.600006] ? __check_object_size+0x8b/0x530 [ 25.604472] inet_sendmsg+0x11f/0x5e0 [ 25.608240] ? inet_sendmsg+0x11f/0x5e0 [ 25.612178] ? __might_sleep+0x95/0x190 [ 25.616119] ? inet_create+0xf50/0xf50 [ 25.619974] ? selinux_socket_sendmsg+0x36/0x40 [ 25.624608] ? security_socket_sendmsg+0x89/0xb0 [ 25.629330] ? inet_create+0xf50/0xf50 [ 25.633184] sock_sendmsg+0xca/0x110 [ 25.636967] SYSC_sendto+0x361/0x5c0 [ 25.640648] ? SYSC_connect+0x4a0/0x4a0 [ 25.644591] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 25.649931] ? __do_page_fault+0x3d6/0xc90 [ 25.654137] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 25.659395] ? SyS_futex+0x269/0x390 [ 25.663083] ? SyS_setsockopt+0x215/0x360 [ 25.667213] ? do_futex+0x22a0/0x22a0 [ 25.670984] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 25.675795] SyS_sendto+0x40/0x50 [ 25.679219] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.683940] RIP: 0033:0x4457e9 [ 25.687109] RSP: 002b:00007f444e4c6da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 25.694781] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 25.702035] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 25.709283] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 25.716523] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 25.723765] R13: 00007ffcc9534f2f R14: 00007f444e4c79c0 R15: 0000000000000001 [ 25.731112] ================================================================== [ 25.738460] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 25.745093] Read of size 4 at addr ffff8801bdc5b88c by task syzkaller285967/3514 [ 25.752590] [ 25.754193] CPU: 1 PID: 3514 Comm: syzkaller285967 Not tainted 4.15.0-rc7-next-20180110+ #93 [ 25.762821] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.772143] Call Trace: [ 25.775044] dump_stack+0x194/0x257 [ 25.778638] ? arch_local_irq_restore+0x53/0x53 [ 25.783274] ? show_regs_print_info+0x18/0x18 [ 25.787736] ? lock_acquire+0x1d5/0x580 [ 25.791687] ? trace_hardirqs_on+0xd/0x10 [ 25.795801] ? do_raw_spin_lock+0x1e0/0x220 [ 25.800093] print_address_description+0x73/0x250 [ 25.804907] ? do_raw_spin_lock+0x1e0/0x220 [ 25.809198] kasan_report+0x23b/0x360 [ 25.812970] __asan_report_load4_noabort+0x14/0x20 [ 25.817866] do_raw_spin_lock+0x1e0/0x220 [ 25.821984] _raw_spin_lock_bh+0x39/0x40 [ 25.826022] ? release_sock+0x74/0x2a0 [ 25.829876] release_sock+0x74/0x2a0 [ 25.833556] ? sctp_prsctp_prune+0x97/0x790 [ 25.837843] ? __release_sock+0x360/0x360 [ 25.841957] ? trace_hardirqs_on+0xd/0x10 [ 25.846091] sctp_sendmsg+0x2993/0x33f0 [ 25.850041] ? sctp_id2assoc+0x390/0x390 [ 25.854069] ? avc_has_perm+0x43e/0x680 [ 25.858009] ? avc_has_perm_noaudit+0x520/0x520 [ 25.862646] ? __fget+0x35c/0x570 [ 25.866070] ? iterate_fd+0x3f0/0x3f0 [ 25.869849] ? find_held_lock+0x35/0x1d0 [ 25.873882] ? sock_has_perm+0x2a4/0x420 [ 25.877922] ? lock_release+0x982/0xa40 [ 25.881864] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.887718] ? __check_object_size+0x8b/0x530 [ 25.892181] inet_sendmsg+0x11f/0x5e0 [ 25.895951] ? inet_sendmsg+0x11f/0x5e0 [ 25.899891] ? __might_sleep+0x95/0x190 [ 25.903830] ? inet_create+0xf50/0xf50 [ 25.907687] ? selinux_socket_sendmsg+0x36/0x40 [ 25.912327] ? security_socket_sendmsg+0x89/0xb0 [ 25.917048] ? inet_create+0xf50/0xf50 [ 25.920903] sock_sendmsg+0xca/0x110 [ 25.924583] SYSC_sendto+0x361/0x5c0 [ 25.928266] ? SYSC_connect+0x4a0/0x4a0 [ 25.932211] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 25.937542] ? __do_page_fault+0x3d6/0xc90 [ 25.941747] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 25.947002] ? SyS_futex+0x269/0x390 [ 25.950692] ? SyS_setsockopt+0x215/0x360 [ 25.954811] ? do_futex+0x22a0/0x22a0 [ 25.958581] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 25.963399] SyS_sendto+0x40/0x50 [ 25.966821] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.971542] RIP: 0033:0x4457e9 [ 25.974714] RSP: 002b:00007f444e4c6da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 25.982399] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 25.989648] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 25.996902] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 26.004141] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 26.011383] R13: 00007ffcc9534f2f R14: 00007f444e4c79c0 R15: 0000000000000001 [ 26.018639] [ 26.020237] Allocated by task 3519: [ 26.023833] save_stack+0x43/0xd0 [ 26.027250] kasan_kmalloc+0xad/0xe0 [ 26.030929] kasan_slab_alloc+0x12/0x20 [ 26.034870] kmem_cache_alloc+0x12e/0x760 [ 26.038998] sk_prot_alloc+0x65/0x2a0 [ 26.042770] sk_alloc+0x105/0x1440 [ 26.046278] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 26.051095] sctp_accept+0x5c4/0x970 [ 26.054782] inet_accept+0x12c/0x930 [ 26.058463] SYSC_accept4+0x38d/0x870 [ 26.062236] SyS_accept+0x26/0x30 [ 26.065657] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.070376] [ 26.071974] Freed by task 3514: [ 26.075222] save_stack+0x43/0xd0 [ 26.078651] __kasan_slab_free+0x11a/0x170 [ 26.082849] kasan_slab_free+0xe/0x10 [ 26.086615] kmem_cache_free+0x86/0x2b0 [ 26.090569] __sk_destruct+0x622/0x910 [ 26.094419] sk_destruct+0x47/0x80 [ 26.097922] __sk_free+0xf1/0x2b0 [ 26.101343] sk_free+0x2a/0x40 [ 26.104504] sctp_association_put+0x14c/0x2f0 [ 26.108964] sctp_wait_for_sndbuf+0x673/0x8d0 [ 26.113423] sctp_sendmsg+0x28f7/0x33f0 [ 26.117363] inet_sendmsg+0x11f/0x5e0 [ 26.121129] sock_sendmsg+0xca/0x110 [ 26.124815] SYSC_sendto+0x361/0x5c0 [ 26.128495] SyS_sendto+0x40/0x50 [ 26.131914] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.136632] [ 26.138228] The buggy address belongs to the object at ffff8801bdc5b800 [ 26.138228] which belongs to the cache SCTPv6 of size 1888 [ 26.150507] The buggy address is located 140 bytes inside of [ 26.150507] 1888-byte region [ffff8801bdc5b800, ffff8801bdc5bf60) [ 26.162435] The buggy address belongs to the page: [ 26.167333] page:ffffea0006f716c0 count:1 mapcount:0 mapping:ffff8801bdc5b000 index:0x0 [ 26.175445] flags: 0x2fffc0000000100(slab) [ 26.179648] raw: 02fffc0000000100 ffff8801bdc5b000 0000000000000000 0000000100000002 [ 26.187496] raw: ffffea0006f8fba0 ffffea0007558960 ffff8801d2d00080 0000000000000000 [ 26.195340] page dumped because: kasan: bad access detected [ 26.201014] [ 26.202606] Memory state around the buggy address: [ 26.207501] ffff8801bdc5b780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.214830] ffff8801bdc5b800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.222159] >ffff8801bdc5b880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.229497] ^ [ 26.233112] ffff8801bdc5b900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.240440] ffff8801bdc5b980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.247764] ================================================================== [ 26.255134] Kernel panic - not syncing: panic_on_warn set ... [ 26.255134] [ 26.262472] CPU: 1 PID: 3514 Comm: syzkaller285967 Tainted: G B 4.15.0-rc7-next-20180110+ #93 [ 26.272321] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.281644] Call Trace: [ 26.284212] dump_stack+0x194/0x257 [ 26.287810] ? arch_local_irq_restore+0x53/0x53 [ 26.292451] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.297174] ? vsnprintf+0x1ed/0x1900 [ 26.300942] ? do_raw_spin_lock+0x120/0x220 [ 26.305232] panic+0x1e4/0x41c [ 26.308393] ? refcount_error_report+0x214/0x214 [ 26.313118] ? add_taint+0x1c/0x50 [ 26.316623] ? add_taint+0x1c/0x50 [ 26.320129] ? do_raw_spin_lock+0x1e0/0x220 [ 26.324419] kasan_end_report+0x50/0x50 [ 26.328361] kasan_report+0x148/0x360 [ 26.332144] __asan_report_load4_noabort+0x14/0x20 [ 26.337038] do_raw_spin_lock+0x1e0/0x220 [ 26.341157] _raw_spin_lock_bh+0x39/0x40 [ 26.345185] ? release_sock+0x74/0x2a0 [ 26.349046] release_sock+0x74/0x2a0 [ 26.352725] ? sctp_prsctp_prune+0x97/0x790 [ 26.357014] ? __release_sock+0x360/0x360 [ 26.361129] ? trace_hardirqs_on+0xd/0x10 [ 26.365245] sctp_sendmsg+0x2993/0x33f0 [ 26.369206] ? sctp_id2assoc+0x390/0x390 [ 26.373252] ? avc_has_perm+0x43e/0x680 [ 26.377195] ? avc_has_perm_noaudit+0x520/0x520 [ 26.381833] ? __fget+0x35c/0x570 [ 26.385256] ? iterate_fd+0x3f0/0x3f0 [ 26.389028] ? find_held_lock+0x35/0x1d0 [ 26.393062] ? sock_has_perm+0x2a4/0x420 [ 26.397090] ? lock_release+0x982/0xa40 [ 26.401031] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.406885] ? __check_object_size+0x8b/0x530 [ 26.411351] inet_sendmsg+0x11f/0x5e0 [ 26.415117] ? inet_sendmsg+0x11f/0x5e0 [ 26.419058] ? __might_sleep+0x95/0x190 [ 26.422998] ? inet_create+0xf50/0xf50 [ 26.426854] ? selinux_socket_sendmsg+0x36/0x40 [ 26.431488] ? security_socket_sendmsg+0x89/0xb0 [ 26.436221] ? inet_create+0xf50/0xf50 [ 26.440078] sock_sendmsg+0xca/0x110 [ 26.443763] SYSC_sendto+0x361/0x5c0 [ 26.447443] ? SYSC_connect+0x4a0/0x4a0 [ 26.451386] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 26.456717] ? __do_page_fault+0x3d6/0xc90 [ 26.460923] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 26.466180] ? SyS_futex+0x269/0x390 [ 26.469871] ? SyS_setsockopt+0x215/0x360 [ 26.473986] ? do_futex+0x22a0/0x22a0 [ 26.477756] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.482573] SyS_sendto+0x40/0x50 [ 26.486006] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.490726] RIP: 0033:0x4457e9 [ 26.493886] RSP: 002b:00007f444e4c6da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 26.501561] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 26.508797] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 26.516043] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 26.523288] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 26.530532] R13: 00007ffcc9534f2f R14: 00007f444e4c79c0 R15: 0000000000000001 [ 26.537814] Dumping ftrace buffer: [ 26.541324] (ftrace buffer empty) [ 26.545003] Kernel Offset: disabled [ 26.548606] Rebooting in 86400 seconds..