[....] Starting enhanced syslogd: rsyslogd[ 12.252872] audit: type=1400 audit(1515633532.483:5): avc: denied { syslog } for pid=3358 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: [ 18.916146] audit: type=1400 audit(1515633539.146: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.15.216' (ECDSA) to the list of known hosts. executing program [ 25.090191] audit: type=1400 audit(1515633545.321:7): avc: denied { map } for pid=3511 comm="syzkaller000194" path="/root/syzkaller000194752" 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.270822] [ 25.272461] ========================= [ 25.276227] WARNING: held lock freed! [ 25.279990] 4.15.0-rc7-next-20180110+ #93 Not tainted [ 25.285141] ------------------------- [ 25.288908] syzkaller000194/3515 is freeing memory 0000000039a11f18-0000000004b643de, with a lock still held there! [ 25.299443] (sk_lock-AF_INET6){+.+.}, at: [<00000000c4eba0dc>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 25.308346] 1 lock held by syzkaller000194/3515: [ 25.313062] #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000c4eba0dc>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 25.322389] [ 25.322389] stack backtrace: [ 25.326851] CPU: 1 PID: 3515 Comm: syzkaller000194 Not tainted 4.15.0-rc7-next-20180110+ #93 [ 25.335388] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.344705] Call Trace: [ 25.347260] dump_stack+0x194/0x257 [ 25.350853] ? arch_local_irq_restore+0x53/0x53 [ 25.355493] debug_check_no_locks_freed+0x32f/0x3c0 [ 25.360478] kmem_cache_free+0x68/0x2b0 [ 25.364422] __sk_destruct+0x622/0x910 [ 25.368271] ? kfree+0xd9/0x260 [ 25.371518] ? sock_rfree+0x160/0x160 [ 25.375283] ? sock_sendmsg+0xca/0x110 [ 25.379134] ? SyS_sendto+0x40/0x50 [ 25.382726] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.387626] ? debug_check_no_obj_freed+0x611/0xf1f [ 25.392610] ? check_noncircular+0x20/0x20 [ 25.396815] ? print_irqtrace_events+0x270/0x270 [ 25.401537] ? __local_bh_enable_ip+0x121/0x230 [ 25.406616] ? sctp_put_port+0x495/0x640 [ 25.410643] ? sctp_poll+0xc00/0xc00 [ 25.414328] ? refcount_sub_and_test+0x115/0x1b0 [ 25.419046] ? refcount_inc+0x50/0x50 [ 25.422810] ? refcount_inc+0x50/0x50 [ 25.426576] sk_destruct+0x47/0x80 [ 25.430080] __sk_free+0xf1/0x2b0 [ 25.433496] sk_free+0x2a/0x40 [ 25.436653] sctp_association_put+0x14c/0x2f0 [ 25.441112] ? sctp_association_hold+0x20/0x20 [ 25.445655] ? lock_sock_nested+0x91/0x110 [ 25.449857] ? trace_hardirqs_on+0xd/0x10 [ 25.453971] ? __local_bh_enable_ip+0x121/0x230 [ 25.458605] sctp_wait_for_sndbuf+0x673/0x8d0 [ 25.463072] ? sctp_init_sock+0x13b0/0x13b0 [ 25.467358] ? do_raw_spin_trylock+0x190/0x190 [ 25.471902] ? __local_bh_enable_ip+0x121/0x230 [ 25.476536] ? sctp_prsctp_prune+0x97/0x790 [ 25.480824] ? prepare_to_wait+0x4d0/0x4d0 [ 25.485022] ? trace_hardirqs_on+0xd/0x10 [ 25.489140] sctp_sendmsg+0x28f7/0x33f0 [ 25.493091] ? sctp_id2assoc+0x390/0x390 [ 25.497120] ? avc_has_perm+0x43e/0x680 [ 25.501060] ? avc_has_perm_noaudit+0x520/0x520 [ 25.505695] ? __fget+0x35c/0x570 [ 25.509115] ? iterate_fd+0x3f0/0x3f0 [ 25.512882] ? find_held_lock+0x35/0x1d0 [ 25.516911] ? sock_has_perm+0x2a4/0x420 [ 25.520939] ? lock_release+0x982/0xa40 [ 25.524877] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.530727] ? __check_object_size+0x8b/0x530 [ 25.535190] inet_sendmsg+0x11f/0x5e0 [ 25.538952] ? inet_sendmsg+0x11f/0x5e0 [ 25.542891] ? __might_sleep+0x95/0x190 [ 25.546828] ? inet_create+0xf50/0xf50 [ 25.550680] ? selinux_socket_sendmsg+0x36/0x40 [ 25.555314] ? security_socket_sendmsg+0x89/0xb0 [ 25.560031] ? inet_create+0xf50/0xf50 [ 25.563885] sock_sendmsg+0xca/0x110 [ 25.567564] SYSC_sendto+0x361/0x5c0 [ 25.571247] ? SYSC_connect+0x4a0/0x4a0 [ 25.575190] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 25.580520] ? __do_page_fault+0x3d6/0xc90 [ 25.584727] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 25.589980] ? SyS_futex+0x269/0x390 [ 25.593659] ? SyS_setsockopt+0x215/0x360 [ 25.597771] ? do_futex+0x22a0/0x22a0 [ 25.601549] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 25.606359] SyS_sendto+0x40/0x50 [ 25.609779] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.614499] RIP: 0033:0x4457e9 [ 25.617652] RSP: 002b:00007fdbb694ada8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 25.625323] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 25.632557] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 25.639792] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 25.647025] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 25.654259] R13: 00007ffc0cfae84f R14: 00007fdbb694b9c0 R15: 0000000000000001 [ 25.661579] ================================================================== [ 25.668911] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 25.675540] Read of size 4 at addr ffff8801c8b9f08c by task syzkaller000194/3515 [ 25.683036] [ 25.684634] CPU: 1 PID: 3515 Comm: syzkaller000194 Not tainted 4.15.0-rc7-next-20180110+ #93 [ 25.693172] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.702492] Call Trace: [ 25.705049] dump_stack+0x194/0x257 [ 25.708642] ? arch_local_irq_restore+0x53/0x53 [ 25.713274] ? show_regs_print_info+0x18/0x18 [ 25.717730] ? lock_acquire+0x1d5/0x580 executing program [ 25.721670] ? trace_hardirqs_on+0xd/0x10 [ 25.725782] ? do_raw_spin_lock+0x1e0/0x220 [ 25.730072] print_address_description+0x73/0x250 [ 25.734882] ? do_raw_spin_lock+0x1e0/0x220 [ 25.739181] kasan_report+0x23b/0x360 [ 25.742948] __asan_report_load4_noabort+0x14/0x20 [ 25.747839] do_raw_spin_lock+0x1e0/0x220 [ 25.751954] _raw_spin_lock_bh+0x39/0x40 [ 25.755981] ? release_sock+0x74/0x2a0 [ 25.759837] release_sock+0x74/0x2a0 [ 25.763527] ? sctp_prsctp_prune+0x97/0x790 [ 25.767819] ? __release_sock+0x360/0x360 [ 25.771941] ? trace_hardirqs_on+0xd/0x10 [ 25.776055] sctp_sendmsg+0x2993/0x33f0 [ 25.780011] ? sctp_id2assoc+0x390/0x390 [ 25.784055] ? avc_has_perm+0x43e/0x680 [ 25.787997] ? avc_has_perm_noaudit+0x520/0x520 [ 25.792632] ? __fget+0x35c/0x570 [ 25.796054] ? iterate_fd+0x3f0/0x3f0 [ 25.799829] ? find_held_lock+0x35/0x1d0 [ 25.803858] ? sock_has_perm+0x2a4/0x420 [ 25.807883] ? lock_release+0x982/0xa40 [ 25.811822] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.817678] ? __check_object_size+0x8b/0x530 [ 25.822144] inet_sendmsg+0x11f/0x5e0 [ 25.825907] ? inet_sendmsg+0x11f/0x5e0 [ 25.829844] ? __might_sleep+0x95/0x190 [ 25.833783] ? inet_create+0xf50/0xf50 [ 25.837637] ? selinux_socket_sendmsg+0x36/0x40 [ 25.842272] ? security_socket_sendmsg+0x89/0xb0 [ 25.847007] ? inet_create+0xf50/0xf50 [ 25.850863] sock_sendmsg+0xca/0x110 [ 25.854545] SYSC_sendto+0x361/0x5c0 [ 25.858227] ? SYSC_connect+0x4a0/0x4a0 [ 25.862166] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 25.867498] ? __do_page_fault+0x3d6/0xc90 [ 25.871702] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 25.876955] ? SyS_futex+0x269/0x390 [ 25.880633] ? SyS_setsockopt+0x215/0x360 [ 25.884746] ? do_futex+0x22a0/0x22a0 [ 25.888513] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 25.893324] SyS_sendto+0x40/0x50 [ 25.896743] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.901464] RIP: 0033:0x4457e9 [ 25.904621] RSP: 002b:00007fdbb694ada8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 25.912293] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 25.919526] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 25.926761] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 25.933997] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 25.941233] R13: 00007ffc0cfae84f R14: 00007fdbb694b9c0 R15: 0000000000000001 [ 25.948478] [ 25.950076] Allocated by task 3520: [ 25.953670] save_stack+0x43/0xd0 [ 25.957091] kasan_kmalloc+0xad/0xe0 [ 25.960777] kasan_slab_alloc+0x12/0x20 [ 25.964714] kmem_cache_alloc+0x12e/0x760 [ 25.968827] sk_prot_alloc+0x65/0x2a0 [ 25.972589] sk_alloc+0x105/0x1440 [ 25.976094] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 25.980918] sctp_accept+0x5c4/0x970 [ 25.984596] inet_accept+0x12c/0x930 [ 25.988278] SYSC_accept4+0x38d/0x870 [ 25.992047] SyS_accept+0x26/0x30 [ 25.995474] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.000201] [ 26.001796] Freed by task 3515: [ 26.005044] save_stack+0x43/0xd0 [ 26.008465] __kasan_slab_free+0x11a/0x170 [ 26.012665] kasan_slab_free+0xe/0x10 [ 26.016434] kmem_cache_free+0x86/0x2b0 [ 26.020374] __sk_destruct+0x622/0x910 [ 26.024244] sk_destruct+0x47/0x80 [ 26.027749] __sk_free+0xf1/0x2b0 [ 26.031171] sk_free+0x2a/0x40 [ 26.034328] sctp_association_put+0x14c/0x2f0 [ 26.038790] sctp_wait_for_sndbuf+0x673/0x8d0 [ 26.043250] sctp_sendmsg+0x28f7/0x33f0 [ 26.047190] inet_sendmsg+0x11f/0x5e0 [ 26.050956] sock_sendmsg+0xca/0x110 [ 26.054633] SYSC_sendto+0x361/0x5c0 [ 26.058310] SyS_sendto+0x40/0x50 [ 26.061730] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.066449] [ 26.068055] The buggy address belongs to the object at ffff8801c8b9f000 [ 26.068055] which belongs to the cache SCTPv6 of size 1888 [ 26.080328] The buggy address is located 140 bytes inside of [ 26.080328] 1888-byte region [ffff8801c8b9f000, ffff8801c8b9f760) [ 26.092250] The buggy address belongs to the page: [ 26.097143] page:ffffea000722e7c0 count:1 mapcount:0 mapping:ffff8801c8b9f000 index:0x0 [ 26.105256] flags: 0x2fffc0000000100(slab) [ 26.109457] raw: 02fffc0000000100 ffff8801c8b9f000 0000000000000000 0000000100000002 [ 26.117301] raw: ffffea00074b5da0 ffffea0006fa4f20 ffff8801d2d75e40 0000000000000000 [ 26.125143] page dumped because: kasan: bad access detected [ 26.130815] [ 26.132406] Memory state around the buggy address: [ 26.137298] ffff8801c8b9ef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.144620] ffff8801c8b9f000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.151943] >ffff8801c8b9f080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.159265] ^ [ 26.162856] ffff8801c8b9f100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.170178] ffff8801c8b9f180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.177501] ================================================================== [ 26.184863] Kernel panic - not syncing: panic_on_warn set ... [ 26.184863] [ 26.192192] CPU: 1 PID: 3515 Comm: syzkaller000194 Tainted: G B 4.15.0-rc7-next-20180110+ #93 [ 26.202032] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.211352] Call Trace: [ 26.213906] dump_stack+0x194/0x257 [ 26.217503] ? arch_local_irq_restore+0x53/0x53 executing program [ 26.222140] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.226864] ? vsnprintf+0x1ed/0x1900 [ 26.230632] ? do_raw_spin_lock+0x120/0x220 [ 26.234919] panic+0x1e4/0x41c [ 26.238078] ? refcount_error_report+0x214/0x214 [ 26.242806] ? add_taint+0x1c/0x50 [ 26.246311] ? add_taint+0x1c/0x50 [ 26.249816] ? do_raw_spin_lock+0x1e0/0x220 [ 26.254106] kasan_end_report+0x50/0x50 [ 26.258045] kasan_report+0x148/0x360 [ 26.261810] __asan_report_load4_noabort+0x14/0x20 [ 26.266706] do_raw_spin_lock+0x1e0/0x220 [ 26.270822] _raw_spin_lock_bh+0x39/0x40 [ 26.274850] ? release_sock+0x74/0x2a0 [ 26.278701] release_sock+0x74/0x2a0 [ 26.282380] ? sctp_prsctp_prune+0x97/0x790 [ 26.286668] ? __release_sock+0x360/0x360 [ 26.290789] ? trace_hardirqs_on+0xd/0x10 [ 26.294907] sctp_sendmsg+0x2993/0x33f0 [ 26.298852] ? sctp_id2assoc+0x390/0x390 [ 26.302879] ? avc_has_perm+0x43e/0x680 [ 26.306819] ? avc_has_perm_noaudit+0x520/0x520 [ 26.311454] ? __fget+0x35c/0x570 [ 26.314878] ? iterate_fd+0x3f0/0x3f0 [ 26.318649] ? find_held_lock+0x35/0x1d0 [ 26.322680] ? sock_has_perm+0x2a4/0x420 [ 26.326705] ? lock_release+0x982/0xa40 [ 26.330649] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.336516] ? __check_object_size+0x8b/0x530 [ 26.340984] inet_sendmsg+0x11f/0x5e0 [ 26.344749] ? inet_sendmsg+0x11f/0x5e0 [ 26.348686] ? __might_sleep+0x95/0x190 [ 26.352624] ? inet_create+0xf50/0xf50 [ 26.356478] ? selinux_socket_sendmsg+0x36/0x40 [ 26.361113] ? security_socket_sendmsg+0x89/0xb0 [ 26.365835] ? inet_create+0xf50/0xf50 [ 26.369693] sock_sendmsg+0xca/0x110 [ 26.373374] SYSC_sendto+0x361/0x5c0 [ 26.377054] ? SYSC_connect+0x4a0/0x4a0 [ 26.380994] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 26.386327] ? __do_page_fault+0x3d6/0xc90 [ 26.390531] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 26.395786] ? SyS_futex+0x269/0x390 [ 26.399466] ? SyS_setsockopt+0x215/0x360 [ 26.403581] ? do_futex+0x22a0/0x22a0 [ 26.407349] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.412174] SyS_sendto+0x40/0x50 [ 26.415596] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.420317] RIP: 0033:0x4457e9 [ 26.423471] RSP: 002b:00007fdbb694ada8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 26.431143] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 26.438380] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 26.445614] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 26.452853] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 26.460089] R13: 00007ffc0cfae84f R14: 00007fdbb694b9c0 R15: 0000000000000001 [ 26.467715] Dumping ftrace buffer: [ 26.471219] (ftrace buffer empty) [ 26.474897] Kernel Offset: disabled [ 26.478490] Rebooting in 86400 seconds..