[....] Starting enhanced syslogd: rsyslogd[ 12.011594] audit: type=1400 audit(1515929268.548:5): avc: denied { syslog } for pid=3507 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.096354] audit: type=1400 audit(1515929273.633:6): avc: denied { map } for pid=3646 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.15' (ECDSA) to the list of known hosts. executing program [ 23.308827] audit: type=1400 audit(1515929279.845:7): avc: denied { map } for pid=3660 comm="syzkaller310659" path="/root/syzkaller310659699" 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 [ 23.492569] [ 23.494219] ========================= [ 23.497990] WARNING: held lock freed! [ 23.501764] 4.15.0-rc7-next-20180112+ #96 Not tainted [ 23.506926] ------------------------- [ 23.510705] syzkaller310659/3664 is freeing memory 000000005e272c75-000000001be89adf, with a lock still held there! [ 23.521244] (sk_lock-AF_INET6){+.+.}, at: [<00000000fca67bc3>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 23.530170] 1 lock held by syzkaller310659/3664: [ 23.534893] #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000fca67bc3>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 23.544232] [ 23.544232] stack backtrace: [ 23.548704] CPU: 1 PID: 3664 Comm: syzkaller310659 Not tainted 4.15.0-rc7-next-20180112+ #96 [ 23.557248] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.566575] Call Trace: [ 23.569143] dump_stack+0x194/0x257 [ 23.572745] ? arch_local_irq_restore+0x53/0x53 [ 23.577397] debug_check_no_locks_freed+0x32f/0x3c0 [ 23.582392] kmem_cache_free+0x68/0x2b0 [ 23.586345] __sk_destruct+0x622/0x910 [ 23.590204] ? kfree+0xd9/0x260 [ 23.593462] ? sock_rfree+0x160/0x160 [ 23.597234] ? sock_sendmsg+0xca/0x110 [ 23.601094] ? SyS_sendto+0x40/0x50 [ 23.604697] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 23.609603] ? debug_check_no_obj_freed+0x611/0xf1f [ 23.614599] ? check_noncircular+0x20/0x20 [ 23.618811] ? print_irqtrace_events+0x270/0x270 [ 23.623552] ? __local_bh_enable_ip+0x121/0x230 [ 23.628198] ? sctp_put_port+0x495/0x640 [ 23.632234] ? sctp_poll+0xc00/0xc00 [ 23.635927] ? refcount_sub_and_test+0x115/0x1b0 [ 23.640655] ? refcount_inc+0x50/0x50 [ 23.644428] ? refcount_inc+0x50/0x50 [ 23.648205] sk_destruct+0x47/0x80 [ 23.651721] __sk_free+0xf1/0x2b0 [ 23.655150] sk_free+0x2a/0x40 [ 23.658318] sctp_association_put+0x14c/0x2f0 [ 23.662790] ? sctp_association_hold+0x20/0x20 [ 23.667381] ? lock_sock_nested+0x91/0x110 [ 23.671592] ? trace_hardirqs_on+0xd/0x10 [ 23.675717] ? __local_bh_enable_ip+0x121/0x230 [ 23.680364] sctp_wait_for_sndbuf+0x673/0x8d0 [ 23.684839] ? sctp_init_sock+0x13b0/0x13b0 [ 23.689132] ? do_raw_spin_trylock+0x190/0x190 [ 23.693689] ? __local_bh_enable_ip+0x121/0x230 [ 23.698328] ? sctp_prsctp_prune+0x97/0x790 [ 23.702625] ? prepare_to_wait+0x4d0/0x4d0 [ 23.706836] ? trace_hardirqs_on+0xd/0x10 [ 23.710964] sctp_sendmsg+0x28f7/0x33f0 [ 23.714923] ? sctp_id2assoc+0x390/0x390 [ 23.718961] ? avc_has_perm+0x43e/0x680 [ 23.722913] ? avc_has_perm_noaudit+0x520/0x520 [ 23.727572] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.732320] ? sock_has_perm+0x2a4/0x420 [ 23.736358] ? lock_release+0x972/0xa40 [ 23.740310] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.746169] ? __check_object_size+0x8b/0x530 [ 23.750642] inet_sendmsg+0x11f/0x5e0 [ 23.754416] ? inet_sendmsg+0x11f/0x5e0 [ 23.758366] ? __might_sleep+0x95/0x190 [ 23.762314] ? inet_create+0xf50/0xf50 [ 23.766178] ? selinux_socket_sendmsg+0x36/0x40 [ 23.770820] ? security_socket_sendmsg+0x89/0xb0 [ 23.775551] ? inet_create+0xf50/0xf50 [ 23.779413] sock_sendmsg+0xca/0x110 [ 23.783100] SYSC_sendto+0x361/0x5c0 [ 23.786794] ? SYSC_connect+0x4a0/0x4a0 [ 23.790746] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 23.796083] ? __do_page_fault+0x3d6/0xc90 [ 23.800295] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 23.805560] ? SyS_futex+0x269/0x390 [ 23.809250] ? SyS_setsockopt+0x215/0x360 [ 23.813372] ? do_futex+0x22a0/0x22a0 [ 23.817148] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 23.821968] SyS_sendto+0x40/0x50 [ 23.825400] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 23.830134] RIP: 0033:0x4457e9 [ 23.833297] RSP: 002b:00007efe28fecda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 23.840980] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 23.848222] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 23.855466] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 23.862711] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 23.869954] R13: 00007ffcaaa1230f R14: 00007efe28fed9c0 R15: 0000000000000001 [ 23.877494] ================================================================== [ 23.884852] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 23.891497] Read of size 4 at addr ffff8801d9bc308c by task syzkaller310659/3664 [ 23.899020] [ 23.900625] CPU: 1 PID: 3664 Comm: syzkaller310659 Not tainted 4.15.0-rc7-next-20180112+ #96 [ 23.909173] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.918507] Call Trace: [ 23.921080] dump_stack+0x194/0x257 [ 23.924681] ? arch_local_irq_restore+0x53/0x53 [ 23.929328] ? show_regs_print_info+0x18/0x18 [ 23.933798] ? lock_acquire+0x1d5/0x580 [ 23.937752] ? trace_hardirqs_on+0xd/0x10 executing program [ 23.941869] ? do_raw_spin_lock+0x1e0/0x220 [ 23.946161] print_address_description+0x73/0x250 [ 23.950980] ? do_raw_spin_lock+0x1e0/0x220 [ 23.955277] kasan_report+0x23b/0x360 [ 23.959054] __asan_report_load4_noabort+0x14/0x20 [ 23.963964] do_raw_spin_lock+0x1e0/0x220 [ 23.968088] _raw_spin_lock_bh+0x39/0x40 [ 23.972122] ? release_sock+0x74/0x2a0 [ 23.975984] release_sock+0x74/0x2a0 [ 23.979670] ? sctp_prsctp_prune+0x97/0x790 [ 23.983967] ? __release_sock+0x360/0x360 [ 23.988100] ? trace_hardirqs_on+0xd/0x10 [ 23.992226] sctp_sendmsg+0x2993/0x33f0 [ 23.996184] ? sctp_id2assoc+0x390/0x390 [ 24.000220] ? avc_has_perm+0x43e/0x680 [ 24.004169] ? avc_has_perm_noaudit+0x520/0x520 [ 24.008813] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.013558] ? sock_has_perm+0x2a4/0x420 [ 24.017596] ? lock_release+0x972/0xa40 [ 24.021543] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.027400] ? __check_object_size+0x8b/0x530 [ 24.031873] inet_sendmsg+0x11f/0x5e0 [ 24.035646] ? inet_sendmsg+0x11f/0x5e0 [ 24.039591] ? __might_sleep+0x95/0x190 [ 24.043538] ? inet_create+0xf50/0xf50 [ 24.047408] ? selinux_socket_sendmsg+0x36/0x40 [ 24.052050] ? security_socket_sendmsg+0x89/0xb0 [ 24.056778] ? inet_create+0xf50/0xf50 [ 24.060638] sock_sendmsg+0xca/0x110 [ 24.064327] SYSC_sendto+0x361/0x5c0 [ 24.068034] ? SYSC_connect+0x4a0/0x4a0 [ 24.071988] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 24.077326] ? __do_page_fault+0x3d6/0xc90 [ 24.081539] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 24.086816] ? SyS_futex+0x269/0x390 [ 24.090506] ? SyS_setsockopt+0x215/0x360 [ 24.094629] ? do_futex+0x22a0/0x22a0 [ 24.098405] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 24.103233] SyS_sendto+0x40/0x50 [ 24.106661] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 24.111387] RIP: 0033:0x4457e9 [ 24.114556] RSP: 002b:00007efe28fecda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 24.122235] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 24.129485] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 24.136738] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 24.143991] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 24.151237] R13: 00007ffcaaa1230f R14: 00007efe28fed9c0 R15: 0000000000000001 [ 24.158491] [ 24.160107] Allocated by task 3669: [ 24.163713] save_stack+0x43/0xd0 [ 24.167139] kasan_kmalloc+0xad/0xe0 [ 24.170826] kasan_slab_alloc+0x12/0x20 [ 24.174785] kmem_cache_alloc+0x12e/0x760 [ 24.178907] sk_prot_alloc+0x65/0x2a0 [ 24.182679] sk_alloc+0x105/0x1440 [ 24.186192] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 24.191009] sctp_accept+0x5c4/0x970 [ 24.194702] inet_accept+0x12c/0x930 [ 24.198386] SYSC_accept4+0x38d/0x870 [ 24.202158] SyS_accept+0x26/0x30 [ 24.205594] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 24.210317] [ 24.211924] Freed by task 3664: [ 24.215179] save_stack+0x43/0xd0 [ 24.218603] __kasan_slab_free+0x11a/0x170 [ 24.222811] kasan_slab_free+0xe/0x10 [ 24.226582] kmem_cache_free+0x86/0x2b0 [ 24.230530] __sk_destruct+0x622/0x910 [ 24.234388] sk_destruct+0x47/0x80 [ 24.238004] __sk_free+0xf1/0x2b0 [ 24.241430] sk_free+0x2a/0x40 [ 24.244596] sctp_association_put+0x14c/0x2f0 [ 24.249068] sctp_wait_for_sndbuf+0x673/0x8d0 [ 24.253536] sctp_sendmsg+0x28f7/0x33f0 [ 24.257482] inet_sendmsg+0x11f/0x5e0 [ 24.261267] sock_sendmsg+0xca/0x110 [ 24.264951] SYSC_sendto+0x361/0x5c0 [ 24.268645] SyS_sendto+0x40/0x50 [ 24.272071] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 24.276798] [ 24.278401] The buggy address belongs to the object at ffff8801d9bc3000 [ 24.278401] which belongs to the cache SCTPv6 of size 1888 [ 24.290680] The buggy address is located 140 bytes inside of [ 24.290680] 1888-byte region [ffff8801d9bc3000, ffff8801d9bc3760) [ 24.302610] The buggy address belongs to the page: [ 24.307519] page:ffffea000766f0c0 count:1 mapcount:0 mapping:ffff8801d9bc3000 index:0x0 [ 24.315651] flags: 0x2fffc0000000100(slab) [ 24.319866] raw: 02fffc0000000100 ffff8801d9bc3000 0000000000000000 0000000100000002 [ 24.327721] raw: ffffea00074a0aa0 ffffea0007650aa0 ffff8801d2e9a800 0000000000000000 [ 24.335581] page dumped because: kasan: bad access detected [ 24.341260] [ 24.342870] Memory state around the buggy address: [ 24.347771] ffff8801d9bc2f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.355113] ffff8801d9bc3000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.362443] >ffff8801d9bc3080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.369771] ^ [ 24.373370] ffff8801d9bc3100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.380700] ffff8801d9bc3180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.388031] ================================================================== [ 24.395399] Kernel panic - not syncing: panic_on_warn set ... [ 24.395399] [ 24.402752] CPU: 1 PID: 3664 Comm: syzkaller310659 Tainted: G B 4.15.0-rc7-next-20180112+ #96 [ 24.412615] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.421946] Call Trace: [ 24.424513] dump_stack+0x194/0x257 [ 24.428134] ? arch_local_irq_restore+0x53/0x53 [ 24.432777] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.437507] ? vsnprintf+0x1ed/0x1900 [ 24.441280] ? do_raw_spin_lock+0x110/0x220 executing program [ 24.445576] panic+0x1e4/0x41c [ 24.448745] ? refcount_error_report+0x214/0x214 [ 24.453481] ? add_taint+0x1c/0x50 [ 24.457000] ? add_taint+0x1c/0x50 [ 24.460525] ? do_raw_spin_lock+0x1e0/0x220 [ 24.464821] kasan_end_report+0x50/0x50 [ 24.468765] kasan_report+0x148/0x360 [ 24.472547] __asan_report_load4_noabort+0x14/0x20 [ 24.477450] do_raw_spin_lock+0x1e0/0x220 [ 24.481573] _raw_spin_lock_bh+0x39/0x40 [ 24.485612] ? release_sock+0x74/0x2a0 [ 24.489479] release_sock+0x74/0x2a0 [ 24.493166] ? sctp_prsctp_prune+0x97/0x790 [ 24.497461] ? __release_sock+0x360/0x360 [ 24.501588] ? trace_hardirqs_on+0xd/0x10 [ 24.505716] sctp_sendmsg+0x2993/0x33f0 [ 24.509675] ? sctp_id2assoc+0x390/0x390 [ 24.513709] ? avc_has_perm+0x43e/0x680 [ 24.517658] ? avc_has_perm_noaudit+0x520/0x520 [ 24.522320] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.527067] ? sock_has_perm+0x2a4/0x420 [ 24.531105] ? lock_release+0x972/0xa40 [ 24.535055] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.540930] ? __check_object_size+0x8b/0x530 [ 24.545411] inet_sendmsg+0x11f/0x5e0 [ 24.549186] ? inet_sendmsg+0x11f/0x5e0 [ 24.553133] ? __might_sleep+0x95/0x190 [ 24.557080] ? inet_create+0xf50/0xf50 [ 24.560944] ? selinux_socket_sendmsg+0x36/0x40 [ 24.565584] ? security_socket_sendmsg+0x89/0xb0 [ 24.570314] ? inet_create+0xf50/0xf50 [ 24.574178] sock_sendmsg+0xca/0x110 [ 24.577866] SYSC_sendto+0x361/0x5c0 [ 24.581554] ? SYSC_connect+0x4a0/0x4a0 [ 24.585513] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 24.590850] ? __do_page_fault+0x3d6/0xc90 [ 24.595060] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 24.600321] ? SyS_futex+0x269/0x390 [ 24.604011] ? SyS_setsockopt+0x215/0x360 [ 24.608133] ? do_futex+0x22a0/0x22a0 [ 24.611907] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 24.616731] SyS_sendto+0x40/0x50 [ 24.620163] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 24.624890] RIP: 0033:0x4457e9 [ 24.628053] RSP: 002b:00007efe28fecda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 24.635732] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 24.642978] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 24.650221] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 24.657467] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 24.664718] R13: 00007ffcaaa1230f R14: 00007efe28fed9c0 R15: 0000000000000001 [ 24.672405] Dumping ftrace buffer: [ 24.675921] (ftrace buffer empty) [ 24.679613] Kernel Offset: disabled [ 24.683217] Rebooting in 86400 seconds..