[....] Starting enhanced syslogd: rsyslogd[ 13.389105] audit: type=1400 audit(1515931610.747:5): avc: denied { syslog } for pid=3506 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.430196] audit: type=1400 audit(1515931615.788: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.194' (ECDSA) to the list of known hosts. executing program [ 32.509334] audit: type=1400 audit(1515931629.868:7): avc: denied { map } for pid=3662 comm="syzkaller113545" path="/root/syzkaller113545836" 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 [ 32.690704] [ 32.692339] ========================= [ 32.696109] WARNING: held lock freed! [ 32.699878] 4.15.0-rc7+ #261 Not tainted [ 32.703907] ------------------------- [ 32.707679] syzkaller113545/3666 is freeing memory 00000000c92133c6-0000000092cb75b3, with a lock still held there! [ 32.718219] (sk_lock-AF_INET6){+.+.}, at: [<00000000b1bf268b>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 32.727126] 1 lock held by syzkaller113545/3666: [ 32.731846] #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000b1bf268b>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 32.741181] [ 32.741181] stack backtrace: [ 32.745650] CPU: 0 PID: 3666 Comm: syzkaller113545 Not tainted 4.15.0-rc7+ #261 [ 32.753064] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.762388] Call Trace: [ 32.764951] dump_stack+0x194/0x257 [ 32.768561] ? arch_local_irq_restore+0x53/0x53 [ 32.773210] debug_check_no_locks_freed+0x32f/0x3c0 [ 32.778219] kmem_cache_free+0x68/0x2a0 [ 32.782186] __sk_destruct+0x622/0x910 [ 32.786044] ? kasan_slab_free+0x71/0xc0 [ 32.790077] ? sock_rfree+0x160/0x160 [ 32.794033] ? inet_sendmsg+0x11f/0x5e0 [ 32.797975] ? SYSC_sendto+0x361/0x5c0 [ 32.801832] ? SyS_sendto+0x40/0x50 [ 32.805434] ? entry_SYSCALL_64_fastpath+0x23/0x9a [ 32.810343] ? check_noncircular+0x20/0x20 [ 32.814550] ? print_irqtrace_events+0x270/0x270 [ 32.819279] ? free_obj_work+0x690/0x690 [ 32.823315] ? sctp_put_port+0x495/0x640 [ 32.827347] ? sctp_poll+0xc00/0xc00 [ 32.831036] ? refcount_sub_and_test+0x115/0x1b0 [ 32.835770] ? refcount_inc+0x50/0x50 [ 32.839540] ? refcount_inc+0x50/0x50 [ 32.843314] sk_destruct+0x47/0x80 [ 32.846829] __sk_free+0x57/0x230 [ 32.850254] sk_free+0x2a/0x40 [ 32.853425] sctp_association_put+0x14c/0x2f0 [ 32.857902] ? sctp_association_hold+0x20/0x20 [ 32.862457] ? lock_sock_nested+0x91/0x110 [ 32.866674] ? trace_hardirqs_on+0xd/0x10 [ 32.870796] ? __local_bh_enable_ip+0x121/0x230 [ 32.875441] sctp_wait_for_sndbuf+0x673/0x8d0 [ 32.879911] ? sctp_init_sock+0x13b0/0x13b0 [ 32.884204] ? do_raw_spin_trylock+0x190/0x190 [ 32.888756] ? __local_bh_enable_ip+0x121/0x230 [ 32.893396] ? sctp_prsctp_prune+0x97/0x6f0 [ 32.897690] ? prepare_to_wait+0x4d0/0x4d0 [ 32.901904] ? trace_hardirqs_on+0xd/0x10 [ 32.906024] sctp_sendmsg+0x277d/0x3360 [ 32.909970] ? put_pi_state+0x3c0/0x560 [ 32.913924] ? sctp_id2assoc+0x390/0x390 [ 32.917967] ? avc_has_perm+0x43e/0x680 [ 32.921914] ? avc_has_perm_noaudit+0x520/0x520 [ 32.926553] ? __fget+0x35c/0x570 [ 32.929981] ? iterate_fd+0x3f0/0x3f0 [ 32.933763] ? find_held_lock+0x35/0x1d0 [ 32.937799] ? sock_has_perm+0x2a4/0x420 [ 32.941939] ? lock_release+0x962/0xa40 [ 32.945885] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 32.951739] ? __check_object_size+0x25d/0x4f0 [ 32.956292] inet_sendmsg+0x11f/0x5e0 [ 32.960063] ? inet_sendmsg+0x11f/0x5e0 [ 32.964015] ? __might_sleep+0x95/0x190 [ 32.967961] ? inet_recvmsg+0x5f0/0x5f0 [ 32.971908] ? selinux_socket_sendmsg+0x36/0x40 [ 32.976547] ? security_socket_sendmsg+0x89/0xb0 [ 32.981272] ? inet_recvmsg+0x5f0/0x5f0 [ 32.985218] sock_sendmsg+0xca/0x110 [ 32.988905] SYSC_sendto+0x361/0x5c0 [ 32.992590] ? SYSC_connect+0x4a0/0x4a0 [ 32.996533] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 33.001876] ? __do_page_fault+0x3d6/0xc90 [ 33.006517] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 33.011784] ? SyS_futex+0x269/0x390 [ 33.015466] ? SyS_setsockopt+0x215/0x360 [ 33.019584] ? do_futex+0x22a0/0x22a0 [ 33.023360] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 33.028178] SyS_sendto+0x40/0x50 [ 33.031612] entry_SYSCALL_64_fastpath+0x23/0x9a [ 33.036335] RIP: 0033:0x4457e9 [ 33.039494] RSP: 002b:00007fe7bf12bda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 33.047173] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 33.054507] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 33.061747] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 33.068988] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 33.076230] R13: 00007ffc3c438f0f R14: 00007fe7bf12c9c0 R15: 0000000000000001 [ 33.083576] ================================================================== [ 33.090930] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 33.097570] Read of size 4 at addr ffff8801bbbae08c by task syzkaller113545/3666 [ 33.105071] [ 33.106683] CPU: 0 PID: 3666 Comm: syzkaller113545 Not tainted 4.15.0-rc7+ #261 [ 33.114099] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.123423] Call Trace: [ 33.125988] dump_stack+0x194/0x257 [ 33.129597] ? arch_local_irq_restore+0x53/0x53 [ 33.134249] ? show_regs_print_info+0x18/0x18 [ 33.138713] ? lock_acquire+0x1d5/0x580 executing program [ 33.142665] ? trace_hardirqs_on+0xd/0x10 [ 33.146788] ? do_raw_spin_lock+0x1e0/0x220 [ 33.151080] print_address_description+0x73/0x250 [ 33.155894] ? do_raw_spin_lock+0x1e0/0x220 [ 33.160189] kasan_report+0x25b/0x340 [ 33.163962] __asan_report_load4_noabort+0x14/0x20 [ 33.168863] do_raw_spin_lock+0x1e0/0x220 [ 33.172996] _raw_spin_lock_bh+0x39/0x40 [ 33.177026] ? release_sock+0x74/0x2a0 [ 33.180884] release_sock+0x74/0x2a0 [ 33.184570] ? sctp_prsctp_prune+0x97/0x6f0 [ 33.188864] ? __release_sock+0x360/0x360 [ 33.192981] ? trace_hardirqs_on+0xd/0x10 [ 33.197103] sctp_sendmsg+0x2c61/0x3360 [ 33.201047] ? put_pi_state+0x3c0/0x560 [ 33.204996] ? sctp_id2assoc+0x390/0x390 [ 33.209026] ? avc_has_perm+0x43e/0x680 [ 33.212974] ? avc_has_perm_noaudit+0x520/0x520 [ 33.217613] ? __fget+0x35c/0x570 [ 33.221045] ? iterate_fd+0x3f0/0x3f0 [ 33.224821] ? find_held_lock+0x35/0x1d0 [ 33.228855] ? sock_has_perm+0x2a4/0x420 [ 33.232887] ? lock_release+0x962/0xa40 [ 33.236830] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 33.242685] ? __check_object_size+0x25d/0x4f0 [ 33.247241] inet_sendmsg+0x11f/0x5e0 [ 33.251011] ? inet_sendmsg+0x11f/0x5e0 [ 33.254954] ? __might_sleep+0x95/0x190 [ 33.258900] ? inet_recvmsg+0x5f0/0x5f0 [ 33.262843] ? selinux_socket_sendmsg+0x36/0x40 [ 33.267480] ? security_socket_sendmsg+0x89/0xb0 [ 33.272205] ? inet_recvmsg+0x5f0/0x5f0 [ 33.276153] sock_sendmsg+0xca/0x110 [ 33.279841] SYSC_sendto+0x361/0x5c0 [ 33.283532] ? SYSC_connect+0x4a0/0x4a0 [ 33.287502] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 33.292848] ? __do_page_fault+0x3d6/0xc90 [ 33.297056] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 33.302319] ? SyS_futex+0x269/0x390 [ 33.306002] ? SyS_setsockopt+0x215/0x360 [ 33.310121] ? do_futex+0x22a0/0x22a0 [ 33.313895] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 33.318712] SyS_sendto+0x40/0x50 [ 33.322138] entry_SYSCALL_64_fastpath+0x23/0x9a [ 33.326864] RIP: 0033:0x4457e9 [ 33.330022] RSP: 002b:00007fe7bf12bda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 33.337709] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 33.344949] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 33.352191] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 33.359432] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 33.366674] R13: 00007ffc3c438f0f R14: 00007fe7bf12c9c0 R15: 0000000000000001 [ 33.373923] [ 33.375531] Allocated by task 3671: [ 33.379131] save_stack+0x43/0xd0 [ 33.382554] kasan_kmalloc+0xad/0xe0 [ 33.386235] kasan_slab_alloc+0x12/0x20 [ 33.390176] kmem_cache_alloc+0x12e/0x760 [ 33.394293] sk_prot_alloc+0x65/0x2a0 [ 33.398066] sk_alloc+0x105/0x1410 [ 33.401586] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 33.406398] sctp_accept+0x5c4/0x970 [ 33.410089] inet_accept+0x12c/0x930 [ 33.413772] SYSC_accept4+0x38d/0x870 [ 33.417542] SyS_accept+0x26/0x30 [ 33.420965] entry_SYSCALL_64_fastpath+0x23/0x9a [ 33.425692] [ 33.427291] Freed by task 3666: [ 33.430541] save_stack+0x43/0xd0 [ 33.433963] kasan_slab_free+0x71/0xc0 [ 33.437828] kmem_cache_free+0x83/0x2a0 [ 33.441771] __sk_destruct+0x622/0x910 [ 33.445627] sk_destruct+0x47/0x80 [ 33.449135] __sk_free+0x57/0x230 [ 33.452558] sk_free+0x2a/0x40 [ 33.455722] sctp_association_put+0x14c/0x2f0 [ 33.460186] sctp_wait_for_sndbuf+0x673/0x8d0 [ 33.464651] sctp_sendmsg+0x277d/0x3360 [ 33.468601] inet_sendmsg+0x11f/0x5e0 [ 33.472380] sock_sendmsg+0xca/0x110 [ 33.476064] SYSC_sendto+0x361/0x5c0 [ 33.479749] SyS_sendto+0x40/0x50 [ 33.483171] entry_SYSCALL_64_fastpath+0x23/0x9a [ 33.487891] [ 33.489488] The buggy address belongs to the object at ffff8801bbbae000 [ 33.489488] which belongs to the cache SCTPv6 of size 1888 [ 33.501773] The buggy address is located 140 bytes inside of [ 33.501773] 1888-byte region [ffff8801bbbae000, ffff8801bbbae760) [ 33.513701] The buggy address belongs to the page: [ 33.518600] page:ffffea0006eeeb80 count:1 mapcount:0 mapping:ffff8801bbbae000 index:0x0 [ 33.526713] flags: 0x2fffc0000000100(slab) [ 33.530918] raw: 02fffc0000000100 ffff8801bbbae000 0000000000000000 0000000100000002 [ 33.538771] raw: ffffea00074b04e0 ffffea0007643460 ffff8801d2c10b40 0000000000000000 [ 33.546628] page dumped because: kasan: bad access detected [ 33.552305] [ 33.553902] Memory state around the buggy address: [ 33.558800] ffff8801bbbadf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.566126] ffff8801bbbae000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.573454] >ffff8801bbbae080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.580783] ^ [ 33.584376] ffff8801bbbae100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.591703] ffff8801bbbae180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.599031] ================================================================== [ 33.606400] Kernel panic - not syncing: panic_on_warn set ... [ 33.606400] [ 33.613735] CPU: 0 PID: 3666 Comm: syzkaller113545 Tainted: G B 4.15.0-rc7+ #261 [ 33.622453] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.631778] Call Trace: [ 33.634339] dump_stack+0x194/0x257 [ 33.637940] ? arch_local_irq_restore+0x53/0x53 executing program [ 33.642580] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.647309] ? vsnprintf+0x1ed/0x1900 [ 33.651083] ? do_raw_spin_lock+0x100/0x220 [ 33.655385] panic+0x1e4/0x41c [ 33.658548] ? refcount_error_report+0x214/0x214 [ 33.663278] ? add_taint+0x1c/0x50 [ 33.666790] ? add_taint+0x1c/0x50 [ 33.670303] ? do_raw_spin_lock+0x1e0/0x220 [ 33.674594] kasan_end_report+0x50/0x50 [ 33.678544] kasan_report+0x144/0x340 [ 33.682319] __asan_report_load4_noabort+0x14/0x20 [ 33.687218] do_raw_spin_lock+0x1e0/0x220 [ 33.691358] _raw_spin_lock_bh+0x39/0x40 [ 33.695390] ? release_sock+0x74/0x2a0 [ 33.699257] release_sock+0x74/0x2a0 [ 33.703390] ? sctp_prsctp_prune+0x97/0x6f0 [ 33.707688] ? __release_sock+0x360/0x360 [ 33.711807] ? trace_hardirqs_on+0xd/0x10 [ 33.715931] sctp_sendmsg+0x2c61/0x3360 [ 33.719886] ? put_pi_state+0x3c0/0x560 [ 33.723834] ? sctp_id2assoc+0x390/0x390 [ 33.727877] ? avc_has_perm+0x43e/0x680 [ 33.731826] ? avc_has_perm_noaudit+0x520/0x520 [ 33.736466] ? __fget+0x35c/0x570 [ 33.739901] ? iterate_fd+0x3f0/0x3f0 [ 33.743677] ? find_held_lock+0x35/0x1d0 [ 33.747720] ? sock_has_perm+0x2a4/0x420 [ 33.751753] ? lock_release+0x962/0xa40 [ 33.755696] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 33.761551] ? __check_object_size+0x25d/0x4f0 [ 33.766115] inet_sendmsg+0x11f/0x5e0 [ 33.769885] ? inet_sendmsg+0x11f/0x5e0 [ 33.773831] ? __might_sleep+0x95/0x190 [ 33.777776] ? inet_recvmsg+0x5f0/0x5f0 [ 33.781726] ? selinux_socket_sendmsg+0x36/0x40 [ 33.786365] ? security_socket_sendmsg+0x89/0xb0 [ 33.791091] ? inet_recvmsg+0x5f0/0x5f0 [ 33.795038] sock_sendmsg+0xca/0x110 [ 33.798725] SYSC_sendto+0x361/0x5c0 [ 33.802412] ? SYSC_connect+0x4a0/0x4a0 [ 33.806359] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 33.811953] ? __do_page_fault+0x3d6/0xc90 [ 33.816161] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 33.821429] ? SyS_futex+0x269/0x390 [ 33.825122] ? SyS_setsockopt+0x215/0x360 [ 33.829243] ? do_futex+0x22a0/0x22a0 [ 33.833020] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 33.837837] SyS_sendto+0x40/0x50 [ 33.841275] entry_SYSCALL_64_fastpath+0x23/0x9a [ 33.846004] RIP: 0033:0x4457e9 [ 33.849174] RSP: 002b:00007fe7bf12bda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 33.856857] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 33.864124] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 33.871366] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 33.878616] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 33.885857] R13: 00007ffc3c438f0f R14: 00007fe7bf12c9c0 R15: 0000000000000001 [ 33.893605] Dumping ftrace buffer: [ 33.897168] (ftrace buffer empty) [ 33.900851] Kernel Offset: disabled [ 33.904454] Rebooting in 86400 seconds..