Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp385573imu; Fri, 11 Jan 2019 02:06:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN4caTV1arn2Srfh6uw4Akrb7sCi4aOBMKYdlaJPBvFdIA1H5O+OuTVocCdASxi7uNagVYSJ X-Received: by 2002:a62:c42:: with SMTP id u63mr13650374pfi.73.1547201197922; Fri, 11 Jan 2019 02:06:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547201197; cv=none; d=google.com; s=arc-20160816; b=gEmr3pf3WXb40V+oPncY+XNIb2yccwXuFMW+9dvd2JPXSILTDLVmwLJdVuGMc3Gvvi ZQtCniouwxn851HcQtrAshlvJHXIGsfljVZ5TRP+pAI2fnHnJL07A9/yWqpHJQsWP8OK sRFXPfvzTHNB2EAEIMUBu81vC7oKckypIvaPxFbeRBjoqYjf/hmf6cxWTICqH5cQfn0M 1IZNkgDCu5DKNoDVKoOTqXCagm/c3l26ths+h6PV6QFgRToaicIp1ySWqP24T4KkFnCf NOa682/CoGmYqN6FJ2X6XlN2hLZld6o8DJC0yMQFyE7c7t2st7z3k9z75ul0BRHnbHhN SkOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pcTMygEALRHllzFZxAMVlB56K3XYfhrHxK7e9gi5eDs=; b=xZvf2MFWVgIXKnwpMZqnrp8ycQOaMHLYMPO5OVFa7HAZxxej/ZKkeckpa17WRouHKl svUiunJ8p4NFIXB/KTYqz6/Ve3WCUzqPBcTaTvnfEiq3YFDj2Dp4dLQ7vGyVo3GlWP9M jaUBxREQeRMBstxirzEjLdq9sB1mOHjk22Kd7tOlmJRWXoAkSw2XaPlM7Zcjo6exvIs0 QkZWa+IS1CK5W5YimBvG5fu4QpfXwo2Fl0PgF2QdzBWwyTzciKtuw+Qu48bAaC6xwSYD rh/n6rOVLApCik09d3uDATtKRkKyJvyWf1ESIJVpFuFFJBo6IGNnUc+LUwxLHfXQuC2a ZOrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Y8ZzuVWz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t5si25725955pgm.79.2019.01.11.02.06.21; Fri, 11 Jan 2019 02:06:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Y8ZzuVWz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731575AbfAKKC7 (ORCPT + 99 others); Fri, 11 Jan 2019 05:02:59 -0500 Received: from merlin.infradead.org ([205.233.59.134]:56254 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727653AbfAKKC7 (ORCPT ); Fri, 11 Jan 2019 05:02:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=pcTMygEALRHllzFZxAMVlB56K3XYfhrHxK7e9gi5eDs=; b=Y8ZzuVWzO1AebgDhpKIBTWlOr fH8MlCNm2sUuAlNutbHFS+XCUWbkOUBEsGQmxmppbQBYZ3j+IVOSZiOIgbuGuuPW4nBITngLHGcVx dLdPkGmqcskPVAQP90N2PCCFLIvj1V/5rBvXppD1qzYplCNkpmS41zACybBQxjx6oEqSWfKLis4mQ h+sUoFatpVDvrDfHMiubofyD/CLlzgZuEfGALfKtfvBsM3vQOrp+7C6vvxZp4Md+GtiNOS2CF+vDo YiT5sCVUGahWyMz2acqlbAbPlA3RKXVoYph2EL5JRfqnMRQ1MMSVdQfhKD8RfNnUX9iKvTbJYvBVb q/jTSFARQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1ghteQ-0008Dc-Il; Fri, 11 Jan 2019 10:02:55 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 5C00F201267E1; Fri, 11 Jan 2019 11:02:53 +0100 (CET) Date: Fri, 11 Jan 2019 11:02:53 +0100 From: Peter Zijlstra To: Esme Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , JJiri Olsa , Namhyung Kim , "linux-kernel@vger.kernel.org" Subject: Re: PROBLEM: syzkaller found / reduced C repro for non-fatal unchecked MSR access error Message-ID: <20190111100253.GO30894@hirez.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 10, 2019 at 11:21:16PM +0000, Esme wrote: > Attached is a fairly small C repro I did not see any references to > this possible flaw (unchecked MSR access) in relation to > __NR_perf_event_open > > Attached is the config directly extracted from proc. This is the call > stack in relation to the MSR access error (5.0.0-rc1+), I get a very > similar stack running this test case on a stock Ubuntu > "4.18.0-11-generic" (pasted after this one). > -- Esme > > [ 70.228744] unchecked MSR access error: WRMSR to 0xc0010000 (tried to write 0x0000020000130076) at rIP: 0xffffffff812dde28 (native_write_msr+0x8/0x30) That's K7_EVNTSEL0. What kind of hardware are you running this on?