[....] Starting enhanced syslogd: rsyslogd[ 11.750876] audit: type=1400 audit(1515647997.113:5): avc: denied { syslog } for pid=3354 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.968885] audit: type=1400 audit(1515648004.331:6): avc: denied { map } for pid=3493 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.222' (ECDSA) to the list of known hosts. executing program [ 25.175168] audit: type=1400 audit(1515648010.537:7): avc: denied { map } for pid=3507 comm="syzkaller145532" path="/root/syzkaller145532868" 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.356448] [ 25.358165] ========================= [ 25.361931] WARNING: held lock freed! [ 25.365696] 4.15.0-rc7-next-20180110+ #93 Not tainted [ 25.370848] ------------------------- [ 25.374614] syzkaller145532/3511 is freeing memory 0000000018f16526-00000000f09a2c89, with a lock still held there! [ 25.385148] (sk_lock-AF_INET6){+.+.}, at: [<0000000013ac7819>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 25.394048] 1 lock held by syzkaller145532/3511: [ 25.398768] #0: (sk_lock-AF_INET6){+.+.}, at: [<0000000013ac7819>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 25.408101] [ 25.408101] stack backtrace: [ 25.412568] CPU: 1 PID: 3511 Comm: syzkaller145532 Not tainted 4.15.0-rc7-next-20180110+ #93 [ 25.421111] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.430436] Call Trace: [ 25.432998] dump_stack+0x194/0x257 [ 25.436591] ? arch_local_irq_restore+0x53/0x53 [ 25.441232] debug_check_no_locks_freed+0x32f/0x3c0 [ 25.446217] kmem_cache_free+0x68/0x2b0 [ 25.450169] __sk_destruct+0x622/0x910 [ 25.454046] ? kfree+0xd9/0x260 [ 25.457290] ? sock_rfree+0x160/0x160 [ 25.461055] ? sock_sendmsg+0xca/0x110 [ 25.464918] ? SyS_sendto+0x40/0x50 [ 25.468515] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.473413] ? debug_check_no_obj_freed+0x611/0xf1f [ 25.478396] ? check_noncircular+0x20/0x20 [ 25.482596] ? print_irqtrace_events+0x270/0x270 [ 25.487319] ? __local_bh_enable_ip+0x121/0x230 [ 25.491956] ? sctp_put_port+0x495/0x640 [ 25.495985] ? sctp_poll+0xc00/0xc00 [ 25.499668] ? refcount_sub_and_test+0x115/0x1b0 [ 25.504388] ? refcount_inc+0x50/0x50 [ 25.508152] ? refcount_inc+0x50/0x50 [ 25.511918] sk_destruct+0x47/0x80 [ 25.515423] __sk_free+0xf1/0x2b0 [ 25.518852] sk_free+0x2a/0x40 [ 25.522011] sctp_association_put+0x14c/0x2f0 [ 25.526470] ? sctp_association_hold+0x20/0x20 [ 25.531017] ? lock_sock_nested+0x91/0x110 [ 25.535215] ? trace_hardirqs_on+0xd/0x10 [ 25.539327] ? __local_bh_enable_ip+0x121/0x230 [ 25.543972] sctp_wait_for_sndbuf+0x673/0x8d0 [ 25.548453] ? sctp_init_sock+0x13b0/0x13b0 [ 25.552740] ? do_raw_spin_trylock+0x190/0x190 [ 25.557287] ? __local_bh_enable_ip+0x121/0x230 [ 25.561918] ? sctp_prsctp_prune+0x97/0x790 [ 25.566214] ? prepare_to_wait+0x4d0/0x4d0 [ 25.570413] ? trace_hardirqs_on+0xd/0x10 [ 25.574559] sctp_sendmsg+0x28f7/0x33f0 [ 25.578507] ? sctp_id2assoc+0x390/0x390 [ 25.582540] ? avc_has_perm+0x43e/0x680 [ 25.586480] ? avc_has_perm_noaudit+0x520/0x520 [ 25.591113] ? __fget+0x35c/0x570 [ 25.594536] ? iterate_fd+0x3f0/0x3f0 [ 25.598314] ? find_held_lock+0x35/0x1d0 [ 25.602345] ? sock_has_perm+0x2a4/0x420 [ 25.606373] ? lock_release+0x982/0xa40 [ 25.610312] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.616162] ? __check_object_size+0x8b/0x530 [ 25.620624] inet_sendmsg+0x11f/0x5e0 [ 25.624397] ? inet_sendmsg+0x11f/0x5e0 [ 25.628335] ? __might_sleep+0x95/0x190 [ 25.632273] ? inet_create+0xf50/0xf50 [ 25.636124] ? selinux_socket_sendmsg+0x36/0x40 [ 25.640762] ? security_socket_sendmsg+0x89/0xb0 [ 25.645482] ? inet_create+0xf50/0xf50 [ 25.649334] sock_sendmsg+0xca/0x110 [ 25.653013] SYSC_sendto+0x361/0x5c0 [ 25.656692] ? SYSC_connect+0x4a0/0x4a0 [ 25.660644] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 25.665974] ? __do_page_fault+0x3d6/0xc90 [ 25.670189] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 25.675443] ? SyS_futex+0x269/0x390 [ 25.679120] ? SyS_setsockopt+0x215/0x360 [ 25.683235] ? do_futex+0x22a0/0x22a0 [ 25.687001] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 25.691814] SyS_sendto+0x40/0x50 [ 25.695234] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.699969] RIP: 0033:0x4457e9 [ 25.703124] RSP: 002b:00007f38540bbda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 25.710798] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 25.718032] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 25.725276] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 25.732512] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 25.739747] R13: 00007fff353e166f R14: 00007f38540bc9c0 R15: 0000000000000001 [ 25.747100] ================================================================== [ 25.754447] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 25.761081] Read of size 4 at addr ffff8801c00b608c by task syzkaller145532/3511 [ 25.768577] [ 25.770172] CPU: 1 PID: 3511 Comm: syzkaller145532 Not tainted 4.15.0-rc7-next-20180110+ #93 [ 25.778721] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.788058] Call Trace: [ 25.790611] dump_stack+0x194/0x257 [ 25.794207] ? arch_local_irq_restore+0x53/0x53 [ 25.798845] ? show_regs_print_info+0x18/0x18 [ 25.803307] ? lock_acquire+0x1d5/0x580 [ 25.807251] ? trace_hardirqs_on+0xd/0x10 [ 25.811364] ? do_raw_spin_lock+0x1e0/0x220 [ 25.815656] print_address_description+0x73/0x250 [ 25.820465] ? do_raw_spin_lock+0x1e0/0x220 [ 25.824754] kasan_report+0x23b/0x360 [ 25.828522] __asan_report_load4_noabort+0x14/0x20 [ 25.833415] do_raw_spin_lock+0x1e0/0x220 [ 25.837531] _raw_spin_lock_bh+0x39/0x40 [ 25.841558] ? release_sock+0x74/0x2a0 [ 25.845410] release_sock+0x74/0x2a0 [ 25.849090] ? sctp_prsctp_prune+0x97/0x790 [ 25.853377] ? __release_sock+0x360/0x360 [ 25.857489] ? trace_hardirqs_on+0xd/0x10 [ 25.861607] sctp_sendmsg+0x2993/0x33f0 [ 25.865553] ? sctp_id2assoc+0x390/0x390 [ 25.869579] ? avc_has_perm+0x43e/0x680 [ 25.873520] ? avc_has_perm_noaudit+0x520/0x520 [ 25.878153] ? __fget+0x35c/0x570 [ 25.881575] ? iterate_fd+0x3f0/0x3f0 [ 25.885344] ? find_held_lock+0x35/0x1d0 [ 25.889373] ? sock_has_perm+0x2a4/0x420 [ 25.893401] ? lock_release+0x982/0xa40 [ 25.897341] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.903190] ? __check_object_size+0x8b/0x530 [ 25.907652] inet_sendmsg+0x11f/0x5e0 [ 25.911417] ? inet_sendmsg+0x11f/0x5e0 [ 25.915356] ? __might_sleep+0x95/0x190 [ 25.919295] ? inet_create+0xf50/0xf50 [ 25.923169] ? selinux_socket_sendmsg+0x36/0x40 [ 25.927804] ? security_socket_sendmsg+0x89/0xb0 [ 25.932526] ? inet_create+0xf50/0xf50 [ 25.936478] sock_sendmsg+0xca/0x110 [ 25.940155] SYSC_sendto+0x361/0x5c0 [ 25.943839] ? SYSC_connect+0x4a0/0x4a0 [ 25.947779] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 25.953108] ? __do_page_fault+0x3d6/0xc90 [ 25.957310] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 25.962561] ? SyS_futex+0x269/0x390 [ 25.966239] ? SyS_setsockopt+0x215/0x360 [ 25.970354] ? do_futex+0x22a0/0x22a0 [ 25.974122] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 25.978944] SyS_sendto+0x40/0x50 [ 25.982365] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.987094] RIP: 0033:0x4457e9 [ 25.990248] RSP: 002b:00007f38540bbda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 25.997923] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 26.005159] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 26.012392] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 26.019627] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 26.026863] R13: 00007fff353e166f R14: 00007f38540bc9c0 R15: 0000000000000001 [ 26.034105] [ 26.035701] Allocated by task 3516: [ 26.039295] save_stack+0x43/0xd0 [ 26.042712] kasan_kmalloc+0xad/0xe0 [ 26.046389] kasan_slab_alloc+0x12/0x20 [ 26.050326] kmem_cache_alloc+0x12e/0x760 [ 26.054436] sk_prot_alloc+0x65/0x2a0 [ 26.058201] sk_alloc+0x105/0x1440 [ 26.061709] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 26.066515] sctp_accept+0x5c4/0x970 [ 26.070209] inet_accept+0x12c/0x930 [ 26.074583] SYSC_accept4+0x38d/0x870 [ 26.078346] SyS_accept+0x26/0x30 [ 26.081770] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.086501] [ 26.088093] Freed by task 3511: [ 26.091336] save_stack+0x43/0xd0 [ 26.094759] __kasan_slab_free+0x11a/0x170 [ 26.098956] kasan_slab_free+0xe/0x10 [ 26.102722] kmem_cache_free+0x86/0x2b0 [ 26.106660] __sk_destruct+0x622/0x910 [ 26.110511] sk_destruct+0x47/0x80 [ 26.114014] __sk_free+0xf1/0x2b0 [ 26.117429] sk_free+0x2a/0x40 [ 26.120585] sctp_association_put+0x14c/0x2f0 [ 26.125045] sctp_wait_for_sndbuf+0x673/0x8d0 [ 26.129504] sctp_sendmsg+0x28f7/0x33f0 [ 26.133440] inet_sendmsg+0x11f/0x5e0 [ 26.137216] sock_sendmsg+0xca/0x110 [ 26.140893] SYSC_sendto+0x361/0x5c0 [ 26.144571] SyS_sendto+0x40/0x50 [ 26.147991] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.152708] [ 26.154306] The buggy address belongs to the object at ffff8801c00b6000 [ 26.154306] which belongs to the cache SCTPv6 of size 1888 [ 26.166578] The buggy address is located 140 bytes inside of [ 26.166578] 1888-byte region [ffff8801c00b6000, ffff8801c00b6760) [ 26.178502] The buggy address belongs to the page: [ 26.183397] page:ffffea0007002d80 count:1 mapcount:0 mapping:ffff8801c00b6000 index:0x0 [ 26.191503] flags: 0x2fffc0000000100(slab) [ 26.195705] raw: 02fffc0000000100 ffff8801c00b6000 0000000000000000 0000000100000002 [ 26.203552] raw: ffffea00074b6d60 ffffea00070141e0 ffff8801d2db1200 0000000000000000 [ 26.211394] page dumped because: kasan: bad access detected [ 26.217065] [ 26.218659] Memory state around the buggy address: [ 26.223574] ffff8801c00b5f80: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 26.230907] ffff8801c00b6000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.238230] >ffff8801c00b6080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.245551] ^ [ 26.249141] ffff8801c00b6100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.256464] ffff8801c00b6180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.263786] ================================================================== [ 26.271155] Kernel panic - not syncing: panic_on_warn set ... [ 26.271155] [ 26.278492] CPU: 1 PID: 3511 Comm: syzkaller145532 Tainted: G B 4.15.0-rc7-next-20180110+ #93 [ 26.288334] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.297655] Call Trace: [ 26.300210] dump_stack+0x194/0x257 [ 26.303807] ? arch_local_irq_restore+0x53/0x53 [ 26.308447] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.313168] ? vsnprintf+0x1ed/0x1900 [ 26.316934] ? do_raw_spin_lock+0x120/0x220 [ 26.321223] panic+0x1e4/0x41c [ 26.324392] ? refcount_error_report+0x214/0x214 [ 26.329116] ? add_taint+0x1c/0x50 [ 26.332626] ? add_taint+0x1c/0x50 [ 26.336134] ? do_raw_spin_lock+0x1e0/0x220 [ 26.340422] kasan_end_report+0x50/0x50 [ 26.344368] kasan_report+0x148/0x360 [ 26.348137] __asan_report_load4_noabort+0x14/0x20 [ 26.353032] do_raw_spin_lock+0x1e0/0x220 [ 26.357144] _raw_spin_lock_bh+0x39/0x40 [ 26.361173] ? release_sock+0x74/0x2a0 [ 26.365025] release_sock+0x74/0x2a0 [ 26.368705] ? sctp_prsctp_prune+0x97/0x790 [ 26.372995] ? __release_sock+0x360/0x360 [ 26.377109] ? trace_hardirqs_on+0xd/0x10 [ 26.381226] sctp_sendmsg+0x2993/0x33f0 [ 26.385172] ? sctp_id2assoc+0x390/0x390 [ 26.389200] ? avc_has_perm+0x43e/0x680 [ 26.393144] ? avc_has_perm_noaudit+0x520/0x520 [ 26.397780] ? __fget+0x35c/0x570 [ 26.401213] ? iterate_fd+0x3f0/0x3f0 [ 26.404982] ? find_held_lock+0x35/0x1d0 [ 26.409012] ? sock_has_perm+0x2a4/0x420 [ 26.413038] ? lock_release+0x982/0xa40 [ 26.416978] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.422830] ? __check_object_size+0x8b/0x530 [ 26.427293] inet_sendmsg+0x11f/0x5e0 [ 26.431153] ? inet_sendmsg+0x11f/0x5e0 [ 26.435093] ? __might_sleep+0x95/0x190 [ 26.439032] ? inet_create+0xf50/0xf50 [ 26.442897] ? selinux_socket_sendmsg+0x36/0x40 [ 26.447532] ? security_socket_sendmsg+0x89/0xb0 [ 26.452252] ? inet_create+0xf50/0xf50 [ 26.456109] sock_sendmsg+0xca/0x110 [ 26.459799] SYSC_sendto+0x361/0x5c0 [ 26.463479] ? SYSC_connect+0x4a0/0x4a0 [ 26.467419] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 26.472751] ? __do_page_fault+0x3d6/0xc90 [ 26.476952] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 26.482206] ? SyS_futex+0x269/0x390 [ 26.485884] ? SyS_setsockopt+0x215/0x360 [ 26.489998] ? do_futex+0x22a0/0x22a0 [ 26.493767] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.498578] SyS_sendto+0x40/0x50 [ 26.502008] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.506728] RIP: 0033:0x4457e9 [ 26.509884] RSP: 002b:00007f38540bbda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 26.517562] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 26.524798] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 26.532032] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 26.539275] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 26.546513] R13: 00007fff353e166f R14: 00007f38540bc9c0 R15: 0000000000000001 [ 26.553788] Dumping ftrace buffer: [ 26.557293] (ftrace buffer empty) [ 26.560970] Kernel Offset: disabled [ 26.564573] Rebooting in 86400 seconds..