Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1149080pxb; Thu, 4 Mar 2021 04:46:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0M+xlDqEuduoc62Y759K9ku4lKsoDnEXhp9fOHgcQswPCqFYbPVr91teBQrVZRvp9aPKy X-Received: by 2002:a05:6402:520b:: with SMTP id s11mr4192704edd.212.1614861972095; Thu, 04 Mar 2021 04:46:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614861972; cv=none; d=google.com; s=arc-20160816; b=025fmfBocy7CSfCm3OvV499Pbm5O9aX+tnzmdAPzRAXv1KY1iJLJIyp6gOnqV8QnC4 +S57IIRNDTayI7RQFoEmKUO0i64JZxFIr34c5MeXkYwKjNsG4FfVMZoYolDG/xmqQFhv RKcqjDJxazPwIh2vPf/lWjZNC/32zeZmD0VEKwq/arLKsOV4fjBjcWeIkK5EAoZriIni LBBH97BfT7t/eptXWPZrnO6d0vC5z0vWVkNLOTpa9FbeKYWlN7B3XVqXpHY8nr+SoZN1 AHuiOmzr0ZzrsDiaA75iOB3zJW3B+oR65zxEJ1z9Lm3H3JTXeF/GKzk7Pf7o+Y6esU4T uXOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=wxSyEquThzPR7bmHSnwRykB7OGgfmJ6eX0+/66jySRA=; b=kmxoMYcJs+CxQ+bePbpcSa7pXEcqIy2eYGL11LltN29BCaY+Ah6sqbGwaRgkYvX9Up /V87mvx1DNWbsb+skJAEPe2Fy0YnRgbSNlfy64F5JPFPgCjpICdww5n9X9ScPZ5yndS/ SPL7yGsS5IrighGevDFgwZVRw9PJMVpF07mZMH1iHsAgiUc3v4w8H9Xa/agUywmcsdfy tlZVV3hdnDZApHEftzX8cGJpzRJwxFhNrh40M7JIasLLQ5aLp0r47K1qO/vz1BbEFSCS 8Of0R5H2/WRhaoEeDCD0UyzjXPe8b19+RKpo1n39WxF20nPEr8ktN+veopB1qhy9zOj4 HoRQ== 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 g4si1484903ejp.171.2021.03.04.04.45.48; Thu, 04 Mar 2021 04:46:12 -0800 (PST) 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 S237377AbhCDAAS (ORCPT + 99 others); Wed, 3 Mar 2021 19:00:18 -0500 Received: from mga12.intel.com ([192.55.52.136]:31342 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387472AbhCCUCe (ORCPT ); Wed, 3 Mar 2021 15:02:34 -0500 IronPort-SDR: 1aG+AAgDutIGHyurmkUe7SBqRPuUhJx5oDF3/sDgKSMZKcDcmcmR0D9AnW8c44Bdpyxju+vKGX 96eREw/jfAOw== X-IronPort-AV: E=McAfee;i="6000,8403,9912"; a="166525697" X-IronPort-AV: E=Sophos;i="5.81,220,1610438400"; d="scan'208";a="166525697" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2021 12:00:22 -0800 IronPort-SDR: eyi2QKfV5cccd1vRVDJpFe18j+zEp4aWlR7m6heg+4sBlsWT8ZNDkYuzbcAcZ7qtmW4BpE5f+E eCX0dDQCoBxg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,220,1610438400"; d="scan'208";a="428394063" Received: from linux.intel.com ([10.54.29.200]) by fmsmga004.fm.intel.com with ESMTP; 03 Mar 2021 12:00:21 -0800 Received: from [10.252.139.65] (kliang2-MOBL.ccr.corp.intel.com [10.252.139.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id 50A5B580224; Wed, 3 Mar 2021 12:00:20 -0800 (PST) Subject: Re: [perf] perf_fuzzer causes unchecked MSR access error To: Stephane Eranian , Vince Weaver Cc: LKML , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim References: <61a56699-aab4-ef6-ed8d-a22b6bf532d@maine.edu> <7170d3b-c17f-1ded-52aa-cc6d9ae999f4@maine.edu> <32888c33-c286-c600-66cb-8b1b03beeb8b@linux.intel.com> <6c1f8e-f81-a781-e594-368e7adef0c0@maine.edu> From: "Liang, Kan" Message-ID: <9df5f72d-a959-fe46-400a-7dca6c596478@linux.intel.com> Date: Wed, 3 Mar 2021 15:00:19 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/3/2021 2:28 PM, Stephane Eranian wrote: > On Wed, Mar 3, 2021 at 10:16 AM Vince Weaver wrote: >> >> Hello >> >> on my Haswell machine the perf_fuzzer managed to trigger this message: >> >> [117248.075892] unchecked MSR access error: WRMSR to 0x3f1 (tried to write 0x0400000000000000) at rIP: 0xffffffff8106e4f4 (native_write_msr+0x4/0x20) >> [117248.089957] Call Trace: >> [117248.092685] intel_pmu_pebs_enable_all+0x31/0x40 >> [117248.097737] intel_pmu_enable_all+0xa/0x10 >> [117248.102210] __perf_event_task_sched_in+0x2df/0x2f0 >> [117248.107511] finish_task_switch.isra.0+0x15f/0x280 >> [117248.112765] schedule_tail+0xc/0x40 >> [117248.116562] ret_from_fork+0x8/0x30 >> >> that shouldn't be possible, should it? MSR 0x3f1 is MSR_IA32_PEBS_ENABLE >> > Not possible, bit 58 is not defined in PEBS_ENABLE, AFAIK. > >> >> this is on recent-git with the patch causing the pebs-related crash >> reverted. >> We never use bit 58. It should be a new issue. Is it repeatable? Thanks, Kan