Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1139469pxb; Thu, 4 Mar 2021 04:29:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwK5Vrc7EP7J+kiPTDjKjiSEihz1WrTcVkNz0JemRw3YHddTypqLICRwAgfA+LIYpsAnpvM X-Received: by 2002:aa7:cd8d:: with SMTP id x13mr4014639edv.286.1614860998593; Thu, 04 Mar 2021 04:29:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614860998; cv=none; d=google.com; s=arc-20160816; b=hQNCkuBS6w48HqCg+DHaL7Tw6xCroQ1+wQ6+l//93HR8flMJ8zy1CoPWKS/w9p6yJS jStcPlQ8sia5AJcr176p7PiQsgKsdkZ7SAMlbT4DiDLRnGI6u5x9t/cqLidwJu2dBlkW 6T4t6PDPHHylQZ1yHcYaism6D0c09IcU8vSOAAnUWQkq7Fc25UuBbu40seEE6aAiHSWL YRhWTQDrJAaOKnoON7OEA/mzdX9srU9wFr+7ajZ16hzSXtcAGfIsUouBQtRf/MIawc9D bMWW9iysQYkk1ssninRPJnyQBmf+74mFQ2R3K2YX5wLtt8dOTtWGVtpzS+17JrqZbprr tQ0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:date:from:dkim-signature; bh=s/R9v1sh6ruIBgmGKe5l27P58TdI4+w2a/sMzI77JeA=; b=Dp4f4K0bxRXXBRFb9qr9t0GmxfTfpZkKB7IsKN9ke6rF2SUI4flGrY0a/Q/08ltg65 RwkX0VwqFSX4znlciep3NnzC/8nZf5p/Ug5VWnG7reTw/oidMuaQLQNgsc3c4LMsVdGQ XuuHOMR34MVUyp9O/gZk7DAvisO34KnGtwUphLdsvNR2QS75wnWDnFTBK14R6Bfa8nqc 1UnP85Y27ep5xNTiEp7pDUDsjrqUmMaaRQNaqmprtJZ91u3Ols35v23N4R2Ekg2sxtTR Yw0uvtKbnFDE5t2hmoSeyWXtDYa+VJ9K6ADhRjzRSjZdDE4/YFkNPhP9K6vlQ1IqnXoX +vVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maine.edu header.s=google header.b=ikFquAQt; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yj16si3708463ejb.413.2021.03.04.04.29.35; Thu, 04 Mar 2021 04:29:58 -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; dkim=pass header.i=@maine.edu header.s=google header.b=ikFquAQt; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1837982AbhCCS7W (ORCPT + 99 others); Wed, 3 Mar 2021 13:59:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1578517AbhCCSR3 (ORCPT ); Wed, 3 Mar 2021 13:17:29 -0500 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 159D5C061760 for ; Wed, 3 Mar 2021 10:16:49 -0800 (PST) Received: by mail-qt1-x835.google.com with SMTP id d11so17572353qtx.9 for ; Wed, 03 Mar 2021 10:16:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maine.edu; s=google; h=from:date:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=s/R9v1sh6ruIBgmGKe5l27P58TdI4+w2a/sMzI77JeA=; b=ikFquAQtwbFw2efhPXj5xIveufwDEC1ZgcLybD0RVJ9zDsSjuXcevPoPyQxZjEX1rA f0pSic7UyWV3F2Ljg1qKRwFz2xxrdkLBX+v93hLMfsdjiCBXFrBEEW9a9B857DhTOm7c ktpCa6P5R8GxgcWXEsnMn9IGO/2MU8Ba5ATzI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=s/R9v1sh6ruIBgmGKe5l27P58TdI4+w2a/sMzI77JeA=; b=g7LJ+N8VZIEX8tuUZHUCwRlCMP+Mymtb46Q0SOvFyP4OnQCZeCbXHjXTyG3EC3rn3R jKgt7tvnjHLQWfiOwMXt5PCV05z1OScjq4GW3Y9uSlVKrx9n+yJUuzYCYzX2Imvg+ZJT O1b6HRG4uvOJCTXjttMK4sbUhxjdRrz6UVyoyFyzMFH+xNPLiVGHSMOgnvmUccojwend X7q9jQ7rX4yegsbw4rrG58gosIyOwRwxX2oNvip5EFvMKEF+wsR0qUnHZc+MPtREZgXS pZ1xS+RSyLE2OEuJFxlGjMG0owKhKZduga2giL0Qto94ygfXY8Fzg+4F1c8mjIaKCiL0 W+dA== X-Gm-Message-State: AOAM533HK63I46PpPo1a3Zi2GbPmIKyQlyKkZbqUCafkD6j5CowaaHby cluLijLxdnwnKt4bO5kqgmbnEykFkVZYug== X-Received: by 2002:ac8:4913:: with SMTP id e19mr421939qtq.231.1614795408044; Wed, 03 Mar 2021 10:16:48 -0800 (PST) Received: from macbook-air-2.local (weaver.eece.maine.edu. [130.111.218.23]) by smtp.gmail.com with ESMTPSA id 90sm15904277qtc.86.2021.03.03.10.16.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 10:16:47 -0800 (PST) From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Wed, 3 Mar 2021 13:16:41 -0500 (EST) To: linux-kernel@vger.kernel.org cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Stephane Eranian , "Liang, Kan" Subject: [perf] perf_fuzzer causes unchecked MSR access error In-Reply-To: <32888c33-c286-c600-66cb-8b1b03beeb8b@linux.intel.com> Message-ID: <6c1f8e-f81-a781-e594-368e7adef0c0@maine.edu> References: <61a56699-aab4-ef6-ed8d-a22b6bf532d@maine.edu> <7170d3b-c17f-1ded-52aa-cc6d9ae999f4@maine.edu> <32888c33-c286-c600-66cb-8b1b03beeb8b@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 this is on recent-git with the patch causing the pebs-related crash reverted. Vince