[....] Starting enhanced syslogd: rsyslogd[ 12.922994] audit: type=1400 audit(1515899783.935:5): avc: denied { syslog } for pid=3493 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.558144] audit: type=1400 audit(1515899788.570:6): avc: denied { map } for pid=3631 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.35' (ECDSA) to the list of known hosts. executing program executing program [ 23.781885] audit: type=1400 audit(1515899794.794:7): avc: denied { map } for pid=3645 comm="syzkaller066010" path="/root/syzkaller066010987" 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 executing program executing program executing program [ 24.109641] [ 24.111302] ========================= [ 24.115070] WARNING: held lock freed! [ 24.118839] 4.15.0-rc7+ #171 Not tainted [ 24.122870] ------------------------- [ 24.126646] syzkaller066010/3648 is freeing memory 000000006928ab85-0000000011c10e25, with a lock still held there! [ 24.137186] (sk_lock-AF_INET6){+.+.}, at: [<000000009b563098>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 24.146095] 1 lock held by syzkaller066010/3648: [ 24.150819] #0: (sk_lock-AF_INET6){+.+.}, at: [<000000009b563098>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 24.160155] [ 24.160155] stack backtrace: [ 24.164624] CPU: 0 PID: 3648 Comm: syzkaller066010 Not tainted 4.15.0-rc7+ #171 [ 24.172042] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.181370] Call Trace: [ 24.183935] dump_stack+0x194/0x257 [ 24.187538] ? arch_local_irq_restore+0x53/0x53 [ 24.192194] debug_check_no_locks_freed+0x32f/0x3c0 [ 24.197190] kmem_cache_free+0x68/0x2a0 [ 24.201187] __sk_destruct+0x622/0x910 [ 24.205048] ? kasan_slab_free+0x71/0xc0 [ 24.209085] ? sock_rfree+0x160/0x160 [ 24.212858] ? inet_sendmsg+0x11f/0x5e0 [ 24.216805] ? SYSC_sendto+0x361/0x5c0 [ 24.220667] ? SyS_sendto+0x40/0x50 [ 24.224270] ? do_fast_syscall_32+0x3ee/0xf9d [ 24.228739] ? entry_SYSENTER_compat+0x54/0x63 [ 24.233297] ? check_noncircular+0x20/0x20 [ 24.237522] ? print_irqtrace_events+0x270/0x270 [ 24.242256] ? free_obj_work+0x690/0x690 [ 24.246293] ? sctp_put_port+0x495/0x640 [ 24.250331] ? sctp_poll+0xc00/0xc00 [ 24.254024] ? refcount_sub_and_test+0x115/0x1b0 [ 24.258758] ? refcount_inc+0x50/0x50 [ 24.262531] ? refcount_inc+0x50/0x50 [ 24.266313] sk_destruct+0x47/0x80 [ 24.269841] __sk_free+0x57/0x230 [ 24.273270] sk_free+0x2a/0x40 [ 24.276436] sctp_association_put+0x14c/0x2f0 [ 24.280904] ? sctp_association_hold+0x20/0x20 [ 24.285460] ? lock_sock_nested+0x91/0x110 [ 24.289668] ? trace_hardirqs_on+0xd/0x10 [ 24.293791] ? __local_bh_enable_ip+0x121/0x230 [ 24.298454] sctp_wait_for_sndbuf+0x673/0x8d0 [ 24.302930] ? sctp_init_sock+0x13b0/0x13b0 [ 24.307229] ? do_raw_spin_trylock+0x190/0x190 [ 24.311794] ? __local_bh_enable_ip+0x121/0x230 [ 24.316438] ? sctp_prsctp_prune+0x97/0x6f0 [ 24.320736] ? prepare_to_wait+0x4d0/0x4d0 [ 24.324946] ? trace_hardirqs_on+0xd/0x10 [ 24.329073] sctp_sendmsg+0x277d/0x3360 [ 24.333026] ? __lock_acquire+0x22b0/0x3e00 [ 24.337328] ? sctp_id2assoc+0x390/0x390 [ 24.341364] ? avc_has_perm+0x43e/0x680 [ 24.345318] ? avc_has_perm_noaudit+0x520/0x520 [ 24.349964] ? __fget+0x35c/0x570 [ 24.353398] ? iterate_fd+0x3f0/0x3f0 [ 24.357190] ? find_held_lock+0x35/0x1d0 [ 24.361231] ? sock_has_perm+0x2a4/0x420 [ 24.365269] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 24.370782] ? lock_release+0x962/0xa40 [ 24.374730] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.380593] inet_sendmsg+0x11f/0x5e0 [ 24.384367] ? inet_sendmsg+0x11f/0x5e0 [ 24.388314] ? __might_sleep+0x95/0x190 [ 24.392261] ? inet_recvmsg+0x5f0/0x5f0 [ 24.396209] ? selinux_socket_sendmsg+0x36/0x40 [ 24.400852] ? security_socket_sendmsg+0x89/0xb0 [ 24.405582] ? inet_recvmsg+0x5f0/0x5f0 [ 24.409531] sock_sendmsg+0xca/0x110 [ 24.413226] SYSC_sendto+0x361/0x5c0 [ 24.416914] ? SYSC_connect+0x4a0/0x4a0 [ 24.420864] ? find_held_lock+0x35/0x1d0 [ 24.424905] ? lock_downgrade+0x980/0x980 [ 24.429035] ? handle_mm_fault+0x410/0x8d0 [ 24.433245] ? down_read_trylock+0xdb/0x170 [ 24.437538] ? __do_page_fault+0x32d/0xc90 [ 24.441757] ? up_read+0x1a/0x40 [ 24.445109] ? __do_page_fault+0x3d6/0xc90 [ 24.449324] SyS_sendto+0x40/0x50 [ 24.452751] ? SyS_getpeername+0x30/0x30 [ 24.456789] do_fast_syscall_32+0x3ee/0xf9d [ 24.461089] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.465650] ? syscall_return_slowpath+0x2ad/0x550 [ 24.470558] ? prepare_exit_to_usermode+0x340/0x340 [ 24.475551] ? retint_user+0x18/0x18 [ 24.479243] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.484065] entry_SYSENTER_compat+0x54/0x63 [ 24.488447] RIP: 0023:0xf7f5ec79 [ 24.491784] RSP: 002b:00000000f7f181dc EFLAGS: 00000292 ORIG_RAX: 0000000000000171 [ 24.499467] RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 000000002010bf14 [ 24.506710] RDX: 0000000000000001 RSI: 0000000000000000 RDI: 00000000204d9000 [ 24.513969] RBP: 000000000000001c R08: 0000000000000000 R09: 0000000000000000 [ 24.521225] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 24.528470] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.535816] ================================================================== [ 24.543172] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 24.549821] Read of size 4 at addr ffff8801bb99008c by task syzkaller066010/3648 [ 24.557331] [ 24.558934] CPU: 0 PID: 3648 Comm: syzkaller066010 Not tainted 4.15.0-rc7+ #171 [ 24.566363] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.575709] Call Trace: [ 24.578273] dump_stack+0x194/0x257 [ 24.581873] ? arch_local_irq_restore+0x53/0x53 [ 24.586516] ? show_regs_print_info+0x18/0x18 [ 24.590996] ? lock_acquire+0x1d5/0x580 [ 24.594950] ? trace_hardirqs_on+0xd/0x10 [ 24.599073] ? do_raw_spin_lock+0x1e0/0x220 [ 24.603370] print_address_description+0x73/0x250 [ 24.608186] ? do_raw_spin_lock+0x1e0/0x220 [ 24.612479] kasan_report+0x25b/0x340 [ 24.616267] __asan_report_load4_noabort+0x14/0x20 [ 24.621183] do_raw_spin_lock+0x1e0/0x220 [ 24.625308] _raw_spin_lock_bh+0x39/0x40 [ 24.629343] ? release_sock+0x74/0x2a0 [ 24.633203] release_sock+0x74/0x2a0 [ 24.636889] ? sctp_prsctp_prune+0x97/0x6f0 [ 24.641183] ? __release_sock+0x360/0x360 [ 24.645317] ? trace_hardirqs_on+0xd/0x10 [ 24.649459] sctp_sendmsg+0x2c61/0x3360 [ 24.653408] ? __lock_acquire+0x22b0/0x3e00 [ 24.657720] ? sctp_id2assoc+0x390/0x390 [ 24.661759] ? avc_has_perm+0x43e/0x680 [ 24.665711] ? avc_has_perm_noaudit+0x520/0x520 [ 24.670354] ? __fget+0x35c/0x570 [ 24.673800] ? iterate_fd+0x3f0/0x3f0 [ 24.677578] ? find_held_lock+0x35/0x1d0 [ 24.681620] ? sock_has_perm+0x2a4/0x420 [ 24.685656] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 24.690995] ? lock_release+0x962/0xa40 [ 24.694945] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.700808] inet_sendmsg+0x11f/0x5e0 [ 24.704584] ? inet_sendmsg+0x11f/0x5e0 [ 24.708536] ? __might_sleep+0x95/0x190 [ 24.712484] ? inet_recvmsg+0x5f0/0x5f0 [ 24.716433] ? selinux_socket_sendmsg+0x36/0x40 [ 24.721075] ? security_socket_sendmsg+0x89/0xb0 [ 24.725821] ? inet_recvmsg+0x5f0/0x5f0 [ 24.729770] sock_sendmsg+0xca/0x110 [ 24.733461] SYSC_sendto+0x361/0x5c0 [ 24.737153] ? SYSC_connect+0x4a0/0x4a0 [ 24.741102] ? find_held_lock+0x35/0x1d0 [ 24.745142] ? lock_downgrade+0x980/0x980 [ 24.749272] ? handle_mm_fault+0x410/0x8d0 [ 24.753482] ? down_read_trylock+0xdb/0x170 [ 24.757777] ? __do_page_fault+0x32d/0xc90 [ 24.761993] ? up_read+0x1a/0x40 [ 24.765336] ? __do_page_fault+0x3d6/0xc90 [ 24.769551] SyS_sendto+0x40/0x50 [ 24.772993] ? SyS_getpeername+0x30/0x30 [ 24.777035] do_fast_syscall_32+0x3ee/0xf9d [ 24.781333] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.785894] ? syscall_return_slowpath+0x2ad/0x550 [ 24.790797] ? prepare_exit_to_usermode+0x340/0x340 [ 24.795789] ? retint_user+0x18/0x18 [ 24.799481] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.804302] entry_SYSENTER_compat+0x54/0x63 [ 24.808684] RIP: 0023:0xf7f5ec79 [ 24.812022] RSP: 002b:00000000f7f181dc EFLAGS: 00000292 ORIG_RAX: 0000000000000171 [ 24.819707] RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 000000002010bf14 [ 24.826963] RDX: 0000000000000001 RSI: 0000000000000000 RDI: 00000000204d9000 [ 24.834206] RBP: 000000000000001c R08: 0000000000000000 R09: 0000000000000000 [ 24.841461] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 24.848705] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.855960] [ 24.857562] Allocated by task 3653: [ 24.861166] save_stack+0x43/0xd0 [ 24.864594] kasan_kmalloc+0xad/0xe0 [ 24.868281] kasan_slab_alloc+0x12/0x20 [ 24.872240] kmem_cache_alloc+0x12e/0x760 [ 24.876363] sk_prot_alloc+0x65/0x2a0 [ 24.880160] sk_alloc+0x105/0x1410 [ 24.883673] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 24.888489] sctp_accept+0x5c4/0x970 [ 24.892177] inet_accept+0x12c/0x930 [ 24.895862] SYSC_accept4+0x38d/0x870 [ 24.899633] SyS_accept4+0x2c/0x40 [ 24.903149] do_fast_syscall_32+0x3ee/0xf9d [ 24.907441] entry_SYSENTER_compat+0x54/0x63 [ 24.911819] [ 24.913418] Freed by task 3648: [ 24.916671] save_stack+0x43/0xd0 [ 24.920097] kasan_slab_free+0x71/0xc0 [ 24.923956] kmem_cache_free+0x83/0x2a0 [ 24.927903] __sk_destruct+0x622/0x910 [ 24.931764] sk_destruct+0x47/0x80 [ 24.935277] __sk_free+0x57/0x230 [ 24.938701] sk_free+0x2a/0x40 [ 24.941880] sctp_association_put+0x14c/0x2f0 [ 24.946349] sctp_wait_for_sndbuf+0x673/0x8d0 [ 24.950814] sctp_sendmsg+0x277d/0x3360 [ 24.954763] inet_sendmsg+0x11f/0x5e0 [ 24.958538] sock_sendmsg+0xca/0x110 [ 24.962225] SYSC_sendto+0x361/0x5c0 [ 24.965910] SyS_sendto+0x40/0x50 [ 24.969339] do_fast_syscall_32+0x3ee/0xf9d [ 24.973658] entry_SYSENTER_compat+0x54/0x63 [ 24.978035] [ 24.979639] The buggy address belongs to the object at ffff8801bb990000 [ 24.979639] which belongs to the cache SCTPv6 of size 1888 [ 24.991920] The buggy address is located 140 bytes inside of [ 24.991920] 1888-byte region [ffff8801bb990000, ffff8801bb990760) [ 25.003853] The buggy address belongs to the page: [ 25.008757] page:ffffea0006ee6400 count:1 mapcount:0 mapping:ffff8801bb990000 index:0x0 [ 25.016874] flags: 0x2fffc0000000100(slab) [ 25.021084] raw: 02fffc0000000100 ffff8801bb990000 0000000000000000 0000000100000002 [ 25.028938] raw: ffffea0006eb0ea0 ffffea0006eccba0 ffff8801d2c91080 0000000000000000 [ 25.036788] page dumped because: kasan: bad access detected [ 25.042467] [ 25.044066] Memory state around the buggy address: [ 25.048967] ffff8801bb98ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.056299] ffff8801bb990000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.063633] >ffff8801bb990080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.070962] ^ [ 25.074560] ffff8801bb990100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.081904] ffff8801bb990180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.089232] ================================================================== [ 25.096610] Kernel panic - not syncing: panic_on_warn set ... [ 25.096610] [ 25.103970] CPU: 0 PID: 3648 Comm: syzkaller066010 Tainted: G B 4.15.0-rc7+ #171 [ 25.113192] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.122522] Call Trace: [ 25.125096] dump_stack+0x194/0x257 [ 25.128733] ? arch_local_irq_restore+0x53/0x53 [ 25.133395] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.138127] ? vsnprintf+0x1ed/0x1900 [ 25.141899] ? do_raw_spin_lock+0x100/0x220 [ 25.146192] panic+0x1e4/0x41c [ 25.149373] ? refcount_error_report+0x214/0x214 [ 25.154112] ? add_taint+0x1c/0x50 [ 25.157626] ? add_taint+0x1c/0x50 [ 25.161143] ? do_raw_spin_lock+0x1e0/0x220 [ 25.165439] kasan_end_report+0x50/0x50 [ 25.169391] kasan_report+0x144/0x340 [ 25.173168] __asan_report_load4_noabort+0x14/0x20 [ 25.178070] do_raw_spin_lock+0x1e0/0x220 [ 25.182192] _raw_spin_lock_bh+0x39/0x40 [ 25.186226] ? release_sock+0x74/0x2a0 [ 25.190086] release_sock+0x74/0x2a0 [ 25.193771] ? sctp_prsctp_prune+0x97/0x6f0 [ 25.198070] ? __release_sock+0x360/0x360 [ 25.202193] ? trace_hardirqs_on+0xd/0x10 [ 25.206314] sctp_sendmsg+0x2c61/0x3360 [ 25.210261] ? __lock_acquire+0x22b0/0x3e00 [ 25.214560] ? sctp_id2assoc+0x390/0x390 [ 25.218607] ? avc_has_perm+0x43e/0x680 [ 25.222555] ? avc_has_perm_noaudit+0x520/0x520 [ 25.227195] ? __fget+0x35c/0x570 [ 25.230624] ? iterate_fd+0x3f0/0x3f0 [ 25.234401] ? find_held_lock+0x35/0x1d0 [ 25.238438] ? sock_has_perm+0x2a4/0x420 [ 25.242471] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 25.247806] ? lock_release+0x962/0xa40 [ 25.251753] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.257628] inet_sendmsg+0x11f/0x5e0 [ 25.261402] ? inet_sendmsg+0x11f/0x5e0 [ 25.265347] ? __might_sleep+0x95/0x190 [ 25.269293] ? inet_recvmsg+0x5f0/0x5f0 [ 25.273254] ? selinux_socket_sendmsg+0x36/0x40 [ 25.277895] ? security_socket_sendmsg+0x89/0xb0 [ 25.282623] ? inet_recvmsg+0x5f0/0x5f0 [ 25.286571] sock_sendmsg+0xca/0x110 [ 25.290257] SYSC_sendto+0x361/0x5c0 [ 25.293944] ? SYSC_connect+0x4a0/0x4a0 [ 25.297892] ? find_held_lock+0x35/0x1d0 [ 25.301932] ? lock_downgrade+0x980/0x980 [ 25.306059] ? handle_mm_fault+0x410/0x8d0 [ 25.310266] ? down_read_trylock+0xdb/0x170 [ 25.314559] ? __do_page_fault+0x32d/0xc90 [ 25.318782] ? up_read+0x1a/0x40 [ 25.322121] ? __do_page_fault+0x3d6/0xc90 [ 25.326334] SyS_sendto+0x40/0x50 [ 25.329759] ? SyS_getpeername+0x30/0x30 [ 25.333807] do_fast_syscall_32+0x3ee/0xf9d [ 25.338116] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.342687] ? syscall_return_slowpath+0x2ad/0x550 [ 25.347588] ? prepare_exit_to_usermode+0x340/0x340 [ 25.352577] ? retint_user+0x18/0x18 [ 25.356265] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.361097] entry_SYSENTER_compat+0x54/0x63 [ 25.365476] RIP: 0023:0xf7f5ec79 [ 25.368812] RSP: 002b:00000000f7f181dc EFLAGS: 00000292 ORIG_RAX: 0000000000000171 [ 25.376512] RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 000000002010bf14 [ 25.383766] RDX: 0000000000000001 RSI: 0000000000000000 RDI: 00000000204d9000 [ 25.391010] RBP: 000000000000001c R08: 0000000000000000 R09: 0000000000000000 [ 25.398258] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.405504] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.413214] Dumping ftrace buffer: [ 25.416729] (ftrace buffer empty) [ 25.420410] Kernel Offset: disabled [ 25.424010] Rebooting in 86400 seconds..