[....] Starting enhanced syslogd: rsyslogd[ 12.090502] audit: type=1400 audit(1515633567.525:5): avc: denied { syslog } for pid=3343 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 16.500039] audit: type=1400 audit(1515633571.934:6): avc: denied { map } for pid=3482 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.42' (ECDSA) to the list of known hosts. executing program [ 32.467189] audit: type=1400 audit(1515633587.902:7): avc: denied { map } for pid=3499 comm="syzkaller826582" path="/root/syzkaller826582357" 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 [ 32.649333] [ 32.650969] ========================= [ 32.654734] WARNING: held lock freed! [ 32.658497] 4.15.0-rc7+ #257 Not tainted [ 32.662521] ------------------------- [ 32.666284] syzkaller826582/3503 is freeing memory 00000000c160408e-0000000079ef19ed, with a lock still held there! [ 32.676818] (sk_lock-AF_INET6){+.+.}, at: [<000000007e3b91da>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 32.685720] 1 lock held by syzkaller826582/3503: [ 32.690437] #0: (sk_lock-AF_INET6){+.+.}, at: [<000000007e3b91da>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 32.699779] [ 32.699779] stack backtrace: [ 32.704253] CPU: 0 PID: 3503 Comm: syzkaller826582 Not tainted 4.15.0-rc7+ #257 [ 32.711664] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.720984] Call Trace: [ 32.723544] dump_stack+0x194/0x257 [ 32.727137] ? arch_local_irq_restore+0x53/0x53 [ 32.731784] debug_check_no_locks_freed+0x32f/0x3c0 [ 32.736768] kmem_cache_free+0x68/0x2a0 [ 32.740710] __sk_destruct+0x622/0x910 [ 32.744560] ? kasan_slab_free+0x71/0xc0 [ 32.748588] ? sock_rfree+0x160/0x160 [ 32.752353] ? inet_sendmsg+0x11f/0x5e0 [ 32.756292] ? SYSC_sendto+0x361/0x5c0 [ 32.760144] ? SyS_sendto+0x40/0x50 [ 32.763739] ? entry_SYSCALL_64_fastpath+0x23/0x9a [ 32.768641] ? check_noncircular+0x20/0x20 [ 32.772845] ? print_irqtrace_events+0x270/0x270 [ 32.777570] ? free_obj_work+0x690/0x690 [ 32.781691] ? sctp_put_port+0x495/0x640 [ 32.785717] ? sctp_poll+0xc00/0xc00 [ 32.789427] ? refcount_sub_and_test+0x115/0x1b0 [ 32.794150] ? refcount_inc+0x50/0x50 [ 32.797917] ? refcount_inc+0x50/0x50 [ 32.801686] sk_destruct+0x47/0x80 [ 32.805190] __sk_free+0x57/0x230 [ 32.808622] sk_free+0x2a/0x40 [ 32.811784] sctp_association_put+0x14c/0x2f0 [ 32.816246] ? sctp_association_hold+0x20/0x20 [ 32.820798] ? lock_sock_nested+0x91/0x110 [ 32.825003] ? trace_hardirqs_on+0xd/0x10 [ 32.829120] ? __local_bh_enable_ip+0x121/0x230 [ 32.833762] sctp_wait_for_sndbuf+0x673/0x8d0 [ 32.838228] ? sctp_init_sock+0x13b0/0x13b0 [ 32.842513] ? do_raw_spin_trylock+0x190/0x190 [ 32.847064] ? __local_bh_enable_ip+0x121/0x230 [ 32.851699] ? sctp_prsctp_prune+0x97/0x6f0 [ 32.856072] ? prepare_to_wait+0x4d0/0x4d0 [ 32.860269] ? trace_hardirqs_on+0xd/0x10 [ 32.864385] sctp_sendmsg+0x277d/0x3360 [ 32.868324] ? put_pi_state+0x3c0/0x560 [ 32.872272] ? sctp_id2assoc+0x390/0x390 [ 32.876299] ? avc_has_perm+0x43e/0x680 [ 32.880237] ? avc_has_perm_noaudit+0x520/0x520 [ 32.884869] ? __fget+0x35c/0x570 [ 32.888290] ? iterate_fd+0x3f0/0x3f0 [ 32.892058] ? find_held_lock+0x35/0x1d0 [ 32.896089] ? sock_has_perm+0x2a4/0x420 [ 32.900116] ? lock_release+0x962/0xa40 [ 32.904056] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 32.909906] ? __check_object_size+0x25d/0x4f0 [ 32.914457] inet_sendmsg+0x11f/0x5e0 [ 32.918228] ? inet_sendmsg+0x11f/0x5e0 [ 32.922302] ? __might_sleep+0x95/0x190 [ 32.926248] ? inet_recvmsg+0x5f0/0x5f0 [ 32.930193] ? selinux_socket_sendmsg+0x36/0x40 [ 32.934828] ? security_socket_sendmsg+0x89/0xb0 [ 32.939550] ? inet_recvmsg+0x5f0/0x5f0 [ 32.943496] sock_sendmsg+0xca/0x110 [ 32.947183] SYSC_sendto+0x361/0x5c0 [ 32.950863] ? SYSC_connect+0x4a0/0x4a0 [ 32.954805] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 32.960136] ? __do_page_fault+0x3d6/0xc90 [ 32.964339] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 32.969592] ? SyS_futex+0x269/0x390 [ 32.973271] ? SyS_setsockopt+0x215/0x360 [ 32.977383] ? do_futex+0x22a0/0x22a0 [ 32.981151] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 32.985959] SyS_sendto+0x40/0x50 [ 32.989378] entry_SYSCALL_64_fastpath+0x23/0x9a [ 32.994097] RIP: 0033:0x4457e9 [ 32.997254] RSP: 002b:00007f17292aada8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 33.004924] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 33.012157] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 33.019390] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 33.026624] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 33.033861] R13: 00007fffee66fd3f R14: 00007f17292ab9c0 R15: 0000000000000001 [ 33.041202] ================================================================== [ 33.048534] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 33.055165] Read of size 4 at addr ffff8801c033b08c by task syzkaller826582/3503 [ 33.062661] [ 33.064258] CPU: 0 PID: 3503 Comm: syzkaller826582 Not tainted 4.15.0-rc7+ #257 [ 33.071667] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.080990] Call Trace: [ 33.083545] dump_stack+0x194/0x257 [ 33.087139] ? arch_local_irq_restore+0x53/0x53 [ 33.091775] ? show_regs_print_info+0x18/0x18 [ 33.096232] ? lock_acquire+0x1d5/0x580 executing program [ 33.100172] ? trace_hardirqs_on+0xd/0x10 [ 33.104293] ? do_raw_spin_lock+0x1e0/0x220 [ 33.108579] print_address_description+0x73/0x250 [ 33.113389] ? do_raw_spin_lock+0x1e0/0x220 [ 33.117677] kasan_report+0x25b/0x340 [ 33.121449] __asan_report_load4_noabort+0x14/0x20 [ 33.126346] do_raw_spin_lock+0x1e0/0x220 [ 33.130460] _raw_spin_lock_bh+0x39/0x40 [ 33.134485] ? release_sock+0x74/0x2a0 [ 33.138336] release_sock+0x74/0x2a0 [ 33.142012] ? sctp_prsctp_prune+0x97/0x6f0 [ 33.146300] ? __release_sock+0x360/0x360 [ 33.150411] ? trace_hardirqs_on+0xd/0x10 [ 33.154526] sctp_sendmsg+0x2c61/0x3360 [ 33.158463] ? put_pi_state+0x3c0/0x560 [ 33.162409] ? sctp_id2assoc+0x390/0x390 [ 33.166434] ? avc_has_perm+0x43e/0x680 [ 33.170373] ? avc_has_perm_noaudit+0x520/0x520 [ 33.175006] ? __fget+0x35c/0x570 [ 33.178427] ? iterate_fd+0x3f0/0x3f0 [ 33.182195] ? find_held_lock+0x35/0x1d0 [ 33.186222] ? sock_has_perm+0x2a4/0x420 [ 33.190248] ? lock_release+0x962/0xa40 [ 33.194185] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 33.200033] ? __check_object_size+0x25d/0x4f0 [ 33.204582] inet_sendmsg+0x11f/0x5e0 [ 33.208343] ? inet_sendmsg+0x11f/0x5e0 [ 33.212279] ? __might_sleep+0x95/0x190 [ 33.216215] ? inet_recvmsg+0x5f0/0x5f0 [ 33.220153] ? selinux_socket_sendmsg+0x36/0x40 [ 33.224788] ? security_socket_sendmsg+0x89/0xb0 [ 33.229506] ? inet_recvmsg+0x5f0/0x5f0 [ 33.233444] sock_sendmsg+0xca/0x110 [ 33.237121] SYSC_sendto+0x361/0x5c0 [ 33.240799] ? SYSC_connect+0x4a0/0x4a0 [ 33.244737] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 33.250063] ? __do_page_fault+0x3d6/0xc90 [ 33.254264] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 33.259519] ? SyS_futex+0x269/0x390 [ 33.263196] ? SyS_setsockopt+0x215/0x360 [ 33.267311] ? do_futex+0x22a0/0x22a0 [ 33.271076] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 33.275886] SyS_sendto+0x40/0x50 [ 33.279306] entry_SYSCALL_64_fastpath+0x23/0x9a [ 33.284023] RIP: 0033:0x4457e9 [ 33.287178] RSP: 002b:00007f17292aada8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 33.294851] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 33.302096] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 33.309339] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 33.316585] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 33.323820] R13: 00007fffee66fd3f R14: 00007f17292ab9c0 R15: 0000000000000001 [ 33.331070] [ 33.332673] Allocated by task 3508: [ 33.336269] save_stack+0x43/0xd0 [ 33.339687] kasan_kmalloc+0xad/0xe0 [ 33.343365] kasan_slab_alloc+0x12/0x20 [ 33.347301] kmem_cache_alloc+0x12e/0x760 [ 33.351412] sk_prot_alloc+0x65/0x2a0 [ 33.355177] sk_alloc+0x105/0x1410 [ 33.358687] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 33.363502] sctp_accept+0x5c4/0x970 [ 33.367180] inet_accept+0x12c/0x930 [ 33.370856] SYSC_accept4+0x38d/0x870 [ 33.374621] SyS_accept+0x26/0x30 [ 33.378037] entry_SYSCALL_64_fastpath+0x23/0x9a [ 33.382762] [ 33.384354] Freed by task 3503: [ 33.387597] save_stack+0x43/0xd0 [ 33.391015] kasan_slab_free+0x71/0xc0 [ 33.394863] kmem_cache_free+0x83/0x2a0 [ 33.398800] __sk_destruct+0x622/0x910 [ 33.402648] sk_destruct+0x47/0x80 [ 33.406151] __sk_free+0x57/0x230 [ 33.409565] sk_free+0x2a/0x40 [ 33.412720] sctp_association_put+0x14c/0x2f0 [ 33.417176] sctp_wait_for_sndbuf+0x673/0x8d0 [ 33.421632] sctp_sendmsg+0x277d/0x3360 [ 33.425567] inet_sendmsg+0x11f/0x5e0 [ 33.429330] sock_sendmsg+0xca/0x110 [ 33.433005] SYSC_sendto+0x361/0x5c0 [ 33.436682] SyS_sendto+0x40/0x50 [ 33.440097] entry_SYSCALL_64_fastpath+0x23/0x9a [ 33.444811] [ 33.446404] The buggy address belongs to the object at ffff8801c033b000 [ 33.446404] which belongs to the cache SCTPv6 of size 1888 [ 33.458676] The buggy address is located 140 bytes inside of [ 33.458676] 1888-byte region [ffff8801c033b000, ffff8801c033b760) [ 33.470597] The buggy address belongs to the page: [ 33.475491] page:ffffea000700cec0 count:1 mapcount:0 mapping:ffff8801c033b000 index:0x0 [ 33.483599] flags: 0x2fffc0000000100(slab) [ 33.487797] raw: 02fffc0000000100 ffff8801c033b000 0000000000000000 0000000100000002 [ 33.495642] raw: ffffea00074c80e0 ffffea000700f1a0 ffff8801d3200800 0000000000000000 [ 33.503489] page dumped because: kasan: bad access detected [ 33.509159] [ 33.510748] Memory state around the buggy address: [ 33.515638] ffff8801c033af80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 33.522962] ffff8801c033b000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.530285] >ffff8801c033b080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.537607] ^ [ 33.541199] ffff8801c033b100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.548520] ffff8801c033b180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.555838] ================================================================== [ 33.563201] Kernel panic - not syncing: panic_on_warn set ... [ 33.563201] [ 33.570529] CPU: 0 PID: 3503 Comm: syzkaller826582 Tainted: G B 4.15.0-rc7+ #257 [ 33.579252] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.588569] Call Trace: [ 33.591122] dump_stack+0x194/0x257 [ 33.594716] ? arch_local_irq_restore+0x53/0x53 executing program [ 33.599353] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.604075] ? vsnprintf+0x1ed/0x1900 [ 33.607853] ? do_raw_spin_lock+0x100/0x220 [ 33.612143] panic+0x1e4/0x41c [ 33.615304] ? refcount_error_report+0x214/0x214 [ 33.620035] ? add_taint+0x1c/0x50 [ 33.623539] ? add_taint+0x1c/0x50 [ 33.627046] ? do_raw_spin_lock+0x1e0/0x220 [ 33.631333] kasan_end_report+0x50/0x50 [ 33.635274] kasan_report+0x144/0x340 [ 33.639039] __asan_report_load4_noabort+0x14/0x20 [ 33.643931] do_raw_spin_lock+0x1e0/0x220 [ 33.648045] _raw_spin_lock_bh+0x39/0x40 [ 33.652074] ? release_sock+0x74/0x2a0 [ 33.655929] release_sock+0x74/0x2a0 [ 33.659611] ? sctp_prsctp_prune+0x97/0x6f0 [ 33.663897] ? __release_sock+0x360/0x360 [ 33.668010] ? trace_hardirqs_on+0xd/0x10 [ 33.672124] sctp_sendmsg+0x2c61/0x3360 [ 33.676063] ? put_pi_state+0x3c0/0x560 [ 33.680004] ? sctp_id2assoc+0x390/0x390 [ 33.684035] ? avc_has_perm+0x43e/0x680 [ 33.687974] ? avc_has_perm_noaudit+0x520/0x520 [ 33.692606] ? __fget+0x35c/0x570 [ 33.696025] ? iterate_fd+0x3f0/0x3f0 [ 33.699794] ? find_held_lock+0x35/0x1d0 [ 33.703825] ? sock_has_perm+0x2a4/0x420 [ 33.707849] ? lock_release+0x962/0xa40 [ 33.711807] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 33.717664] ? __check_object_size+0x25d/0x4f0 [ 33.722212] inet_sendmsg+0x11f/0x5e0 [ 33.725975] ? inet_sendmsg+0x11f/0x5e0 [ 33.729910] ? __might_sleep+0x95/0x190 [ 33.733847] ? inet_recvmsg+0x5f0/0x5f0 [ 33.737788] ? selinux_socket_sendmsg+0x36/0x40 [ 33.742422] ? security_socket_sendmsg+0x89/0xb0 [ 33.747142] ? inet_recvmsg+0x5f0/0x5f0 [ 33.751083] sock_sendmsg+0xca/0x110 [ 33.754763] SYSC_sendto+0x361/0x5c0 [ 33.758444] ? SYSC_connect+0x4a0/0x4a0 [ 33.762384] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 33.767713] ? __do_page_fault+0x3d6/0xc90 [ 33.771916] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 33.777169] ? SyS_futex+0x269/0x390 [ 33.780845] ? SyS_setsockopt+0x215/0x360 [ 33.784960] ? do_futex+0x22a0/0x22a0 [ 33.788726] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 33.793535] SyS_sendto+0x40/0x50 [ 33.796954] entry_SYSCALL_64_fastpath+0x23/0x9a [ 33.801674] RIP: 0033:0x4457e9 [ 33.804830] RSP: 002b:00007f17292aada8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 33.812500] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 33.819734] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 33.826968] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 33.834202] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 33.841436] R13: 00007fffee66fd3f R14: 00007f17292ab9c0 R15: 0000000000000001 [ 33.848708] Dumping ftrace buffer: [ 33.852213] (ftrace buffer empty) [ 33.855890] Kernel Offset: disabled [ 33.859482] Rebooting in 86400 seconds..