[....] Starting enhanced syslogd: rsyslogd[ 12.640556] audit: type=1400 audit(1515929450.653:5): avc: denied { syslog } for pid=3495 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: [ 17.291466] audit: type=1400 audit(1515929455.304:6): avc: denied { map } for pid=3635 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.206' (ECDSA) to the list of known hosts. executing program [ 23.542335] audit: type=1400 audit(1515929461.555:7): avc: denied { map } for pid=3649 comm="syzkaller005716" path="/root/syzkaller005716907" 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 [ 23.727427] [ 23.729079] ========================= [ 23.732851] WARNING: held lock freed! [ 23.736626] 4.15.0-rc7+ #261 Not tainted [ 23.740663] ------------------------- [ 23.744442] syzkaller005716/3653 is freeing memory 000000006b2fdab4-00000000058a676b, with a lock still held there! [ 23.754978] (sk_lock-AF_INET6){+.+.}, at: [<000000007fcde8d7>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 23.763886] 1 lock held by syzkaller005716/3653: [ 23.768607] #0: (sk_lock-AF_INET6){+.+.}, at: [<000000007fcde8d7>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 23.777938] [ 23.777938] stack backtrace: [ 23.782404] CPU: 1 PID: 3653 Comm: syzkaller005716 Not tainted 4.15.0-rc7+ #261 [ 23.789816] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.799138] Call Trace: [ 23.801700] dump_stack+0x194/0x257 [ 23.805300] ? arch_local_irq_restore+0x53/0x53 [ 23.809945] debug_check_no_locks_freed+0x32f/0x3c0 [ 23.814935] kmem_cache_free+0x68/0x2a0 [ 23.818883] __sk_destruct+0x622/0x910 [ 23.822745] ? kasan_slab_free+0x71/0xc0 [ 23.826782] ? sock_rfree+0x160/0x160 [ 23.830552] ? inet_sendmsg+0x11f/0x5e0 [ 23.834493] ? SYSC_sendto+0x361/0x5c0 [ 23.838349] ? SyS_sendto+0x40/0x50 [ 23.841944] ? entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.846864] ? check_noncircular+0x20/0x20 [ 23.851067] ? print_irqtrace_events+0x270/0x270 [ 23.855792] ? free_obj_work+0x690/0x690 [ 23.859822] ? sctp_put_port+0x495/0x640 [ 23.863854] ? sctp_poll+0xc00/0xc00 [ 23.867549] ? refcount_sub_and_test+0x115/0x1b0 [ 23.872274] ? refcount_inc+0x50/0x50 [ 23.876042] ? refcount_inc+0x50/0x50 [ 23.879812] sk_destruct+0x47/0x80 [ 23.883326] __sk_free+0x57/0x230 [ 23.886748] sk_free+0x2a/0x40 [ 23.889909] sctp_association_put+0x14c/0x2f0 [ 23.894372] ? sctp_association_hold+0x20/0x20 [ 23.898920] ? lock_sock_nested+0x91/0x110 [ 23.903123] ? trace_hardirqs_on+0xd/0x10 [ 23.907241] ? __local_bh_enable_ip+0x121/0x230 [ 23.911880] sctp_wait_for_sndbuf+0x673/0x8d0 [ 23.916349] ? sctp_init_sock+0x13b0/0x13b0 [ 23.920641] ? do_raw_spin_trylock+0x190/0x190 [ 23.925197] ? __local_bh_enable_ip+0x121/0x230 [ 23.929850] ? sctp_prsctp_prune+0x97/0x6f0 [ 23.934148] ? prepare_to_wait+0x4d0/0x4d0 [ 23.938350] ? trace_hardirqs_on+0xd/0x10 [ 23.942469] sctp_sendmsg+0x277d/0x3360 [ 23.946410] ? put_pi_state+0x3c0/0x560 [ 23.950357] ? sctp_id2assoc+0x390/0x390 [ 23.954391] ? avc_has_perm+0x43e/0x680 [ 23.958337] ? avc_has_perm_noaudit+0x520/0x520 [ 23.962973] ? __fget+0x35c/0x570 [ 23.966398] ? iterate_fd+0x3f0/0x3f0 [ 23.970173] ? find_held_lock+0x35/0x1d0 [ 23.974216] ? sock_has_perm+0x2a4/0x420 [ 23.978249] ? lock_release+0x962/0xa40 [ 23.982193] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.988045] ? __check_object_size+0x25d/0x4f0 [ 23.992600] inet_sendmsg+0x11f/0x5e0 [ 23.996367] ? inet_sendmsg+0x11f/0x5e0 [ 24.000308] ? __might_sleep+0x95/0x190 [ 24.004249] ? inet_recvmsg+0x5f0/0x5f0 [ 24.008191] ? selinux_socket_sendmsg+0x36/0x40 [ 24.012831] ? security_socket_sendmsg+0x89/0xb0 [ 24.017561] ? inet_recvmsg+0x5f0/0x5f0 [ 24.021511] sock_sendmsg+0xca/0x110 [ 24.025201] SYSC_sendto+0x361/0x5c0 [ 24.028885] ? SYSC_connect+0x4a0/0x4a0 [ 24.032831] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 24.038162] ? __do_page_fault+0x3d6/0xc90 [ 24.042370] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 24.047629] ? SyS_futex+0x269/0x390 [ 24.051309] ? SyS_setsockopt+0x215/0x360 [ 24.055425] ? do_futex+0x22a0/0x22a0 [ 24.059196] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 24.064014] SyS_sendto+0x40/0x50 [ 24.067438] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.072159] RIP: 0033:0x4457e9 [ 24.075318] RSP: 002b:00007f1f714d5da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 24.083005] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 24.090246] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 24.097482] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 24.104720] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 24.111957] R13: 00007ffc1ae2773f R14: 00007f1f714d69c0 R15: 0000000000000001 [ 24.119302] ================================================================== [ 24.126655] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 24.133311] Read of size 4 at addr ffff8801bc2fe08c by task syzkaller005716/3653 [ 24.140824] [ 24.142428] CPU: 1 PID: 3653 Comm: syzkaller005716 Not tainted 4.15.0-rc7+ #261 [ 24.149845] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.159183] Call Trace: [ 24.161750] dump_stack+0x194/0x257 [ 24.165360] ? arch_local_irq_restore+0x53/0x53 [ 24.170007] ? show_regs_print_info+0x18/0x18 [ 24.174478] ? lock_acquire+0x1d5/0x580 [ 24.178427] ? trace_hardirqs_on+0xd/0x10 [ 24.182559] ? do_raw_spin_lock+0x1e0/0x220 [ 24.186849] print_address_description+0x73/0x250 [ 24.191658] ? do_raw_spin_lock+0x1e0/0x220 [ 24.195952] kasan_report+0x25b/0x340 [ 24.199744] __asan_report_load4_noabort+0x14/0x20 [ 24.204665] do_raw_spin_lock+0x1e0/0x220 [ 24.208785] _raw_spin_lock_bh+0x39/0x40 [ 24.212826] ? release_sock+0x74/0x2a0 [ 24.216683] release_sock+0x74/0x2a0 [ 24.220370] ? sctp_prsctp_prune+0x97/0x6f0 [ 24.224658] ? __release_sock+0x360/0x360 [ 24.228780] ? trace_hardirqs_on+0xd/0x10 [ 24.232901] sctp_sendmsg+0x2c61/0x3360 [ 24.236843] ? put_pi_state+0x3c0/0x560 [ 24.240791] ? sctp_id2assoc+0x390/0x390 [ 24.244825] ? avc_has_perm+0x43e/0x680 [ 24.248769] ? avc_has_perm_noaudit+0x520/0x520 [ 24.253406] ? __fget+0x35c/0x570 [ 24.256839] ? iterate_fd+0x3f0/0x3f0 [ 24.260612] ? find_held_lock+0x35/0x1d0 [ 24.264646] ? sock_has_perm+0x2a4/0x420 [ 24.268682] ? lock_release+0x962/0xa40 [ 24.272625] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.278478] ? __check_object_size+0x25d/0x4f0 [ 24.283032] inet_sendmsg+0x11f/0x5e0 [ 24.286803] ? inet_sendmsg+0x11f/0x5e0 [ 24.290744] ? __might_sleep+0x95/0x190 [ 24.294685] ? inet_recvmsg+0x5f0/0x5f0 [ 24.298628] ? selinux_socket_sendmsg+0x36/0x40 [ 24.303271] ? security_socket_sendmsg+0x89/0xb0 [ 24.307996] ? inet_recvmsg+0x5f0/0x5f0 [ 24.311942] sock_sendmsg+0xca/0x110 [ 24.315627] SYSC_sendto+0x361/0x5c0 [ 24.319312] ? SYSC_connect+0x4a0/0x4a0 [ 24.323256] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 24.328587] ? __do_page_fault+0x3d6/0xc90 [ 24.332794] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 24.338055] ? SyS_futex+0x269/0x390 [ 24.341736] ? SyS_setsockopt+0x215/0x360 [ 24.345859] ? do_futex+0x22a0/0x22a0 [ 24.349631] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 24.354450] SyS_sendto+0x40/0x50 [ 24.357877] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.362599] RIP: 0033:0x4457e9 [ 24.365757] RSP: 002b:00007f1f714d5da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 24.373432] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 24.380671] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 24.387908] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 24.395153] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 24.403174] R13: 00007ffc1ae2773f R14: 00007f1f714d69c0 R15: 0000000000000001 [ 24.410426] [ 24.412022] Allocated by task 3658: [ 24.415625] save_stack+0x43/0xd0 [ 24.419043] kasan_kmalloc+0xad/0xe0 [ 24.422723] kasan_slab_alloc+0x12/0x20 [ 24.426664] kmem_cache_alloc+0x12e/0x760 [ 24.430777] sk_prot_alloc+0x65/0x2a0 [ 24.434550] sk_alloc+0x105/0x1410 [ 24.438056] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 24.442870] sctp_accept+0x5c4/0x970 [ 24.446550] inet_accept+0x12c/0x930 [ 24.450235] SYSC_accept4+0x38d/0x870 [ 24.454003] SyS_accept+0x26/0x30 [ 24.457426] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.462147] [ 24.463740] Freed by task 3653: [ 24.466986] save_stack+0x43/0xd0 [ 24.470404] kasan_slab_free+0x71/0xc0 [ 24.474256] kmem_cache_free+0x83/0x2a0 [ 24.478198] __sk_destruct+0x622/0x910 [ 24.482050] sk_destruct+0x47/0x80 [ 24.485555] __sk_free+0x57/0x230 [ 24.488972] sk_free+0x2a/0x40 [ 24.492131] sctp_association_put+0x14c/0x2f0 [ 24.496597] sctp_wait_for_sndbuf+0x673/0x8d0 [ 24.501063] sctp_sendmsg+0x277d/0x3360 [ 24.505003] inet_sendmsg+0x11f/0x5e0 [ 24.508773] sock_sendmsg+0xca/0x110 [ 24.512452] SYSC_sendto+0x361/0x5c0 [ 24.516130] SyS_sendto+0x40/0x50 [ 24.519550] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.524268] [ 24.525863] The buggy address belongs to the object at ffff8801bc2fe000 [ 24.525863] which belongs to the cache SCTPv6 of size 1888 [ 24.538138] The buggy address is located 140 bytes inside of [ 24.538138] 1888-byte region [ffff8801bc2fe000, ffff8801bc2fe760) [ 24.550063] The buggy address belongs to the page: [ 24.554967] page:ffffea0006f0bf80 count:1 mapcount:0 mapping:ffff8801bc2fe000 index:0x0 [ 24.563077] flags: 0x2fffc0000000100(slab) [ 24.567281] raw: 02fffc0000000100 ffff8801bc2fe000 0000000000000000 0000000100000002 [ 24.575130] raw: ffffea0006f0d7a0 ffffea0006f01e60 ffff8801d2c7c680 0000000000000000 [ 24.582977] page dumped because: kasan: bad access detected [ 24.588650] [ 24.590243] Memory state around the buggy address: [ 24.595139] ffff8801bc2fdf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.602474] ffff8801bc2fe000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.609800] >ffff8801bc2fe080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.617133] ^ [ 24.620726] ffff8801bc2fe100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.628056] ffff8801bc2fe180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.635381] ================================================================== [ 24.642749] Kernel panic - not syncing: panic_on_warn set ... [ 24.642749] [ 24.650105] CPU: 1 PID: 3653 Comm: syzkaller005716 Tainted: G B 4.15.0-rc7+ #261 [ 24.658842] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.668166] Call Trace: [ 24.670737] dump_stack+0x194/0x257 [ 24.674361] ? arch_local_irq_restore+0x53/0x53 [ 24.679004] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.683732] ? vsnprintf+0x1ed/0x1900 [ 24.687500] ? do_raw_spin_lock+0x100/0x220 [ 24.691798] panic+0x1e4/0x41c [ 24.694977] ? refcount_error_report+0x214/0x214 [ 24.699703] ? add_taint+0x1c/0x50 [ 24.703221] ? add_taint+0x1c/0x50 [ 24.706735] ? do_raw_spin_lock+0x1e0/0x220 [ 24.711030] kasan_end_report+0x50/0x50 [ 24.714974] kasan_report+0x144/0x340 [ 24.718754] __asan_report_load4_noabort+0x14/0x20 [ 24.723669] do_raw_spin_lock+0x1e0/0x220 [ 24.727805] _raw_spin_lock_bh+0x39/0x40 [ 24.731837] ? release_sock+0x74/0x2a0 [ 24.735695] release_sock+0x74/0x2a0 [ 24.739394] ? sctp_prsctp_prune+0x97/0x6f0 [ 24.743683] ? __release_sock+0x360/0x360 [ 24.747800] ? trace_hardirqs_on+0xd/0x10 [ 24.751922] sctp_sendmsg+0x2c61/0x3360 [ 24.755865] ? put_pi_state+0x3c0/0x560 [ 24.759812] ? sctp_id2assoc+0x390/0x390 [ 24.763841] ? avc_has_perm+0x43e/0x680 [ 24.767786] ? avc_has_perm_noaudit+0x520/0x520 [ 24.772433] ? __fget+0x35c/0x570 [ 24.775858] ? iterate_fd+0x3f0/0x3f0 [ 24.779632] ? find_held_lock+0x35/0x1d0 [ 24.783666] ? sock_has_perm+0x2a4/0x420 [ 24.787698] ? lock_release+0x962/0xa40 [ 24.791644] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.797496] ? __check_object_size+0x25d/0x4f0 [ 24.802049] inet_sendmsg+0x11f/0x5e0 [ 24.805816] ? inet_sendmsg+0x11f/0x5e0 [ 24.809759] ? __might_sleep+0x95/0x190 [ 24.813701] ? inet_recvmsg+0x5f0/0x5f0 [ 24.817654] ? selinux_socket_sendmsg+0x36/0x40 [ 24.822323] ? security_socket_sendmsg+0x89/0xb0 [ 24.827046] ? inet_recvmsg+0x5f0/0x5f0 [ 24.830991] sock_sendmsg+0xca/0x110 [ 24.834683] SYSC_sendto+0x361/0x5c0 [ 24.838366] ? SYSC_connect+0x4a0/0x4a0 [ 24.842310] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 24.847641] ? __do_page_fault+0x3d6/0xc90 [ 24.851854] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 24.857113] ? SyS_futex+0x269/0x390 [ 24.860795] ? SyS_setsockopt+0x215/0x360 [ 24.864915] ? do_futex+0x22a0/0x22a0 [ 24.868686] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 24.873505] SyS_sendto+0x40/0x50 [ 24.876936] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.881659] RIP: 0033:0x4457e9 [ 24.884816] RSP: 002b:00007f1f714d5da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 24.892491] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 24.899731] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 24.906970] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 24.914209] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 24.921462] R13: 00007ffc1ae2773f R14: 00007f1f714d69c0 R15: 0000000000000001 [ 24.929149] Dumping ftrace buffer: [ 24.932662] (ftrace buffer empty) [ 24.936343] Kernel Offset: disabled [ 24.939954] Rebooting in 86400 seconds..