[....] Starting enhanced syslogd: rsyslogd[ 12.209476] audit: type=1400 audit(1515932162.352:5): avc: denied { syslog } for pid=3504 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: [ 18.390043] audit: type=1400 audit(1515932168.532:6): avc: denied { map } for pid=3644 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.236' (ECDSA) to the list of known hosts. executing program [ 48.812493] audit: type=1400 audit(1515932198.955:7): avc: denied { map } for pid=3661 comm="syzkaller314567" path="/root/syzkaller314567658" 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 [ 48.994420] [ 48.996064] ========================= [ 48.999831] WARNING: held lock freed! [ 49.003602] 4.15.0-rc7-mm1+ #56 Not tainted [ 49.007889] ------------------------- [ 49.011667] syzkaller314567/3665 is freeing memory 00000000fb10218f-000000002553c024, with a lock still held there! [ 49.022211] (sk_lock-AF_INET6){+.+.}, at: [<00000000b39128b7>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 49.031996] 1 lock held by syzkaller314567/3665: [ 49.037067] #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000b39128b7>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 49.046398] [ 49.046398] stack backtrace: [ 49.050862] CPU: 0 PID: 3665 Comm: syzkaller314567 Not tainted 4.15.0-rc7-mm1+ #56 [ 49.058538] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.067863] Call Trace: [ 49.070424] dump_stack+0x194/0x257 [ 49.074025] ? arch_local_irq_restore+0x53/0x53 [ 49.078669] debug_check_no_locks_freed+0x32f/0x3c0 [ 49.083659] kmem_cache_free+0x68/0x2b0 [ 49.087609] __sk_destruct+0x622/0x910 [ 49.091469] ? kfree+0xd9/0x260 [ 49.094721] ? sock_rfree+0x160/0x160 [ 49.098490] ? sock_sendmsg+0xca/0x110 [ 49.102343] ? SyS_sendto+0x40/0x50 [ 49.105940] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 49.110840] ? debug_check_no_obj_freed+0x611/0xf1f [ 49.115830] ? check_noncircular+0x20/0x20 [ 49.120209] ? print_irqtrace_events+0x270/0x270 [ 49.124936] ? __local_bh_enable_ip+0x121/0x230 [ 49.129587] ? sctp_put_port+0x495/0x640 [ 49.133637] ? sctp_poll+0xc00/0xc00 [ 49.137323] ? refcount_sub_and_test+0x115/0x1b0 [ 49.142055] ? refcount_inc+0x50/0x50 [ 49.145825] ? refcount_inc+0x50/0x50 [ 49.149594] sk_destruct+0x47/0x80 [ 49.153102] __sk_free+0xf1/0x2b0 [ 49.156524] sk_free+0x2a/0x40 [ 49.159691] sctp_association_put+0x14c/0x2f0 [ 49.164158] ? sctp_association_hold+0x20/0x20 [ 49.168713] ? lock_sock_nested+0x91/0x110 [ 49.172918] ? trace_hardirqs_on+0xd/0x10 [ 49.177037] ? __local_bh_enable_ip+0x121/0x230 [ 49.181692] sctp_wait_for_sndbuf+0x673/0x8d0 [ 49.186171] ? sctp_init_sock+0x13b0/0x13b0 [ 49.190463] ? do_raw_spin_trylock+0x190/0x190 [ 49.195016] ? __local_bh_enable_ip+0x121/0x230 [ 49.199653] ? sctp_prsctp_prune+0x97/0x790 [ 49.203951] ? prepare_to_wait+0x4d0/0x4d0 [ 49.208505] ? trace_hardirqs_on+0xd/0x10 [ 49.213848] sctp_sendmsg+0x28f7/0x33f0 [ 49.217797] ? sctp_id2assoc+0x390/0x390 [ 49.221829] ? avc_has_perm+0x43e/0x680 [ 49.225781] ? avc_has_perm_noaudit+0x520/0x520 [ 49.231113] ? __fget+0x35c/0x570 [ 49.234539] ? iterate_fd+0x3f0/0x3f0 [ 49.238312] ? find_held_lock+0x35/0x1d0 [ 49.242346] ? sock_has_perm+0x2a4/0x420 [ 49.246379] ? lock_release+0x9a2/0xa40 [ 49.250322] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 49.256175] ? __check_object_size+0x8b/0x530 [ 49.260642] inet_sendmsg+0x11f/0x5e0 [ 49.264411] ? inet_sendmsg+0x11f/0x5e0 [ 49.268355] ? __might_sleep+0x95/0x190 [ 49.272296] ? inet_create+0xf50/0xf50 [ 49.276157] ? selinux_socket_sendmsg+0x36/0x40 [ 49.280795] ? security_socket_sendmsg+0x89/0xb0 [ 49.285522] ? inet_create+0xf50/0xf50 [ 49.289379] sock_sendmsg+0xca/0x110 [ 49.293074] SYSC_sendto+0x361/0x5c0 [ 49.296762] ? SYSC_connect+0x4a0/0x4a0 [ 49.300721] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 49.306053] ? __do_page_fault+0x3d6/0xc90 [ 49.310258] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 49.315517] ? SyS_futex+0x269/0x390 [ 49.319209] ? SyS_setsockopt+0x215/0x360 [ 49.323338] ? do_futex+0x22a0/0x22a0 [ 49.327116] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 49.331932] SyS_sendto+0x40/0x50 [ 49.335356] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 49.340081] RIP: 0033:0x4457e9 [ 49.343238] RSP: 002b:00007f26f1c7eda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 49.350914] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 49.358154] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 49.365406] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 49.372647] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 49.379886] R13: 00007ffc079c442f R14: 00007f26f1c7f9c0 R15: 0000000000000001 [ 49.387210] ================================================================== [ 49.394559] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 49.401194] Read of size 4 at addr ffff8801d94cc08c by task syzkaller314567/3665 [ 49.408703] [ 49.410303] CPU: 0 PID: 3665 Comm: syzkaller314567 Not tainted 4.15.0-rc7-mm1+ #56 [ 49.417978] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.427300] Call Trace: [ 49.429858] dump_stack+0x194/0x257 [ 49.433453] ? arch_local_irq_restore+0x53/0x53 [ 49.438093] ? show_regs_print_info+0x18/0x18 [ 49.442558] ? lock_acquire+0x1d5/0x580 executing program [ 49.446502] ? trace_hardirqs_on+0xd/0x10 [ 49.451053] ? do_raw_spin_lock+0x1e0/0x220 [ 49.456879] print_address_description+0x73/0x250 [ 49.462391] ? do_raw_spin_lock+0x1e0/0x220 [ 49.466689] kasan_report+0x23b/0x360 [ 49.470463] __asan_report_load4_noabort+0x14/0x20 [ 49.475363] do_raw_spin_lock+0x1e0/0x220 [ 49.479481] _raw_spin_lock_bh+0x39/0x40 [ 49.483527] ? release_sock+0x74/0x2a0 [ 49.487384] release_sock+0x74/0x2a0 [ 49.491067] ? sctp_prsctp_prune+0x97/0x790 [ 49.495357] ? __release_sock+0x360/0x360 [ 49.499490] ? trace_hardirqs_on+0xd/0x10 [ 49.503611] sctp_sendmsg+0x2993/0x33f0 [ 49.507560] ? sctp_id2assoc+0x390/0x390 [ 49.511590] ? avc_has_perm+0x43e/0x680 [ 49.515540] ? avc_has_perm_noaudit+0x520/0x520 [ 49.520189] ? __fget+0x35c/0x570 [ 49.523618] ? iterate_fd+0x3f0/0x3f0 [ 49.527392] ? find_held_lock+0x35/0x1d0 [ 49.531428] ? sock_has_perm+0x2a4/0x420 [ 49.535471] ? lock_release+0x9a2/0xa40 [ 49.539414] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 49.545268] ? __check_object_size+0x8b/0x530 [ 49.549737] inet_sendmsg+0x11f/0x5e0 [ 49.553506] ? inet_sendmsg+0x11f/0x5e0 [ 49.557449] ? __might_sleep+0x95/0x190 [ 49.561390] ? inet_create+0xf50/0xf50 [ 49.565246] ? selinux_socket_sendmsg+0x36/0x40 [ 49.569884] ? security_socket_sendmsg+0x89/0xb0 [ 49.574608] ? inet_create+0xf50/0xf50 [ 49.578467] sock_sendmsg+0xca/0x110 [ 49.582161] SYSC_sendto+0x361/0x5c0 [ 49.585845] ? SYSC_connect+0x4a0/0x4a0 [ 49.589792] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 49.595129] ? __do_page_fault+0x3d6/0xc90 [ 49.599335] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 49.604594] ? SyS_futex+0x269/0x390 [ 49.608277] ? SyS_setsockopt+0x215/0x360 [ 49.612395] ? do_futex+0x22a0/0x22a0 [ 49.616175] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 49.621948] SyS_sendto+0x40/0x50 [ 49.625375] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 49.630101] RIP: 0033:0x4457e9 [ 49.633260] RSP: 002b:00007f26f1c7eda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 49.640934] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 49.648172] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 49.655411] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 49.662652] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 49.669900] R13: 00007ffc079c442f R14: 00007f26f1c7f9c0 R15: 0000000000000001 [ 49.677158] [ 49.678757] Allocated by task 3670: [ 49.682363] save_stack+0x43/0xd0 [ 49.685785] kasan_kmalloc+0xad/0xe0 [ 49.689471] kasan_slab_alloc+0x12/0x20 [ 49.693412] kmem_cache_alloc+0x12e/0x760 [ 49.697530] sk_prot_alloc+0x65/0x2a0 [ 49.701299] sk_alloc+0x105/0x1440 [ 49.704811] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 49.709621] sctp_accept+0x5c4/0x970 [ 49.713305] inet_accept+0x12c/0x930 [ 49.716988] SYSC_accept4+0x38d/0x870 [ 49.720756] SyS_accept+0x26/0x30 [ 49.724181] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 49.728902] [ 49.730499] Freed by task 3665: [ 49.733751] save_stack+0x43/0xd0 [ 49.737174] __kasan_slab_free+0x11a/0x170 [ 49.741381] kasan_slab_free+0xe/0x10 [ 49.745149] kmem_cache_free+0x86/0x2b0 [ 49.749090] __sk_destruct+0x622/0x910 [ 49.752942] sk_destruct+0x47/0x80 [ 49.756711] __sk_free+0xf1/0x2b0 [ 49.760132] sk_free+0x2a/0x40 [ 49.763293] sctp_association_put+0x14c/0x2f0 [ 49.767756] sctp_wait_for_sndbuf+0x673/0x8d0 [ 49.772234] sctp_sendmsg+0x28f7/0x33f0 [ 49.776775] inet_sendmsg+0x11f/0x5e0 [ 49.780549] sock_sendmsg+0xca/0x110 [ 49.784230] SYSC_sendto+0x361/0x5c0 [ 49.787922] SyS_sendto+0x40/0x50 [ 49.791345] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 49.796074] [ 49.797676] The buggy address belongs to the object at ffff8801d94cc000 [ 49.797676] which belongs to the cache SCTPv6 of size 1888 [ 49.810996] The buggy address is located 140 bytes inside of [ 49.810996] 1888-byte region [ffff8801d94cc000, ffff8801d94cc760) [ 49.822932] The buggy address belongs to the page: [ 49.827841] page:ffffea0007653300 count:1 mapcount:0 mapping:ffff8801d94cc000 index:0x0 [ 49.835962] flags: 0x2fffc0000000100(slab) [ 49.840169] raw: 02fffc0000000100 ffff8801d94cc000 0000000000000000 0000000100000002 [ 49.848026] raw: ffffea00074be0e0 ffffea00076574a0 ffff8801d2f79680 0000000000000000 [ 49.855877] page dumped because: kasan: bad access detected [ 49.861565] [ 49.863163] Memory state around the buggy address: [ 49.868062] ffff8801d94cbf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 49.875388] ffff8801d94cc000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.884212] >ffff8801d94cc080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.892060] ^ [ 49.895658] ffff8801d94cc100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.902989] ffff8801d94cc180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.910315] ================================================================== [ 49.917681] Kernel panic - not syncing: panic_on_warn set ... [ 49.917681] [ 49.925023] CPU: 0 PID: 3665 Comm: syzkaller314567 Tainted: G B 4.15.0-rc7-mm1+ #56 [ 49.934002] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.943333] Call Trace: executing program [ 49.945894] dump_stack+0x194/0x257 [ 49.949494] ? arch_local_irq_restore+0x53/0x53 [ 49.954136] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 49.958862] ? vsnprintf+0x1ed/0x1900 [ 49.962631] ? do_raw_spin_lock+0x140/0x220 [ 49.966922] panic+0x1e4/0x41c [ 49.970087] ? refcount_error_report+0x214/0x214 [ 49.974816] ? add_taint+0x1c/0x50 [ 49.978326] ? add_taint+0x1c/0x50 [ 49.981836] ? do_raw_spin_lock+0x1e0/0x220 [ 49.986130] kasan_end_report+0x50/0x50 [ 49.990076] kasan_report+0x148/0x360 [ 49.993850] __asan_report_load4_noabort+0x14/0x20 [ 49.998748] do_raw_spin_lock+0x1e0/0x220 [ 50.002869] _raw_spin_lock_bh+0x39/0x40 [ 50.006901] ? release_sock+0x74/0x2a0 [ 50.010758] release_sock+0x74/0x2a0 [ 50.014442] ? sctp_prsctp_prune+0x97/0x790 [ 50.018734] ? __release_sock+0x360/0x360 [ 50.022851] ? trace_hardirqs_on+0xd/0x10 [ 50.026985] sctp_sendmsg+0x2993/0x33f0 [ 50.030939] ? sctp_id2assoc+0x390/0x390 [ 50.034973] ? avc_has_perm+0x43e/0x680 [ 50.038920] ? avc_has_perm_noaudit+0x520/0x520 [ 50.043559] ? __fget+0x35c/0x570 [ 50.046988] ? iterate_fd+0x3f0/0x3f0 [ 50.050762] ? find_held_lock+0x35/0x1d0 [ 50.054806] ? sock_has_perm+0x2a4/0x420 [ 50.058851] ? lock_release+0x9a2/0xa40 [ 50.062793] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 50.068651] ? __check_object_size+0x8b/0x530 [ 50.073117] inet_sendmsg+0x11f/0x5e0 [ 50.076886] ? inet_sendmsg+0x11f/0x5e0 [ 50.080827] ? __might_sleep+0x95/0x190 [ 50.085550] ? inet_create+0xf50/0xf50 [ 50.089414] ? selinux_socket_sendmsg+0x36/0x40 [ 50.094227] ? security_socket_sendmsg+0x89/0xb0 [ 50.098960] ? inet_create+0xf50/0xf50 [ 50.102819] sock_sendmsg+0xca/0x110 [ 50.106504] SYSC_sendto+0x361/0x5c0 [ 50.110187] ? SYSC_connect+0x4a0/0x4a0 [ 50.114132] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 50.119475] ? __do_page_fault+0x3d6/0xc90 [ 50.123687] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 50.128959] ? SyS_futex+0x269/0x390 [ 50.132646] ? SyS_setsockopt+0x215/0x360 [ 50.136767] ? do_futex+0x22a0/0x22a0 [ 50.140541] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 50.145356] SyS_sendto+0x40/0x50 [ 50.148783] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 50.153510] RIP: 0033:0x4457e9 [ 50.157111] RSP: 002b:00007f26f1c7eda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 50.164799] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 50.172041] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 50.179292] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 50.186533] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 50.194213] R13: 00007ffc079c442f R14: 00007f26f1c7f9c0 R15: 0000000000000001 [ 50.202039] Dumping ftrace buffer: [ 50.205548] (ftrace buffer empty) [ 50.209229] Kernel Offset: disabled [ 50.212827] Rebooting in 86400 seconds..