[....] Starting enhanced syslogd: rsyslogd[ 12.385743] audit: type=1400 audit(1515650938.450:5): avc: denied { syslog } for pid=3350 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: [ 19.644403] audit: type=1400 audit(1515650945.709:6): avc: denied { map } for pid=3490 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.55' (ECDSA) to the list of known hosts. executing program [ 25.842649] audit: type=1400 audit(1515650951.907:7): avc: denied { map } for pid=3504 comm="syzkaller988550" path="/root/syzkaller988550305" 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 [ 26.079903] [ 26.081538] ========================= [ 26.085300] WARNING: held lock freed! [ 26.089066] 4.15.0-rc7+ #257 Not tainted [ 26.093087] ------------------------- [ 26.096854] syzkaller988550/3513 is freeing memory 00000000cd96d875-000000006d9748f3, with a lock still held there! [ 26.107392] (sk_lock-AF_INET6){+.+.}, at: [<00000000cc6f7294>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 26.116296] 1 lock held by syzkaller988550/3513: [ 26.121010] #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000cc6f7294>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 26.130337] [ 26.130337] stack backtrace: [ 26.134800] CPU: 0 PID: 3513 Comm: syzkaller988550 Not tainted 4.15.0-rc7+ #257 [ 26.142210] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.151528] Call Trace: [ 26.154085] dump_stack+0x194/0x257 [ 26.157679] ? arch_local_irq_restore+0x53/0x53 [ 26.162318] debug_check_no_locks_freed+0x32f/0x3c0 [ 26.167303] kmem_cache_free+0x68/0x2a0 [ 26.171246] __sk_destruct+0x622/0x910 [ 26.175097] ? kasan_slab_free+0x71/0xc0 [ 26.179126] ? sock_rfree+0x160/0x160 [ 26.182892] ? inet_sendmsg+0x11f/0x5e0 [ 26.186829] ? SYSC_sendto+0x361/0x5c0 [ 26.190683] ? SyS_sendto+0x40/0x50 [ 26.194274] ? entry_SYSCALL_64_fastpath+0x23/0x9a [ 26.199518] ? check_noncircular+0x20/0x20 [ 26.203982] ? print_irqtrace_events+0x270/0x270 [ 26.208718] ? free_obj_work+0x690/0x690 [ 26.212745] ? sctp_put_port+0x495/0x640 [ 26.216772] ? sctp_poll+0xc00/0xc00 [ 26.220457] ? refcount_sub_and_test+0x115/0x1b0 [ 26.225176] ? refcount_inc+0x50/0x50 [ 26.228944] ? refcount_inc+0x50/0x50 [ 26.232711] sk_destruct+0x47/0x80 [ 26.236216] __sk_free+0x57/0x230 [ 26.239632] sk_free+0x2a/0x40 [ 26.242792] sctp_association_put+0x14c/0x2f0 [ 26.247252] ? sctp_association_hold+0x20/0x20 [ 26.251797] ? lock_sock_nested+0x91/0x110 [ 26.255995] ? trace_hardirqs_on+0xd/0x10 [ 26.260109] ? __local_bh_enable_ip+0x121/0x230 [ 26.264748] sctp_wait_for_sndbuf+0x673/0x8d0 [ 26.269665] ? sctp_init_sock+0x13b0/0x13b0 [ 26.273962] ? do_raw_spin_trylock+0x190/0x190 [ 26.278516] ? __local_bh_enable_ip+0x121/0x230 [ 26.283149] ? sctp_prsctp_prune+0x97/0x6f0 [ 26.287436] ? prepare_to_wait+0x4d0/0x4d0 [ 26.291636] ? trace_hardirqs_on+0xd/0x10 [ 26.295753] sctp_sendmsg+0x277d/0x3360 [ 26.299693] ? put_pi_state+0x3c0/0x560 [ 26.303640] ? sctp_id2assoc+0x390/0x390 [ 26.307668] ? avc_has_perm+0x43e/0x680 [ 26.311612] ? avc_has_perm_noaudit+0x520/0x520 [ 26.316245] ? __fget+0x35c/0x570 [ 26.319665] ? iterate_fd+0x3f0/0x3f0 [ 26.323433] ? find_held_lock+0x35/0x1d0 [ 26.327463] ? sock_has_perm+0x2a4/0x420 [ 26.331490] ? lock_release+0x962/0xa40 [ 26.335428] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.341279] ? __check_object_size+0x25d/0x4f0 [ 26.345830] inet_sendmsg+0x11f/0x5e0 [ 26.349596] ? inet_sendmsg+0x11f/0x5e0 [ 26.353535] ? __might_sleep+0x95/0x190 [ 26.357473] ? inet_recvmsg+0x5f0/0x5f0 [ 26.361413] ? selinux_socket_sendmsg+0x36/0x40 [ 26.366046] ? security_socket_sendmsg+0x89/0xb0 [ 26.371203] ? inet_recvmsg+0x5f0/0x5f0 [ 26.375144] sock_sendmsg+0xca/0x110 [ 26.378832] SYSC_sendto+0x361/0x5c0 [ 26.382511] ? SYSC_connect+0x4a0/0x4a0 [ 26.386449] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 26.391779] ? __do_page_fault+0x3d6/0xc90 [ 26.395979] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 26.401230] ? SyS_futex+0x269/0x390 [ 26.404910] ? SyS_setsockopt+0x215/0x360 [ 26.409022] ? do_futex+0x22a0/0x22a0 [ 26.412788] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 26.417599] SyS_sendto+0x40/0x50 [ 26.421021] entry_SYSCALL_64_fastpath+0x23/0x9a [ 26.425742] RIP: 0033:0x4457e9 [ 26.428896] RSP: 002b:00007f7496c8eda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 26.436829] RAX: ffffffffffffffda RBX: 00000000006dac84 RCX: 00000000004457e9 [ 26.444063] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000005 [ 26.451298] RBP: 00000000006dac80 R08: 00000000204d9000 R09: 000000000000001c [ 26.458534] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 26.465771] R13: 00007fffdf3d511f R14: 00007f7496c8f9c0 R15: 0000000000000001 [ 26.473118] ================================================================== [ 26.480459] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 26.487095] Read of size 4 at addr ffff8801bf72b88c by task syzkaller988550/3513 [ 26.494597] [ 26.496193] CPU: 0 PID: 3513 Comm: syzkaller988550 Not tainted 4.15.0-rc7+ #257 [ 26.503608] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.512926] Call Trace: [ 26.515481] dump_stack+0x194/0x257 [ 26.519079] ? arch_local_irq_restore+0x53/0x53 [ 26.523715] ? show_regs_print_info+0x18/0x18 [ 26.528174] ? lock_acquire+0x1d5/0x580 [ 26.532112] ? trace_hardirqs_on+0xd/0x10 [ 26.536226] ? do_raw_spin_lock+0x1e0/0x220 [ 26.540515] print_address_description+0x73/0x250 [ 26.545326] ? do_raw_spin_lock+0x1e0/0x220 [ 26.549611] kasan_report+0x25b/0x340 [ 26.553380] __asan_report_load4_noabort+0x14/0x20 [ 26.558277] do_raw_spin_lock+0x1e0/0x220 [ 26.562393] _raw_spin_lock_bh+0x39/0x40 [ 26.566420] ? release_sock+0x74/0x2a0 [ 26.570271] release_sock+0x74/0x2a0 [ 26.573951] ? sctp_prsctp_prune+0x97/0x6f0 [ 26.578237] ? __release_sock+0x360/0x360 [ 26.582349] ? trace_hardirqs_on+0xd/0x10 [ 26.586466] sctp_sendmsg+0x2c61/0x3360 [ 26.590404] ? put_pi_state+0x3c0/0x560 [ 26.594350] ? sctp_id2assoc+0x390/0x390 [ 26.598376] ? avc_has_perm+0x43e/0x680 [ 26.602319] ? avc_has_perm_noaudit+0x520/0x520 [ 26.606954] ? __fget+0x35c/0x570 [ 26.610990] ? iterate_fd+0x3f0/0x3f0 [ 26.614758] ? find_held_lock+0x35/0x1d0 [ 26.618785] ? sock_has_perm+0x2a4/0x420 [ 26.622812] ? lock_release+0x962/0xa40 [ 26.626753] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.632604] ? __check_object_size+0x25d/0x4f0 [ 26.637153] inet_sendmsg+0x11f/0x5e0 [ 26.640917] ? inet_sendmsg+0x11f/0x5e0 [ 26.644854] ? __might_sleep+0x95/0x190 [ 26.648792] ? inet_recvmsg+0x5f0/0x5f0 [ 26.652732] ? selinux_socket_sendmsg+0x36/0x40 [ 26.657367] ? security_socket_sendmsg+0x89/0xb0 [ 26.662086] ? inet_recvmsg+0x5f0/0x5f0 [ 26.666029] sock_sendmsg+0xca/0x110 [ 26.669706] SYSC_sendto+0x361/0x5c0 [ 26.673385] ? SYSC_connect+0x4a0/0x4a0 [ 26.677325] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 26.682654] ? __do_page_fault+0x3d6/0xc90 [ 26.686856] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 26.692107] ? SyS_futex+0x269/0x390 [ 26.695786] ? SyS_setsockopt+0x215/0x360 [ 26.699901] ? do_futex+0x22a0/0x22a0 [ 26.703666] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 26.708475] SyS_sendto+0x40/0x50 [ 26.711895] entry_SYSCALL_64_fastpath+0x23/0x9a [ 26.716618] RIP: 0033:0x4457e9 [ 26.719773] RSP: 002b:00007f7496c8eda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 26.727880] RAX: ffffffffffffffda RBX: 00000000006dac84 RCX: 00000000004457e9 [ 26.735113] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000005 [ 26.742350] RBP: 00000000006dac80 R08: 00000000204d9000 R09: 000000000000001c [ 26.749586] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 26.756821] R13: 00007fffdf3d511f R14: 00007f7496c8f9c0 R15: 0000000000000001 [ 26.764062] [ 26.765657] Allocated by task 3514: [ 26.769248] save_stack+0x43/0xd0 [ 26.772665] kasan_kmalloc+0xad/0xe0 [ 26.776341] kasan_slab_alloc+0x12/0x20 [ 26.780278] kmem_cache_alloc+0x12e/0x760 [ 26.784390] sk_prot_alloc+0x65/0x2a0 [ 26.788153] sk_alloc+0x105/0x1410 [ 26.791657] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 26.796464] sctp_accept+0x5c4/0x970 [ 26.800140] inet_accept+0x12c/0x930 [ 26.803815] SYSC_accept4+0x38d/0x870 [ 26.807581] SyS_accept+0x26/0x30 [ 26.811001] entry_SYSCALL_64_fastpath+0x23/0x9a [ 26.815721] [ 26.817311] Freed by task 3513: [ 26.820556] save_stack+0x43/0xd0 [ 26.823973] kasan_slab_free+0x71/0xc0 [ 26.828177] kmem_cache_free+0x83/0x2a0 [ 26.832113] __sk_destruct+0x622/0x910 [ 26.835964] sk_destruct+0x47/0x80 [ 26.839466] __sk_free+0x57/0x230 [ 26.842882] sk_free+0x2a/0x40 [ 26.846039] sctp_association_put+0x14c/0x2f0 [ 26.850502] sctp_wait_for_sndbuf+0x673/0x8d0 [ 26.854963] sctp_sendmsg+0x277d/0x3360 [ 26.858900] inet_sendmsg+0x11f/0x5e0 [ 26.862664] sock_sendmsg+0xca/0x110 [ 26.866341] SYSC_sendto+0x361/0x5c0 [ 26.870018] SyS_sendto+0x40/0x50 [ 26.873437] entry_SYSCALL_64_fastpath+0x23/0x9a [ 26.878152] [ 26.879749] The buggy address belongs to the object at ffff8801bf72b800 [ 26.879749] which belongs to the cache SCTPv6 of size 1888 [ 26.892024] The buggy address is located 140 bytes inside of [ 26.892024] 1888-byte region [ffff8801bf72b800, ffff8801bf72bf60) [ 26.903947] The buggy address belongs to the page: [ 26.908843] page:ffffea0006fdcac0 count:1 mapcount:0 mapping:ffff8801bf72b000 index:0x0 [ 26.916952] flags: 0x2fffc0000000100(slab) [ 26.921151] raw: 02fffc0000000100 ffff8801bf72b000 0000000000000000 0000000100000002 [ 26.928997] raw: ffffea0006fd20a0 ffffea0006fb3560 ffff8801d32a5e40 0000000000000000 [ 26.936848] page dumped because: kasan: bad access detected [ 26.942519] [ 26.944113] Memory state around the buggy address: [ 26.949005] ffff8801bf72b780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.956340] ffff8801bf72b800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.963670] >ffff8801bf72b880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.970996] ^ [ 26.974585] ffff8801bf72b900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.981907] ffff8801bf72b980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.989225] ================================================================== [ 26.996590] Kernel panic - not syncing: panic_on_warn set ... [ 26.996590] [ 27.003919] CPU: 0 PID: 3513 Comm: syzkaller988550 Tainted: G B 4.15.0-rc7+ #257 [ 27.012889] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.022208] Call Trace: [ 27.024763] dump_stack+0x194/0x257 [ 27.028359] ? arch_local_irq_restore+0x53/0x53 [ 27.032993] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.037715] ? vsnprintf+0x1ed/0x1900 [ 27.041486] ? do_raw_spin_lock+0x100/0x220 [ 27.045773] panic+0x1e4/0x41c [ 27.048929] ? refcount_error_report+0x214/0x214 [ 27.053648] ? add_taint+0x1c/0x50 [ 27.057151] ? add_taint+0x1c/0x50 [ 27.060655] ? do_raw_spin_lock+0x1e0/0x220 [ 27.064942] kasan_end_report+0x50/0x50 [ 27.068879] kasan_report+0x144/0x340 [ 27.072645] __asan_report_load4_noabort+0x14/0x20 [ 27.077537] do_raw_spin_lock+0x1e0/0x220 [ 27.081652] _raw_spin_lock_bh+0x39/0x40 [ 27.085678] ? release_sock+0x74/0x2a0 [ 27.089536] release_sock+0x74/0x2a0 [ 27.093216] ? sctp_prsctp_prune+0x97/0x6f0 [ 27.097502] ? __release_sock+0x360/0x360 [ 27.101617] ? trace_hardirqs_on+0xd/0x10 [ 27.105735] sctp_sendmsg+0x2c61/0x3360 [ 27.109675] ? put_pi_state+0x3c0/0x560 [ 27.113631] ? sctp_id2assoc+0x390/0x390 [ 27.117657] ? avc_has_perm+0x43e/0x680 [ 27.121597] ? avc_has_perm_noaudit+0x520/0x520 [ 27.126231] ? __fget+0x35c/0x570 [ 27.129653] ? iterate_fd+0x3f0/0x3f0 [ 27.133422] ? find_held_lock+0x35/0x1d0 [ 27.137450] ? sock_has_perm+0x2a4/0x420 [ 27.141485] ? lock_release+0x962/0xa40 [ 27.145422] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.151271] ? __check_object_size+0x25d/0x4f0 [ 27.155820] inet_sendmsg+0x11f/0x5e0 [ 27.159585] ? inet_sendmsg+0x11f/0x5e0 [ 27.163525] ? __might_sleep+0x95/0x190 [ 27.167465] ? inet_recvmsg+0x5f0/0x5f0 [ 27.171403] ? selinux_socket_sendmsg+0x36/0x40 [ 27.176036] ? security_socket_sendmsg+0x89/0xb0 [ 27.180755] ? inet_recvmsg+0x5f0/0x5f0 [ 27.184694] sock_sendmsg+0xca/0x110 [ 27.188371] SYSC_sendto+0x361/0x5c0 [ 27.192052] ? SYSC_connect+0x4a0/0x4a0 [ 27.195992] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 27.201320] ? __do_page_fault+0x3d6/0xc90 [ 27.205526] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 27.210779] ? SyS_futex+0x269/0x390 [ 27.214458] ? SyS_setsockopt+0x215/0x360 [ 27.218572] ? do_futex+0x22a0/0x22a0 [ 27.222350] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 27.227160] SyS_sendto+0x40/0x50 [ 27.231977] entry_SYSCALL_64_fastpath+0x23/0x9a [ 27.237130] RIP: 0033:0x4457e9 [ 27.240284] RSP: 002b:00007f7496c8eda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 27.247955] RAX: ffffffffffffffda RBX: 00000000006dac84 RCX: 00000000004457e9 [ 27.255189] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000005 [ 27.262424] RBP: 00000000006dac80 R08: 00000000204d9000 R09: 000000000000001c [ 27.269658] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 27.276902] R13: 00007fffdf3d511f R14: 00007f7496c8f9c0 R15: 0000000000000001 [ 27.284175] Dumping ftrace buffer: [ 27.287680] (ftrace buffer empty) [ 27.291354] Kernel Offset: disabled [ 27.294948] Rebooting in 86400 seconds..