[....] Starting enhanced syslogd: rsyslogd[ 11.977147] audit: type=1400 audit(1515889402.765:5): avc: denied { syslog } for pid=3508 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.373355] audit: type=1400 audit(1515889410.162:6): avc: denied { map } for pid=3647 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.24' (ECDSA) to the list of known hosts. executing program [ 37.285204] audit: type=1400 audit(1515889428.073:7): avc: denied { map } for pid=3664 comm="syzkaller153335" path="/root/syzkaller153335096" 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 [ 37.470709] [ 37.472365] ========================= [ 37.476131] WARNING: held lock freed! [ 37.479900] 4.15.0-rc7-next-20180112+ #96 Not tainted [ 37.485053] ------------------------- [ 37.488821] syzkaller153335/3668 is freeing memory 0000000043b46dae-00000000bb0a1d1c, with a lock still held there! [ 37.499357] (sk_lock-AF_INET6){+.+.}, at: [<00000000a281df20>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 37.508259] 1 lock held by syzkaller153335/3668: [ 37.512986] #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000a281df20>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 37.522314] [ 37.522314] stack backtrace: [ 37.526777] CPU: 0 PID: 3668 Comm: syzkaller153335 Not tainted 4.15.0-rc7-next-20180112+ #96 [ 37.535314] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.544643] Call Trace: [ 37.547207] dump_stack+0x194/0x257 [ 37.550803] ? arch_local_irq_restore+0x53/0x53 [ 37.555448] debug_check_no_locks_freed+0x32f/0x3c0 [ 37.560438] kmem_cache_free+0x68/0x2b0 [ 37.564385] __sk_destruct+0x622/0x910 [ 37.568238] ? kfree+0xd9/0x260 [ 37.571485] ? sock_rfree+0x160/0x160 [ 37.575250] ? sock_sendmsg+0xca/0x110 [ 37.579101] ? SyS_sendto+0x40/0x50 [ 37.582698] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 37.587595] ? debug_check_no_obj_freed+0x611/0xf1f [ 37.592580] ? check_noncircular+0x20/0x20 [ 37.596781] ? print_irqtrace_events+0x270/0x270 [ 37.601516] ? __local_bh_enable_ip+0x121/0x230 [ 37.606154] ? sctp_put_port+0x495/0x640 [ 37.610193] ? sctp_poll+0xc00/0xc00 [ 37.613878] ? refcount_sub_and_test+0x115/0x1b0 [ 37.618603] ? refcount_inc+0x50/0x50 [ 37.622372] ? refcount_inc+0x50/0x50 [ 37.626141] sk_destruct+0x47/0x80 [ 37.629647] __sk_free+0xf1/0x2b0 [ 37.633067] sk_free+0x2a/0x40 [ 37.636229] sctp_association_put+0x14c/0x2f0 [ 37.640692] ? sctp_association_hold+0x20/0x20 [ 37.645241] ? lock_sock_nested+0x91/0x110 [ 37.649445] ? trace_hardirqs_on+0xd/0x10 [ 37.653562] ? __local_bh_enable_ip+0x121/0x230 [ 37.658200] sctp_wait_for_sndbuf+0x673/0x8d0 [ 37.662678] ? sctp_init_sock+0x13b0/0x13b0 [ 37.666968] ? do_raw_spin_trylock+0x190/0x190 [ 37.671518] ? __local_bh_enable_ip+0x121/0x230 [ 37.676150] ? sctp_prsctp_prune+0x97/0x790 [ 37.680440] ? prepare_to_wait+0x4d0/0x4d0 [ 37.684642] ? trace_hardirqs_on+0xd/0x10 [ 37.688761] sctp_sendmsg+0x28f7/0x33f0 [ 37.692721] ? sctp_id2assoc+0x390/0x390 [ 37.696760] ? avc_has_perm+0x43e/0x680 [ 37.700703] ? avc_has_perm_noaudit+0x520/0x520 [ 37.705343] ? __fget+0x35c/0x570 [ 37.708774] ? iterate_fd+0x3f0/0x3f0 [ 37.712546] ? find_held_lock+0x35/0x1d0 [ 37.716579] ? sock_has_perm+0x2a4/0x420 [ 37.720606] ? lock_release+0x972/0xa40 [ 37.724549] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 37.730402] ? __check_object_size+0x8b/0x530 [ 37.734866] inet_sendmsg+0x11f/0x5e0 [ 37.738630] ? inet_sendmsg+0x11f/0x5e0 [ 37.742569] ? __might_sleep+0x95/0x190 [ 37.746511] ? inet_create+0xf50/0xf50 [ 37.750376] ? selinux_socket_sendmsg+0x36/0x40 [ 37.755017] ? security_socket_sendmsg+0x89/0xb0 [ 37.759739] ? inet_create+0xf50/0xf50 [ 37.763598] sock_sendmsg+0xca/0x110 [ 37.767279] SYSC_sendto+0x361/0x5c0 [ 37.770960] ? SYSC_connect+0x4a0/0x4a0 [ 37.774903] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 37.780245] ? __do_page_fault+0x3d6/0xc90 [ 37.784449] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 37.789712] ? SyS_futex+0x269/0x390 [ 37.793413] ? SyS_setsockopt+0x215/0x360 [ 37.797539] ? do_futex+0x22a0/0x22a0 [ 37.801308] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 37.806119] SyS_sendto+0x40/0x50 [ 37.809543] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 37.814273] RIP: 0033:0x4457e9 [ 37.817431] RSP: 002b:00007fb6c5f2ada8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 37.825104] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 37.832340] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 37.839577] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 37.846819] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 37.854055] R13: 00007ffce7c48c4f R14: 00007fb6c5f2b9c0 R15: 0000000000000001 [ 37.861439] ================================================================== [ 37.868779] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 37.875413] Read of size 4 at addr ffff8801d9b2e08c by task syzkaller153335/3668 [ 37.882919] [ 37.884519] CPU: 0 PID: 3668 Comm: syzkaller153335 Not tainted 4.15.0-rc7-next-20180112+ #96 [ 37.893059] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.902382] Call Trace: [ 37.904949] dump_stack+0x194/0x257 [ 37.908555] ? arch_local_irq_restore+0x53/0x53 [ 37.913199] ? show_regs_print_info+0x18/0x18 [ 37.917661] ? lock_acquire+0x1d5/0x580 [ 37.921605] ? trace_hardirqs_on+0xd/0x10 [ 37.925723] ? do_raw_spin_lock+0x1e0/0x220 [ 37.930012] print_address_description+0x73/0x250 [ 37.934825] ? do_raw_spin_lock+0x1e0/0x220 [ 37.939115] kasan_report+0x23b/0x360 [ 37.942888] __asan_report_load4_noabort+0x14/0x20 [ 37.947786] do_raw_spin_lock+0x1e0/0x220 [ 37.951905] _raw_spin_lock_bh+0x39/0x40 [ 37.955935] ? release_sock+0x74/0x2a0 [ 37.959791] release_sock+0x74/0x2a0 [ 37.963482] ? sctp_prsctp_prune+0x97/0x790 [ 37.967769] ? __release_sock+0x360/0x360 [ 37.971887] ? trace_hardirqs_on+0xd/0x10 [ 37.976004] sctp_sendmsg+0x2993/0x33f0 [ 37.979951] ? sctp_id2assoc+0x390/0x390 [ 37.983980] ? avc_has_perm+0x43e/0x680 [ 37.987923] ? avc_has_perm_noaudit+0x520/0x520 [ 37.992569] ? __fget+0x35c/0x570 [ 37.995994] ? iterate_fd+0x3f0/0x3f0 [ 37.999777] ? find_held_lock+0x35/0x1d0 [ 38.003812] ? sock_has_perm+0x2a4/0x420 [ 38.007843] ? lock_release+0x972/0xa40 [ 38.011785] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.017638] ? __check_object_size+0x8b/0x530 [ 38.022114] inet_sendmsg+0x11f/0x5e0 [ 38.025881] ? inet_sendmsg+0x11f/0x5e0 [ 38.029821] ? __might_sleep+0x95/0x190 [ 38.033762] ? inet_create+0xf50/0xf50 [ 38.037620] ? selinux_socket_sendmsg+0x36/0x40 [ 38.042256] ? security_socket_sendmsg+0x89/0xb0 [ 38.046979] ? inet_create+0xf50/0xf50 [ 38.050833] sock_sendmsg+0xca/0x110 [ 38.054514] SYSC_sendto+0x361/0x5c0 [ 38.058196] ? SYSC_connect+0x4a0/0x4a0 [ 38.062148] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 38.067479] ? __do_page_fault+0x3d6/0xc90 [ 38.071682] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 38.076937] ? SyS_futex+0x269/0x390 [ 38.080615] ? SyS_setsockopt+0x215/0x360 [ 38.084741] ? do_futex+0x22a0/0x22a0 [ 38.088511] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 38.093322] SyS_sendto+0x40/0x50 [ 38.096743] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 38.101466] RIP: 0033:0x4457e9 [ 38.104626] RSP: 002b:00007fb6c5f2ada8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 38.112302] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 38.119539] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 38.126775] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 38.134011] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 38.141247] R13: 00007ffce7c48c4f R14: 00007fb6c5f2b9c0 R15: 0000000000000001 [ 38.148498] [ 38.150092] Allocated by task 3673: [ 38.153688] save_stack+0x43/0xd0 [ 38.157411] kasan_kmalloc+0xad/0xe0 [ 38.161092] kasan_slab_alloc+0x12/0x20 [ 38.165034] kmem_cache_alloc+0x12e/0x760 [ 38.169149] sk_prot_alloc+0x65/0x2a0 [ 38.172914] sk_alloc+0x105/0x1440 [ 38.176422] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 38.181234] sctp_accept+0x5c4/0x970 [ 38.184918] inet_accept+0x12c/0x930 [ 38.188596] SYSC_accept4+0x38d/0x870 [ 38.192360] SyS_accept+0x26/0x30 [ 38.195780] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 38.200499] [ 38.202096] Freed by task 3668: [ 38.205340] save_stack+0x43/0xd0 [ 38.208770] __kasan_slab_free+0x11a/0x170 [ 38.212971] kasan_slab_free+0xe/0x10 [ 38.216737] kmem_cache_free+0x86/0x2b0 [ 38.220675] __sk_destruct+0x622/0x910 [ 38.224525] sk_destruct+0x47/0x80 [ 38.228038] __sk_free+0xf1/0x2b0 [ 38.231465] sk_free+0x2a/0x40 [ 38.234629] sctp_association_put+0x14c/0x2f0 [ 38.239088] sctp_wait_for_sndbuf+0x673/0x8d0 [ 38.243548] sctp_sendmsg+0x28f7/0x33f0 [ 38.247487] inet_sendmsg+0x11f/0x5e0 [ 38.251252] sock_sendmsg+0xca/0x110 [ 38.254947] SYSC_sendto+0x361/0x5c0 [ 38.258634] SyS_sendto+0x40/0x50 [ 38.262055] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 38.266771] [ 38.268368] The buggy address belongs to the object at ffff8801d9b2e000 [ 38.268368] which belongs to the cache SCTPv6 of size 1888 [ 38.280638] The buggy address is located 140 bytes inside of [ 38.280638] 1888-byte region [ffff8801d9b2e000, ffff8801d9b2e760) [ 38.292560] The buggy address belongs to the page: [ 38.297455] page:ffffea000766cb80 count:1 mapcount:0 mapping:ffff8801d9b2e000 index:0x0 [ 38.305561] flags: 0x2fffc0000000100(slab) [ 38.309762] raw: 02fffc0000000100 ffff8801d9b2e000 0000000000000000 0000000100000002 [ 38.317607] raw: ffffea0007480020 ffffea000767f820 ffff8801d2ffe200 0000000000000000 [ 38.325450] page dumped because: kasan: bad access detected [ 38.331123] [ 38.332715] Memory state around the buggy address: [ 38.337619] ffff8801d9b2df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.344941] ffff8801d9b2e000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.352265] >ffff8801d9b2e080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.359588] ^ [ 38.363186] ffff8801d9b2e100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.370521] ffff8801d9b2e180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.377855] ================================================================== [ 38.385242] Kernel panic - not syncing: panic_on_warn set ... [ 38.385242] [ 38.392586] CPU: 0 PID: 3668 Comm: syzkaller153335 Tainted: G B 4.15.0-rc7-next-20180112+ #96 [ 38.402432] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.411755] Call Trace: [ 38.414318] dump_stack+0x194/0x257 [ 38.417917] ? arch_local_irq_restore+0x53/0x53 [ 38.422556] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 38.427280] ? vsnprintf+0x1ed/0x1900 [ 38.431051] ? do_raw_spin_lock+0x110/0x220 [ 38.435357] panic+0x1e4/0x41c [ 38.438519] ? refcount_error_report+0x214/0x214 [ 38.443243] ? add_taint+0x1c/0x50 [ 38.446749] ? add_taint+0x1c/0x50 [ 38.450255] ? do_raw_spin_lock+0x1e0/0x220 [ 38.454546] kasan_end_report+0x50/0x50 [ 38.458500] kasan_report+0x148/0x360 [ 38.462273] __asan_report_load4_noabort+0x14/0x20 [ 38.467178] do_raw_spin_lock+0x1e0/0x220 [ 38.471297] _raw_spin_lock_bh+0x39/0x40 [ 38.475326] ? release_sock+0x74/0x2a0 [ 38.479189] release_sock+0x74/0x2a0 [ 38.482878] ? sctp_prsctp_prune+0x97/0x790 [ 38.487166] ? __release_sock+0x360/0x360 [ 38.491281] ? trace_hardirqs_on+0xd/0x10 [ 38.495398] sctp_sendmsg+0x2993/0x33f0 [ 38.499344] ? sctp_id2assoc+0x390/0x390 [ 38.503374] ? avc_has_perm+0x43e/0x680 [ 38.507315] ? avc_has_perm_noaudit+0x520/0x520 [ 38.511951] ? __fget+0x35c/0x570 [ 38.515374] ? iterate_fd+0x3f0/0x3f0 [ 38.519155] ? find_held_lock+0x35/0x1d0 [ 38.523184] ? sock_has_perm+0x2a4/0x420 [ 38.527212] ? lock_release+0x972/0xa40 [ 38.531163] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.537015] ? __check_object_size+0x8b/0x530 [ 38.541479] inet_sendmsg+0x11f/0x5e0 [ 38.545244] ? inet_sendmsg+0x11f/0x5e0 [ 38.549182] ? __might_sleep+0x95/0x190 [ 38.553123] ? inet_create+0xf50/0xf50 [ 38.556987] ? selinux_socket_sendmsg+0x36/0x40 [ 38.561622] ? security_socket_sendmsg+0x89/0xb0 [ 38.566351] ? inet_create+0xf50/0xf50 [ 38.570206] sock_sendmsg+0xca/0x110 [ 38.573888] SYSC_sendto+0x361/0x5c0 [ 38.577569] ? SYSC_connect+0x4a0/0x4a0 [ 38.581520] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 38.586851] ? __do_page_fault+0x3d6/0xc90 [ 38.591057] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 38.596314] ? SyS_futex+0x269/0x390 [ 38.599992] ? SyS_setsockopt+0x215/0x360 [ 38.604106] ? do_futex+0x22a0/0x22a0 [ 38.607873] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 38.612685] SyS_sendto+0x40/0x50 [ 38.616116] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 38.620837] RIP: 0033:0x4457e9 [ 38.624002] RSP: 002b:00007fb6c5f2ada8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 38.631676] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 38.638913] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 38.646147] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 38.653383] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 38.660628] R13: 00007ffce7c48c4f R14: 00007fb6c5f2b9c0 R15: 0000000000000001 [ 38.668257] Dumping ftrace buffer: [ 38.671765] (ftrace buffer empty) [ 38.675453] Kernel Offset: disabled [ 38.679047] Rebooting in 86400 seconds..