From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9904A21ABDB for ; Thu, 17 Apr 2025 08:58:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744880321; cv=none; b=dJzpprXtJQOfeH9J7ikhulWc1UHB8TWEfefhB3xzM5WpykPo9sWzQ2OVjgxwA8yg0FVdhy+28aU9/kJ1rrkG8syoE/SC+Nr4FPq0Q0EH9WT0ytzlg7H6CufMe8QbvU6HYS4Loz2cwLCKcCwp4vJjfjhWEIUd2xuU1w3Ad667fT4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744880321; c=relaxed/simple; bh=r1FjPDPkdRR2v2mM9JWjJvN0mbwzm6QYZ2Q9DLtMY7k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=XRbAKuCMpJ03J0SeMVlQkymxTscOVOBMjwt0ZeJXGxvV7+VdldiGmyTx2JQIAqOX7FUu+mqNjPnl1WsPPBJftDU5Nk9OtAEq3WRsxF6ZclpTT8PEBzpT3rsDY/AHlJIPIHo3Sj1pNgtGWHEFhtMVMsx3/pnw6laZMGGn1YU40lA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=KONCHHu0; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KONCHHu0" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4394a823036so4571945e9.0 for ; Thu, 17 Apr 2025 01:58:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1744880318; x=1745485118; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GP9CJN50tERxm6yE1CuNeHA83a3ivox+fButPu97ez4=; b=KONCHHu0/ixD9FxcFkwSj4Gl/noiidGTT/qniwhrkg1ptG/8f/PDDM8am4vL9O4U1W CBFyPWNyNSjI/j5yJ+AS9zjgzzNzpHR1hnnqmfkjtwK0mEFQawmJKL8odhj/hR06aUw/ HemnfBoDrh3xWGVCQQVFoSjT+hO3Uxy5NFlNfXwRTugxgoSGxots6yBqvh5CEWlcwcJa CYRZ1YnAAYlwNv0G3Dg8URTG8NaK8X3+nQNW0zv4u3sQzWlULYOujRzOEf0ZsIz/8cBa GyV7B6Zp88wX/UgIu4A7dFAkt685/ox45cpWi5Y9E9RYgx0E9MNnrYYjdmTmkIZksTba MYOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744880318; x=1745485118; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GP9CJN50tERxm6yE1CuNeHA83a3ivox+fButPu97ez4=; b=tT32BatBplrVFsvGqfekAPX51Wew45y59Yhj7ciBzFmz0QejO4z+w715PDwQSQOJwq yxozA6pzCRNs6folO8JkdkxmyVpHF74TSmLXrNWKv9QhTJSFb3B8bClXiGKEVCcb2gMy lAz1kzDzrJ4+nhY9LFV+7xGlMXH2qRoYv3AMMDUvuYMzYtMUYw7VI0LE5gFoWDDn2JT0 Mt37CHVcNKqhdkdDPA8bZ3UnFrOFhIJrQM39wlemkquydeVMsDlw3khrZ8KogIKJLQTu L01XvNq2QSWIBT/G3smKVUacPKkBxkT7E16QpQZVsqS+dbWnFgjF/3fnm5NBmSA6V1on Rvgw== X-Forwarded-Encrypted: i=1; AJvYcCUZ09j05idbOmkQZxsInWDbD31dHH27yh/fX/U4qYuZkZWAVa+GCy7jq7Z93Srhgj1ulc4Y+bA6ljwfmgWCmwUT@vger.kernel.org X-Gm-Message-State: AOJu0YzC92DhUrOutqvvDlizq4a9HDAcvUHg+evdS01P6uxkQ8SymUlG yit78ocuSfUokVTBpzz/7S9CoZL9PLAWry8ghncUHqJheiPrx2YXYiAtcIZ366U= X-Gm-Gg: ASbGnct4I8OKBs1yTpIb/vXud+XPkt8IXcMl28B4QHHLb/yVwqwG5+gSzgxCDP950u5 VFlACJb99ZqrKtxO5QBqpcd6s3TStxxk37Hy+H47W5+LFMtaGBMj1/OpOSAJdz14ou9z+mWNlD3 fETwrRR21LjyqA+xvtP6CnUU0Hdz6UXgtvna+ahaYTB9P3JpUMajeWYyiB/58v7tv4y0vI7umNC 2M4mX6shctc1hABlEoVuktLEmv7M/rDwElvWF6FYaVtvFGH0KtE3C2p/gqC7YTMiInZ14cNLGSm vBTgW70OQjA6bU2Lh8TC/QeKmdWI6gghPrOixpIOn6KhK9VdySo4Aw== X-Google-Smtp-Source: AGHT+IH6CNSHBn38pTz3KSqiHQKjYubJUpsb2xFQLAfw5wd+m9vVmQ9WStqNZ9vJMOreqvzejAJH0w== X-Received: by 2002:a05:600c:698e:b0:43c:f470:7605 with SMTP id 5b1f17b1804b1-4405d624e32mr53383385e9.12.1744880317933; Thu, 17 Apr 2025 01:58:37 -0700 (PDT) Received: from [192.168.1.3] ([77.81.75.81]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39eae96c0d9sm19859259f8f.32.2025.04.17.01.58.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Apr 2025 01:58:37 -0700 (PDT) Message-ID: <72b016c4-3959-49d1-8964-0927eee101bf@linaro.org> Date: Thu, 17 Apr 2025 09:58:36 +0100 Precedence: bulk X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [tip:perf/core] [perf] da916e96e2: BUG:KASAN:null-ptr-deref_in_put_event To: Peter Zijlstra Cc: Oliver Sang , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, x86@kernel.org, Ravi Bangoria , linux-perf-users@vger.kernel.org, Mark Rutland , Frederic Weisbecker References: <202504131701.941039cd-lkp@intel.com> <20250414190138.GB13096@noisy.programming.kicks-ass.net> <5bc5f54b-ce6a-4834-86d4-5014d44c7217@linaro.org> <20250415100840.GM5600@noisy.programming.kicks-ass.net> <20250415131446.GN5600@noisy.programming.kicks-ass.net> <77036114-8723-4af9-a068-1d535f4e2e81@linaro.org> <20250416084610.GI4031@noisy.programming.kicks-ass.net> <20250416190817.GD6580@noisy.programming.kicks-ass.net> Content-Language: en-US From: James Clark In-Reply-To: <20250416190817.GD6580@noisy.programming.kicks-ass.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 16/04/2025 8:08 pm, Peter Zijlstra wrote: > On Wed, Apr 16, 2025 at 10:46:10AM +0200, Peter Zijlstra wrote: >> On Tue, Apr 15, 2025 at 04:52:56PM +0100, James Clark wrote: >>> Unrelated to the pointer deref issue, I'm also seeing perf stat not working >>> due to this commit. And that's both with and without this fixup: >>> >>> -> perf stat -- true >>> >>> Performance counter stats for 'true': >>> >>> msec task-clock >>> >>> context-switches >>> >>> cpu-migrations >>> >>> page-faults >>> >>> armv8_cortex_a53/instructions/ >>> >>> armv8_cortex_a57/instructions/ >>> >>> armv8_cortex_a53/cycles/ >>> >>> armv8_cortex_a57/cycles/ >>> >>> armv8_cortex_a53/branches/ >>> >>> armv8_cortex_a53/branch-misses/ >>> >>> armv8_cortex_a57/branch-misses/ >>> >>> >>> 0.074139992 seconds time elapsed >>> >>> 0.000000000 seconds user >>> 0.054797000 seconds sys >>> >>> Didn't look into it more other than bisecting it to this commit, but I can >>> dig more unless the issue is obvious. This is on Arm big.LITTLE, although I >>> didn't test it elsewhere so I'm not sure if that's relevant or not. >> >> I can reproduce on x86 alderlake (first machine I tried), so let me go >> have a quick poke. > > Could you please try queue.git/perf/core ? I've fixed this and found > another problem. > > I'll post the patches tomorrow, after the robot has had a go. Yep that's all working now, thanks.