[....] Starting enhanced syslogd: rsyslogd[ 12.675056] audit: type=1400 audit(1515900203.149:5): avc: denied { syslog } for pid=3505 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.004724] audit: type=1400 audit(1515900208.479: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 [ 24.204110] audit: type=1400 audit(1515900214.678:7): avc: denied { map } for pid=3658 comm="syzkaller559497" path="/root/syzkaller559497950" 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 [ 24.336828] [ 24.338471] ========================= [ 24.342241] WARNING: held lock freed! [ 24.346009] 4.15.0-rc7-mm1+ #56 Not tainted [ 24.350383] ------------------------- [ 24.354154] syzkaller559497/3660 is freeing memory 00000000634f1614-0000000072b213ea, with a lock still held there! [ 24.364699] (sk_lock-AF_INET6){+.+.}, at: [<00000000e026b5f5>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 24.373622] 1 lock held by syzkaller559497/3660: [ 24.378343] #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000e026b5f5>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 24.387777] [ 24.387777] stack backtrace: [ 24.392239] CPU: 0 PID: 3660 Comm: syzkaller559497 Not tainted 4.15.0-rc7-mm1+ #56 [ 24.399910] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.409234] Call Trace: [ 24.411811] dump_stack+0x194/0x257 [ 24.415421] ? arch_local_irq_restore+0x53/0x53 [ 24.420063] debug_check_no_locks_freed+0x32f/0x3c0 [ 24.425060] kmem_cache_free+0x68/0x2b0 [ 24.429015] __sk_destruct+0x622/0x910 [ 24.432870] ? kfree+0xd9/0x260 [ 24.436117] ? sock_rfree+0x160/0x160 [ 24.439884] ? sock_sendmsg+0xca/0x110 [ 24.443736] ? SyS_sendto+0x40/0x50 [ 24.447331] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 24.452228] ? debug_check_no_obj_freed+0x611/0xf1f [ 24.457213] ? check_noncircular+0x20/0x20 [ 24.461417] ? print_irqtrace_events+0x270/0x270 [ 24.466152] ? __local_bh_enable_ip+0x121/0x230 [ 24.470808] ? sctp_put_port+0x495/0x640 [ 24.474837] ? sctp_poll+0xc00/0xc00 [ 24.478533] ? refcount_sub_and_test+0x115/0x1b0 [ 24.483269] ? refcount_inc+0x50/0x50 [ 24.487040] ? refcount_inc+0x50/0x50 [ 24.490808] sk_destruct+0x47/0x80 [ 24.494323] __sk_free+0xf1/0x2b0 [ 24.497742] sk_free+0x2a/0x40 [ 24.500903] sctp_association_put+0x14c/0x2f0 [ 24.505374] ? sctp_association_hold+0x20/0x20 [ 24.509921] ? lock_sock_nested+0x91/0x110 [ 24.514132] ? trace_hardirqs_on+0xd/0x10 [ 24.518256] ? __local_bh_enable_ip+0x121/0x230 [ 24.522908] sctp_wait_for_sndbuf+0x673/0x8d0 [ 24.527383] ? sctp_init_sock+0x13b0/0x13b0 [ 24.531692] ? do_raw_spin_trylock+0x190/0x190 [ 24.536244] ? __local_bh_enable_ip+0x121/0x230 [ 24.540880] ? sctp_prsctp_prune+0x97/0x790 [ 24.545167] ? prepare_to_wait+0x4d0/0x4d0 [ 24.549378] ? trace_hardirqs_on+0xd/0x10 [ 24.553509] sctp_sendmsg+0x28f7/0x33f0 [ 24.557469] ? sctp_id2assoc+0x390/0x390 [ 24.561501] ? avc_has_perm+0x43e/0x680 [ 24.565442] ? avc_has_perm_noaudit+0x520/0x520 [ 24.570078] ? __fget+0x35c/0x570 [ 24.573509] ? iterate_fd+0x3f0/0x3f0 [ 24.577284] ? find_held_lock+0x35/0x1d0 [ 24.581318] ? sock_has_perm+0x2a4/0x420 [ 24.585358] ? lock_release+0x9a2/0xa40 [ 24.589299] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.595153] ? __check_object_size+0x8b/0x530 [ 24.599653] inet_sendmsg+0x11f/0x5e0 [ 24.603419] ? inet_sendmsg+0x11f/0x5e0 [ 24.607360] ? __might_sleep+0x95/0x190 [ 24.611303] ? inet_create+0xf50/0xf50 [ 24.615166] ? selinux_socket_sendmsg+0x36/0x40 [ 24.619818] ? security_socket_sendmsg+0x89/0xb0 [ 24.624543] ? inet_create+0xf50/0xf50 [ 24.628400] sock_sendmsg+0xca/0x110 [ 24.632080] SYSC_sendto+0x361/0x5c0 [ 24.635763] ? SYSC_connect+0x4a0/0x4a0 [ 24.639703] ? up_read+0x1a/0x40 [ 24.643036] ? __do_page_fault+0x3d6/0xc90 [ 24.647310] ? __do_page_fault+0xc90/0xc90 [ 24.651535] ? SyS_futex+0x269/0x390 [ 24.655219] ? SyS_setsockopt+0x215/0x360 [ 24.659345] ? do_futex+0x22a0/0x22a0 [ 24.663114] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 24.667932] SyS_sendto+0x40/0x50 [ 24.671354] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 24.676076] RIP: 0033:0x4457e9 [ 24.679233] RSP: 002b:00007ff095decda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 24.686942] RAX: ffffffffffffffda RBX: 00000000006dac3c RCX: 00000000004457e9 [ 24.694196] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 24.701450] RBP: 00000000006dac38 R08: 00000000204d9000 R09: 000000000000001c [ 24.708684] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 24.715921] R13: 00007ffc5451124f R14: 00007ff095ded9c0 R15: 0000000000000001 [ 24.723250] ================================================================== [ 24.730586] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 executing program [ 24.737225] Read of size 4 at addr ffff8801d900c88c by task syzkaller559497/3660 [ 24.744722] [ 24.746318] CPU: 0 PID: 3660 Comm: syzkaller559497 Not tainted 4.15.0-rc7-mm1+ #56 [ 24.754000] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.763325] Call Trace: [ 24.765888] dump_stack+0x194/0x257 [ 24.769482] ? arch_local_irq_restore+0x53/0x53 [ 24.774119] ? show_regs_print_info+0x18/0x18 [ 24.778582] ? lock_acquire+0x1d5/0x580 [ 24.782525] ? trace_hardirqs_on+0xd/0x10 [ 24.786638] ? do_raw_spin_lock+0x1e0/0x220 [ 24.790931] print_address_description+0x73/0x250 [ 24.795737] ? do_raw_spin_lock+0x1e0/0x220 [ 24.800032] kasan_report+0x23b/0x360 [ 24.803801] __asan_report_load4_noabort+0x14/0x20 [ 24.808697] do_raw_spin_lock+0x1e0/0x220 [ 24.812817] _raw_spin_lock_bh+0x39/0x40 [ 24.816850] ? release_sock+0x74/0x2a0 [ 24.820714] release_sock+0x74/0x2a0 [ 24.824398] ? sctp_prsctp_prune+0x97/0x790 [ 24.828687] ? __release_sock+0x360/0x360 [ 24.832809] ? trace_hardirqs_on+0xd/0x10 [ 24.836936] sctp_sendmsg+0x2993/0x33f0 [ 24.840884] ? sctp_id2assoc+0x390/0x390 [ 24.844912] ? avc_has_perm+0x43e/0x680 [ 24.848855] ? avc_has_perm_noaudit+0x520/0x520 [ 24.853495] ? __fget+0x35c/0x570 [ 24.856925] ? iterate_fd+0x3f0/0x3f0 [ 24.860698] ? find_held_lock+0x35/0x1d0 [ 24.864729] ? sock_has_perm+0x2a4/0x420 [ 24.868758] ? lock_release+0x9a2/0xa40 [ 24.872701] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.878560] ? __check_object_size+0x8b/0x530 [ 24.883033] inet_sendmsg+0x11f/0x5e0 [ 24.886814] ? inet_sendmsg+0x11f/0x5e0 [ 24.890755] ? __might_sleep+0x95/0x190 [ 24.894695] ? inet_create+0xf50/0xf50 [ 24.898552] ? selinux_socket_sendmsg+0x36/0x40 [ 24.903188] ? security_socket_sendmsg+0x89/0xb0 [ 24.907917] ? inet_create+0xf50/0xf50 [ 24.911779] sock_sendmsg+0xca/0x110 [ 24.915467] SYSC_sendto+0x361/0x5c0 [ 24.919153] ? SYSC_connect+0x4a0/0x4a0 [ 24.923095] ? up_read+0x1a/0x40 [ 24.926430] ? __do_page_fault+0x3d6/0xc90 [ 24.930648] ? __do_page_fault+0xc90/0xc90 [ 24.934853] ? SyS_futex+0x269/0x390 [ 24.938532] ? SyS_setsockopt+0x215/0x360 [ 24.942649] ? do_futex+0x22a0/0x22a0 [ 24.946418] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 24.951236] SyS_sendto+0x40/0x50 [ 24.954673] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 24.959401] RIP: 0033:0x4457e9 [ 24.962565] RSP: 002b:00007ff095decda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 24.970240] RAX: ffffffffffffffda RBX: 00000000006dac3c RCX: 00000000004457e9 [ 24.977476] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 24.984723] RBP: 00000000006dac38 R08: 00000000204d9000 R09: 000000000000001c [ 24.992048] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 24.999298] R13: 00007ffc5451124f R14: 00007ff095ded9c0 R15: 0000000000000001 [ 25.006551] [ 25.008153] Allocated by task 3661: [ 25.011763] save_stack+0x43/0xd0 [ 25.015194] kasan_kmalloc+0xad/0xe0 [ 25.018882] kasan_slab_alloc+0x12/0x20 [ 25.022826] kmem_cache_alloc+0x12e/0x760 [ 25.026955] sk_prot_alloc+0x65/0x2a0 [ 25.030735] sk_alloc+0x105/0x1440 [ 25.034243] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 25.039055] sctp_accept+0x5c4/0x970 [ 25.042745] inet_accept+0x12c/0x930 [ 25.046425] SYSC_accept4+0x38d/0x870 [ 25.050191] SyS_accept4+0x2c/0x40 [ 25.053696] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.058426] [ 25.060020] Freed by task 3660: [ 25.063275] save_stack+0x43/0xd0 [ 25.066695] __kasan_slab_free+0x11a/0x170 [ 25.070896] kasan_slab_free+0xe/0x10 [ 25.074662] kmem_cache_free+0x86/0x2b0 [ 25.078602] __sk_destruct+0x622/0x910 [ 25.082452] sk_destruct+0x47/0x80 [ 25.085956] __sk_free+0xf1/0x2b0 [ 25.089379] sk_free+0x2a/0x40 [ 25.092540] sctp_association_put+0x14c/0x2f0 [ 25.097001] sctp_wait_for_sndbuf+0x673/0x8d0 [ 25.101460] sctp_sendmsg+0x28f7/0x33f0 [ 25.105399] inet_sendmsg+0x11f/0x5e0 [ 25.109165] sock_sendmsg+0xca/0x110 [ 25.112842] SYSC_sendto+0x361/0x5c0 [ 25.116526] SyS_sendto+0x40/0x50 [ 25.119944] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.124661] [ 25.126257] The buggy address belongs to the object at ffff8801d900c800 [ 25.126257] which belongs to the cache SCTPv6 of size 1888 [ 25.138530] The buggy address is located 140 bytes inside of [ 25.138530] 1888-byte region [ffff8801d900c800, ffff8801d900cf60) [ 25.150469] The buggy address belongs to the page: [ 25.155367] page:ffffea0007640300 count:1 mapcount:0 mapping:ffff8801d900c000 index:0x0 [ 25.163475] flags: 0x2fffc0000000100(slab) [ 25.167677] raw: 02fffc0000000100 ffff8801d900c000 0000000000000000 0000000100000002 [ 25.175524] raw: ffffea0006f1f8a0 ffffea0007640360 ffff8801d2fdc9c0 0000000000000000 [ 25.183375] page dumped because: kasan: bad access detected [ 25.189061] [ 25.190652] Memory state around the buggy address: [ 25.195547] ffff8801d900c780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.202871] ffff8801d900c800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.210200] >ffff8801d900c880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.217538] ^ [ 25.221138] ffff8801d900c900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.228470] ffff8801d900c980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.235806] ================================================================== [ 25.243165] Kernel panic - not syncing: panic_on_warn set ... [ 25.243165] [ 25.250506] CPU: 0 PID: 3660 Comm: syzkaller559497 Tainted: G B 4.15.0-rc7-mm1+ #56 [ 25.259481] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.268806] Call Trace: [ 25.271375] dump_stack+0x194/0x257 [ 25.274970] ? arch_local_irq_restore+0x53/0x53 [ 25.280566] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.285291] ? vsnprintf+0x1ed/0x1900 [ 25.289057] ? do_raw_spin_lock+0x140/0x220 [ 25.293342] panic+0x1e4/0x41c [ 25.296505] ? refcount_error_report+0x214/0x214 [ 25.301242] ? add_taint+0x1c/0x50 [ 25.304751] ? add_taint+0x1c/0x50 [ 25.308266] ? do_raw_spin_lock+0x1e0/0x220 [ 25.312555] kasan_end_report+0x50/0x50 [ 25.316506] kasan_report+0x148/0x360 [ 25.320281] __asan_report_load4_noabort+0x14/0x20 [ 25.325176] do_raw_spin_lock+0x1e0/0x220 [ 25.329294] _raw_spin_lock_bh+0x39/0x40 [ 25.333325] ? release_sock+0x74/0x2a0 [ 25.337187] release_sock+0x74/0x2a0 [ 25.340874] ? sctp_prsctp_prune+0x97/0x790 [ 25.345165] ? __release_sock+0x360/0x360 [ 25.349290] ? trace_hardirqs_on+0xd/0x10 [ 25.353413] sctp_sendmsg+0x2993/0x33f0 [ 25.357361] ? sctp_id2assoc+0x390/0x390 [ 25.361390] ? avc_has_perm+0x43e/0x680 [ 25.365335] ? avc_has_perm_noaudit+0x520/0x520 [ 25.370077] ? __fget+0x35c/0x570 [ 25.373502] ? iterate_fd+0x3f0/0x3f0 [ 25.377273] ? find_held_lock+0x35/0x1d0 [ 25.381305] ? sock_has_perm+0x2a4/0x420 [ 25.385336] ? lock_release+0x9a2/0xa40 [ 25.389286] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.395148] ? __check_object_size+0x8b/0x530 [ 25.399615] inet_sendmsg+0x11f/0x5e0 [ 25.403380] ? inet_sendmsg+0x11f/0x5e0 [ 25.407332] ? __might_sleep+0x95/0x190 [ 25.411274] ? inet_create+0xf50/0xf50 [ 25.415131] ? selinux_socket_sendmsg+0x36/0x40 [ 25.419767] ? security_socket_sendmsg+0x89/0xb0 [ 25.424489] ? inet_create+0xf50/0xf50 [ 25.428343] sock_sendmsg+0xca/0x110 [ 25.432027] SYSC_sendto+0x361/0x5c0 [ 25.435708] ? SYSC_connect+0x4a0/0x4a0 [ 25.439651] ? up_read+0x1a/0x40 [ 25.442985] ? __do_page_fault+0x3d6/0xc90 [ 25.447201] ? __do_page_fault+0xc90/0xc90 [ 25.451418] ? SyS_futex+0x269/0x390 [ 25.455097] ? SyS_setsockopt+0x215/0x360 [ 25.459218] ? do_futex+0x22a0/0x22a0 [ 25.462997] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 25.467811] SyS_sendto+0x40/0x50 [ 25.471233] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.475957] RIP: 0033:0x4457e9 [ 25.479116] RSP: 002b:00007ff095decda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 25.486794] RAX: ffffffffffffffda RBX: 00000000006dac3c RCX: 00000000004457e9 [ 25.494033] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 25.501272] RBP: 00000000006dac38 R08: 00000000204d9000 R09: 000000000000001c [ 25.508513] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 25.515751] R13: 00007ffc5451124f R14: 00007ff095ded9c0 R15: 0000000000000001 [ 25.523361] Dumping ftrace buffer: [ 25.526870] (ftrace buffer empty) [ 25.530550] Kernel Offset: disabled [ 25.534149] Rebooting in 86400 seconds..