[....] Starting enhanced syslogd: rsyslogd[ 13.275784] audit: type=1400 audit(1515912829.543:5): avc: denied { syslog } for pid=3508 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: [ 18.987993] audit: type=1400 audit(1515912835.255: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.15.206' (ECDSA) to the list of known hosts. executing program [ 25.225648] audit: type=1400 audit(1515912841.493:7): avc: denied { map } for pid=3660 comm="syzkaller328608" path="/root/syzkaller328608630" 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.410511] [ 25.412172] ========================= [ 25.415955] WARNING: held lock freed! [ 25.419763] 4.15.0-rc7-next-20180112+ #96 Not tainted [ 25.424938] ------------------------- [ 25.428722] syzkaller328608/3664 is freeing memory 0000000061aa5fcc-00000000e25bb643, with a lock still held there! [ 25.439266] (sk_lock-AF_INET6){+.+.}, at: [<000000002b03d9a3>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 25.448179] 1 lock held by syzkaller328608/3664: [ 25.452904] #0: (sk_lock-AF_INET6){+.+.}, at: [<000000002b03d9a3>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 25.462240] [ 25.462240] stack backtrace: [ 25.466716] CPU: 0 PID: 3664 Comm: syzkaller328608 Not tainted 4.15.0-rc7-next-20180112+ #96 [ 25.475261] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.484587] Call Trace: [ 25.487153] dump_stack+0x194/0x257 [ 25.490755] ? arch_local_irq_restore+0x53/0x53 [ 25.495402] debug_check_no_locks_freed+0x32f/0x3c0 [ 25.500412] kmem_cache_free+0x68/0x2b0 [ 25.504379] __sk_destruct+0x622/0x910 [ 25.508239] ? kfree+0xd9/0x260 [ 25.511495] ? sock_rfree+0x160/0x160 [ 25.515279] ? sock_sendmsg+0xca/0x110 [ 25.519139] ? SyS_sendto+0x40/0x50 [ 25.522741] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.527644] ? debug_check_no_obj_freed+0x611/0xf1f [ 25.532637] ? check_noncircular+0x20/0x20 [ 25.536847] ? print_irqtrace_events+0x270/0x270 [ 25.541578] ? __local_bh_enable_ip+0x121/0x230 [ 25.546232] ? sctp_put_port+0x495/0x640 [ 25.550268] ? sctp_poll+0xc00/0xc00 [ 25.553958] ? refcount_sub_and_test+0x115/0x1b0 [ 25.558707] ? refcount_inc+0x50/0x50 [ 25.562479] ? refcount_inc+0x50/0x50 [ 25.566256] sk_destruct+0x47/0x80 [ 25.569771] __sk_free+0xf1/0x2b0 [ 25.573202] sk_free+0x2a/0x40 [ 25.576368] sctp_association_put+0x14c/0x2f0 [ 25.580838] ? sctp_association_hold+0x20/0x20 [ 25.585395] ? lock_sock_nested+0x91/0x110 [ 25.589603] ? trace_hardirqs_on+0xd/0x10 [ 25.593728] ? __local_bh_enable_ip+0x121/0x230 [ 25.598376] sctp_wait_for_sndbuf+0x673/0x8d0 [ 25.602854] ? sctp_init_sock+0x13b0/0x13b0 [ 25.607160] ? do_raw_spin_trylock+0x190/0x190 [ 25.611719] ? __local_bh_enable_ip+0x121/0x230 [ 25.616359] ? sctp_prsctp_prune+0x97/0x790 [ 25.620657] ? prepare_to_wait+0x4d0/0x4d0 [ 25.624865] ? trace_hardirqs_on+0xd/0x10 [ 25.628990] sctp_sendmsg+0x28f7/0x33f0 [ 25.632949] ? sctp_id2assoc+0x390/0x390 [ 25.636986] ? avc_has_perm+0x43e/0x680 [ 25.640948] ? avc_has_perm_noaudit+0x520/0x520 [ 25.645592] ? __fget+0x35c/0x570 [ 25.649025] ? iterate_fd+0x3f0/0x3f0 [ 25.652807] ? find_held_lock+0x35/0x1d0 [ 25.656858] ? sock_has_perm+0x2a4/0x420 [ 25.660894] ? lock_release+0x972/0xa40 [ 25.664842] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.670711] ? __check_object_size+0x8b/0x530 [ 25.675184] inet_sendmsg+0x11f/0x5e0 [ 25.678961] ? inet_sendmsg+0x11f/0x5e0 [ 25.682908] ? __might_sleep+0x95/0x190 [ 25.686857] ? inet_create+0xf50/0xf50 [ 25.690719] ? selinux_socket_sendmsg+0x36/0x40 [ 25.695361] ? security_socket_sendmsg+0x89/0xb0 [ 25.700091] ? inet_create+0xf50/0xf50 [ 25.703956] sock_sendmsg+0xca/0x110 [ 25.707656] SYSC_sendto+0x361/0x5c0 [ 25.711345] ? SYSC_connect+0x4a0/0x4a0 [ 25.715297] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 25.720634] ? __do_page_fault+0x3d6/0xc90 [ 25.724846] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 25.730110] ? SyS_futex+0x269/0x390 [ 25.733800] ? SyS_setsockopt+0x215/0x360 [ 25.737922] ? do_futex+0x22a0/0x22a0 [ 25.741701] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 25.746520] SyS_sendto+0x40/0x50 [ 25.749948] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.754684] RIP: 0033:0x4457e9 [ 25.757847] RSP: 002b:00007f2fe1babda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 25.765532] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 25.772789] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 25.780400] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 25.787649] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 25.794893] R13: 00007ffeee047f0f R14: 00007f2fe1bac9c0 R15: 0000000000000001 [ 25.802249] ================================================================== [ 25.809624] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 25.816267] Read of size 4 at addr ffff8801d945608c by task syzkaller328608/3664 [ 25.823777] [ 25.825379] CPU: 0 PID: 3664 Comm: syzkaller328608 Not tainted 4.15.0-rc7-next-20180112+ #96 [ 25.833930] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.843258] Call Trace: [ 25.845823] dump_stack+0x194/0x257 [ 25.849425] ? arch_local_irq_restore+0x53/0x53 [ 25.854077] ? show_regs_print_info+0x18/0x18 [ 25.858545] ? lock_acquire+0x1d5/0x580 executing program [ 25.862491] ? trace_hardirqs_on+0xd/0x10 [ 25.866611] ? do_raw_spin_lock+0x1e0/0x220 [ 25.870905] print_address_description+0x73/0x250 [ 25.875728] ? do_raw_spin_lock+0x1e0/0x220 [ 25.880028] kasan_report+0x23b/0x360 [ 25.883805] __asan_report_load4_noabort+0x14/0x20 [ 25.888719] do_raw_spin_lock+0x1e0/0x220 [ 25.892869] _raw_spin_lock_bh+0x39/0x40 [ 25.896917] ? release_sock+0x74/0x2a0 [ 25.900790] release_sock+0x74/0x2a0 [ 25.904490] ? sctp_prsctp_prune+0x97/0x790 [ 25.908801] ? __release_sock+0x360/0x360 [ 25.912924] ? trace_hardirqs_on+0xd/0x10 [ 25.917051] sctp_sendmsg+0x2993/0x33f0 [ 25.921008] ? sctp_id2assoc+0x390/0x390 [ 25.925046] ? avc_has_perm+0x43e/0x680 [ 25.929011] ? avc_has_perm_noaudit+0x520/0x520 [ 25.933677] ? __fget+0x35c/0x570 [ 25.937110] ? iterate_fd+0x3f0/0x3f0 [ 25.940890] ? find_held_lock+0x35/0x1d0 [ 25.944929] ? sock_has_perm+0x2a4/0x420 [ 25.948964] ? lock_release+0x972/0xa40 [ 25.952913] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.958774] ? __check_object_size+0x8b/0x530 [ 25.963248] inet_sendmsg+0x11f/0x5e0 [ 25.967034] ? inet_sendmsg+0x11f/0x5e0 [ 25.970984] ? __might_sleep+0x95/0x190 [ 25.974935] ? inet_create+0xf50/0xf50 [ 25.978798] ? selinux_socket_sendmsg+0x36/0x40 [ 25.983440] ? security_socket_sendmsg+0x89/0xb0 [ 25.988170] ? inet_create+0xf50/0xf50 [ 25.992033] sock_sendmsg+0xca/0x110 [ 25.995733] SYSC_sendto+0x361/0x5c0 [ 25.999424] ? SYSC_connect+0x4a0/0x4a0 [ 26.003384] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 26.008725] ? __do_page_fault+0x3d6/0xc90 [ 26.012938] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 26.018208] ? SyS_futex+0x269/0x390 [ 26.021898] ? SyS_setsockopt+0x215/0x360 [ 26.026024] ? do_futex+0x22a0/0x22a0 [ 26.029800] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.034641] SyS_sendto+0x40/0x50 [ 26.038077] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.042808] RIP: 0033:0x4457e9 [ 26.045974] RSP: 002b:00007f2fe1babda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 26.053676] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 26.060924] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 26.068165] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 26.075408] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 26.082658] R13: 00007ffeee047f0f R14: 00007f2fe1bac9c0 R15: 0000000000000001 [ 26.089917] [ 26.091517] Allocated by task 3669: [ 26.095121] save_stack+0x43/0xd0 [ 26.098545] kasan_kmalloc+0xad/0xe0 [ 26.102230] kasan_slab_alloc+0x12/0x20 [ 26.106176] kmem_cache_alloc+0x12e/0x760 [ 26.110297] sk_prot_alloc+0x65/0x2a0 [ 26.114070] sk_alloc+0x105/0x1440 [ 26.117586] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 26.122401] sctp_accept+0x5c4/0x970 [ 26.126086] inet_accept+0x12c/0x930 [ 26.129773] SYSC_accept4+0x38d/0x870 [ 26.133546] SyS_accept+0x26/0x30 [ 26.136974] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.141702] [ 26.143302] Freed by task 3664: [ 26.146557] save_stack+0x43/0xd0 [ 26.149984] __kasan_slab_free+0x11a/0x170 [ 26.154192] kasan_slab_free+0xe/0x10 [ 26.157977] kmem_cache_free+0x86/0x2b0 [ 26.161924] __sk_destruct+0x622/0x910 [ 26.165783] sk_destruct+0x47/0x80 [ 26.169294] __sk_free+0xf1/0x2b0 [ 26.172735] sk_free+0x2a/0x40 [ 26.175910] sctp_association_put+0x14c/0x2f0 [ 26.180378] sctp_wait_for_sndbuf+0x673/0x8d0 [ 26.184846] sctp_sendmsg+0x28f7/0x33f0 [ 26.188796] inet_sendmsg+0x11f/0x5e0 [ 26.192569] sock_sendmsg+0xca/0x110 [ 26.196256] SYSC_sendto+0x361/0x5c0 [ 26.199941] SyS_sendto+0x40/0x50 [ 26.203369] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.208094] [ 26.209698] The buggy address belongs to the object at ffff8801d9456000 [ 26.209698] which belongs to the cache SCTPv6 of size 1888 [ 26.221979] The buggy address is located 140 bytes inside of [ 26.221979] 1888-byte region [ffff8801d9456000, ffff8801d9456760) [ 26.233912] The buggy address belongs to the page: [ 26.238819] page:ffffea0007651580 count:1 mapcount:0 mapping:ffff8801d9456000 index:0x0 [ 26.246947] flags: 0x2fffc0000000100(slab) [ 26.251158] raw: 02fffc0000000100 ffff8801d9456000 0000000000000000 0000000100000002 [ 26.259026] raw: ffffea00074a06e0 ffffea0007652a60 ffff8801d281acc0 0000000000000000 [ 26.266878] page dumped because: kasan: bad access detected [ 26.272559] [ 26.274158] Memory state around the buggy address: [ 26.279062] ffff8801d9455f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.286394] ffff8801d9456000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.293727] >ffff8801d9456080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.301059] ^ [ 26.304657] ffff8801d9456100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.311986] ffff8801d9456180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.319317] ================================================================== [ 26.326682] Kernel panic - not syncing: panic_on_warn set ... [ 26.326682] [ 26.334045] CPU: 0 PID: 3664 Comm: syzkaller328608 Tainted: G B 4.15.0-rc7-next-20180112+ #96 [ 26.343926] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.353255] Call Trace: [ 26.355826] dump_stack+0x194/0x257 [ 26.359442] ? arch_local_irq_restore+0x53/0x53 executing program [ 26.364098] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.368829] ? vsnprintf+0x1ed/0x1900 [ 26.372605] ? do_raw_spin_lock+0x110/0x220 [ 26.376902] panic+0x1e4/0x41c [ 26.380069] ? refcount_error_report+0x214/0x214 [ 26.384806] ? add_taint+0x1c/0x50 [ 26.388321] ? add_taint+0x1c/0x50 [ 26.391836] ? do_raw_spin_lock+0x1e0/0x220 [ 26.396132] kasan_end_report+0x50/0x50 [ 26.400100] kasan_report+0x148/0x360 [ 26.403897] __asan_report_load4_noabort+0x14/0x20 [ 26.408804] do_raw_spin_lock+0x1e0/0x220 [ 26.412939] _raw_spin_lock_bh+0x39/0x40 [ 26.416981] ? release_sock+0x74/0x2a0 [ 26.420844] release_sock+0x74/0x2a0 [ 26.424533] ? sctp_prsctp_prune+0x97/0x790 [ 26.428831] ? __release_sock+0x360/0x360 [ 26.432954] ? trace_hardirqs_on+0xd/0x10 [ 26.437082] sctp_sendmsg+0x2993/0x33f0 [ 26.441040] ? sctp_id2assoc+0x390/0x390 [ 26.445076] ? avc_has_perm+0x43e/0x680 [ 26.449029] ? avc_has_perm_noaudit+0x520/0x520 [ 26.453673] ? __fget+0x35c/0x570 [ 26.457104] ? iterate_fd+0x3f0/0x3f0 [ 26.460905] ? find_held_lock+0x35/0x1d0 [ 26.464945] ? sock_has_perm+0x2a4/0x420 [ 26.468984] ? lock_release+0x972/0xa40 [ 26.472935] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.478796] ? __check_object_size+0x8b/0x530 [ 26.483283] inet_sendmsg+0x11f/0x5e0 [ 26.487058] ? inet_sendmsg+0x11f/0x5e0 [ 26.491010] ? __might_sleep+0x95/0x190 [ 26.494965] ? inet_create+0xf50/0xf50 [ 26.498830] ? selinux_socket_sendmsg+0x36/0x40 [ 26.503472] ? security_socket_sendmsg+0x89/0xb0 [ 26.508201] ? inet_create+0xf50/0xf50 [ 26.512077] sock_sendmsg+0xca/0x110 [ 26.515768] SYSC_sendto+0x361/0x5c0 [ 26.519472] ? SYSC_connect+0x4a0/0x4a0 [ 26.523424] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 26.528761] ? __do_page_fault+0x3d6/0xc90 [ 26.533771] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 26.539042] ? SyS_futex+0x269/0x390 [ 26.542730] ? SyS_setsockopt+0x215/0x360 [ 26.546852] ? do_futex+0x22a0/0x22a0 [ 26.550634] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.555457] SyS_sendto+0x40/0x50 [ 26.558888] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.563621] RIP: 0033:0x4457e9 [ 26.566785] RSP: 002b:00007f2fe1babda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 26.574469] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 26.581715] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 26.588961] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 26.596206] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 26.603460] R13: 00007ffeee047f0f R14: 00007f2fe1bac9c0 R15: 0000000000000001 [ 26.611184] Dumping ftrace buffer: [ 26.614710] (ftrace buffer empty) [ 26.618391] Kernel Offset: disabled [ 26.621990] Rebooting in 86400 seconds..