[....] Starting enhanced syslogd: rsyslogd[ 11.400646] audit: type=1400 audit(1515348468.400:5): avc: denied { syslog } for pid=3316 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.461650] audit: type=1400 audit(1515348475.461:6): avc: denied { map } for pid=3455 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.232' (ECDSA) to the list of known hosts. executing program [ 24.621614] audit: type=1400 audit(1515348481.621:7): avc: denied { map } for pid=3469 comm="syzkaller052875" path="/root/syzkaller052875760" 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 executing program executing program [ 24.969062] [ 24.970707] ========================= [ 24.974526] WARNING: held lock freed! [ 24.978313] 4.15.0-rc6-mm1+ #51 Not tainted [ 24.982607] ------------------------- [ 24.986385] syzkaller052875/3480 is freeing memory 0000000049563486-000000000264f055, with a lock still held there! [ 24.996932] (sk_lock-AF_INET6){+.+.}, at: [<0000000063d7961f>] sctp_sendmsg+0x2499/0x3060 [ 25.005350] 1 lock held by syzkaller052875/3480: [ 25.010081] #0: (sk_lock-AF_INET6){+.+.}, at: [<0000000063d7961f>] sctp_sendmsg+0x2499/0x3060 [ 25.018909] [ 25.018909] stack backtrace: [ 25.023390] CPU: 1 PID: 3480 Comm: syzkaller052875 Not tainted 4.15.0-rc6-mm1+ #51 [ 25.031076] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.040411] Call Trace: [ 25.042987] dump_stack+0x137/0x198 [ 25.046602] debug_check_no_locks_freed+0x32f/0x3c0 [ 25.051602] kmem_cache_free+0x68/0x2b0 [ 25.055563] __sk_destruct+0x3e4/0x590 [ 25.059438] sk_destruct+0x47/0x80 [ 25.062954] __sk_free+0xf1/0x2b0 [ 25.066402] sk_free+0x2a/0x40 [ 25.069578] sctp_association_put+0xd4/0x230 [ 25.073961] sctp_sendmsg+0x2719/0x3060 [ 25.077916] ? sctp_id2assoc+0x280/0x280 [ 25.081952] ? check_noncircular+0x20/0x20 [ 25.086162] ? find_held_lock+0x35/0x1e0 [ 25.090201] ? sock_has_perm+0x1ed/0x290 [ 25.094239] ? finish_wait+0x2a0/0x2a0 [ 25.098107] ? __might_fault+0x110/0x1d0 [ 25.102151] inet_sendmsg+0xe0/0x4b0 [ 25.105842] ? inet_sendmsg+0xe0/0x4b0 [ 25.109705] ? inet_recvmsg+0x520/0x520 [ 25.113654] sock_sendmsg+0xca/0x110 [ 25.117347] SYSC_sendto+0x2e0/0x360 [ 25.121041] ? SYSC_connect+0x310/0x310 [ 25.124996] ? sock_enable_timestamp+0xb0/0xb0 [ 25.129561] ? selinux_netlbl_socket_setsockopt+0x10e/0x320 [ 25.135253] ? selinux_netlbl_sock_rcv_skb+0x450/0x450 [ 25.140523] ? SyS_futex+0x1fd/0x2b0 [ 25.144220] ? do_futex+0x1830/0x1830 [ 25.148013] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 25.152842] SyS_sendto+0x40/0x50 [ 25.156283] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.161018] RIP: 0033:0x445db9 [ 25.164183] RSP: 002b:00007f8a12861d98 EFLAGS: 00000212 ORIG_RAX: 000000000000002c [ 25.171865] RAX: ffffffffffffffda RBX: 00000000006dbc9c RCX: 0000000000445db9 [ 25.179109] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000006 [ 25.186359] RBP: 0000000000000000 R08: 00000000204d9000 R09: 000000000000001c [ 25.193613] R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006dbc98 [ 25.200869] R13: 00000000209a9000 R14: 0100000000000000 R15: 0000000000000001 [ 25.208202] ================================================================== [ 25.215546] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 25.222186] Read of size 4 at addr ffff8801c0b2f88c by task syzkaller052875/3480 [ 25.229687] [ 25.231296] CPU: 1 PID: 3480 Comm: syzkaller052875 Not tainted 4.15.0-rc6-mm1+ #51 [ 25.238984] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.248329] Call Trace: [ 25.250910] dump_stack+0x137/0x198 [ 25.254529] ? do_raw_spin_lock+0x1e0/0x220 [ 25.258843] print_address_description+0x73/0x250 [ 25.263664] ? do_raw_spin_lock+0x1e0/0x220 executing program [ 25.267968] kasan_report+0x23b/0x360 [ 25.271750] __asan_report_load4_noabort+0x14/0x20 [ 25.276679] do_raw_spin_lock+0x1e0/0x220 [ 25.280820] _raw_spin_lock_bh+0x39/0x40 [ 25.284864] ? release_sock+0x20/0x1c0 [ 25.288735] release_sock+0x20/0x1c0 [ 25.292436] sctp_sendmsg+0x2721/0x3060 [ 25.296402] ? sctp_id2assoc+0x280/0x280 [ 25.300444] ? check_noncircular+0x20/0x20 [ 25.304667] ? find_held_lock+0x35/0x1e0 [ 25.308718] ? sock_has_perm+0x1ed/0x290 [ 25.312761] ? finish_wait+0x2a0/0x2a0 [ 25.316639] ? __might_fault+0x110/0x1d0 [ 25.320702] inet_sendmsg+0xe0/0x4b0 [ 25.324402] ? inet_sendmsg+0xe0/0x4b0 [ 25.328276] ? inet_recvmsg+0x520/0x520 [ 25.332228] sock_sendmsg+0xca/0x110 [ 25.335921] SYSC_sendto+0x2e0/0x360 [ 25.339619] ? SYSC_connect+0x310/0x310 [ 25.343606] ? sock_enable_timestamp+0xb0/0xb0 [ 25.348190] ? selinux_netlbl_socket_setsockopt+0x10e/0x320 [ 25.353881] ? selinux_netlbl_sock_rcv_skb+0x450/0x450 [ 25.359148] ? SyS_futex+0x1fd/0x2b0 [ 25.362846] ? do_futex+0x1830/0x1830 [ 25.366637] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 25.371468] SyS_sendto+0x40/0x50 [ 25.374903] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.379633] RIP: 0033:0x445db9 [ 25.382793] RSP: 002b:00007f8a12861d98 EFLAGS: 00000212 ORIG_RAX: 000000000000002c [ 25.390472] RAX: ffffffffffffffda RBX: 00000000006dbc9c RCX: 0000000000445db9 [ 25.397719] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000006 [ 25.404969] RBP: 0000000000000000 R08: 00000000204d9000 R09: 000000000000001c [ 25.412218] R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006dbc98 [ 25.419470] R13: 00000000209a9000 R14: 0100000000000000 R15: 0000000000000001 [ 25.426726] [ 25.428330] Allocated by task 3481: [ 25.431941] save_stack+0x43/0xd0 [ 25.435367] kasan_kmalloc+0xad/0xe0 [ 25.439053] kasan_slab_alloc+0x12/0x20 [ 25.443001] kmem_cache_alloc+0x12e/0x760 [ 25.447130] sk_prot_alloc+0x65/0x2a0 [ 25.450905] sk_alloc+0x37/0xd60 [ 25.454251] sctp_v6_create_accept_sk+0xf5/0x830 [ 25.458985] sctp_accept+0x3ab/0x620 [ 25.462675] inet_accept+0xef/0x7f0 [ 25.466293] SYSC_accept4+0x342/0x650 [ 25.470068] SyS_accept+0x26/0x30 [ 25.473493] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.478215] [ 25.479811] Freed by task 3480: [ 25.483063] save_stack+0x43/0xd0 [ 25.486487] __kasan_slab_free+0x11a/0x170 [ 25.490714] kasan_slab_free+0xe/0x10 [ 25.494487] kmem_cache_free+0x86/0x2b0 [ 25.498444] __sk_destruct+0x3e4/0x590 [ 25.502310] sk_destruct+0x47/0x80 [ 25.505823] __sk_free+0xf1/0x2b0 [ 25.509244] sk_free+0x2a/0x40 [ 25.512420] sctp_association_put+0xd4/0x230 [ 25.516812] sctp_sendmsg+0x2719/0x3060 [ 25.520776] inet_sendmsg+0xe0/0x4b0 [ 25.524463] sock_sendmsg+0xca/0x110 [ 25.528152] SYSC_sendto+0x2e0/0x360 [ 25.531835] SyS_sendto+0x40/0x50 [ 25.535268] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.540061] [ 25.541660] The buggy address belongs to the object at ffff8801c0b2f800 [ 25.541660] which belongs to the cache SCTPv6 of size 1888 [ 25.553942] The buggy address is located 140 bytes inside of [ 25.553942] 1888-byte region [ffff8801c0b2f800, ffff8801c0b2ff60) [ 25.565880] The buggy address belongs to the page: [ 25.570799] page:ffffea000702cbc0 count:1 mapcount:0 mapping:ffff8801c0b2f000 index:0x0 [ 25.578921] flags: 0x2fffc0000000100(slab) [ 25.583129] raw: 02fffc0000000100 ffff8801c0b2f000 0000000000000000 0000000100000002 [ 25.590984] raw: ffffea000702d020 ffffea000701fca0 ffff8801d369d380 0000000000000000 [ 25.598834] page dumped because: kasan: bad access detected [ 25.604521] [ 25.606117] Memory state around the buggy address: [ 25.611017] ffff8801c0b2f780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.618357] ffff8801c0b2f800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.625699] >ffff8801c0b2f880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.633031] ^ [ 25.636641] ffff8801c0b2f900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.643995] ffff8801c0b2f980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.651334] ================================================================== [ 25.658721] Kernel panic - not syncing: panic_on_warn set ... [ 25.658721] [ 25.666064] CPU: 1 PID: 3480 Comm: syzkaller052875 Tainted: G B 4.15.0-rc6-mm1+ #51 [ 25.675046] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.684374] Call Trace: [ 25.686942] dump_stack+0x137/0x198 [ 25.690544] ? do_raw_spin_lock+0x1d0/0x220 [ 25.694839] panic+0x1e4/0x41c [ 25.698008] ? refcount_error_report+0x214/0x214 [ 25.702744] ? add_taint+0x1c/0x50 [ 25.706268] ? add_taint+0x1c/0x50 [ 25.709791] ? do_raw_spin_lock+0x1e0/0x220 [ 25.714091] kasan_end_report+0x50/0x50 [ 25.718038] kasan_report+0x148/0x360 executing program [ 25.721819] __asan_report_load4_noabort+0x14/0x20 [ 25.726730] do_raw_spin_lock+0x1e0/0x220 [ 25.730864] _raw_spin_lock_bh+0x39/0x40 [ 25.734897] ? release_sock+0x20/0x1c0 [ 25.738769] release_sock+0x20/0x1c0 [ 25.742471] sctp_sendmsg+0x2721/0x3060 [ 25.746437] ? sctp_id2assoc+0x280/0x280 [ 25.750492] ? check_noncircular+0x20/0x20 [ 25.754714] ? find_held_lock+0x35/0x1e0 [ 25.758775] ? sock_has_perm+0x1ed/0x290 [ 25.762810] ? finish_wait+0x2a0/0x2a0 [ 25.766664] ? __might_fault+0x110/0x1d0 [ 25.770698] inet_sendmsg+0xe0/0x4b0 [ 25.774378] ? inet_sendmsg+0xe0/0x4b0 [ 25.778231] ? inet_recvmsg+0x520/0x520 [ 25.782173] sock_sendmsg+0xca/0x110 [ 25.785856] SYSC_sendto+0x2e0/0x360 [ 25.789539] ? SYSC_connect+0x310/0x310 [ 25.793485] ? sock_enable_timestamp+0xb0/0xb0 [ 25.798033] ? selinux_netlbl_socket_setsockopt+0x10e/0x320 [ 25.803715] ? selinux_netlbl_sock_rcv_skb+0x450/0x450 [ 25.808971] ? SyS_futex+0x1fd/0x2b0 [ 25.812650] ? do_futex+0x1830/0x1830 [ 25.816416] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 25.821224] SyS_sendto+0x40/0x50 [ 25.824647] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.829367] RIP: 0033:0x445db9 [ 25.832522] RSP: 002b:00007f8a12861d98 EFLAGS: 00000212 ORIG_RAX: 000000000000002c [ 25.840194] RAX: ffffffffffffffda RBX: 00000000006dbc9c RCX: 0000000000445db9 [ 25.847431] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000006 [ 25.854667] RBP: 0000000000000000 R08: 00000000204d9000 R09: 000000000000001c [ 25.861906] R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006dbc98 [ 25.869147] R13: 00000000209a9000 R14: 0100000000000000 R15: 0000000000000001 [ 25.876418] Dumping ftrace buffer: [ 25.879926] (ftrace buffer empty) [ 25.883604] Kernel Offset: disabled [ 25.887207] Rebooting in 86400 seconds..