Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1662337pxa; Thu, 6 Aug 2020 12:46:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWlegh0Lg73IkC9zaRj8tS+ItdI4j6a90sqapIKTj+lpGvarepifKW1yNGu1qHA4VPCY0S X-Received: by 2002:a17:906:98c1:: with SMTP id zd1mr6249825ejb.410.1596743204692; Thu, 06 Aug 2020 12:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596743204; cv=none; d=google.com; s=arc-20160816; b=vT2O59DL8k9bqO2RtYxHjKi0485b/Q4LAIWHkV4iXzXgY2/OvQtCNgaPZtpCM47dMN M193cwvr8IjkV96y5Yqjjde8yWRSBCum7zMckEZoTuTKh2Fn2N2bXyD3jE3fnqGi1VqP VSJHOygmh92eD4UVn2vJDhlYvJIQSBPPlRhJlSzNWiG/vzuexkK5ylTxG00xH3drccUb BD58PE0PQ8+mOHzVf2VFTt71oNwuEQhTCk/wBP0aPLCtxtdmUQf6Nufmf3jnq84drBJt Am1KaM2ykzk8PiIZ2tUowHoCvUQFHhNDoC7uvDCYObNmfuRVlCvvOZGX2l7FJ7Qnk2TE sR5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Wi2K2VmaVuEJKxsBXVACPYhOGfV5lKrS6VT4VRRVAIo=; b=mXoZj1j+CXSk/JN1Kq842hkKpiH5q/FNts7Frt36eIcTKxbY2lipi0Sa2vaFNM1YQi ZdtuFyVKjNJBmBV+epsvR4a52le1PbnSKXS1Hg0CD0ddHov+k8sHgQvW4BonxvQDuwkR LgAT8DcU4+NW7vMzOnfS54rj8L242mFOvv8t6gIdbnZ3s08ErWgF07IeGkomGlqBOFSL JXM1F4lTGN0UaoPLKDjK+Ej3lOz+hmCm6MNGN5Ij4G1eCUcoZaxtGExWV9NptSp/sXT5 orKfxvGJjhbpnnlyda8CbXCvzIHynevqXeknWW612m/wZQOx/pLMXGk0kulgzjaO5wvO M1kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=exH7ebZZ; 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 rl4si4013022ejb.648.2020.08.06.12.46.21; Thu, 06 Aug 2020 12:46:44 -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=pass header.i=@linux-foundation.org header.s=google header.b=exH7ebZZ; 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 S1726240AbgHFTmp (ORCPT + 99 others); Thu, 6 Aug 2020 15:42:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726159AbgHFTmo (ORCPT ); Thu, 6 Aug 2020 15:42:44 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70F89C061574 for ; Thu, 6 Aug 2020 12:42:44 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id t23so29596910ljc.3 for ; Thu, 06 Aug 2020 12:42:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Wi2K2VmaVuEJKxsBXVACPYhOGfV5lKrS6VT4VRRVAIo=; b=exH7ebZZk4zntQVf6meSMlTasyfrVTkGylP6ZE4LetPGKZ30Ovl1QOrsJ4uecNkwtw Vcdhrjd1Qt6gKwzBhkRuC/t2IG9ggSueSH7AjIlXOh1neF32gp6DTZujMEIt/hyemf9Z vZnQgx3DKyBnRgFTNp3ZdzeNiTJFObhN22mlE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Wi2K2VmaVuEJKxsBXVACPYhOGfV5lKrS6VT4VRRVAIo=; b=FMNgJz6TZIEG+Av4/2ySrlk7H9VAVcK8tZzWE2VG9TwyOw4UAA42qifZBHe8VTGGjw 5PWVVVDX8r6EGv/BlAfsKB2a5dB76zRPBlHCPrx0p+gx1mLRLQfUIbL+RXI9nGzbfRzE lxzyERjU91paEzMRxf7FvQU9JgLCj1z4UBWBEyvqDk0rPKtF/Ka1NbzkPe5sV+PK3i2n O2vUNaHL3PkE81Qe3PrLb+IsAnrdGdyPkf/t7doRfXOAMaaSbo0NsR2lznnl9l71NlgB nd3AdnNfeJYsgUoFwVMKBpSYZiCCvH1R90FAdImLF/9w3BGQp8sdaHYR5SaWOD6rJsqT PsPg== X-Gm-Message-State: AOAM533rdKiZ7PXxoqwR08f9zRDuE73kHUctFksk8ACWn2C1OUyrZEFz lrIjlDurRmtkbUyd31xwq5DBe4mU3Sc= X-Received: by 2002:a2e:a49c:: with SMTP id h28mr4610233lji.234.1596742961626; Thu, 06 Aug 2020 12:42:41 -0700 (PDT) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com. [209.85.208.182]) by smtp.gmail.com with ESMTPSA id x4sm2820856ljd.34.2020.08.06.12.42.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Aug 2020 12:42:40 -0700 (PDT) Received: by mail-lj1-f182.google.com with SMTP id i10so18348608ljn.2 for ; Thu, 06 Aug 2020 12:42:39 -0700 (PDT) X-Received: by 2002:a2e:b008:: with SMTP id y8mr4003694ljk.421.1596742959144; Thu, 06 Aug 2020 12:42:39 -0700 (PDT) MIME-Version: 1.0 References: <20200803190354.GA1293087@gmail.com> <20200805110348.GA108872@zx2c4.com> <20200806131034.GA2067370@gmail.com> <20200806185723.GA24304@suse.de> <20200806192333.GB24304@suse.de> In-Reply-To: <20200806192333.GB24304@suse.de> From: Linus Torvalds Date: Thu, 6 Aug 2020 12:42:23 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] x86/mm changes for v5.9 To: Joerg Roedel Cc: Ingo Molnar , "Jason A. Donenfeld" , Linux Kernel Mailing List , Thomas Gleixner , Borislav Petkov , Peter Zijlstra , Andrew Morton , Tejun Heo Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 6, 2020 at 12:23 PM Joerg Roedel wrote: > > Yes, that's the best for now. My gut feeling is that the fault Jason is > seeing didn't happen on a vmalloc address, but I can't prove that yet. No, it's definitely fairly high in the vmalloc space. Look at the faulting address: BUG: unable to handle page fault for address: ffffe8ffffd00608 and the code sequence is this: > 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 that admittedly odd sequence is get_work_pwq(work) And then the faulting instruction is: > 2a:* 49 8b 46 08 mov 0x8(%r14),%rax <-- trapping instruction and this is the "->wq" dereference. So it's the pwq->wq that traps, with 'pwq' being the trapping base pointer, and clearly being in the vmalloc space. I think pwq may a percpu allocation, so not _directly_ vmalloc(). Adding Tejun to the cc in case he can clarify ("No, silly Linus, it's allocated here.."). Linus