Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9214028ybi; Wed, 10 Jul 2019 06:34:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmxW/zf/RMAzyuYwvlE45uH7Scd/VIgjgwrWtmnAxIZEMequ7xxtjOhoIus54ZRQocQh6Y X-Received: by 2002:a17:902:724a:: with SMTP id c10mr36566588pll.298.1562765687614; Wed, 10 Jul 2019 06:34:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562765687; cv=none; d=google.com; s=arc-20160816; b=fRM/EfHJEnmCKK1uxJQ52ECE0p2C6AX+paBv4ZLet+ISU2SkRsJrjuX0Q+4zQzkq9J N3z2r/R3oNiPo2Xgdxiowk2UmVFUiqlTwRKapBmG5NToeSCsHOuRghEqlqbwzQf203KV LSYjaCA3C7HEKFfp74AmqswJEQS8NwjlKl/1jaHYAbPv8e7Edvc6Z/koXg4kA0y0gHLh BUUjMzy97pOH2SJVQWQT3VvbAqtqkBuZRKNCmpXKzqQTbq8jjDrB2UupM9uCY/3OdbAL eTGnPgWAxwNJSAnqZflYPZJh3le2Y1QtmrvBc1cbFTKlkXxwfLquAhCJQ7XcnSIJ8VFc DfRw== 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=PYoGG4XgGb9OmgxUgb8QrgBzHVhHCuM+5r/uhCHECDw=; b=KqUA5wo90i8sZK6AudL5ZQgv8Z5j0veAHNnc3G5Hk7P2yP/PSYo8SzVDRhwyiTUhTR DX08SnTWG+ywMhZq2A4cStJUsy0/X1Yyx8Z3Cjett+/cRui0NaUWkwRFuEJvIYFqEyr4 x1lXqUrs9P6ORSN1KDd6FRFnEm1R4UU9FglnSqL4I6/zWHq1kw4Oaa1rgD7DctEbwCKb uwkL+vpSbwDSw0wpbPdRS3rUCxNIUYlF87vmXJpbmn0o7sxfBm9vJOFJlKJRIw/gOk9j fli3sxaVZqfUO23Vx172s+/B36w1I51dTIC3U9TQryKu/KeByTPdWt5ew6/lkVNyHhsS 3v6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b="c/D4TKl8"; 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 f7si2045258pgv.105.2019.07.10.06.34.31; Wed, 10 Jul 2019 06:34:47 -0700 (PDT) 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="c/D4TKl8"; 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 S1727297AbfGJNWI (ORCPT + 99 others); Wed, 10 Jul 2019 09:22:08 -0400 Received: from merlin.infradead.org ([205.233.59.134]:47300 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbfGJNWI (ORCPT ); Wed, 10 Jul 2019 09:22:08 -0400 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=PYoGG4XgGb9OmgxUgb8QrgBzHVhHCuM+5r/uhCHECDw=; b=c/D4TKl86nDbNt/IHqHyVqCS+ L5WqFhF0eHfsr8Ao8uXvOBizfnhfVgM1Xuo2M6Ev83NkAo5rHORI7SzUDhHWQUJei5JxBvsXaCmMq /msGHAW0bEJCks9K+i9noaPXjN3K5D33FKXSiqnjWdaTeBAlFDODx0/yQfCs60Z03uQ1YXHKnj5rl 96PEDRXVCQjXsWKR38yiaryXUqFuFREmXDBbNHYOJsZxe29qKUEl5/gWbyVLOqW5p98DD9NYC3xP+ aC9jaESoB/JT00WrE8mW9LqsZ+CUHR+Ejt1c7CwiL3ULpZqKCYfbt+VLheB26O5F+kCgDSl5odbtP JgDl5P0Rw==; 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.92 #3 (Red Hat Linux)) id 1hlCXZ-0004SU-Mt; Wed, 10 Jul 2019 13:21:46 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 298CB20976EF0; Wed, 10 Jul 2019 15:21:44 +0200 (CEST) Date: Wed, 10 Jul 2019 15:21:44 +0200 From: Peter Zijlstra To: Jiri Kosina Cc: Thomas Gleixner , Xi Ruoyao , Kees Cook , Linus Torvalds , Ingo Molnar , Linux List Kernel Mailing , Borislav Petkov , Len Brown , Andrew Morton , "Rafael J. Wysocki" , Tony Luck , Bob Moore , Erik Schmauss , Josh Poimboeuf , Daniel Bristot de Oliveira , Nadav Amit Subject: Re: [GIT PULL] x86/topology changes for v5.3 Message-ID: <20190710132144.GM3402@hirez.programming.kicks-ass.net> References: <201907091727.91CC6C72D8@keescook> <1ad2de95e694a29909801d022fe2d556df9a4bd5.camel@mengyan1223.wang> 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 Wed, Jul 10, 2019 at 02:31:29PM +0200, Jiri Kosina wrote: > On Wed, 10 Jul 2019, Thomas Gleixner wrote: > > > From the log: > > > > BUG: unable to handle page fault for address: ffffffff9edc1598 > > #PF: supervisor write access in kernel mode > > #PF: error_code(0x0003) - permissions violation > > PGD 1a20c067 P4D 1a20c067 PUD 1a20d063 PMD 8000000019e000e1 > > Oops: 0003 [#1] SMP PTI > > 2 PID: 151 Comm: systemd-udevd Not tainted 5.2.0+ #54 > > Hardware name: LENOVO 20175/INVALID, BIOS 66CN54WW 01/21/2013 > > RIP: 0010:static_key_set_mod.isra.0+0x10/0x30 > > Code: 48 8b 37 83 e6 03 48 09 c6 48 89 37 c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f0 a8 03 75 0d 48 8b 37 83 e6 03 48 09 c6 <48> 89 37 c3 0f 0b 48 8b 37 83 e6 03 48 09 c6 48 89 37 c3 66 66 2e > > RSP: 0000:ffffa606c032bc98 EFLAGS: 00010286 > > RAX: ffff9981ddce30a0 RBX: ffffffff9edc1590 RCX: 0000000000000000 > > RDX: 0000000000000020 RSI: ffff9981ddce30a0 RDI: ffffffff9edc1598 > > RBP: ffffffffc06f4000 R08: ffff9981e6003980 R09: ffff9981ddce30a0 > > R10: 0000000000000000 R11: 0000000000028b56 R12: ffffffffc06f8880 > > R13: ffff9981ddce3080 R14: ffffffffc06f4008 R15: ffffffffc06f6dc0 > > FS: 00007f992dd9a680(0000) GS:ffff9981e7080000(0000) knlGS:0000000000000000 > > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > CR2: ffffffff9edc1598 CR3: 00000002233aa001 CR4: 00000000001606e0 > > Call Trace: > > jump_label_module_notify+0x1e7/0x2b0 > > notifier_call_chain+0x44/0x70 > > blocking_notifier_call_chain+0x43/0x60 > > load_module+0x1bcb/0x2490 > > ? vfs_read+0x11f/0x150 > > ? __do_sys_finit_module+0xbf/0xe0 > > __do_sys_finit_module+0xbf/0xe0 > > do_syscall_64+0x43/0x110 > > entry_SYSCALL_64_after_hwframe+0x44/0xa9 > > > > Josh, didn't you mention that yesterday or so? > > That's what Tony yesterday indicated on IRC that his system is suffering > from as well. > > Adding Daniel to check whether this couldn't be some fallout of jumplabel > batching. AFAICT this is _before_ we get to patching. The function that explodes is static_key_set_mod(), as called from jump_label_add_module(). What that function does is for all patch sites in the module, find the corresponding key; if that key is not also in that module, allocate a static_key_mod structure and link the module entries to the key. Such that we can find all instances from a given key. I don't think anything here has changed in a while.