Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1566751pxa; Thu, 6 Aug 2020 10:25:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzFKuDeg82+HAxcOeqgrz9RgayQFlWqX3na6NIBxCgVxFUoxX8dJ5H0d7qPU1v0yBNbJUB X-Received: by 2002:a17:906:2e09:: with SMTP id n9mr5785523eji.0.1596734730526; Thu, 06 Aug 2020 10:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596734730; cv=none; d=google.com; s=arc-20160816; b=VMoBzJhT7scvT4qWp3aqj/CIGNWpcc2SNXSDAZVg+iBBIJL843zsatqC+w0PQ45Pkx pejq5mTub8Xq8MS4iX37CRpk0mP6KSlyCubHRVJSSGtKRRRV5JivdJvYgEoe7EJaAUbD AcqXjYMqfYnpmFHqFTlvxqgNh90AADde4sVB7RJ+IhDrEayZEpHgRNPJLfKPMc4mt8Ii I7P/fBFRpt0ZTaY8JLD9AuWCpuh5ZWQuwkpWSU9pdLW2tRXc681nE4wtOwi1sCrAwbs1 YTQ6bGVIlnEDJ+TV+Br2ND7xMF0ErTQkuRU+SnHe24E8wX+c0ub2hAXzQJRHflAuopUs KmNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Y37dSXMpF9i5zwI93ayCq0fr59uu6XSE2Odw+I/dNvE=; b=rklLo8Zmkrs5T/wGdj8CO5ARd889iJBXRaYKCsHALpTGUUpbdtWdUhxD06LbNRTInO auQe6NJjKH4uMtXHTzYActNMRD6+kJUsJBkH0w0UqrqLEsEP9T3Rs/M3wxQraTyNAfr2 lsMFMx/YxMROhg5NpUat04kasyJzcxrlXGJNqe779KprCud9fiYoHQx9D9A2lCRVtbuJ quuKQpsw8TG5/pMiFf94QOpnz583OSLDZVmUv28oDm6+b1ylgXbCadxxdTXEmJHbrIcY cGc6Vuoh43141ZCHqUK8vwhPv6uJ1+H+d+H0SfBdojzGOb6Xc1fOy5+3Qqff5GDrSHC3 +Log== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=q8sjFvgH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nf1si3643119ejb.527.2020.08.06.10.25.08; Thu, 06 Aug 2020 10:25:30 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=q8sjFvgH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728878AbgHFRXc (ORCPT + 99 others); Thu, 6 Aug 2020 13:23:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729932AbgHFRFG (ORCPT ); Thu, 6 Aug 2020 13:05:06 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A579FC034612 for ; Thu, 6 Aug 2020 06:10:38 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id l4so50184292ejd.13 for ; Thu, 06 Aug 2020 06:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Y37dSXMpF9i5zwI93ayCq0fr59uu6XSE2Odw+I/dNvE=; b=q8sjFvgHM0X7asxHMfSQI0E/0lUVZpTLaBQcdNapsY+haLKU8yj/yOcAyd4yHoL/Zn 8OzL+aiIWsTkZpCbQa+rYja3b/wX2wdfiT0slTbbsm2SLoLUXXrX6+hvNmST2j9bigTh Q1ApEcKJv0hhJ7l7i64LTfxnekJQ46Fi5Uh5XnHEHPNQOQiI4qW8vL6VXbmNgJ/aVhhm CI+1dtK7bu7+uIsAmcxnW1J7GHDqhFqx9tCozej3QWGWkgUFsd5SK4sV2dDw/IC0xs/i BrWrvwVWRcHozdyGMqN69MKQveO7MQmMSFiwTMr/ziyhwI6NbngQt++5fhxTCbyxnTYV V5Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=Y37dSXMpF9i5zwI93ayCq0fr59uu6XSE2Odw+I/dNvE=; b=DklcmGsXu1rUBxK5swHvi645piJ3dEgA0Pnft7kwz612pgGnngmOs2NB5Mq7rUsVdq YtsK8nex5kh02ytSBE7v91PVzqxUL5Bwt2r/G69j97FXRmkBx3D6iGvepmZzmwoyNk6R EFyVy9KmfrnKetMI6Kb54FGxxztOzGQ/3RCeLzzS9IXT4i0lCzE43fMYt0qOfqAXG4zK NHQXRaVGFU/lNCcXB1YbTbVMzSxWHmLJZchrIjZqIO8F+f4mytqoE9K6DIjTX5PDDqmN 1AIIJR2izdufYxj5H3ZhkOloX3SJWYyzThGBu9X81npuHJfFB2afsxS/W40QfN6dUHmu hLMw== X-Gm-Message-State: AOAM533GIAneEUWO6xsmKdOt/n8WC9/l1QGcf8rvabas9yiZhOAf695M rDhTC2hZAL7nJwLdOXJKri0= X-Received: by 2002:a17:906:5a8a:: with SMTP id l10mr4031628ejq.397.1596719437400; Thu, 06 Aug 2020 06:10:37 -0700 (PDT) Received: from gmail.com (54033286.catv.pool.telekom.hu. [84.3.50.134]) by smtp.gmail.com with ESMTPSA id x1sm3625544ejc.119.2020.08.06.06.10.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Aug 2020 06:10:36 -0700 (PDT) Date: Thu, 6 Aug 2020 15:10:34 +0200 From: Ingo Molnar To: Linus Torvalds Cc: "Jason A. Donenfeld" , Linux Kernel Mailing List , Thomas Gleixner , Borislav Petkov , Peter Zijlstra , Andrew Morton , Joerg Roedel Subject: Re: [GIT PULL] x86/mm changes for v5.9 Message-ID: <20200806131034.GA2067370@gmail.com> References: <20200803190354.GA1293087@gmail.com> <20200805110348.GA108872@zx2c4.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Linus Torvalds wrote: > On Wed, Aug 5, 2020 at 4:03 AM Jason A. Donenfeld wrote: > > > > The commit 8bb9bf242d1f ("x86/mm/64: Do not sync vmalloc/ioremap > > mappings") causes the OOPS below, in Linus' tree and in linux-next, > > unearthed by my CI on . > > Bisecting reveals 8bb9bf242d1f, and reverting this makes the OOPS go > > away. > > The oops happens early in the function, and the "Code:" line actually > gets almost the whole function prologue in it (missing first two bytes > are probably "push %rbp"): > > 0: 41 56 push %r14 > 2: 41 55 push %r13 > 4: 41 54 push %r12 > 6: 55 push %rbp > 7: 48 89 f5 mov %rsi,%rbp > a: 53 push %rbx > b: 48 89 fb mov %rdi,%rbx > e: 48 83 ec 08 sub $0x8,%rsp > 12: 48 8b 06 mov (%rsi),%rax > 15: 4c 8b 67 40 mov 0x40(%rdi),%r12 > 19: 49 89 c6 mov %rax,%r14 > 1c: 45 30 f6 xor %r14b,%r14b > 1f: a8 04 test $0x4,%al > 21: b8 00 00 00 00 mov $0x0,%eax > 26: 4c 0f 44 f0 cmove %rax,%r14 > 2a:* 49 8b 46 08 mov 0x8(%r14),%rax <-- trapping instruction > > > > BUG: unable to handle page fault for address: ffffe8ffffd00608 > > #PF: supervisor read access in kernel mode > > #PF: error_code(0x0000) - not-present page > > PGD 0 P4D 0 > > Yeah, missing page table because it wasn't copied. > > Presumably because that kthread is using the active_mm of some random > user space process that didn't get sync'ed. > > And the sync_global_pgds() may have ended up being sufficient > synchronization with whoever allocated thigns, even if it wasn't about > the TLB contents themselves. > > So apparently the "the page-table pages are all pre-allocated now" is > simply not true. Joerg? > > Unless somebody can figure this out fairly quickly, I think it should > just be reverted. Agreed. Joerg? Thanks, Ingo