Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp861791imu; Fri, 11 Jan 2019 10:18:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN5UuTAA7P7UuxuxPZSSkXudVpQc09CB+juV/Jyap2UTaExvhPqXLeQ3c/vOa/ik/p6xaliL X-Received: by 2002:a17:902:b494:: with SMTP id y20mr15965521plr.178.1547230722105; Fri, 11 Jan 2019 10:18:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547230722; cv=none; d=google.com; s=arc-20160816; b=VBN4zZJkwVjBMXpOR2uhmHSQl0BMC1I+S8SwUdF5Rl0NMQeFec4tgqmHbVlk3H6gxS 9GSwjpQ9uz+WFN2ibtTbVQScu8pJRgB3hLnHJZY9a8z9jhtHBmFBOvnClVQGzp9fT1Ai Zvx+XAFEcvg/4fCZSp30c8iHTs4Zre6XhvDuFRQdo39vXEBO/FAriSoAz/Mx20Db6weI GFtagEDM5Lm8yfKp0Oo61Rh8IdKtR/J/Ha/0+sHJ2INhr/Dp9CF31NhDHsJ90tkJ/CXv lER+lx0cotXYUn/PMx0mibXrsxOI3dKZ9gf8omy6PXVQaRacHlLvq2gTI1Fhy9sCpF02 V5dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:reply-to:cc :from:to:dkim-signature:date; bh=DobqyVWU0IZGrSmxEAEnzqfjPmQW8Rg1N5FGBDHHEnk=; b=pXm3lZ0c/EpsH2kyDO8tFu5Xv5liqL9dP/DunEdSofFYpim3n7wYcM2rI6U0CyYQkM tCNdsGly5nwUwbGt4WT5SMo+KluuGfhdNcG/i5nbyholi8tw+hOe0KY7sAIn/2n4IP6B sJbDrMrhwM/8upk61k7LBxxFzp/9VVqbBQ+Rogrh7UzH0cyH0lECQ5eVJlXUOr7Wzzws TnFnHE5BYfiv/Nu2SNUbfDo4PCHTxINusoDVeC2O5bgho5bPwUJ4SqfI2GaOljsE6ybx 2aBCbPfDe3C51NMmi7ea7WxogV3koDjiJOP35CSADBZ/8ZysuI7Jsf7rs96XpwsIyAxg qQ5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.ch header.s=default header.b=HuxskqOh; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.ch Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x6si20181186pgh.363.2019.01.11.10.18.26; Fri, 11 Jan 2019 10:18:42 -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=pass header.i=@protonmail.ch header.s=default header.b=HuxskqOh; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732334AbfAKOVg (ORCPT + 99 others); Fri, 11 Jan 2019 09:21:36 -0500 Received: from mail-40130.protonmail.ch ([185.70.40.130]:53061 "EHLO mail-40130.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732674AbfAKOVe (ORCPT ); Fri, 11 Jan 2019 09:21:34 -0500 Date: Fri, 11 Jan 2019 14:21:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.ch; s=default; t=1547216490; bh=DobqyVWU0IZGrSmxEAEnzqfjPmQW8Rg1N5FGBDHHEnk=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References: Feedback-ID:From; b=HuxskqOhTWVyEZIYu19J26YdY/aLQQiZgVLCsOOcqI99lCtQZmMKS+M0CKwBcTSRz 15ywY68M/8hkPJyI9s6XZLoiANF9rO5U1SZMetVgXiSJBKb+Wu+yKTQ0yqhvPSm/JJ CxBIKa0E8uiWo52q7o+L0f4/S1QlMBeccAfkjGvg= To: Peter Zijlstra From: Esme Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , JJiri Olsa , Namhyung Kim , "linux-kernel@vger.kernel.org" Reply-To: Esme Subject: Re: PROBLEM: syzkaller found / reduced C repro for non-fatal unchecked MSR access error Message-ID: In-Reply-To: <20190111135948.GA20688@hirez.programming.kicks-ass.net> References: <20190111100253.GO30894@hirez.programming.kicks-ass.net> <20190111135948.GA20688@hirez.programming.kicks-ass.net> Feedback-ID: pQGzDYT_k6dzic_kf3kwsxmTXzjnqMJxtC9J3KGyZBepPHdXRBM0BHuwPfpm1pFdJLAMwtJT5KKNaGlRVnFRQw==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Friday, January 11, 2019 8:59 AM, Peter Zijlstra = wrote: > On Fri, Jan 11, 2019 at 01:37:50PM +0000, Esme wrote: > > > =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Origina= l Message =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80= =90 > > On Friday, January 11, 2019 5:02 AM, Peter Zijlstra peterz@infradead.or= g wrote: > > > > > 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 ca= ll > > > > stack in relation to the MSR access error (5.0.0-rc1+), I get a ver= y > > > > 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? > > > > QEMU emulator version 3.0.93 (v3.1.0-rc3-dirty) > > [ 0.000000] DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.12.= 0-0-ga698c8995f-prebuilt.qemu.org 04/01/2014 > > [ 0.000000] Linux version 4.18.0-11-generic (buildd@lcy01-amd64-027) (g= cc version 8.2.0 (Ubuntu 8.2.0-7ubuntu1)) #12-Ubuntu SMP Tue Oct 23 19:22:3= 7 UTC 2018 (Ubuntu 4.18.0-11.12-generic 4.18.12) > > [ 0.000000] Command line: BOOT_IMAGE=3D/boot/vmlinuz-4.18.0-11-generic = root=3DUUID=3D3a43ccb9-a433-4296-8dc5-0443f2a32128 ro quiet splash vt.hando= ff=3D1 > > [ 0.000000] KERNEL supported cpus: > > [ 0.000000] Intel GenuineIntel > > [ 0.000000] AMD AuthenticAMD > > [ 0.000000] Centaur CentaurHauls > > [ 0.000000] random: get_random_u32 called from bsp_init_amd+0x205/0x2a0= with crng_init=3D0 > > [ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating poin= t registers' > > [ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' > > [ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' > > [ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 > > [ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 b= ytes, using 'standard' format. > > Feh, then you get to figure out how the heck it passes > check_hw_exists(). > > Stupid virt crap again. I see, I'm busy most of the day, I do have some bare metal hosts I'm going = to update with -current. Do you have any suggested kernel flags to use for the build? If it's specific to virt, I might just toss it into the cloud ;) and see wh= at happens, later. /Best Esme