INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-kasan-gce-386-0,10.128.0.55' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 61.163913] device lo entered promiscuous mode executing program [ 61.254551] ================================================================== [ 61.261938] BUG: KASAN: use-after-free in sctp_association_free+0x7b7/0x930 [ 61.269003] Read of size 8 at addr ffff8801d21d4720 by task syzkaller504854/3007 [ 61.276500] [ 61.278098] CPU: 0 PID: 3007 Comm: syzkaller504854 Not tainted 4.14.0-rc6+ #62 [ 61.285421] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 61.294743] Call Trace: [ 61.297301] dump_stack+0x194/0x257 [ 61.300899] ? arch_local_irq_restore+0x53/0x53 [ 61.305534] ? show_regs_print_info+0x65/0x65 [ 61.310001] ? sctp_association_free+0x7b7/0x930 [ 61.314727] print_address_description+0x73/0x250 [ 61.319537] ? sctp_association_free+0x7b7/0x930 [ 61.324261] kasan_report+0x25b/0x340 [ 61.328032] __asan_report_load8_noabort+0x14/0x20 [ 61.332927] sctp_association_free+0x7b7/0x930 [ 61.337480] ? sctp_asconf_queue_teardown+0x700/0x700 [ 61.342639] ? sctp_init_sock+0x1350/0x1350 [ 61.346931] ? sctp_outq_tail+0x860/0x860 [ 61.351049] ? finish_wait+0x490/0x490 [ 61.354905] ? sctp_assoc_set_bind_addr_from_ep+0x136/0x190 [ 61.360587] sctp_sendmsg+0x2311/0x31f0 [ 61.364540] ? sctp_id2assoc+0x390/0x390 [ 61.368569] ? check_noncircular+0x20/0x20 [ 61.372774] ? __fget+0x35c/0x570 [ 61.376201] ? iterate_fd+0x3f0/0x3f0 [ 61.379978] ? find_held_lock+0x35/0x1d0 [ 61.384018] ? __might_fault+0x110/0x1d0 [ 61.388055] ? check_same_owner+0x320/0x320 [ 61.392343] ? __check_object_size+0x25d/0x4f0 [ 61.396898] inet_sendmsg+0x11f/0x5e0 [ 61.400665] ? inet_sendmsg+0x11f/0x5e0 [ 61.404608] ? __might_sleep+0x95/0x190 [ 61.408550] ? inet_recvmsg+0x5f0/0x5f0 [ 61.412497] ? selinux_socket_sendmsg+0x36/0x40 [ 61.417137] ? security_socket_sendmsg+0x89/0xb0 [ 61.421860] ? inet_recvmsg+0x5f0/0x5f0 [ 61.425806] sock_sendmsg+0xca/0x110 [ 61.429490] SYSC_sendto+0x352/0x5a0 [ 61.433174] ? SYSC_connect+0x470/0x470 [ 61.437123] ? __do_page_fault+0x64c/0xd60 [ 61.441343] ? __handle_mm_fault+0x39c0/0x39c0 [ 61.445889] ? vmacache_find+0x5f/0x280 [ 61.449828] ? vmacache_update+0xfe/0x130 [ 61.453948] ? up_read+0x1a/0x40 [ 61.457281] ? __do_page_fault+0x3d6/0xd60 [ 61.461490] SyS_sendto+0x40/0x50 [ 61.464911] ? SyS_getpeername+0x30/0x30 [ 61.468940] do_fast_syscall_32+0x3f2/0xf05 [ 61.473233] ? do_int80_syscall_32+0x940/0x940 [ 61.477787] ? syscall_return_slowpath+0x2b3/0x510 [ 61.482682] ? finish_task_switch+0x1aa/0x740 [ 61.487144] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 61.492129] ? retint_user+0x18/0x20 [ 61.495817] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 61.500634] entry_SYSENTER_compat+0x51/0x60 [ 61.505008] RIP: 0023:0xf7fd2c79 [ 61.508340] RSP: 002b:00000000f5fca1ec EFLAGS: 00000292 ORIG_RAX: 0000000000000171 [ 61.516012] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020925000 [ 61.523246] RDX: 0000000000000002 RSI: 0000000000000000 RDI: 00000000209e1000 [ 61.530480] RBP: 000000000000001c R08: 0000000000000000 R09: 0000000000000000 [ 61.537714] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 61.544949] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 61.552201] [ 61.553797] Allocated by task 3007: [ 61.557392] save_stack_trace+0x16/0x20 [ 61.561331] save_stack+0x43/0xd0 [ 61.564752] kasan_kmalloc+0xad/0xe0 [ 61.568432] kmem_cache_alloc_trace+0x136/0x750 [ 61.573067] sctp_association_new+0x114/0x21e0 [ 61.577615] sctp_sendmsg+0x128c/0x31f0 [ 61.581555] inet_sendmsg+0x11f/0x5e0 [ 61.585321] sock_sendmsg+0xca/0x110 [ 61.589001] SYSC_sendto+0x352/0x5a0 [ 61.592680] SyS_sendto+0x40/0x50 [ 61.596101] do_fast_syscall_32+0x3f2/0xf05 [ 61.600391] entry_SYSENTER_compat+0x51/0x60 [ 61.604764] [ 61.606355] Freed by task 3007: [ 61.609601] save_stack_trace+0x16/0x20 [ 61.613539] save_stack+0x43/0xd0 [ 61.616956] kasan_slab_free+0x71/0xc0 [ 61.620811] kfree+0xca/0x250 [ 61.623884] sctp_association_put+0x21c/0x2f0 [ 61.628345] sctp_wait_for_sndbuf+0x5e3/0x7c0 [ 61.632806] sctp_sendmsg+0x2750/0x31f0 [ 61.636748] inet_sendmsg+0x11f/0x5e0 [ 61.640515] sock_sendmsg+0xca/0x110 [ 61.644193] SYSC_sendto+0x352/0x5a0 [ 61.647871] SyS_sendto+0x40/0x50 [ 61.651290] do_fast_syscall_32+0x3f2/0xf05 [ 61.655576] entry_SYSENTER_compat+0x51/0x60 [ 61.659948] [ 61.661540] The buggy address belongs to the object at ffff8801d21d4700 [ 61.661540] which belongs to the cache kmalloc-4096 of size 4096 [ 61.674332] The buggy address is located 32 bytes inside of [ 61.674332] 4096-byte region [ffff8801d21d4700, ffff8801d21d5700) [ 61.686168] The buggy address belongs to the page: [ 61.691062] page:ffffea0007487500 count:1 mapcount:0 mapping:ffff8801d21d4700 index:0x0 compound_mapcount: 0 [ 61.700996] flags: 0x200000000008100(slab|head) [ 61.705632] raw: 0200000000008100 ffff8801d21d4700 0000000000000000 0000000100000001 [ 61.713478] raw: ffffea0007487420 ffff8801dac01a48 ffff8801dac00dc0 0000000000000000 [ 61.721321] page dumped because: kasan: bad access detected [ 61.726993] [ 61.728588] Memory state around the buggy address: [ 61.733482] ffff8801d21d4600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 61.740806] ffff8801d21d4680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 61.748130] >ffff8801d21d4700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 61.755453] ^ [ 61.759823] ffff8801d21d4780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 61.767146] ffff8801d21d4800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 61.774467] ================================================================== [ 61.781788] Disabling lock debugging due to kernel taint [ 61.787275] Kernel panic - not syncing: panic_on_warn set ... [ 61.787275] [ 61.794606] CPU: 0 PID: 3007 Comm: syzkaller504854 Tainted: G B 4.14.0-rc6+ #62 [ 61.803144] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 61.812462] Call Trace: [ 61.815017] dump_stack+0x194/0x257 [ 61.818613] ? arch_local_irq_restore+0x53/0x53 [ 61.823248] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 61.827969] ? sctp_association_free+0x750/0x930 [ 61.832690] panic+0x1e4/0x417 [ 61.835849] ? __warn+0x1d9/0x1d9 [ 61.839271] ? sctp_association_free+0x7b7/0x930 [ 61.843991] kasan_end_report+0x50/0x50 [ 61.847928] kasan_report+0x144/0x340 [ 61.851693] __asan_report_load8_noabort+0x14/0x20 [ 61.856587] sctp_association_free+0x7b7/0x930 [ 61.861134] ? sctp_asconf_queue_teardown+0x700/0x700 [ 61.866288] ? sctp_init_sock+0x1350/0x1350 [ 61.870572] ? sctp_outq_tail+0x860/0x860 [ 61.874684] ? finish_wait+0x490/0x490 [ 61.878538] ? sctp_assoc_set_bind_addr_from_ep+0x136/0x190 [ 61.884213] sctp_sendmsg+0x2311/0x31f0 [ 61.888157] ? sctp_id2assoc+0x390/0x390 [ 61.892185] ? check_noncircular+0x20/0x20 [ 61.896388] ? __fget+0x35c/0x570 [ 61.899809] ? iterate_fd+0x3f0/0x3f0 [ 61.903577] ? find_held_lock+0x35/0x1d0 [ 61.907607] ? __might_fault+0x110/0x1d0 [ 61.911639] ? check_same_owner+0x320/0x320 [ 61.915923] ? __check_object_size+0x25d/0x4f0 [ 61.920473] inet_sendmsg+0x11f/0x5e0 [ 61.924240] ? inet_sendmsg+0x11f/0x5e0 [ 61.928177] ? __might_sleep+0x95/0x190 [ 61.932114] ? inet_recvmsg+0x5f0/0x5f0 [ 61.936054] ? selinux_socket_sendmsg+0x36/0x40 [ 61.940700] ? security_socket_sendmsg+0x89/0xb0 [ 61.945422] ? inet_recvmsg+0x5f0/0x5f0 [ 61.949362] sock_sendmsg+0xca/0x110 [ 61.953041] SYSC_sendto+0x352/0x5a0 [ 61.956720] ? SYSC_connect+0x470/0x470 [ 61.960665] ? __do_page_fault+0x64c/0xd60 [ 61.964875] ? __handle_mm_fault+0x39c0/0x39c0 [ 61.969420] ? vmacache_find+0x5f/0x280 [ 61.973358] ? vmacache_update+0xfe/0x130 [ 61.977474] ? up_read+0x1a/0x40 [ 61.980804] ? __do_page_fault+0x3d6/0xd60 [ 61.985008] SyS_sendto+0x40/0x50 [ 61.988427] ? SyS_getpeername+0x30/0x30 [ 61.992454] do_fast_syscall_32+0x3f2/0xf05 [ 61.996745] ? do_int80_syscall_32+0x940/0x940 [ 62.001295] ? syscall_return_slowpath+0x2b3/0x510 [ 62.006187] ? finish_task_switch+0x1aa/0x740 [ 62.010649] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 62.015630] ? retint_user+0x18/0x20 [ 62.019310] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 62.024121] entry_SYSENTER_compat+0x51/0x60 [ 62.028494] RIP: 0023:0xf7fd2c79 [ 62.031823] RSP: 002b:00000000f5fca1ec EFLAGS: 00000292 ORIG_RAX: 0000000000000171 [ 62.039494] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020925000 [ 62.046727] RDX: 0000000000000002 RSI: 0000000000000000 RDI: 00000000209e1000 [ 62.053959] RBP: 000000000000001c R08: 0000000000000000 R09: 0000000000000000 [ 62.061193] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 62.068426] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 62.076069] Dumping ftrace buffer: [ 62.079574] (ftrace buffer empty) [ 62.083251] Kernel Offset: disabled [ 62.086845] Rebooting in 86400 seconds..