[info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[ 8.750979] rsyslogd (2865) used greatest stack depth: 14592 bytes left [?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-mmots-kasan-gce-7,10.128.0.9' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 17.962640] device lo entered promiscuous mode executing program [ 18.053316] ================================================================== [ 18.060708] BUG: KASAN: use-after-free in sctp_association_free+0x7b7/0x930 [ 18.067773] Read of size 8 at addr ffff8801d1d3a460 by task syzkaller749672/3002 [ 18.075270] [ 18.076866] CPU: 1 PID: 3002 Comm: syzkaller749672 Not tainted 4.14.0-rc5-mm1+ #20 [ 18.084535] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 18.093857] Call Trace: [ 18.096412] dump_stack+0x194/0x257 [ 18.100012] ? arch_local_irq_restore+0x53/0x53 [ 18.104654] ? show_regs_print_info+0x65/0x65 [ 18.109121] ? sctp_association_free+0x7b7/0x930 [ 18.113846] print_address_description+0x73/0x250 [ 18.118657] ? sctp_association_free+0x7b7/0x930 [ 18.123378] kasan_report+0x25b/0x340 [ 18.127150] __asan_report_load8_noabort+0x14/0x20 [ 18.132047] sctp_association_free+0x7b7/0x930 [ 18.136600] ? sctp_asconf_queue_teardown+0x700/0x700 [ 18.141758] ? sctp_init_sock+0x1350/0x1350 [ 18.146048] ? sctp_sched_fcfs_dequeue+0x290/0x290 [ 18.150945] ? finish_wait+0x490/0x490 [ 18.154808] sctp_sendmsg+0x1845/0x32b0 [ 18.158759] ? sctp_id2assoc+0x390/0x390 [ 18.162786] ? check_noncircular+0x20/0x20 [ 18.166999] ? iterate_fd+0x3f0/0x3f0 [ 18.170775] ? check_noncircular+0x20/0x20 [ 18.174980] ? find_held_lock+0x35/0x1d0 [ 18.179023] ? __might_fault+0x110/0x1d0 [ 18.183077] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 18.188412] ? __check_object_size+0x25d/0x4f0 [ 18.192964] inet_sendmsg+0x11f/0x5e0 [ 18.196728] ? inet_sendmsg+0x11f/0x5e0 [ 18.200669] ? __might_sleep+0x95/0x190 [ 18.204611] ? inet_recvmsg+0x5f0/0x5f0 [ 18.208556] ? selinux_socket_sendmsg+0x36/0x40 [ 18.213191] ? security_socket_sendmsg+0x89/0xb0 [ 18.217917] ? inet_recvmsg+0x5f0/0x5f0 [ 18.221859] sock_sendmsg+0xca/0x110 [ 18.225544] SYSC_sendto+0x352/0x5a0 [ 18.229227] ? SYSC_connect+0x470/0x470 [ 18.233177] ? mm_fault_error+0x2c0/0x2c0 [ 18.237293] ? do_raw_spin_trylock+0x190/0x190 [ 18.241842] ? lock_release+0xa40/0xa40 [ 18.245790] ? __do_page_fault+0xd60/0xd60 [ 18.249989] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 18.254979] ? syscall_return_slowpath+0x2b3/0x510 [ 18.259875] ? finish_task_switch+0x1f6/0x740 [ 18.264335] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 18.269318] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 18.274128] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 18.279112] SyS_sendto+0x40/0x50 [ 18.282537] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 18.287258] RIP: 0033:0x446f79 [ 18.290414] RSP: 002b:00007f45fbc51db8 EFLAGS: 00000212 ORIG_RAX: 000000000000002c [ 18.298088] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000446f79 [ 18.305324] RDX: 0000000000000002 RSI: 0000000020925000 RDI: 0000000000000003 [ 18.312560] RBP: 0000000000000082 R08: 00000000209e1000 R09: 000000000000001c [ 18.319795] R10: 0000000000000000 R11: 0000000000000212 R12: 0000000000000000 [ 18.327031] R13: 00000000007efd1f R14: 00007f45fbc529c0 R15: 0000000000000000 [ 18.334282] [ 18.335879] Allocated by task 3002: [ 18.339472] save_stack+0x43/0xd0 [ 18.342891] kasan_kmalloc+0xad/0xe0 [ 18.346571] kmem_cache_alloc_trace+0x136/0x750 [ 18.351206] sctp_association_new+0x114/0x21e0 [ 18.355753] sctp_sendmsg+0x1c89/0x32b0 [ 18.359696] inet_sendmsg+0x11f/0x5e0 [ 18.363462] sock_sendmsg+0xca/0x110 [ 18.367138] SYSC_sendto+0x352/0x5a0 [ 18.370818] SyS_sendto+0x40/0x50 [ 18.374240] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 18.378956] [ 18.380551] Freed by task 3002: [ 18.383796] save_stack+0x43/0xd0 [ 18.387215] kasan_slab_free+0x71/0xc0 [ 18.391068] kfree+0xca/0x250 [ 18.394138] sctp_association_put+0x21c/0x2f0 [ 18.398598] sctp_wait_for_sndbuf+0x5e3/0x7c0 [ 18.403059] sctp_sendmsg+0x2906/0x32b0 [ 18.406997] inet_sendmsg+0x11f/0x5e0 [ 18.410768] sock_sendmsg+0xca/0x110 [ 18.414447] SYSC_sendto+0x352/0x5a0 [ 18.418125] SyS_sendto+0x40/0x50 [ 18.421543] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 18.426258] [ 18.427853] The buggy address belongs to the object at ffff8801d1d3a440 [ 18.427853] which belongs to the cache kmalloc-4096 of size 4096 [ 18.440647] The buggy address is located 32 bytes inside of [ 18.440647] 4096-byte region [ffff8801d1d3a440, ffff8801d1d3b440) [ 18.452483] The buggy address belongs to the page: [ 18.457376] page:ffffea0007474e80 count:1 mapcount:0 mapping:ffff8801d1d3a440 index:0x0 compound_mapcount: 0 [ 18.467307] flags: 0x200000000008100(slab|head) [ 18.471943] raw: 0200000000008100 ffff8801d1d3a440 0000000000000000 0000000100000001 [ 18.479788] raw: ffffea0007477e20 ffff8801dac01a48 ffff8801dac00dc0 0000000000000000 [ 18.487631] page dumped because: kasan: bad access detected [ 18.493304] [ 18.494895] Memory state around the buggy address: [ 18.499789] ffff8801d1d3a300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.507113] ffff8801d1d3a380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.514435] >ffff8801d1d3a400: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 18.521757] ^ [ 18.528211] ffff8801d1d3a480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.535535] ffff8801d1d3a500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.542856] ================================================================== [ 18.550183] Disabling lock debugging due to kernel taint [ 18.555649] Kernel panic - not syncing: panic_on_warn set ... [ 18.555649] [ 18.562989] CPU: 1 PID: 3002 Comm: syzkaller749672 Tainted: G B 4.14.0-rc5-mm1+ #20 [ 18.571965] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 18.581284] Call Trace: [ 18.583840] dump_stack+0x194/0x257 [ 18.587437] ? arch_local_irq_restore+0x53/0x53 [ 18.592076] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 18.596800] ? vsnprintf+0x1ed/0x1900 [ 18.600570] ? sctp_association_free+0x6f0/0x930 [ 18.605293] panic+0x1e4/0x41c [ 18.608454] ? refcount_error_report+0x214/0x214 [ 18.613179] ? add_taint+0x1c/0x50 [ 18.616687] ? add_taint+0x1c/0x50 [ 18.620197] ? sctp_association_free+0x7b7/0x930 [ 18.624918] kasan_end_report+0x50/0x50 [ 18.628860] kasan_report+0x144/0x340 [ 18.632629] __asan_report_load8_noabort+0x14/0x20 [ 18.637524] sctp_association_free+0x7b7/0x930 [ 18.642510] ? sctp_asconf_queue_teardown+0x700/0x700 [ 18.647668] ? sctp_init_sock+0x1350/0x1350 [ 18.651957] ? sctp_sched_fcfs_dequeue+0x290/0x290 [ 18.656855] ? finish_wait+0x490/0x490 [ 18.660716] sctp_sendmsg+0x1845/0x32b0 [ 18.664667] ? sctp_id2assoc+0x390/0x390 [ 18.668699] ? check_noncircular+0x20/0x20 [ 18.672907] ? iterate_fd+0x3f0/0x3f0 [ 18.676679] ? check_noncircular+0x20/0x20 [ 18.680882] ? find_held_lock+0x35/0x1d0 [ 18.684913] ? __might_fault+0x110/0x1d0 [ 18.688945] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 18.694276] ? __check_object_size+0x25d/0x4f0 [ 18.698829] inet_sendmsg+0x11f/0x5e0 [ 18.702595] ? inet_sendmsg+0x11f/0x5e0 [ 18.706535] ? __might_sleep+0x95/0x190 [ 18.710477] ? inet_recvmsg+0x5f0/0x5f0 [ 18.714421] ? selinux_socket_sendmsg+0x36/0x40 [ 18.719059] ? security_socket_sendmsg+0x89/0xb0 [ 18.723781] ? inet_recvmsg+0x5f0/0x5f0 [ 18.727722] sock_sendmsg+0xca/0x110 [ 18.731405] SYSC_sendto+0x352/0x5a0 [ 18.735088] ? SYSC_connect+0x470/0x470 [ 18.739037] ? mm_fault_error+0x2c0/0x2c0 [ 18.743151] ? do_raw_spin_trylock+0x190/0x190 [ 18.747703] ? lock_release+0xa40/0xa40 [ 18.751650] ? __do_page_fault+0xd60/0xd60 [ 18.755852] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 18.760837] ? syscall_return_slowpath+0x2b3/0x510 [ 18.765731] ? finish_task_switch+0x1f6/0x740 [ 18.770192] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 18.775174] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 18.779984] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 18.784967] SyS_sendto+0x40/0x50 [ 18.788389] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 18.793109] RIP: 0033:0x446f79 [ 18.796269] RSP: 002b:00007f45fbc51db8 EFLAGS: 00000212 ORIG_RAX: 000000000000002c [ 18.803944] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000446f79 [ 18.811179] RDX: 0000000000000002 RSI: 0000000020925000 RDI: 0000000000000003 [ 18.818414] RBP: 0000000000000082 R08: 00000000209e1000 R09: 000000000000001c [ 18.825651] R10: 0000000000000000 R11: 0000000000000212 R12: 0000000000000000 [ 18.832887] R13: 00000000007efd1f R14: 00007f45fbc529c0 R15: 0000000000000000 [ 18.840165] Dumping ftrace buffer: [ 18.843671] (ftrace buffer empty) [ 18.847347] Kernel Offset: disabled [ 18.850947] Rebooting in 86400 seconds..