[....] Starting enhanced syslogd: rsyslogd[ 13.452736] audit: type=1400 audit(1515879566.158: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 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.097770] audit: type=1400 audit(1515879570.803:6): avc: denied { map } for pid=3645 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 [ 24.341472] audit: type=1400 audit(1515879577.047:7): avc: denied { map } for pid=3659 comm="syzkaller414178" path="/root/syzkaller414178692" 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.507417] [ 24.509067] ========================= [ 24.512840] WARNING: held lock freed! [ 24.516621] 4.15.0-rc7+ #260 Not tainted [ 24.520704] ------------------------- [ 24.524522] syzkaller414178/3663 is freeing memory 00000000ff50e037-0000000011af0e3f, with a lock still held there! [ 24.535069] (sk_lock-AF_INET6){+.+.}, at: [<0000000097dfed8b>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 24.543989] 1 lock held by syzkaller414178/3663: [ 24.548717] #0: (sk_lock-AF_INET6){+.+.}, at: [<0000000097dfed8b>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 24.558061] [ 24.558061] stack backtrace: [ 24.562534] CPU: 1 PID: 3663 Comm: syzkaller414178 Not tainted 4.15.0-rc7+ #260 [ 24.569954] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.579379] Call Trace: [ 24.581948] dump_stack+0x194/0x257 [ 24.585551] ? arch_local_irq_restore+0x53/0x53 [ 24.590203] debug_check_no_locks_freed+0x32f/0x3c0 [ 24.595198] kmem_cache_free+0x68/0x2a0 [ 24.599166] __sk_destruct+0x622/0x910 [ 24.603038] ? kasan_slab_free+0x71/0xc0 [ 24.607074] ? sock_rfree+0x160/0x160 [ 24.610856] ? inet_sendmsg+0x11f/0x5e0 [ 24.614803] ? SYSC_sendto+0x361/0x5c0 [ 24.618669] ? SyS_sendto+0x40/0x50 [ 24.622281] ? entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.627194] ? check_noncircular+0x20/0x20 [ 24.631402] ? print_irqtrace_events+0x270/0x270 [ 24.636134] ? free_obj_work+0x690/0x690 [ 24.640174] ? sctp_put_port+0x495/0x640 [ 24.644220] ? sctp_poll+0xc00/0xc00 [ 24.647917] ? refcount_sub_and_test+0x115/0x1b0 [ 24.652649] ? refcount_inc+0x50/0x50 [ 24.656423] ? refcount_inc+0x50/0x50 [ 24.660210] sk_destruct+0x47/0x80 [ 24.663741] __sk_free+0x57/0x230 [ 24.667183] sk_free+0x2a/0x40 [ 24.670359] sctp_association_put+0x14c/0x2f0 [ 24.674831] ? sctp_association_hold+0x20/0x20 [ 24.679392] ? lock_sock_nested+0x91/0x110 [ 24.683606] ? trace_hardirqs_on+0xd/0x10 [ 24.687739] ? __local_bh_enable_ip+0x121/0x230 [ 24.692394] sctp_wait_for_sndbuf+0x673/0x8d0 [ 24.696880] ? sctp_init_sock+0x13b0/0x13b0 [ 24.701268] ? do_raw_spin_trylock+0x190/0x190 [ 24.705829] ? __local_bh_enable_ip+0x121/0x230 [ 24.710476] ? sctp_prsctp_prune+0x97/0x6f0 [ 24.714780] ? prepare_to_wait+0x4d0/0x4d0 [ 24.718992] ? trace_hardirqs_on+0xd/0x10 [ 24.723126] sctp_sendmsg+0x277d/0x3360 [ 24.727094] ? put_pi_state+0x3c0/0x560 [ 24.731054] ? sctp_id2assoc+0x390/0x390 [ 24.735106] ? avc_has_perm+0x43e/0x680 [ 24.739068] ? avc_has_perm_noaudit+0x520/0x520 [ 24.743720] ? __fget+0x35c/0x570 [ 24.747164] ? iterate_fd+0x3f0/0x3f0 [ 24.750956] ? find_held_lock+0x35/0x1d0 [ 24.755031] ? sock_has_perm+0x2a4/0x420 [ 24.759078] ? lock_release+0x962/0xa40 [ 24.763033] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.768896] ? __check_object_size+0x25d/0x4f0 [ 24.773476] inet_sendmsg+0x11f/0x5e0 [ 24.777252] ? inet_sendmsg+0x11f/0x5e0 [ 24.781203] ? __might_sleep+0x95/0x190 [ 24.785161] ? inet_recvmsg+0x5f0/0x5f0 [ 24.789124] ? selinux_socket_sendmsg+0x36/0x40 [ 24.793772] ? security_socket_sendmsg+0x89/0xb0 [ 24.798514] ? inet_recvmsg+0x5f0/0x5f0 [ 24.802468] sock_sendmsg+0xca/0x110 [ 24.806166] SYSC_sendto+0x361/0x5c0 [ 24.809860] ? SYSC_connect+0x4a0/0x4a0 [ 24.813812] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 24.819158] ? __do_page_fault+0x3d6/0xc90 [ 24.823378] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 24.828666] ? SyS_futex+0x269/0x390 [ 24.832361] ? SyS_setsockopt+0x215/0x360 [ 24.836488] ? do_futex+0x22a0/0x22a0 [ 24.840267] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 24.845091] SyS_sendto+0x40/0x50 [ 24.848526] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.853263] RIP: 0033:0x4457e9 [ 24.856427] RSP: 002b:00007f51f94f3da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 24.864116] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 24.871625] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 24.878871] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 24.886123] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 24.893370] R13: 00007ffe49ad3e6f R14: 00007f51f94f49c0 R15: 0000000000000001 [ 24.900762] ================================================================== [ 24.908128] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 24.914772] Read of size 4 at addr ffff8801d948b88c by task syzkaller414178/3663 [ 24.922276] [ 24.923879] CPU: 1 PID: 3663 Comm: syzkaller414178 Not tainted 4.15.0-rc7+ #260 [ 24.931300] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.940635] Call Trace: [ 24.943206] dump_stack+0x194/0x257 [ 24.946828] ? arch_local_irq_restore+0x53/0x53 [ 24.951489] ? show_regs_print_info+0x18/0x18 [ 24.955974] ? lock_acquire+0x1d5/0x580 [ 24.959922] ? trace_hardirqs_on+0xd/0x10 [ 24.964056] ? do_raw_spin_lock+0x1e0/0x220 [ 24.968355] print_address_description+0x73/0x250 [ 24.973196] ? do_raw_spin_lock+0x1e0/0x220 [ 24.977531] kasan_report+0x25b/0x340 [ 24.981311] __asan_report_load4_noabort+0x14/0x20 [ 24.986229] do_raw_spin_lock+0x1e0/0x220 [ 24.990368] _raw_spin_lock_bh+0x39/0x40 [ 24.994408] ? release_sock+0x74/0x2a0 [ 24.998278] release_sock+0x74/0x2a0 [ 25.001977] ? sctp_prsctp_prune+0x97/0x6f0 [ 25.006277] ? __release_sock+0x360/0x360 [ 25.010411] ? trace_hardirqs_on+0xd/0x10 [ 25.014547] sctp_sendmsg+0x2c61/0x3360 [ 25.018508] ? put_pi_state+0x3c0/0x560 [ 25.022469] ? sctp_id2assoc+0x390/0x390 [ 25.026508] ? avc_has_perm+0x43e/0x680 [ 25.030485] ? avc_has_perm_noaudit+0x520/0x520 [ 25.035140] ? __fget+0x35c/0x570 [ 25.038575] ? iterate_fd+0x3f0/0x3f0 [ 25.042357] ? find_held_lock+0x35/0x1d0 [ 25.046491] ? sock_has_perm+0x2a4/0x420 [ 25.050533] ? lock_release+0x962/0xa40 [ 25.054489] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.060355] ? __check_object_size+0x25d/0x4f0 [ 25.065107] inet_sendmsg+0x11f/0x5e0 [ 25.068882] ? inet_sendmsg+0x11f/0x5e0 [ 25.072831] ? __might_sleep+0x95/0x190 [ 25.076783] ? inet_recvmsg+0x5f0/0x5f0 [ 25.080748] ? selinux_socket_sendmsg+0x36/0x40 [ 25.085391] ? security_socket_sendmsg+0x89/0xb0 [ 25.090122] ? inet_recvmsg+0x5f0/0x5f0 [ 25.094076] sock_sendmsg+0xca/0x110 [ 25.097773] SYSC_sendto+0x361/0x5c0 [ 25.101466] ? SYSC_connect+0x4a0/0x4a0 [ 25.105419] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 25.110762] ? __do_page_fault+0x3d6/0xc90 [ 25.114974] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 25.120246] ? SyS_futex+0x269/0x390 [ 25.123934] ? SyS_setsockopt+0x215/0x360 [ 25.128061] ? do_futex+0x22a0/0x22a0 [ 25.131858] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 25.136682] SyS_sendto+0x40/0x50 [ 25.140133] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.145045] RIP: 0033:0x4457e9 [ 25.148209] RSP: 002b:00007f51f94f3da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 25.155894] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 25.163142] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 25.170393] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 25.177646] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 25.184899] R13: 00007ffe49ad3e6f R14: 00007f51f94f49c0 R15: 0000000000000001 [ 25.192155] [ 25.193757] Allocated by task 3668: [ 25.197363] save_stack+0x43/0xd0 [ 25.200791] kasan_kmalloc+0xad/0xe0 [ 25.204489] kasan_slab_alloc+0x12/0x20 [ 25.208440] kmem_cache_alloc+0x12e/0x760 [ 25.212564] sk_prot_alloc+0x65/0x2a0 [ 25.216339] sk_alloc+0x105/0x1410 [ 25.219856] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 25.224670] sctp_accept+0x5c4/0x970 [ 25.228361] inet_accept+0x12c/0x930 [ 25.232056] SYSC_accept4+0x38d/0x870 [ 25.235832] SyS_accept+0x26/0x30 [ 25.240216] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.244945] [ 25.246544] Freed by task 3663: [ 25.249799] save_stack+0x43/0xd0 [ 25.253226] kasan_slab_free+0x71/0xc0 [ 25.257092] kmem_cache_free+0x83/0x2a0 [ 25.261041] __sk_destruct+0x622/0x910 [ 25.264918] sk_destruct+0x47/0x80 [ 25.268432] __sk_free+0x57/0x230 [ 25.271878] sk_free+0x2a/0x40 [ 25.275057] sctp_association_put+0x14c/0x2f0 [ 25.279537] sctp_wait_for_sndbuf+0x673/0x8d0 [ 25.284009] sctp_sendmsg+0x277d/0x3360 [ 25.287982] inet_sendmsg+0x11f/0x5e0 [ 25.291777] sock_sendmsg+0xca/0x110 [ 25.295467] SYSC_sendto+0x361/0x5c0 [ 25.299152] SyS_sendto+0x40/0x50 [ 25.302581] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.307308] [ 25.308918] The buggy address belongs to the object at ffff8801d948b800 [ 25.308918] which belongs to the cache SCTPv6 of size 1888 [ 25.321202] The buggy address is located 140 bytes inside of [ 25.321202] 1888-byte region [ffff8801d948b800, ffff8801d948bf60) [ 25.333140] The buggy address belongs to the page: [ 25.338050] page:ffffea00076522c0 count:1 mapcount:0 mapping:ffff8801d948b000 index:0x0 [ 25.346171] flags: 0x2fffc0000000100(slab) [ 25.350389] raw: 02fffc0000000100 ffff8801d948b000 0000000000000000 0000000100000002 [ 25.358247] raw: ffffea0006f0f9e0 ffffea00076508a0 ffff8801d2c0fe40 0000000000000000 [ 25.377648] page dumped because: kasan: bad access detected [ 25.383345] [ 25.384963] Memory state around the buggy address: [ 25.389867] ffff8801d948b780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.397209] ffff8801d948b800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.404557] >ffff8801d948b880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.411892] ^ [ 25.415500] ffff8801d948b900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.422840] ffff8801d948b980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.430178] ================================================================== [ 25.437563] Kernel panic - not syncing: panic_on_warn set ... [ 25.437563] [ 25.444923] CPU: 1 PID: 3663 Comm: syzkaller414178 Tainted: G B 4.15.0-rc7+ #260 [ 25.453682] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.463104] Call Trace: [ 25.465677] dump_stack+0x194/0x257 [ 25.469292] ? arch_local_irq_restore+0x53/0x53 [ 25.473940] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.478670] ? vsnprintf+0x1ed/0x1900 [ 25.482450] ? do_raw_spin_lock+0x100/0x220 [ 25.486745] panic+0x1e4/0x41c [ 25.489917] ? refcount_error_report+0x214/0x214 [ 25.494658] ? add_taint+0x1c/0x50 [ 25.498183] ? add_taint+0x1c/0x50 [ 25.501703] ? do_raw_spin_lock+0x1e0/0x220 [ 25.506010] kasan_end_report+0x50/0x50 [ 25.509999] kasan_report+0x144/0x340 [ 25.513790] __asan_report_load4_noabort+0x14/0x20 [ 25.518707] do_raw_spin_lock+0x1e0/0x220 [ 25.522847] _raw_spin_lock_bh+0x39/0x40 [ 25.526886] ? release_sock+0x74/0x2a0 [ 25.530751] release_sock+0x74/0x2a0 [ 25.534439] ? sctp_prsctp_prune+0x97/0x6f0 [ 25.538738] ? __release_sock+0x360/0x360 [ 25.542866] ? trace_hardirqs_on+0xd/0x10 [ 25.547001] sctp_sendmsg+0x2c61/0x3360 [ 25.550963] ? put_pi_state+0x3c0/0x560 [ 25.554923] ? sctp_id2assoc+0x390/0x390 [ 25.558960] ? avc_has_perm+0x43e/0x680 [ 25.562915] ? avc_has_perm_noaudit+0x520/0x520 [ 25.567558] ? __fget+0x35c/0x570 [ 25.570992] ? iterate_fd+0x3f0/0x3f0 [ 25.574776] ? find_held_lock+0x35/0x1d0 [ 25.578836] ? sock_has_perm+0x2a4/0x420 [ 25.582875] ? lock_release+0x962/0xa40 [ 25.586831] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.592699] ? __check_object_size+0x25d/0x4f0 [ 25.597261] inet_sendmsg+0x11f/0x5e0 [ 25.601052] ? inet_sendmsg+0x11f/0x5e0 [ 25.605010] ? __might_sleep+0x95/0x190 [ 25.608967] ? inet_recvmsg+0x5f0/0x5f0 [ 25.612925] ? selinux_socket_sendmsg+0x36/0x40 [ 25.617568] ? security_socket_sendmsg+0x89/0xb0 [ 25.622299] ? inet_recvmsg+0x5f0/0x5f0 [ 25.626264] sock_sendmsg+0xca/0x110 [ 25.629959] SYSC_sendto+0x361/0x5c0 [ 25.633658] ? SYSC_connect+0x4a0/0x4a0 [ 25.637621] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 25.642962] ? __do_page_fault+0x3d6/0xc90 [ 25.647179] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 25.652452] ? SyS_futex+0x269/0x390 [ 25.656140] ? SyS_setsockopt+0x215/0x360 [ 25.660265] ? do_futex+0x22a0/0x22a0 [ 25.664044] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 25.668866] SyS_sendto+0x40/0x50 [ 25.672306] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.677036] RIP: 0033:0x4457e9 [ 25.680213] RSP: 002b:00007f51f94f3da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 25.687893] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 25.695143] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 25.702918] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 25.710163] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 25.717415] R13: 00007ffe49ad3e6f R14: 00007f51f94f49c0 R15: 0000000000000001 [ 25.725170] Dumping ftrace buffer: [ 25.728691] (ftrace buffer empty) [ 25.732381] Kernel Offset: disabled [ 25.735982] Rebooting in 86400 seconds..