[....] Starting enhanced syslogd: rsyslogd[ 11.770967] audit: type=1400 audit(1515629232.075:5): avc: denied { syslog } for pid=3340 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 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: [ 16.829064] audit: type=1400 audit(1515629237.133:6): avc: denied { map } for pid=3480 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.229' (ECDSA) to the list of known hosts. executing program [ 31.412157] audit: type=1400 audit(1515629251.716:7): avc: denied { map } for pid=3498 comm="syzkaller894014" path="/root/syzkaller894014534" 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 [ 31.597360] [ 31.598995] ========================= [ 31.602758] WARNING: held lock freed! [ 31.606535] 4.15.0-rc7+ #257 Not tainted [ 31.610558] ------------------------- [ 31.614323] syzkaller894014/3502 is freeing memory 000000002163fc3c-000000009a59e56f, with a lock still held there! [ 31.624859] (sk_lock-AF_INET6){+.+.}, at: [<00000000b86a7871>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 31.633761] 1 lock held by syzkaller894014/3502: [ 31.638477] #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000b86a7871>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 31.647809] [ 31.647809] stack backtrace: [ 31.652272] CPU: 0 PID: 3502 Comm: syzkaller894014 Not tainted 4.15.0-rc7+ #257 [ 31.659683] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.669003] Call Trace: [ 31.671561] dump_stack+0x194/0x257 [ 31.675155] ? arch_local_irq_restore+0x53/0x53 [ 31.679799] debug_check_no_locks_freed+0x32f/0x3c0 [ 31.684786] kmem_cache_free+0x68/0x2a0 [ 31.688727] __sk_destruct+0x622/0x910 [ 31.692583] ? kasan_slab_free+0x71/0xc0 [ 31.696611] ? sock_rfree+0x160/0x160 [ 31.700378] ? inet_sendmsg+0x11f/0x5e0 [ 31.704319] ? SYSC_sendto+0x361/0x5c0 [ 31.708173] ? SyS_sendto+0x40/0x50 [ 31.711766] ? entry_SYSCALL_64_fastpath+0x23/0x9a [ 31.716662] ? check_noncircular+0x20/0x20 [ 31.720864] ? print_irqtrace_events+0x270/0x270 [ 31.725586] ? free_obj_work+0x690/0x690 [ 31.729614] ? sctp_put_port+0x495/0x640 [ 31.733657] ? sctp_poll+0xc00/0xc00 [ 31.737359] ? refcount_sub_and_test+0x115/0x1b0 [ 31.742092] ? refcount_inc+0x50/0x50 [ 31.745860] ? refcount_inc+0x50/0x50 [ 31.749634] sk_destruct+0x47/0x80 [ 31.753147] __sk_free+0x57/0x230 [ 31.756568] sk_free+0x2a/0x40 [ 31.759730] sctp_association_put+0x14c/0x2f0 [ 31.764192] ? sctp_association_hold+0x20/0x20 [ 31.768740] ? lock_sock_nested+0x91/0x110 [ 31.772946] ? trace_hardirqs_on+0xd/0x10 [ 31.777067] ? __local_bh_enable_ip+0x121/0x230 [ 31.781708] sctp_wait_for_sndbuf+0x673/0x8d0 [ 31.786613] ? sctp_init_sock+0x13b0/0x13b0 [ 31.790902] ? do_raw_spin_trylock+0x190/0x190 [ 31.795453] ? __local_bh_enable_ip+0x121/0x230 [ 31.800096] ? sctp_prsctp_prune+0x97/0x6f0 [ 31.804391] ? prepare_to_wait+0x4d0/0x4d0 [ 31.808599] ? trace_hardirqs_on+0xd/0x10 [ 31.812731] sctp_sendmsg+0x277d/0x3360 [ 31.816678] ? put_pi_state+0x3c0/0x560 [ 31.820628] ? sctp_id2assoc+0x390/0x390 [ 31.824658] ? avc_has_perm+0x43e/0x680 [ 31.828602] ? avc_has_perm_noaudit+0x520/0x520 [ 31.833247] ? __fget+0x35c/0x570 [ 31.836669] ? iterate_fd+0x3f0/0x3f0 [ 31.840440] ? find_held_lock+0x35/0x1d0 [ 31.844483] ? sock_has_perm+0x2a4/0x420 [ 31.848516] ? lock_release+0x962/0xa40 [ 31.852460] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.858315] ? __check_object_size+0x25d/0x4f0 [ 31.862884] inet_sendmsg+0x11f/0x5e0 [ 31.866653] ? inet_sendmsg+0x11f/0x5e0 [ 31.870600] ? __might_sleep+0x95/0x190 [ 31.874550] ? inet_recvmsg+0x5f0/0x5f0 [ 31.878497] ? selinux_socket_sendmsg+0x36/0x40 [ 31.883133] ? security_socket_sendmsg+0x89/0xb0 [ 31.887856] ? inet_recvmsg+0x5f0/0x5f0 [ 31.891801] sock_sendmsg+0xca/0x110 [ 31.895485] SYSC_sendto+0x361/0x5c0 [ 31.899169] ? SYSC_connect+0x4a0/0x4a0 [ 31.903115] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 31.908449] ? __do_page_fault+0x3d6/0xc90 [ 31.912655] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 31.917915] ? SyS_futex+0x269/0x390 [ 31.921596] ? SyS_setsockopt+0x215/0x360 [ 31.925713] ? do_futex+0x22a0/0x22a0 [ 31.929482] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 31.934302] SyS_sendto+0x40/0x50 [ 31.937725] entry_SYSCALL_64_fastpath+0x23/0x9a [ 31.942446] RIP: 0033:0x4457e9 [ 31.945610] RSP: 002b:00007fdd0d139da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 31.953284] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 31.960520] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 31.967764] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 31.975002] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 31.982241] R13: 00007fff6c34a7df R14: 00007fdd0d13a9c0 R15: 0000000000000001 [ 31.989583] ================================================================== [ 31.996919] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 32.003553] Read of size 4 at addr ffff8801c0b0a08c by task syzkaller894014/3502 [ 32.011051] [ 32.012647] CPU: 0 PID: 3502 Comm: syzkaller894014 Not tainted 4.15.0-rc7+ #257 [ 32.020060] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.029380] Call Trace: [ 32.031940] dump_stack+0x194/0x257 [ 32.035544] ? arch_local_irq_restore+0x53/0x53 [ 32.040188] ? show_regs_print_info+0x18/0x18 [ 32.044649] ? lock_acquire+0x1d5/0x580 [ 32.048591] ? trace_hardirqs_on+0xd/0x10 [ 32.052708] ? do_raw_spin_lock+0x1e0/0x220 [ 32.056999] print_address_description+0x73/0x250 [ 32.061815] ? do_raw_spin_lock+0x1e0/0x220 [ 32.066109] kasan_report+0x25b/0x340 [ 32.069880] __asan_report_load4_noabort+0x14/0x20 [ 32.074781] do_raw_spin_lock+0x1e0/0x220 [ 32.078903] _raw_spin_lock_bh+0x39/0x40 [ 32.082936] ? release_sock+0x74/0x2a0 [ 32.086801] release_sock+0x74/0x2a0 [ 32.090484] ? sctp_prsctp_prune+0x97/0x6f0 [ 32.094780] ? __release_sock+0x360/0x360 [ 32.099597] ? trace_hardirqs_on+0xd/0x10 [ 32.103716] sctp_sendmsg+0x2c61/0x3360 [ 32.107655] ? put_pi_state+0x3c0/0x560 [ 32.111603] ? sctp_id2assoc+0x390/0x390 [ 32.115630] ? avc_has_perm+0x43e/0x680 [ 32.119573] ? avc_has_perm_noaudit+0x520/0x520 [ 32.124208] ? __fget+0x35c/0x570 [ 32.127631] ? iterate_fd+0x3f0/0x3f0 [ 32.131400] ? find_held_lock+0x35/0x1d0 [ 32.135429] ? sock_has_perm+0x2a4/0x420 [ 32.139458] ? lock_release+0x962/0xa40 [ 32.143398] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 32.149248] ? __check_object_size+0x25d/0x4f0 [ 32.153799] inet_sendmsg+0x11f/0x5e0 [ 32.157565] ? inet_sendmsg+0x11f/0x5e0 [ 32.161503] ? __might_sleep+0x95/0x190 [ 32.165440] ? inet_recvmsg+0x5f0/0x5f0 [ 32.169382] ? selinux_socket_sendmsg+0x36/0x40 [ 32.174024] ? security_socket_sendmsg+0x89/0xb0 [ 32.178746] ? inet_recvmsg+0x5f0/0x5f0 [ 32.182686] sock_sendmsg+0xca/0x110 [ 32.186373] SYSC_sendto+0x361/0x5c0 [ 32.190058] ? SYSC_connect+0x4a0/0x4a0 [ 32.193999] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 32.199327] ? __do_page_fault+0x3d6/0xc90 [ 32.203527] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 32.208787] ? SyS_futex+0x269/0x390 [ 32.212467] ? SyS_setsockopt+0x215/0x360 [ 32.216580] ? do_futex+0x22a0/0x22a0 [ 32.220347] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 32.225160] SyS_sendto+0x40/0x50 [ 32.228581] entry_SYSCALL_64_fastpath+0x23/0x9a [ 32.233301] RIP: 0033:0x4457e9 [ 32.236458] RSP: 002b:00007fdd0d139da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 32.244216] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 32.251453] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 32.258687] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 32.265921] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 32.273161] R13: 00007fff6c34a7df R14: 00007fdd0d13a9c0 R15: 0000000000000001 [ 32.280407] [ 32.282004] Allocated by task 3507: [ 32.285602] save_stack+0x43/0xd0 [ 32.289020] kasan_kmalloc+0xad/0xe0 [ 32.292696] kasan_slab_alloc+0x12/0x20 [ 32.296634] kmem_cache_alloc+0x12e/0x760 [ 32.300746] sk_prot_alloc+0x65/0x2a0 [ 32.304517] sk_alloc+0x105/0x1410 [ 32.308024] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 32.312833] sctp_accept+0x5c4/0x970 [ 32.316511] inet_accept+0x12c/0x930 [ 32.320189] SYSC_accept4+0x38d/0x870 [ 32.323961] SyS_accept+0x26/0x30 [ 32.327387] entry_SYSCALL_64_fastpath+0x23/0x9a [ 32.332104] [ 32.333698] Freed by task 3502: [ 32.336940] save_stack+0x43/0xd0 [ 32.340364] kasan_slab_free+0x71/0xc0 [ 32.344222] kmem_cache_free+0x83/0x2a0 [ 32.348162] __sk_destruct+0x622/0x910 [ 32.352015] sk_destruct+0x47/0x80 [ 32.355519] __sk_free+0x57/0x230 [ 32.358934] sk_free+0x2a/0x40 [ 32.362092] sctp_association_put+0x14c/0x2f0 [ 32.366550] sctp_wait_for_sndbuf+0x673/0x8d0 [ 32.371009] sctp_sendmsg+0x277d/0x3360 [ 32.374948] inet_sendmsg+0x11f/0x5e0 [ 32.378712] sock_sendmsg+0xca/0x110 [ 32.382391] SYSC_sendto+0x361/0x5c0 [ 32.386068] SyS_sendto+0x40/0x50 [ 32.389498] entry_SYSCALL_64_fastpath+0x23/0x9a [ 32.394215] [ 32.395809] The buggy address belongs to the object at ffff8801c0b0a000 [ 32.395809] which belongs to the cache SCTPv6 of size 1888 [ 32.408083] The buggy address is located 140 bytes inside of [ 32.408083] 1888-byte region [ffff8801c0b0a000, ffff8801c0b0a760) [ 32.420018] The buggy address belongs to the page: [ 32.424919] page:ffffea000702c280 count:1 mapcount:0 mapping:ffff8801c0b0a000 index:0x0 [ 32.433028] flags: 0x2fffc0000000100(slab) [ 32.437232] raw: 02fffc0000000100 ffff8801c0b0a000 0000000000000000 0000000100000002 [ 32.445077] raw: ffffea00074cae60 ffffea0007024a20 ffff8801d32b3b40 0000000000000000 [ 32.452918] page dumped because: kasan: bad access detected [ 32.458591] [ 32.460182] Memory state around the buggy address: [ 32.465076] ffff8801c0b09f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.472413] ffff8801c0b0a000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.479743] >ffff8801c0b0a080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.487065] ^ [ 32.490654] ffff8801c0b0a100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.497977] ffff8801c0b0a180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.505301] ================================================================== [ 32.512682] Kernel panic - not syncing: panic_on_warn set ... [ 32.512682] [ 32.520015] CPU: 0 PID: 3502 Comm: syzkaller894014 Tainted: G B 4.15.0-rc7+ #257 [ 32.528728] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.538057] Call Trace: [ 32.540623] dump_stack+0x194/0x257 [ 32.544236] ? arch_local_irq_restore+0x53/0x53 [ 32.548873] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.553595] ? vsnprintf+0x1ed/0x1900 [ 32.557362] ? do_raw_spin_lock+0x100/0x220 [ 32.561649] panic+0x1e4/0x41c [ 32.564808] ? refcount_error_report+0x214/0x214 [ 32.569541] ? add_taint+0x1c/0x50 [ 32.573049] ? add_taint+0x1c/0x50 [ 32.576555] ? do_raw_spin_lock+0x1e0/0x220 [ 32.580846] kasan_end_report+0x50/0x50 [ 32.584794] kasan_report+0x144/0x340 [ 32.588575] __asan_report_load4_noabort+0x14/0x20 [ 32.593470] do_raw_spin_lock+0x1e0/0x220 [ 32.597588] _raw_spin_lock_bh+0x39/0x40 [ 32.601617] ? release_sock+0x74/0x2a0 [ 32.605470] release_sock+0x74/0x2a0 [ 32.609162] ? sctp_prsctp_prune+0x97/0x6f0 [ 32.613449] ? __release_sock+0x360/0x360 [ 32.617562] ? trace_hardirqs_on+0xd/0x10 [ 32.621679] sctp_sendmsg+0x2c61/0x3360 [ 32.625620] ? put_pi_state+0x3c0/0x560 [ 32.629575] ? sctp_id2assoc+0x390/0x390 [ 32.633609] ? avc_has_perm+0x43e/0x680 [ 32.637552] ? avc_has_perm_noaudit+0x520/0x520 [ 32.642186] ? __fget+0x35c/0x570 [ 32.645608] ? iterate_fd+0x3f0/0x3f0 [ 32.649380] ? find_held_lock+0x35/0x1d0 [ 32.653411] ? sock_has_perm+0x2a4/0x420 [ 32.657440] ? lock_release+0x962/0xa40 [ 32.661380] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 32.667231] ? __check_object_size+0x25d/0x4f0 [ 32.671781] inet_sendmsg+0x11f/0x5e0 [ 32.675546] ? inet_sendmsg+0x11f/0x5e0 [ 32.679491] ? __might_sleep+0x95/0x190 [ 32.683431] ? inet_recvmsg+0x5f0/0x5f0 [ 32.687371] ? selinux_socket_sendmsg+0x36/0x40 [ 32.692013] ? security_socket_sendmsg+0x89/0xb0 [ 32.696735] ? inet_recvmsg+0x5f0/0x5f0 [ 32.700676] sock_sendmsg+0xca/0x110 [ 32.704355] SYSC_sendto+0x361/0x5c0 [ 32.708035] ? SYSC_connect+0x4a0/0x4a0 [ 32.711981] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 32.717310] ? __do_page_fault+0x3d6/0xc90 [ 32.721512] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 32.726765] ? SyS_futex+0x269/0x390 [ 32.730443] ? SyS_setsockopt+0x215/0x360 [ 32.734557] ? do_futex+0x22a0/0x22a0 [ 32.738340] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 32.743156] SyS_sendto+0x40/0x50 [ 32.746577] entry_SYSCALL_64_fastpath+0x23/0x9a [ 32.751297] RIP: 0033:0x4457e9 [ 32.754452] RSP: 002b:00007fdd0d139da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 32.762131] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 32.769371] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 32.776606] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 32.783848] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 32.791083] R13: 00007fff6c34a7df R14: 00007fdd0d13a9c0 R15: 0000000000000001 [ 32.798732] Dumping ftrace buffer: [ 32.802236] (ftrace buffer empty) [ 32.805914] Kernel Offset: disabled [ 32.809507] Rebooting in 86400 seconds..