[....] Starting enhanced syslogd: rsyslogd[ 11.424846] audit: type=1400 audit(1515875275.814:5): avc: denied { syslog } for pid=3496 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: [ 16.932724] audit: type=1400 audit(1515875281.322:6): avc: denied { map } for pid=3635 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.207' (ECDSA) to the list of known hosts. executing program [ 39.580523] audit: type=1400 audit(1515875303.970:7): avc: denied { map } for pid=3653 comm="syzkaller936023" path="/root/syzkaller936023951" 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 [ 39.925413] [ 39.927049] ========================= [ 39.930814] WARNING: held lock freed! [ 39.934592] 4.15.0-rc7+ #187 Not tainted [ 39.938625] ------------------------- [ 39.942389] syzkaller936023/3665 is freeing memory 0000000037e82cc6-0000000079827fc0, with a lock still held there! [ 39.952924] (sk_lock-AF_INET6){+.+.}, at: [<0000000002daa727>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 39.961826] 1 lock held by syzkaller936023/3665: [ 39.966543] #0: (sk_lock-AF_INET6){+.+.}, at: [<0000000002daa727>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 39.975886] [ 39.975886] stack backtrace: [ 39.980348] CPU: 1 PID: 3665 Comm: syzkaller936023 Not tainted 4.15.0-rc7+ #187 [ 39.987757] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.997076] Call Trace: [ 39.999633] dump_stack+0x194/0x257 [ 40.003232] ? arch_local_irq_restore+0x53/0x53 [ 40.007882] debug_check_no_locks_freed+0x32f/0x3c0 [ 40.012867] kmem_cache_free+0x68/0x2a0 [ 40.016809] __sk_destruct+0x622/0x910 [ 40.020665] ? save_stack+0x43/0xd0 [ 40.024267] ? sock_rfree+0x160/0x160 [ 40.028042] ? sctp_sendmsg+0x28f7/0x33f0 [ 40.032158] ? sock_sendmsg+0xca/0x110 [ 40.036010] ? SYSC_sendto+0x361/0x5c0 [ 40.039859] ? SyS_sendto+0x40/0x50 [ 40.043464] ? entry_SYSCALL_64_fastpath+0x23/0x9a [ 40.048361] ? check_noncircular+0x20/0x20 [ 40.052571] ? print_irqtrace_events+0x270/0x270 [ 40.057301] ? __local_bh_enable_ip+0x121/0x230 [ 40.061942] ? sctp_put_port+0x495/0x640 [ 40.065987] ? sctp_poll+0xc00/0xc00 [ 40.069692] ? refcount_sub_and_test+0x115/0x1b0 [ 40.074412] ? refcount_inc+0x50/0x50 [ 40.078176] ? refcount_inc+0x50/0x50 [ 40.081943] sk_destruct+0x47/0x80 [ 40.085446] __sk_free+0xf1/0x2b0 [ 40.088864] sk_free+0x2a/0x40 [ 40.092023] sctp_association_put+0x14c/0x2f0 [ 40.096488] ? sctp_association_hold+0x20/0x20 [ 40.101033] ? lock_sock_nested+0x91/0x110 [ 40.105233] ? trace_hardirqs_on+0xd/0x10 [ 40.109345] ? __local_bh_enable_ip+0x121/0x230 [ 40.113980] sctp_wait_for_sndbuf+0x673/0x8d0 [ 40.118454] ? sctp_init_sock+0x13b0/0x13b0 [ 40.122770] ? do_raw_spin_trylock+0x190/0x190 [ 40.127320] ? __local_bh_enable_ip+0x121/0x230 [ 40.131954] ? sctp_prsctp_prune+0x97/0x790 [ 40.136240] ? prepare_to_wait+0x4d0/0x4d0 [ 40.140437] ? trace_hardirqs_on+0xd/0x10 [ 40.144552] sctp_sendmsg+0x28f7/0x33f0 [ 40.148502] ? sctp_id2assoc+0x390/0x390 [ 40.152531] ? avc_has_perm+0x43e/0x680 [ 40.156470] ? avc_has_perm_noaudit+0x520/0x520 [ 40.161103] ? __fget+0x35c/0x570 [ 40.164529] ? iterate_fd+0x3f0/0x3f0 [ 40.168300] ? find_held_lock+0x35/0x1d0 [ 40.172337] ? sock_has_perm+0x2a4/0x420 [ 40.176363] ? lock_release+0x9a2/0xa40 [ 40.180307] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 40.186155] ? __check_object_size+0x25d/0x4f0 [ 40.190705] inet_sendmsg+0x11f/0x5e0 [ 40.194468] ? inet_sendmsg+0x11f/0x5e0 [ 40.198411] ? __might_sleep+0x95/0x190 [ 40.202352] ? inet_create+0xf50/0xf50 [ 40.206207] ? selinux_socket_sendmsg+0x36/0x40 [ 40.210838] ? security_socket_sendmsg+0x89/0xb0 [ 40.215559] ? inet_create+0xf50/0xf50 [ 40.219412] sock_sendmsg+0xca/0x110 [ 40.223089] SYSC_sendto+0x361/0x5c0 [ 40.226768] ? SYSC_connect+0x4a0/0x4a0 [ 40.230705] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 40.236033] ? __do_page_fault+0x3d6/0xc90 [ 40.240234] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 40.245485] ? SyS_futex+0x269/0x390 [ 40.249161] ? SyS_setsockopt+0x215/0x360 [ 40.253286] ? do_futex+0x22a0/0x22a0 [ 40.257052] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 40.261864] SyS_sendto+0x40/0x50 [ 40.265283] entry_SYSCALL_64_fastpath+0x23/0x9a [ 40.270009] RIP: 0033:0x4457e9 [ 40.273163] RSP: 002b:00007f137d50cda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 40.280832] RAX: ffffffffffffffda RBX: 00000000006daccc RCX: 00000000004457e9 [ 40.288069] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000006 [ 40.295329] RBP: 00000000006dacc8 R08: 00000000204d9000 R09: 000000000000001c [ 40.302572] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 40.309811] R13: 00007ffd8e0e15bf R14: 00007f137d50d9c0 R15: 0000000000000001 [ 40.317158] ================================================================== [ 40.324490] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 40.331121] Read of size 4 at addr ffff8801c16d488c by task syzkaller936023/3665 [ 40.338620] [ 40.340657] CPU: 1 PID: 3665 Comm: syzkaller936023 Not tainted 4.15.0-rc7+ #187 [ 40.348066] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.357383] Call Trace: [ 40.359938] dump_stack+0x194/0x257 [ 40.363528] ? arch_local_irq_restore+0x53/0x53 [ 40.368163] ? show_regs_print_info+0x18/0x18 [ 40.372619] ? lock_acquire+0x1d5/0x580 [ 40.376557] ? trace_hardirqs_on+0xd/0x10 [ 40.380671] ? do_raw_spin_lock+0x1e0/0x220 [ 40.384959] print_address_description+0x73/0x250 [ 40.389775] ? do_raw_spin_lock+0x1e0/0x220 [ 40.394082] kasan_report+0x25b/0x340 [ 40.397853] __asan_report_load4_noabort+0x14/0x20 [ 40.402754] do_raw_spin_lock+0x1e0/0x220 [ 40.406869] _raw_spin_lock_bh+0x39/0x40 [ 40.410895] ? release_sock+0x74/0x2a0 [ 40.414746] release_sock+0x74/0x2a0 [ 40.418422] ? sctp_prsctp_prune+0x97/0x790 [ 40.422719] ? __release_sock+0x360/0x360 [ 40.426833] ? trace_hardirqs_on+0xd/0x10 [ 40.430961] sctp_sendmsg+0x2993/0x33f0 [ 40.434910] ? sctp_id2assoc+0x390/0x390 [ 40.438935] ? avc_has_perm+0x43e/0x680 [ 40.442875] ? avc_has_perm_noaudit+0x520/0x520 [ 40.447510] ? __fget+0x35c/0x570 [ 40.450933] ? iterate_fd+0x3f0/0x3f0 [ 40.454716] ? find_held_lock+0x35/0x1d0 [ 40.458748] ? sock_has_perm+0x2a4/0x420 [ 40.462778] ? lock_release+0x9a2/0xa40 [ 40.466721] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 40.472569] ? __check_object_size+0x25d/0x4f0 [ 40.477118] inet_sendmsg+0x11f/0x5e0 [ 40.480882] ? inet_sendmsg+0x11f/0x5e0 [ 40.484821] ? __might_sleep+0x95/0x190 [ 40.488767] ? inet_create+0xf50/0xf50 [ 40.492619] ? selinux_socket_sendmsg+0x36/0x40 [ 40.497252] ? security_socket_sendmsg+0x89/0xb0 [ 40.501973] ? inet_create+0xf50/0xf50 [ 40.505833] sock_sendmsg+0xca/0x110 [ 40.509519] SYSC_sendto+0x361/0x5c0 [ 40.513199] ? SYSC_connect+0x4a0/0x4a0 [ 40.517141] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 40.522468] ? __do_page_fault+0x3d6/0xc90 [ 40.526673] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 40.531924] ? SyS_futex+0x269/0x390 [ 40.535600] ? SyS_setsockopt+0x215/0x360 [ 40.539717] ? do_futex+0x22a0/0x22a0 [ 40.543483] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 40.548293] SyS_sendto+0x40/0x50 [ 40.551715] entry_SYSCALL_64_fastpath+0x23/0x9a [ 40.556432] RIP: 0033:0x4457e9 [ 40.559585] RSP: 002b:00007f137d50cda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 40.567256] RAX: ffffffffffffffda RBX: 00000000006daccc RCX: 00000000004457e9 [ 40.574490] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000006 [ 40.581724] RBP: 00000000006dacc8 R08: 00000000204d9000 R09: 000000000000001c [ 40.588960] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 40.596193] R13: 00007ffd8e0e15bf R14: 00007f137d50d9c0 R15: 0000000000000001 [ 40.603433] [ 40.605025] Allocated by task 3666: [ 40.608618] save_stack+0x43/0xd0 [ 40.612039] kasan_kmalloc+0xad/0xe0 [ 40.615716] kasan_slab_alloc+0x12/0x20 [ 40.619660] kmem_cache_alloc+0x12e/0x760 [ 40.623771] sk_prot_alloc+0x65/0x2a0 [ 40.627537] sk_alloc+0x105/0x1440 [ 40.631041] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 40.635849] sctp_accept+0x5c4/0x970 [ 40.639548] inet_accept+0x12c/0x930 [ 40.643233] SYSC_accept4+0x38d/0x870 [ 40.646995] SyS_accept+0x26/0x30 [ 40.650414] entry_SYSCALL_64_fastpath+0x23/0x9a [ 40.655128] [ 40.656722] Freed by task 3665: [ 40.659967] save_stack+0x43/0xd0 [ 40.663381] kasan_slab_free+0x71/0xc0 [ 40.667231] kmem_cache_free+0x83/0x2a0 [ 40.671168] __sk_destruct+0x622/0x910 [ 40.675025] sk_destruct+0x47/0x80 [ 40.678527] __sk_free+0xf1/0x2b0 [ 40.681944] sk_free+0x2a/0x40 [ 40.685099] sctp_association_put+0x14c/0x2f0 [ 40.689556] sctp_wait_for_sndbuf+0x673/0x8d0 [ 40.694012] sctp_sendmsg+0x28f7/0x33f0 [ 40.697952] inet_sendmsg+0x11f/0x5e0 [ 40.701714] sock_sendmsg+0xca/0x110 [ 40.705389] SYSC_sendto+0x361/0x5c0 [ 40.709063] SyS_sendto+0x40/0x50 [ 40.712478] entry_SYSCALL_64_fastpath+0x23/0x9a [ 40.717194] [ 40.718789] The buggy address belongs to the object at ffff8801c16d4800 [ 40.718789] which belongs to the cache SCTPv6 of size 1888 [ 40.731067] The buggy address is located 140 bytes inside of [ 40.731067] 1888-byte region [ffff8801c16d4800, ffff8801c16d4f60) [ 40.742994] The buggy address belongs to the page: [ 40.747889] page:ffffea000705b500 count:1 mapcount:0 mapping:ffff8801c16d4000 index:0x0 [ 40.755995] flags: 0x2fffc0000000100(slab) [ 40.760196] raw: 02fffc0000000100 ffff8801c16d4000 0000000000000000 0000000100000002 [ 40.768044] raw: ffffea0007024e20 ffffea00076605e0 ffff8801d2c55080 0000000000000000 [ 40.775887] page dumped because: kasan: bad access detected [ 40.781559] [ 40.783150] Memory state around the buggy address: [ 40.788043] ffff8801c16d4780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 40.795365] ffff8801c16d4800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.802702] >ffff8801c16d4880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.810024] ^ [ 40.813611] ffff8801c16d4900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.820933] ffff8801c16d4980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.828252] ================================================================== [ 40.835618] Kernel panic - not syncing: panic_on_warn set ... [ 40.835618] [ 40.842951] CPU: 1 PID: 3665 Comm: syzkaller936023 Tainted: G B 4.15.0-rc7+ #187 [ 40.851661] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.860984] Call Trace: [ 40.863537] dump_stack+0x194/0x257 [ 40.867130] ? arch_local_irq_restore+0x53/0x53 [ 40.871765] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 40.876485] ? vsnprintf+0x1ed/0x1900 [ 40.880254] ? do_raw_spin_lock+0x140/0x220 [ 40.884539] panic+0x1e4/0x41c [ 40.887709] ? refcount_error_report+0x214/0x214 [ 40.892430] ? add_taint+0x1c/0x50 [ 40.895932] ? add_taint+0x1c/0x50 [ 40.899439] ? do_raw_spin_lock+0x1e0/0x220 [ 40.903726] kasan_end_report+0x50/0x50 [ 40.907663] kasan_report+0x144/0x340 [ 40.911431] __asan_report_load4_noabort+0x14/0x20 [ 40.916325] do_raw_spin_lock+0x1e0/0x220 [ 40.920440] _raw_spin_lock_bh+0x39/0x40 [ 40.924474] ? release_sock+0x74/0x2a0 [ 40.928327] release_sock+0x74/0x2a0 [ 40.932006] ? sctp_prsctp_prune+0x97/0x790 [ 40.936319] ? __release_sock+0x360/0x360 [ 40.940431] ? trace_hardirqs_on+0xd/0x10 [ 40.944545] sctp_sendmsg+0x2993/0x33f0 [ 40.948492] ? sctp_id2assoc+0x390/0x390 [ 40.952517] ? avc_has_perm+0x43e/0x680 [ 40.956457] ? avc_has_perm_noaudit+0x520/0x520 [ 40.961098] ? __fget+0x35c/0x570 [ 40.964526] ? iterate_fd+0x3f0/0x3f0 [ 40.968294] ? find_held_lock+0x35/0x1d0 [ 40.972323] ? sock_has_perm+0x2a4/0x420 [ 40.976356] ? lock_release+0x9a2/0xa40 [ 40.980296] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 40.986144] ? __check_object_size+0x25d/0x4f0 [ 40.990693] inet_sendmsg+0x11f/0x5e0 [ 40.994456] ? inet_sendmsg+0x11f/0x5e0 [ 40.998402] ? __might_sleep+0x95/0x190 [ 41.002339] ? inet_create+0xf50/0xf50 [ 41.006190] ? selinux_socket_sendmsg+0x36/0x40 [ 41.010828] ? security_socket_sendmsg+0x89/0xb0 [ 41.015549] ? inet_create+0xf50/0xf50 [ 41.019403] sock_sendmsg+0xca/0x110 [ 41.023095] SYSC_sendto+0x361/0x5c0 [ 41.026776] ? SYSC_connect+0x4a0/0x4a0 [ 41.030722] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 41.036051] ? __do_page_fault+0x3d6/0xc90 [ 41.040252] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 41.045519] ? SyS_futex+0x269/0x390 [ 41.049196] ? SyS_setsockopt+0x215/0x360 [ 41.053315] ? do_futex+0x22a0/0x22a0 [ 41.057084] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 41.061894] SyS_sendto+0x40/0x50 [ 41.065313] entry_SYSCALL_64_fastpath+0x23/0x9a [ 41.070033] RIP: 0033:0x4457e9 [ 41.073187] RSP: 002b:00007f137d50cda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 41.080857] RAX: ffffffffffffffda RBX: 00000000006daccc RCX: 00000000004457e9 [ 41.088096] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000006 [ 41.095332] RBP: 00000000006dacc8 R08: 00000000204d9000 R09: 000000000000001c [ 41.102574] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 41.109815] R13: 00007ffd8e0e15bf R14: 00007f137d50d9c0 R15: 0000000000000001 [ 41.117095] Dumping ftrace buffer: [ 41.120616] (ftrace buffer empty) [ 41.124313] Kernel Offset: disabled [ 41.127915] Rebooting in 86400 seconds..