[....] Starting enhanced syslogd: rsyslogd[ 12.537264] audit: type=1400 audit(1515929200.055:5): avc: denied { syslog } for pid=3496 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: [ 19.591877] audit: type=1400 audit(1515929207.109:6): avc: denied { map } for pid=3637 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.204' (ECDSA) to the list of known hosts. executing program [ 25.811267] audit: type=1400 audit(1515929213.329:7): avc: denied { map } for pid=3651 comm="syzkaller480822" path="/root/syzkaller480822917" 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 [ 25.994822] [ 25.996469] ========================= [ 26.000239] WARNING: held lock freed! [ 26.004026] 4.15.0-rc7+ #187 Not tainted [ 26.008067] ------------------------- [ 26.011849] syzkaller480822/3655 is freeing memory 000000004e215033-00000000eccb025e, with a lock still held there! [ 26.022386] (sk_lock-AF_INET6){+.+.}, at: [<000000008a0b2668>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 26.031289] 1 lock held by syzkaller480822/3655: [ 26.036009] #0: (sk_lock-AF_INET6){+.+.}, at: [<000000008a0b2668>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 26.045339] [ 26.045339] stack backtrace: [ 26.049807] CPU: 0 PID: 3655 Comm: syzkaller480822 Not tainted 4.15.0-rc7+ #187 [ 26.057222] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.066545] Call Trace: [ 26.069107] dump_stack+0x194/0x257 [ 26.072705] ? arch_local_irq_restore+0x53/0x53 [ 26.077360] debug_check_no_locks_freed+0x32f/0x3c0 [ 26.082355] kmem_cache_free+0x68/0x2a0 [ 26.086302] __sk_destruct+0x622/0x910 [ 26.090188] ? save_stack+0x43/0xd0 [ 26.093793] ? sock_rfree+0x160/0x160 [ 26.097564] ? sctp_sendmsg+0x28f7/0x33f0 [ 26.101688] ? sock_sendmsg+0xca/0x110 [ 26.105543] ? SYSC_sendto+0x361/0x5c0 [ 26.109409] ? SyS_sendto+0x40/0x50 [ 26.113016] ? entry_SYSCALL_64_fastpath+0x23/0x9a [ 26.117927] ? check_noncircular+0x20/0x20 [ 26.122137] ? print_irqtrace_events+0x270/0x270 [ 26.126867] ? __local_bh_enable_ip+0x121/0x230 [ 26.131593] ? sctp_put_port+0x495/0x640 [ 26.135624] ? sctp_poll+0xc00/0xc00 [ 26.139311] ? refcount_sub_and_test+0x115/0x1b0 [ 26.144041] ? refcount_inc+0x50/0x50 [ 26.147813] ? refcount_inc+0x50/0x50 [ 26.151582] sk_destruct+0x47/0x80 [ 26.155091] __sk_free+0xf1/0x2b0 [ 26.158520] sk_free+0x2a/0x40 [ 26.161682] sctp_association_put+0x14c/0x2f0 [ 26.166160] ? sctp_association_hold+0x20/0x20 [ 26.170728] ? lock_sock_nested+0x91/0x110 [ 26.174946] ? trace_hardirqs_on+0xd/0x10 [ 26.179075] ? __local_bh_enable_ip+0x121/0x230 [ 26.183724] sctp_wait_for_sndbuf+0x673/0x8d0 [ 26.188195] ? sctp_init_sock+0x13b0/0x13b0 [ 26.192489] ? do_raw_spin_trylock+0x190/0x190 [ 26.197047] ? __local_bh_enable_ip+0x121/0x230 [ 26.201688] ? sctp_prsctp_prune+0x97/0x790 [ 26.205986] ? prepare_to_wait+0x4d0/0x4d0 [ 26.210202] ? trace_hardirqs_on+0xd/0x10 [ 26.214328] sctp_sendmsg+0x28f7/0x33f0 [ 26.218283] ? sctp_id2assoc+0x390/0x390 [ 26.222314] ? avc_has_perm+0x43e/0x680 [ 26.226263] ? avc_has_perm_noaudit+0x520/0x520 [ 26.230906] ? __fget+0x35c/0x570 [ 26.234332] ? iterate_fd+0x3f0/0x3f0 [ 26.238106] ? find_held_lock+0x35/0x1d0 [ 26.242144] ? sock_has_perm+0x2a4/0x420 [ 26.246177] ? lock_release+0x9a2/0xa40 [ 26.250119] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.256579] ? __check_object_size+0x25d/0x4f0 [ 26.261140] inet_sendmsg+0x11f/0x5e0 [ 26.264912] ? inet_sendmsg+0x11f/0x5e0 [ 26.268856] ? __might_sleep+0x95/0x190 [ 26.272799] ? inet_create+0xf50/0xf50 [ 26.276656] ? selinux_socket_sendmsg+0x36/0x40 [ 26.281293] ? security_socket_sendmsg+0x89/0xb0 [ 26.286026] ? inet_create+0xf50/0xf50 [ 26.289885] sock_sendmsg+0xca/0x110 [ 26.293567] SYSC_sendto+0x361/0x5c0 [ 26.297252] ? SYSC_connect+0x4a0/0x4a0 [ 26.301196] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 26.306529] ? __do_page_fault+0x3d6/0xc90 [ 26.310744] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 26.316005] ? SyS_futex+0x269/0x390 [ 26.319688] ? SyS_setsockopt+0x215/0x360 [ 26.323811] ? do_futex+0x22a0/0x22a0 [ 26.327585] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 26.332415] SyS_sendto+0x40/0x50 [ 26.335841] entry_SYSCALL_64_fastpath+0x23/0x9a [ 26.340564] RIP: 0033:0x4457e9 [ 26.343725] RSP: 002b:00007fa51ccaada8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 26.351400] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 26.358638] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 26.365876] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 26.373117] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 26.380358] R13: 00007ffc9a35960f R14: 00007fa51ccab9c0 R15: 0000000000000001 [ 26.387693] ================================================================== [ 26.395049] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 26.401693] Read of size 4 at addr ffff8801bcb7e08c by task syzkaller480822/3655 [ 26.409193] [ 26.410799] CPU: 0 PID: 3655 Comm: syzkaller480822 Not tainted 4.15.0-rc7+ #187 [ 26.418220] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.427547] Call Trace: [ 26.430115] dump_stack+0x194/0x257 [ 26.433714] ? arch_local_irq_restore+0x53/0x53 [ 26.438352] ? show_regs_print_info+0x18/0x18 [ 26.442816] ? lock_acquire+0x1d5/0x580 executing program [ 26.446769] ? trace_hardirqs_on+0xd/0x10 [ 26.450885] ? do_raw_spin_lock+0x1e0/0x220 [ 26.455176] print_address_description+0x73/0x250 [ 26.459991] ? do_raw_spin_lock+0x1e0/0x220 [ 26.464283] kasan_report+0x25b/0x340 [ 26.468057] __asan_report_load4_noabort+0x14/0x20 [ 26.472962] do_raw_spin_lock+0x1e0/0x220 [ 26.477100] _raw_spin_lock_bh+0x39/0x40 [ 26.481130] ? release_sock+0x74/0x2a0 [ 26.484988] release_sock+0x74/0x2a0 [ 26.488672] ? sctp_prsctp_prune+0x97/0x790 [ 26.492969] ? __release_sock+0x360/0x360 [ 26.497084] ? trace_hardirqs_on+0xd/0x10 [ 26.501206] sctp_sendmsg+0x2993/0x33f0 [ 26.505158] ? sctp_id2assoc+0x390/0x390 [ 26.509187] ? avc_has_perm+0x43e/0x680 [ 26.513132] ? avc_has_perm_noaudit+0x520/0x520 [ 26.517771] ? __fget+0x35c/0x570 [ 26.521194] ? iterate_fd+0x3f0/0x3f0 [ 26.524984] ? find_held_lock+0x35/0x1d0 [ 26.529027] ? sock_has_perm+0x2a4/0x420 [ 26.533058] ? lock_release+0x9a2/0xa40 [ 26.537004] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.542870] ? __check_object_size+0x25d/0x4f0 [ 26.547427] inet_sendmsg+0x11f/0x5e0 [ 26.551196] ? inet_sendmsg+0x11f/0x5e0 [ 26.555138] ? __might_sleep+0x95/0x190 [ 26.559080] ? inet_create+0xf50/0xf50 [ 26.562938] ? selinux_socket_sendmsg+0x36/0x40 [ 26.567580] ? security_socket_sendmsg+0x89/0xb0 [ 26.572307] ? inet_create+0xf50/0xf50 [ 26.576165] sock_sendmsg+0xca/0x110 [ 26.579853] SYSC_sendto+0x361/0x5c0 [ 26.583539] ? SYSC_connect+0x4a0/0x4a0 [ 26.587496] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 26.592833] ? __do_page_fault+0x3d6/0xc90 [ 26.597047] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 26.602304] ? SyS_futex+0x269/0x390 [ 26.605988] ? SyS_setsockopt+0x215/0x360 [ 26.610108] ? do_futex+0x22a0/0x22a0 [ 26.613881] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 26.618697] SyS_sendto+0x40/0x50 [ 26.622128] entry_SYSCALL_64_fastpath+0x23/0x9a [ 26.626855] RIP: 0033:0x4457e9 [ 26.630016] RSP: 002b:00007fa51ccaada8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 26.637695] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 26.644935] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 26.652176] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 26.659435] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 26.666678] R13: 00007ffc9a35960f R14: 00007fa51ccab9c0 R15: 0000000000000001 [ 26.673928] [ 26.675529] Allocated by task 3660: [ 26.679135] save_stack+0x43/0xd0 [ 26.682564] kasan_kmalloc+0xad/0xe0 [ 26.686247] kasan_slab_alloc+0x12/0x20 [ 26.690202] kmem_cache_alloc+0x12e/0x760 [ 26.694325] sk_prot_alloc+0x65/0x2a0 [ 26.698093] sk_alloc+0x105/0x1440 [ 26.701600] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 26.706418] sctp_accept+0x5c4/0x970 [ 26.710101] inet_accept+0x12c/0x930 [ 26.713780] SYSC_accept4+0x38d/0x870 [ 26.717546] SyS_accept+0x26/0x30 [ 26.720968] entry_SYSCALL_64_fastpath+0x23/0x9a [ 26.725691] [ 26.727285] Freed by task 3655: [ 26.730537] save_stack+0x43/0xd0 [ 26.733960] kasan_slab_free+0x71/0xc0 [ 26.737817] kmem_cache_free+0x83/0x2a0 [ 26.741760] __sk_destruct+0x622/0x910 [ 26.745617] sk_destruct+0x47/0x80 [ 26.749123] __sk_free+0xf1/0x2b0 [ 26.752544] sk_free+0x2a/0x40 [ 26.755726] sctp_association_put+0x14c/0x2f0 [ 26.760210] sctp_wait_for_sndbuf+0x673/0x8d0 [ 26.764687] sctp_sendmsg+0x28f7/0x33f0 [ 26.768633] inet_sendmsg+0x11f/0x5e0 [ 26.772402] sock_sendmsg+0xca/0x110 [ 26.776081] SYSC_sendto+0x361/0x5c0 [ 26.779769] SyS_sendto+0x40/0x50 [ 26.783195] entry_SYSCALL_64_fastpath+0x23/0x9a [ 26.787917] [ 26.789515] The buggy address belongs to the object at ffff8801bcb7e000 [ 26.789515] which belongs to the cache SCTPv6 of size 1888 [ 26.801803] The buggy address is located 140 bytes inside of [ 26.801803] 1888-byte region [ffff8801bcb7e000, ffff8801bcb7e760) [ 26.813736] The buggy address belongs to the page: [ 26.818634] page:ffffea0006f2df80 count:1 mapcount:0 mapping:ffff8801bcb7e000 index:0x0 [ 26.826752] flags: 0x2fffc0000000100(slab) [ 26.830958] raw: 02fffc0000000100 ffff8801bcb7e000 0000000000000000 0000000100000002 [ 26.838816] raw: ffffea00074b4e20 ffffea0006f20f60 ffff8801d339c680 0000000000000000 [ 26.846662] page dumped because: kasan: bad access detected [ 26.852342] [ 26.853944] Memory state around the buggy address: [ 26.858842] ffff8801bcb7df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.866168] ffff8801bcb7e000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.873496] >ffff8801bcb7e080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.880821] ^ [ 26.884423] ffff8801bcb7e100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.891750] ffff8801bcb7e180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.899080] ================================================================== [ 26.906448] Kernel panic - not syncing: panic_on_warn set ... [ 26.906448] [ 26.913781] CPU: 0 PID: 3655 Comm: syzkaller480822 Tainted: G B 4.15.0-rc7+ #187 [ 26.922496] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.931817] Call Trace: [ 26.934378] dump_stack+0x194/0x257 [ 26.937978] ? arch_local_irq_restore+0x53/0x53 [ 26.942619] ? trace_hardirqs_on_thunk+0x1a/0x1c executing program [ 26.947346] ? vsnprintf+0x1ed/0x1900 [ 26.951119] ? do_raw_spin_lock+0x140/0x220 [ 26.955409] panic+0x1e4/0x41c [ 26.958569] ? refcount_error_report+0x214/0x214 [ 26.963305] ? add_taint+0x1c/0x50 [ 26.966815] ? add_taint+0x1c/0x50 [ 26.970326] ? do_raw_spin_lock+0x1e0/0x220 [ 26.974617] kasan_end_report+0x50/0x50 [ 26.978573] kasan_report+0x144/0x340 [ 26.982347] __asan_report_load4_noabort+0x14/0x20 [ 26.987246] do_raw_spin_lock+0x1e0/0x220 [ 26.991379] _raw_spin_lock_bh+0x39/0x40 [ 26.995409] ? release_sock+0x74/0x2a0 [ 26.999268] release_sock+0x74/0x2a0 [ 27.002950] ? sctp_prsctp_prune+0x97/0x790 [ 27.007240] ? __release_sock+0x360/0x360 [ 27.011372] ? trace_hardirqs_on+0xd/0x10 [ 27.015493] sctp_sendmsg+0x2993/0x33f0 [ 27.019442] ? sctp_id2assoc+0x390/0x390 [ 27.023475] ? avc_has_perm+0x43e/0x680 [ 27.027419] ? avc_has_perm_noaudit+0x520/0x520 [ 27.032058] ? __fget+0x35c/0x570 [ 27.035482] ? iterate_fd+0x3f0/0x3f0 [ 27.039252] ? find_held_lock+0x35/0x1d0 [ 27.043285] ? sock_has_perm+0x2a4/0x420 [ 27.047314] ? lock_release+0x9a2/0xa40 [ 27.051259] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.057110] ? __check_object_size+0x25d/0x4f0 [ 27.061665] inet_sendmsg+0x11f/0x5e0 [ 27.065432] ? inet_sendmsg+0x11f/0x5e0 [ 27.069376] ? __might_sleep+0x95/0x190 [ 27.073320] ? inet_create+0xf50/0xf50 [ 27.077177] ? selinux_socket_sendmsg+0x36/0x40 [ 27.081816] ? security_socket_sendmsg+0x89/0xb0 [ 27.086539] ? inet_create+0xf50/0xf50 [ 27.090398] sock_sendmsg+0xca/0x110 [ 27.094090] SYSC_sendto+0x361/0x5c0 [ 27.097775] ? SYSC_connect+0x4a0/0x4a0 [ 27.101726] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 27.107063] ? __do_page_fault+0x3d6/0xc90 [ 27.111270] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 27.116527] ? SyS_futex+0x269/0x390 [ 27.120207] ? SyS_setsockopt+0x215/0x360 [ 27.124324] ? do_futex+0x22a0/0x22a0 [ 27.128096] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 27.132917] SyS_sendto+0x40/0x50 [ 27.136350] entry_SYSCALL_64_fastpath+0x23/0x9a [ 27.141073] RIP: 0033:0x4457e9 [ 27.144231] RSP: 002b:00007fa51ccaada8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 27.151909] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 27.159147] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 27.166394] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 27.173633] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 27.180878] R13: 00007ffc9a35960f R14: 00007fa51ccab9c0 R15: 0000000000000001 [ 27.188548] Dumping ftrace buffer: [ 27.192057] (ftrace buffer empty) [ 27.195740] Kernel Offset: disabled [ 27.199336] Rebooting in 86400 seconds..