[....] Starting enhanced syslogd: rsyslogd[ 12.695906] audit: type=1400 audit(1515890713.665:5): avc: denied { syslog } for pid=3502 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.161964] audit: type=1400 audit(1515890719.131:6): avc: denied { map } for pid=3643 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.192' (ECDSA) to the list of known hosts. executing program executing program [ 24.367983] audit: type=1400 audit(1515890725.337:7): avc: denied { map } for pid=3657 comm="syzkaller702516" path="/root/syzkaller702516207" 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 [ 24.480371] [ 24.482030] ========================= [ 24.485801] WARNING: held lock freed! [ 24.489569] 4.15.0-rc7+ #187 Not tainted [ 24.493602] ------------------------- [ 24.497379] syzkaller702516/3659 is freeing memory 000000009487fe8d-00000000d78b8602, with a lock still held there! [ 24.507932] (sk_lock-AF_INET6){+.+.}, at: [<00000000a5925542>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 24.516845] 1 lock held by syzkaller702516/3659: [ 24.521581] #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000a5925542>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 24.530920] [ 24.530920] stack backtrace: [ 24.535389] CPU: 1 PID: 3659 Comm: syzkaller702516 Not tainted 4.15.0-rc7+ #187 [ 24.542804] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.552130] Call Trace: [ 24.554692] dump_stack+0x194/0x257 [ 24.558293] ? arch_local_irq_restore+0x53/0x53 [ 24.562944] debug_check_no_locks_freed+0x32f/0x3c0 [ 24.567938] kmem_cache_free+0x68/0x2a0 [ 24.571888] __sk_destruct+0x622/0x910 [ 24.575750] ? save_stack+0x43/0xd0 [ 24.579351] ? sock_rfree+0x160/0x160 [ 24.583125] ? sctp_sendmsg+0x28f7/0x33f0 [ 24.587245] ? sock_sendmsg+0xca/0x110 [ 24.591104] ? SYSC_sendto+0x361/0x5c0 [ 24.594964] ? SyS_sendto+0x40/0x50 [ 24.598565] ? entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.603471] ? check_noncircular+0x20/0x20 [ 24.607679] ? print_irqtrace_events+0x270/0x270 [ 24.612413] ? __local_bh_enable_ip+0x121/0x230 [ 24.617059] ? sctp_put_port+0x495/0x640 [ 24.621106] ? sctp_poll+0xc00/0xc00 [ 24.624810] ? refcount_sub_and_test+0x115/0x1b0 [ 24.629539] ? refcount_inc+0x50/0x50 [ 24.633312] ? refcount_inc+0x50/0x50 [ 24.637088] sk_destruct+0x47/0x80 [ 24.640602] __sk_free+0xf1/0x2b0 [ 24.644030] sk_free+0x2a/0x40 [ 24.647195] sctp_association_put+0x14c/0x2f0 [ 24.651663] ? sctp_association_hold+0x20/0x20 [ 24.656217] ? lock_sock_nested+0x91/0x110 [ 24.660449] ? trace_hardirqs_on+0xd/0x10 [ 24.664578] ? __local_bh_enable_ip+0x121/0x230 [ 24.669227] sctp_wait_for_sndbuf+0x673/0x8d0 [ 24.673704] ? sctp_init_sock+0x13b0/0x13b0 [ 24.678010] ? do_raw_spin_trylock+0x190/0x190 [ 24.682567] ? __local_bh_enable_ip+0x121/0x230 [ 24.687207] ? sctp_prsctp_prune+0x97/0x790 [ 24.691503] ? prepare_to_wait+0x4d0/0x4d0 [ 24.695711] ? trace_hardirqs_on+0xd/0x10 [ 24.699847] sctp_sendmsg+0x28f7/0x33f0 [ 24.703807] ? sctp_id2assoc+0x390/0x390 [ 24.707843] ? avc_has_perm+0x43e/0x680 [ 24.711794] ? avc_has_perm_noaudit+0x520/0x520 [ 24.716439] ? __fget+0x35c/0x570 [ 24.719868] ? iterate_fd+0x3f0/0x3f0 [ 24.723649] ? find_held_lock+0x35/0x1d0 [ 24.727689] ? sock_has_perm+0x2a4/0x420 [ 24.731725] ? lock_release+0x9a2/0xa40 [ 24.735675] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.741532] ? __check_object_size+0x25d/0x4f0 [ 24.746090] inet_sendmsg+0x11f/0x5e0 [ 24.749864] ? inet_sendmsg+0x11f/0x5e0 [ 24.753812] ? __might_sleep+0x95/0x190 [ 24.757758] ? inet_create+0xf50/0xf50 [ 24.761622] ? selinux_socket_sendmsg+0x36/0x40 [ 24.766274] ? security_socket_sendmsg+0x89/0xb0 [ 24.771005] ? inet_create+0xf50/0xf50 [ 24.774870] sock_sendmsg+0xca/0x110 [ 24.778564] SYSC_sendto+0x361/0x5c0 [ 24.782252] ? SYSC_connect+0x4a0/0x4a0 [ 24.786196] ? up_read+0x1a/0x40 [ 24.789547] ? __do_page_fault+0x3d6/0xc90 [ 24.793769] ? __do_page_fault+0xc90/0xc90 [ 24.797980] ? SyS_futex+0x269/0x390 [ 24.801665] ? SyS_setsockopt+0x215/0x360 [ 24.805788] ? do_futex+0x22a0/0x22a0 [ 24.809565] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 24.814397] SyS_sendto+0x40/0x50 [ 24.817828] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.822556] RIP: 0033:0x4457e9 [ 24.825720] RSP: 002b:00007fdbdb3f0da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 24.833402] RAX: ffffffffffffffda RBX: 00000000006dac3c RCX: 00000000004457e9 [ 24.840654] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 24.847898] RBP: 00000000006dac38 R08: 00000000204d9000 R09: 000000000000001c [ 24.855142] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 24.862386] R13: 00007fff4a579baf R14: 00007fdbdb3f19c0 R15: 0000000000000001 [ 24.869760] ================================================================== [ 24.877114] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 24.883754] Read of size 4 at addr ffff8801bba6908c by task syzkaller702516/3659 [ 24.891256] [ 24.892860] CPU: 1 PID: 3659 Comm: syzkaller702516 Not tainted 4.15.0-rc7+ #187 [ 24.900282] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.909610] Call Trace: [ 24.912181] dump_stack+0x194/0x257 [ 24.915788] ? arch_local_irq_restore+0x53/0x53 [ 24.920440] ? show_regs_print_info+0x18/0x18 [ 24.924911] ? lock_acquire+0x1d5/0x580 [ 24.928865] ? trace_hardirqs_on+0xd/0x10 [ 24.932985] ? do_raw_spin_lock+0x1e0/0x220 [ 24.937282] print_address_description+0x73/0x250 [ 24.942100] ? do_raw_spin_lock+0x1e0/0x220 [ 24.946395] kasan_report+0x25b/0x340 [ 24.950172] __asan_report_load4_noabort+0x14/0x20 [ 24.955086] do_raw_spin_lock+0x1e0/0x220 [ 24.959211] _raw_spin_lock_bh+0x39/0x40 [ 24.963246] ? release_sock+0x74/0x2a0 [ 24.967106] release_sock+0x74/0x2a0 [ 24.970800] ? sctp_prsctp_prune+0x97/0x790 [ 24.975108] ? __release_sock+0x360/0x360 [ 24.979230] ? trace_hardirqs_on+0xd/0x10 [ 24.983356] sctp_sendmsg+0x2993/0x33f0 [ 24.987318] ? sctp_id2assoc+0x390/0x390 [ 24.991353] ? avc_has_perm+0x43e/0x680 [ 24.995304] ? avc_has_perm_noaudit+0x520/0x520 [ 24.999947] ? __fget+0x35c/0x570 [ 25.003377] ? iterate_fd+0x3f0/0x3f0 [ 25.007165] ? find_held_lock+0x35/0x1d0 [ 25.011215] ? sock_has_perm+0x2a4/0x420 [ 25.015261] ? lock_release+0x9a2/0xa40 [ 25.019208] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.025066] ? __check_object_size+0x25d/0x4f0 [ 25.029626] inet_sendmsg+0x11f/0x5e0 [ 25.033403] ? inet_sendmsg+0x11f/0x5e0 [ 25.037349] ? __might_sleep+0x95/0x190 [ 25.041299] ? inet_create+0xf50/0xf50 [ 25.045161] ? selinux_socket_sendmsg+0x36/0x40 [ 25.049804] ? security_socket_sendmsg+0x89/0xb0 [ 25.054533] ? inet_create+0xf50/0xf50 [ 25.058396] sock_sendmsg+0xca/0x110 [ 25.062867] SYSC_sendto+0x361/0x5c0 [ 25.066557] ? SYSC_connect+0x4a0/0x4a0 [ 25.070505] ? up_read+0x1a/0x40 [ 25.073847] ? __do_page_fault+0x3d6/0xc90 [ 25.078076] ? __do_page_fault+0xc90/0xc90 [ 25.082286] ? SyS_futex+0x269/0x390 [ 25.085970] ? SyS_setsockopt+0x215/0x360 [ 25.090096] ? do_futex+0x22a0/0x22a0 [ 25.093872] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 25.098691] SyS_sendto+0x40/0x50 [ 25.102130] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.106865] RIP: 0033:0x4457e9 [ 25.110029] RSP: 002b:00007fdbdb3f0da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 25.117708] RAX: ffffffffffffffda RBX: 00000000006dac3c RCX: 00000000004457e9 [ 25.124952] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 25.132193] RBP: 00000000006dac38 R08: 00000000204d9000 R09: 000000000000001c [ 25.139438] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 25.146770] R13: 00007fff4a579baf R14: 00007fdbdb3f19c0 R15: 0000000000000001 [ 25.154025] [ 25.155623] Allocated by task 3660: [ 25.159224] save_stack+0x43/0xd0 [ 25.162647] kasan_kmalloc+0xad/0xe0 [ 25.166333] kasan_slab_alloc+0x12/0x20 [ 25.170280] kmem_cache_alloc+0x12e/0x760 [ 25.174400] sk_prot_alloc+0x65/0x2a0 [ 25.178173] sk_alloc+0x105/0x1440 [ 25.181699] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 25.186515] sctp_accept+0x5c4/0x970 [ 25.190200] inet_accept+0x12c/0x930 [ 25.193886] SYSC_accept4+0x38d/0x870 [ 25.197668] SyS_accept4+0x2c/0x40 [ 25.201198] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.205933] [ 25.207532] Freed by task 3659: [ 25.210786] save_stack+0x43/0xd0 [ 25.214213] kasan_slab_free+0x71/0xc0 [ 25.218072] kmem_cache_free+0x83/0x2a0 [ 25.222019] __sk_destruct+0x622/0x910 [ 25.225878] sk_destruct+0x47/0x80 [ 25.229390] __sk_free+0xf1/0x2b0 [ 25.232814] sk_free+0x2a/0x40 [ 25.235982] sctp_association_put+0x14c/0x2f0 [ 25.240452] sctp_wait_for_sndbuf+0x673/0x8d0 [ 25.244928] sctp_sendmsg+0x28f7/0x33f0 [ 25.248886] inet_sendmsg+0x11f/0x5e0 [ 25.252660] sock_sendmsg+0xca/0x110 [ 25.256346] SYSC_sendto+0x361/0x5c0 [ 25.260040] SyS_sendto+0x40/0x50 [ 25.263467] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.268199] [ 25.269799] The buggy address belongs to the object at ffff8801bba69000 [ 25.269799] which belongs to the cache SCTPv6 of size 1888 [ 25.282083] The buggy address is located 140 bytes inside of [ 25.282083] 1888-byte region [ffff8801bba69000, ffff8801bba69760) [ 25.294015] The buggy address belongs to the page: [ 25.298920] page:ffffea0006ee9a40 count:1 mapcount:0 mapping:ffff8801bba69000 index:0x0 [ 25.307044] flags: 0x2fffc0000000100(slab) [ 25.311252] raw: 02fffc0000000100 ffff8801bba69000 0000000000000000 0000000100000002 [ 25.319106] raw: ffffea0006f27da0 ffffea0007160a60 ffff8801d2d22b40 0000000000000000 [ 25.326957] page dumped because: kasan: bad access detected [ 25.332645] [ 25.334245] Memory state around the buggy address: [ 25.339146] ffff8801bba68f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.346477] ffff8801bba69000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.353810] >ffff8801bba69080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.361153] ^ [ 25.364751] ffff8801bba69100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.372083] ffff8801bba69180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.379413] ================================================================== [ 25.386786] Kernel panic - not syncing: panic_on_warn set ... [ 25.386786] [ 25.394150] CPU: 1 PID: 3659 Comm: syzkaller702516 Tainted: G B 4.15.0-rc7+ #187 [ 25.402895] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.412238] Call Trace: [ 25.414808] dump_stack+0x194/0x257 [ 25.418446] ? arch_local_irq_restore+0x53/0x53 [ 25.423110] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.427841] ? vsnprintf+0x1ed/0x1900 [ 25.431617] ? do_raw_spin_lock+0x140/0x220 [ 25.435909] panic+0x1e4/0x41c [ 25.439074] ? refcount_error_report+0x214/0x214 [ 25.443808] ? add_taint+0x1c/0x50 [ 25.447325] ? add_taint+0x1c/0x50 [ 25.450840] ? do_raw_spin_lock+0x1e0/0x220 [ 25.455135] kasan_end_report+0x50/0x50 [ 25.459080] kasan_report+0x144/0x340 [ 25.462853] __asan_report_load4_noabort+0x14/0x20 [ 25.467752] do_raw_spin_lock+0x1e0/0x220 [ 25.471873] _raw_spin_lock_bh+0x39/0x40 [ 25.475906] ? release_sock+0x74/0x2a0 [ 25.479764] release_sock+0x74/0x2a0 [ 25.483449] ? sctp_prsctp_prune+0x97/0x790 [ 25.487742] ? __release_sock+0x360/0x360 [ 25.491864] ? trace_hardirqs_on+0xd/0x10 [ 25.495987] sctp_sendmsg+0x2993/0x33f0 [ 25.499943] ? sctp_id2assoc+0x390/0x390 [ 25.503987] ? avc_has_perm+0x43e/0x680 [ 25.507938] ? avc_has_perm_noaudit+0x520/0x520 [ 25.512576] ? __fget+0x35c/0x570 [ 25.516002] ? iterate_fd+0x3f0/0x3f0 [ 25.519787] ? find_held_lock+0x35/0x1d0 [ 25.523828] ? sock_has_perm+0x2a4/0x420 [ 25.527869] ? lock_release+0x9a2/0xa40 [ 25.531818] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.537680] ? __check_object_size+0x25d/0x4f0 [ 25.542240] inet_sendmsg+0x11f/0x5e0 [ 25.546014] ? inet_sendmsg+0x11f/0x5e0 [ 25.549978] ? __might_sleep+0x95/0x190 [ 25.553926] ? inet_create+0xf50/0xf50 [ 25.557791] ? selinux_socket_sendmsg+0x36/0x40 [ 25.562433] ? security_socket_sendmsg+0x89/0xb0 [ 25.567163] ? inet_create+0xf50/0xf50 [ 25.571029] sock_sendmsg+0xca/0x110 [ 25.574717] SYSC_sendto+0x361/0x5c0 [ 25.578404] ? SYSC_connect+0x4a0/0x4a0 [ 25.582351] ? up_read+0x1a/0x40 [ 25.585690] ? __do_page_fault+0x3d6/0xc90 [ 25.589911] ? __do_page_fault+0xc90/0xc90 [ 25.594121] ? SyS_futex+0x269/0x390 [ 25.597806] ? SyS_setsockopt+0x215/0x360 [ 25.601927] ? do_futex+0x22a0/0x22a0 [ 25.605700] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 25.610517] SyS_sendto+0x40/0x50 [ 25.613952] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.618686] RIP: 0033:0x4457e9 [ 25.621850] RSP: 002b:00007fdbdb3f0da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 25.629528] RAX: ffffffffffffffda RBX: 00000000006dac3c RCX: 00000000004457e9 [ 25.636767] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 25.644011] RBP: 00000000006dac38 R08: 00000000204d9000 R09: 000000000000001c [ 25.651259] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 25.658502] R13: 00007fff4a579baf R14: 00007fdbdb3f19c0 R15: 0000000000000001 [ 25.666234] Dumping ftrace buffer: [ 25.669746] (ftrace buffer empty) [ 25.673427] Kernel Offset: disabled [ 25.677029] Rebooting in 86400 seconds..