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-8,10.128.0.44' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 18.103724] ================================================================== [ 18.104865] BUG: KASAN: slab-out-of-bounds in sctp_send_reset_streams+0xb03/0xc10 [ 18.105934] Read of size 2 at addr ffff8801d8bc84c8 by task syzkaller012611/3087 [ 18.106938] [ 18.107173] CPU: 0 PID: 3087 Comm: syzkaller012611 Not tainted 4.15.0-rc2+ #207 [ 18.108149] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 18.109369] Call Trace: [ 18.109728] dump_stack+0x194/0x257 [ 18.110243] ? arch_local_irq_restore+0x53/0x53 [ 18.110869] ? show_regs_print_info+0x65/0x65 [ 18.111476] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 18.112259] ? sctp_send_reset_streams+0xb03/0xc10 [ 18.112920] print_address_description+0x73/0x250 [ 18.113582] ? sctp_send_reset_streams+0xb03/0xc10 [ 18.114242] kasan_report+0x25b/0x340 [ 18.114761] __asan_report_load2_noabort+0x14/0x20 [ 18.115419] sctp_send_reset_streams+0xb03/0xc10 [ 18.116055] ? _copy_from_user+0x99/0x110 [ 18.116620] sctp_setsockopt+0x70d/0x5d50 [ 18.117201] ? sctp_setsockopt_paddr_thresholds+0x540/0x540 [ 18.117965] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 18.118665] ? lock_downgrade+0x980/0x980 [ 18.119279] ? lock_downgrade+0x980/0x980 [ 18.119842] ? ttwu_do_wakeup+0x4d0/0x710 [ 18.120419] ? check_preempt_curr+0x350/0x350 [ 18.121022] ? __lock_is_held+0xbc/0x140 [ 18.121599] ? check_noncircular+0x20/0x20 [ 18.122176] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 18.122860] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 18.123529] ? trace_hardirqs_on+0xd/0x10 [ 18.124101] ? try_to_wake_up+0xf9/0x1600 [ 18.128228] ? find_held_lock+0x39/0x1d0 [ 18.132269] ? lock_downgrade+0x980/0x980 [ 18.136390] ? __fget+0xbb/0x580 [ 18.139732] ? lock_release+0xda0/0xda0 [ 18.143680] ? __lock_is_held+0xbc/0x140 [ 18.147723] ? __fget+0x362/0x580 [ 18.151154] ? iterate_fd+0x3f0/0x3f0 [ 18.154935] ? handle_mm_fault+0x410/0x8d0 [ 18.159138] ? down_read_trylock+0xdb/0x170 [ 18.163442] ? sock_has_perm+0x29c/0x400 [ 18.167469] ? __fget_light+0x29d/0x390 [ 18.171414] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 18.176744] ? __do_page_fault+0x3d6/0xc90 [ 18.180950] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 18.186632] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 18.191886] ? lock_release+0xda0/0xda0 [ 18.195841] sock_common_setsockopt+0x95/0xd0 [ 18.200311] SyS_setsockopt+0x189/0x360 [ 18.204258] ? SyS_recv+0x40/0x40 [ 18.207684] ? entry_SYSCALL_64_fastpath+0x5/0x96 [ 18.212497] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 18.217483] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 18.222215] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 18.226938] RIP: 0033:0x445659 [ 18.230095] RSP: 002b:00007f185ec6cdc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000036 [ 18.237772] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445659 [ 18.245013] RDX: 0000000000000077 RSI: 0000000000000084 RDI: 0000000000000004 [ 18.252252] RBP: 0000000000000000 R08: 0000000000000008 R09: 00007f185ec6d700 [ 18.259493] R10: 0000000020b24000 R11: 0000000000000202 R12: 0000000000000000 [ 18.266738] R13: 00007ffdfc7e9fef R14: 00007f185ec6d9c0 R15: 0000000000000000 [ 18.273998] [ 18.275600] Allocated by task 3087: [ 18.279194] save_stack+0x43/0xd0 [ 18.282612] kasan_kmalloc+0xad/0xe0 [ 18.286295] __kmalloc_track_caller+0x15e/0x760 [ 18.290932] memdup_user+0x2c/0x90 [ 18.294440] sctp_setsockopt+0x6a6/0x5d50 [ 18.298556] sock_common_setsockopt+0x95/0xd0 [ 18.303023] SyS_setsockopt+0x189/0x360 [ 18.306962] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 18.311683] [ 18.313279] Freed by task 1: [ 18.316264] save_stack+0x43/0xd0 [ 18.319683] kasan_slab_free+0x71/0xc0 [ 18.323535] kfree+0xca/0x250 [ 18.326610] kobject_uevent_env+0x248/0xbc0 [ 18.330899] kobject_uevent+0x1f/0x30 [ 18.334667] param_sysfs_init+0x3f9/0x474 [ 18.338781] do_one_initcall+0x9e/0x330 [ 18.342725] kernel_init_freeable+0x469/0x521 [ 18.347186] kernel_init+0x13/0x172 [ 18.350778] ret_from_fork+0x24/0x30 [ 18.354455] [ 18.356051] The buggy address belongs to the object at ffff8801d8bc84c0 [ 18.356051] which belongs to the cache kmalloc-32 of size 32 [ 18.368501] The buggy address is located 8 bytes inside of [ 18.368501] 32-byte region [ffff8801d8bc84c0, ffff8801d8bc84e0) [ 18.380080] The buggy address belongs to the page: [ 18.384981] page:00000000ea2ff4c3 count:1 mapcount:0 mapping:0000000075381a1b index:0xffff8801d8bc8fc1 [ 18.394393] flags: 0x2fffc0000000100(slab) [ 18.398596] raw: 02fffc0000000100 ffff8801d8bc8000 ffff8801d8bc8fc1 000000010000003b [ 18.406446] raw: ffffea00076334a0 ffff8801db001240 ffff8801db0001c0 0000000000000000 [ 18.414289] page dumped because: kasan: bad access detected [ 18.419963] [ 18.421560] Memory state around the buggy address: [ 18.426454] ffff8801d8bc8380: fb fb fb fb fc fc fc fc 00 00 fc fc fc fc fc fc [ 18.433778] ffff8801d8bc8400: 00 05 fc fc fc fc fc fc 00 05 fc fc fc fc fc fc [ 18.441102] >ffff8801d8bc8480: fb fb fb fb fc fc fc fc 00 fc fc fc fc fc fc fc [ 18.448425] ^ [ 18.454103] ffff8801d8bc8500: fb fb fb fb fc fc fc fc 00 00 00 00 fc fc fc fc [ 18.461428] ffff8801d8bc8580: 00 02 fc fc fc fc fc fc 00 02 fc fc fc fc fc fc [ 18.468750] ================================================================== [ 18.476075] Disabling lock debugging due to kernel taint [ 18.481569] Kernel panic - not syncing: panic_on_warn set ... [ 18.481569] [ 18.488912] CPU: 0 PID: 3087 Comm: syzkaller012611 Tainted: G B 4.15.0-rc2+ #207 [ 18.497631] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 18.506955] Call Trace: [ 18.509531] dump_stack+0x194/0x257 [ 18.513129] ? arch_local_irq_restore+0x53/0x53 [ 18.517769] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 18.522493] ? vsnprintf+0x1ed/0x1900 [ 18.526262] ? sctp_send_reset_streams+0xac0/0xc10 [ 18.531159] panic+0x1e4/0x41c [ 18.534320] ? refcount_error_report+0x214/0x214 [ 18.539044] ? add_taint+0x1c/0x50 [ 18.542551] ? add_taint+0x1c/0x50 [ 18.546059] ? sctp_send_reset_streams+0xb03/0xc10 [ 18.550955] kasan_end_report+0x50/0x50 [ 18.554903] kasan_report+0x144/0x340 [ 18.558670] __asan_report_load2_noabort+0x14/0x20 [ 18.563564] sctp_send_reset_streams+0xb03/0xc10 [ 18.568286] ? _copy_from_user+0x99/0x110 [ 18.572404] sctp_setsockopt+0x70d/0x5d50 [ 18.576523] ? sctp_setsockopt_paddr_thresholds+0x540/0x540 [ 18.582204] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 18.587365] ? lock_downgrade+0x980/0x980 [ 18.591478] ? lock_downgrade+0x980/0x980 [ 18.595596] ? ttwu_do_wakeup+0x4d0/0x710 [ 18.599714] ? check_preempt_curr+0x350/0x350 [ 18.604174] ? __lock_is_held+0xbc/0x140 [ 18.608205] ? check_noncircular+0x20/0x20 [ 18.612406] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 18.617481] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 18.622474] ? trace_hardirqs_on+0xd/0x10 [ 18.626590] ? try_to_wake_up+0xf9/0x1600 [ 18.630711] ? find_held_lock+0x39/0x1d0 [ 18.634744] ? lock_downgrade+0x980/0x980 [ 18.638858] ? __fget+0xbb/0x580 [ 18.642193] ? lock_release+0xda0/0xda0 [ 18.646134] ? __lock_is_held+0xbc/0x140 [ 18.650171] ? __fget+0x362/0x580 [ 18.653596] ? iterate_fd+0x3f0/0x3f0 [ 18.657369] ? handle_mm_fault+0x410/0x8d0 [ 18.661570] ? down_read_trylock+0xdb/0x170 [ 18.665864] ? sock_has_perm+0x29c/0x400 [ 18.669903] ? __fget_light+0x29d/0x390 [ 18.673851] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 18.679187] ? __do_page_fault+0x3d6/0xc90 [ 18.683389] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 18.689067] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 18.694314] ? lock_release+0xda0/0xda0 [ 18.698263] sock_common_setsockopt+0x95/0xd0 [ 18.702729] SyS_setsockopt+0x189/0x360 [ 18.706673] ? SyS_recv+0x40/0x40 [ 18.710094] ? entry_SYSCALL_64_fastpath+0x5/0x96 [ 18.714903] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 18.719886] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 18.724611] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 18.729332] RIP: 0033:0x445659 [ 18.732490] RSP: 002b:00007f185ec6cdc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000036 [ 18.740162] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445659 [ 18.747398] RDX: 0000000000000077 RSI: 0000000000000084 RDI: 0000000000000004 [ 18.754634] RBP: 0000000000000000 R08: 0000000000000008 R09: 00007f185ec6d700 [ 18.761871] R10: 0000000020b24000 R11: 0000000000000202 R12: 0000000000000000 [ 18.769109] R13: 00007ffdfc7e9fef R14: 00007f185ec6d9c0 R15: 0000000000000000 [ 18.776781] Dumping ftrace buffer: [ 18.780286] (ftrace buffer empty) [ 18.783962] Kernel Offset: disabled [ 18.787553] Rebooting in 86400 seconds..