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-4,10.128.0.21' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 41.461155] ================================================================== [ 41.462286] BUG: KASAN: slab-out-of-bounds in sctp_send_reset_streams+0xb03/0xc10 [ 41.463286] Read of size 2 at addr ffff8801d8a0d048 by task syzkaller569665/3090 [ 41.464271] [ 41.464503] CPU: 0 PID: 3090 Comm: syzkaller569665 Not tainted 4.15.0-rc2+ #117 [ 41.465478] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.466758] Call Trace: [ 41.467116] dump_stack+0x194/0x257 [ 41.467607] ? arch_local_irq_restore+0x53/0x53 [ 41.468247] ? show_regs_print_info+0x65/0x65 [ 41.468850] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 41.469630] ? sctp_send_reset_streams+0xb03/0xc10 [ 41.470292] print_address_description+0x73/0x250 [ 41.470937] ? sctp_send_reset_streams+0xb03/0xc10 [ 41.471593] kasan_report+0x25b/0x340 [ 41.472109] __asan_report_load2_noabort+0x14/0x20 [ 41.472766] sctp_send_reset_streams+0xb03/0xc10 [ 41.473402] ? _copy_from_user+0x99/0x110 [ 41.473994] sctp_setsockopt+0x70d/0x5d50 [ 41.474556] ? sctp_setsockopt_paddr_thresholds+0x540/0x540 [ 41.475345] ? update_blocked_averages+0x1b60/0x1b60 [ 41.476041] ? check_noncircular+0x20/0x20 [ 41.476616] ? __lock_acquire+0x6e9/0x47f0 [ 41.477183] ? check_noncircular+0x20/0x20 [ 41.477751] ? __lock_is_held+0xbc/0x140 [ 41.478310] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 41.479021] ? lock_downgrade+0x980/0x980 [ 41.479576] ? lock_downgrade+0x980/0x980 [ 41.480136] ? ttwu_do_wakeup+0x4d0/0x710 [ 41.480695] ? check_preempt_curr+0x350/0x350 [ 41.481312] ? __lock_is_held+0xbc/0x140 [ 41.485357] ? check_noncircular+0x20/0x20 [ 41.489559] ? do_raw_spin_trylock+0x190/0x190 [ 41.494107] ? do_raw_spin_trylock+0x190/0x190 [ 41.498662] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 41.503737] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 41.508724] ? trace_hardirqs_on+0xd/0x10 [ 41.512841] ? try_to_wake_up+0xf9/0x1600 [ 41.516962] ? find_held_lock+0x39/0x1d0 [ 41.521002] ? lock_downgrade+0x980/0x980 [ 41.525119] ? __fget+0xbb/0x580 [ 41.528460] ? lock_release+0xda0/0xda0 [ 41.532405] ? __lock_is_held+0xbc/0x140 [ 41.536444] ? __fget+0x362/0x580 [ 41.539870] ? sock_has_perm+0x29c/0x400 [ 41.543901] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 41.549232] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 41.554910] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 41.560174] compat_sock_common_setsockopt+0x104/0x140 [ 41.565425] compat_SyS_setsockopt+0x17c/0x410 [ 41.569972] ? sock_common_setsockopt+0xd0/0xd0 [ 41.574611] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 41.579336] ? do_fast_syscall_32+0x156/0xf9d [ 41.583804] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 41.588526] do_fast_syscall_32+0x3ee/0xf9d [ 41.592822] ? do_int80_syscall_32+0x9d0/0x9d0 [ 41.597377] ? lockdep_sys_exit+0x47/0xf0 [ 41.601491] ? syscall_return_slowpath+0x2ad/0x550 [ 41.606389] ? lockdep_sys_exit+0x47/0xf0 [ 41.610503] ? retint_user+0x18/0x18 [ 41.614187] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.619004] entry_SYSENTER_compat+0x51/0x60 [ 41.623378] RIP: 0023:0xf7fa2c79 [ 41.626710] RSP: 002b:00000000f47971ec EFLAGS: 00000296 ORIG_RAX: 000000000000016e [ 41.634387] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000000084 [ 41.641640] RDX: 0000000000000077 RSI: 0000000020b24000 RDI: 0000000000000008 [ 41.648878] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 41.656126] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 41.663362] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 41.670622] [ 41.672221] Allocated by task 3090: [ 41.675831] save_stack+0x43/0xd0 [ 41.679249] kasan_kmalloc+0xad/0xe0 [ 41.682932] __kmalloc_track_caller+0x15e/0x760 [ 41.687571] memdup_user+0x2c/0x90 [ 41.691079] sctp_setsockopt+0x6a6/0x5d50 [ 41.695194] compat_sock_common_setsockopt+0x104/0x140 [ 41.700438] compat_SyS_setsockopt+0x17c/0x410 [ 41.704988] do_fast_syscall_32+0x3ee/0xf9d [ 41.709276] entry_SYSENTER_compat+0x51/0x60 [ 41.713648] [ 41.715243] Freed by task 552: [ 41.718404] save_stack+0x43/0xd0 [ 41.721824] kasan_slab_free+0x71/0xc0 [ 41.725678] kfree+0xca/0x250 [ 41.728750] selinux_cred_free+0x48/0x70 [ 41.732776] security_cred_free+0x48/0x80 [ 41.736889] put_cred_rcu+0x106/0x400 [ 41.740657] rcu_process_callbacks+0xd74/0x17d0 [ 41.745294] __do_softirq+0x29d/0xbb2 [ 41.749058] [ 41.750654] The buggy address belongs to the object at ffff8801d8a0d040 [ 41.750654] which belongs to the cache kmalloc-32 of size 32 [ 41.763107] The buggy address is located 8 bytes inside of [ 41.763107] 32-byte region [ffff8801d8a0d040, ffff8801d8a0d060) [ 41.774685] The buggy address belongs to the page: [ 41.779581] page:00000000744571dd count:1 mapcount:0 mapping:0000000065f7724b index:0xffff8801d8a0dfc1 [ 41.789006] flags: 0x2fffc0000000100(slab) [ 41.793224] raw: 02fffc0000000100 ffff8801d8a0d000 ffff8801d8a0dfc1 000000010000002f [ 41.801089] raw: ffffea000762f120 ffff8801db001240 ffff8801db0001c0 0000000000000000 [ 41.808934] page dumped because: kasan: bad access detected [ 41.814608] [ 41.816206] Memory state around the buggy address: [ 41.821100] ffff8801d8a0cf00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 41.828422] ffff8801d8a0cf80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 41.835747] >ffff8801d8a0d000: fb fb fb fb fc fc fc fc 00 fc fc fc fc fc fc fc [ 41.843072] ^ [ 41.848748] ffff8801d8a0d080: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 41.856072] ffff8801d8a0d100: fb fb fb fb fc fc fc fc 00 00 04 fc fc fc fc fc [ 41.863397] ================================================================== [ 41.870719] Disabling lock debugging due to kernel taint [ 41.876198] Kernel panic - not syncing: panic_on_warn set ... [ 41.876198] [ 41.883530] CPU: 0 PID: 3090 Comm: syzkaller569665 Tainted: G B 4.15.0-rc2+ #117 [ 41.892242] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.901578] Call Trace: [ 41.904136] dump_stack+0x194/0x257 [ 41.907729] ? arch_local_irq_restore+0x53/0x53 [ 41.912366] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 41.917089] ? vsnprintf+0x1ed/0x1900 [ 41.920856] ? sctp_send_reset_streams+0xac0/0xc10 [ 41.925751] panic+0x1e4/0x41c [ 41.929240] ? refcount_error_report+0x214/0x214 [ 41.933964] ? add_taint+0x1c/0x50 [ 41.937470] ? add_taint+0x1c/0x50 [ 41.940977] ? sctp_send_reset_streams+0xb03/0xc10 [ 41.945874] kasan_end_report+0x50/0x50 [ 41.949813] kasan_report+0x144/0x340 [ 41.953579] __asan_report_load2_noabort+0x14/0x20 [ 41.958472] sctp_send_reset_streams+0xb03/0xc10 [ 41.963194] ? _copy_from_user+0x99/0x110 [ 41.967310] sctp_setsockopt+0x70d/0x5d50 [ 41.971424] ? sctp_setsockopt_paddr_thresholds+0x540/0x540 [ 41.977103] ? update_blocked_averages+0x1b60/0x1b60 [ 41.982174] ? check_noncircular+0x20/0x20 [ 41.986388] ? __lock_acquire+0x6e9/0x47f0 [ 41.990594] ? check_noncircular+0x20/0x20 [ 41.994794] ? __lock_is_held+0xbc/0x140 [ 41.998827] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 42.003985] ? lock_downgrade+0x980/0x980 [ 42.008096] ? lock_downgrade+0x980/0x980 [ 42.012213] ? ttwu_do_wakeup+0x4d0/0x710 [ 42.016326] ? check_preempt_curr+0x350/0x350 [ 42.020783] ? __lock_is_held+0xbc/0x140 [ 42.024809] ? check_noncircular+0x20/0x20 [ 42.029008] ? do_raw_spin_trylock+0x190/0x190 [ 42.033554] ? do_raw_spin_trylock+0x190/0x190 [ 42.038107] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 42.043175] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.048157] ? trace_hardirqs_on+0xd/0x10 [ 42.052279] ? try_to_wake_up+0xf9/0x1600 [ 42.056394] ? find_held_lock+0x39/0x1d0 [ 42.060425] ? lock_downgrade+0x980/0x980 [ 42.064539] ? __fget+0xbb/0x580 [ 42.067872] ? lock_release+0xda0/0xda0 [ 42.071813] ? __lock_is_held+0xbc/0x140 [ 42.075844] ? __fget+0x362/0x580 [ 42.079263] ? sock_has_perm+0x29c/0x400 [ 42.083291] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 42.088619] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 42.094293] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 42.099544] compat_sock_common_setsockopt+0x104/0x140 [ 42.104789] compat_SyS_setsockopt+0x17c/0x410 [ 42.109356] ? sock_common_setsockopt+0xd0/0xd0 [ 42.113990] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 42.118712] ? do_fast_syscall_32+0x156/0xf9d [ 42.123174] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 42.127896] do_fast_syscall_32+0x3ee/0xf9d [ 42.132186] ? do_int80_syscall_32+0x9d0/0x9d0 [ 42.136736] ? lockdep_sys_exit+0x47/0xf0 [ 42.140849] ? syscall_return_slowpath+0x2ad/0x550 [ 42.145751] ? lockdep_sys_exit+0x47/0xf0 [ 42.149866] ? retint_user+0x18/0x18 [ 42.153553] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.158363] entry_SYSENTER_compat+0x51/0x60 [ 42.162736] RIP: 0023:0xf7fa2c79 [ 42.166066] RSP: 002b:00000000f47971ec EFLAGS: 00000296 ORIG_RAX: 000000000000016e [ 42.173742] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000000084 [ 42.180976] RDX: 0000000000000077 RSI: 0000000020b24000 RDI: 0000000000000008 [ 42.188211] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 42.195447] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 42.202682] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 42.209954] Dumping ftrace buffer: [ 42.213464] (ftrace buffer empty) [ 42.217142] Kernel Offset: disabled [ 42.220737] Rebooting in 86400 seconds..