Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp293659pxj; Thu, 3 Jun 2021 06:55:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjWrY8kvdGQKquHdKsWj/NNCptgwLL5pqcohJZXQGgTdcyzivaqAFdWWZ7msh1w3YGZC6W X-Received: by 2002:a17:906:e01:: with SMTP id l1mr14423624eji.280.1622728551492; Thu, 03 Jun 2021 06:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622728551; cv=none; d=google.com; s=arc-20160816; b=Q2qMCxtA5nFnTko86kP7nhe6XN2uunkZIumu/Z+qbk3TqtZ6O4UZsNVUhFHaG20q0U DmG7rXS6l7EdilwwjX0WJ1VlY0oryAQKywBNjFo/+6Dp4TBm7VOMDO9GoD9HTbuSA37H 19gTnROXjPq1/7zMUyK/Jnt8P7lWOijVEuHedG+XcWLAmaUJYhCWXF0198galn5TaZ70 tHQf8et0qS/7mIoz4Ihqp/7ErQ7n6CqoH2yh6ChL39p5tf8p/IDv9WhERxdaO8uQL6oG UfA6bV2Jvi4rTJ0gmyZE/LhMt9ApsnVp1FAybCT9d0f0+06feqyxxd5RSJCAzJQa72Lf uirA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=BVZRS8bB3YRyp9RZaigRo91E+hfE05xhRqpCGv74G+w=; b=dkZErgSRDBax2mUoAGAbxTC9ZhO5tsTviiY+Jp1BsG7ZnLUjq6a7a45OXROcTiuXwr Be51dKTs6ytvHNCL1+LaTQwJ8GVR0IP8y1+SE0ssw9aD82aJ9K4S4na16s5DHLKvfwGJ whNudMIMeI88gDc0plGA+U7Ap96+zaUEDgZtevCCxKz2QxfRcnz512JlgpipBiFTZDHT SOFwSVn+7N+aaY0kc3od6jDrqiID+3ZdUYShHc+jmBw9qh5yWvgoYkxRcRuXHGXaRyMy PhMQJKDD0NSWtQyMW9jeL6r2u9dyISxofihb91g0ErULNrI0VaAcpnRBRElM/V8kP+VT Gpvw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si2232743ejr.178.2021.06.03.06.55.28; Thu, 03 Jun 2021 06:55:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230114AbhFCNyG (ORCPT + 99 others); Thu, 3 Jun 2021 09:54:06 -0400 Received: from mga04.intel.com ([192.55.52.120]:51811 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbhFCNyF (ORCPT ); Thu, 3 Jun 2021 09:54:05 -0400 IronPort-SDR: LMDMo8rqObo8LLD3STpRDtoooU/w3CZBAYiAs+4vKUQIg5fYGEJ1zfQxivWtcS+N1uXPfvXMos glFybxiObfSg== X-IronPort-AV: E=McAfee;i="6200,9189,10004"; a="202188128" X-IronPort-AV: E=Sophos;i="5.83,246,1616482800"; d="scan'208";a="202188128" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2021 06:52:21 -0700 IronPort-SDR: fv56pyERrrhKBW/gDO/7lXeQpqsHLUUKL+t9kRcRwUJuqj95ljzowb3MrW9/EFobTBJqLPu0d5 PPU2EdRVXORQ== X-IronPort-AV: E=Sophos;i="5.83,246,1616482800"; d="scan'208";a="550697803" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.209.7.237]) ([10.209.7.237]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2021 06:52:20 -0700 Subject: Re: [syzbot] KASAN: stack-out-of-bounds Read in profile_pc To: Josh Poimboeuf , Peter Zijlstra Cc: syzbot , bp@alien8.de, hpa@zytor.com, inglorion@google.com, linux-kernel@vger.kernel.org, mingo@redhat.com, syzkaller-bugs@googlegroups.com, tglx@linutronix.de, x86@kernel.org, Andy Lutomirski , Steven Rostedt References: <00000000000030293b05c39afd6f@google.com> <20210602230054.vyqama2q3koc4bpo@treble> <527ad07e-eec2-a211-03e7-afafe5196100@linux.intel.com> <20210603133914.j2aeadmvhncnlk5q@treble> From: Andi Kleen Message-ID: <0b71d4f9-f707-3d39-c358-7c06c5689a9d@linux.intel.com> Date: Thu, 3 Jun 2021 06:52:19 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <20210603133914.j2aeadmvhncnlk5q@treble> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > True, ftrace does have function profiling (function_profile_enabled). > > Steve, is there a way to enable that on the kernel cmdline? That's not really comparable. function profiling has a lot more overhead. Also there is various code which has ftrace instrumentation disabled. I don't think why you want to kill the old profiler. It's rarely used, but when you need it usually works. It's always good to have simple fall backs. And it's not that it's a lot of difficult code. -Andi