Received: by 10.192.165.156 with SMTP id m28csp292220imm; Tue, 17 Apr 2018 10:11:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/tmDMqVE9kJIwejsU/o55kiMuqD+su15qZJwSSxPRwat8mz+zj8OMVeBTOAZvBhaWATM+d X-Received: by 10.101.76.207 with SMTP id n15mr2478352pgt.313.1523985089091; Tue, 17 Apr 2018 10:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523985089; cv=none; d=google.com; s=arc-20160816; b=W52bXVM6rnUPgtY+vtXP37KgY3HEV2dH5JdtzOwDlTiuu/6OY3zKm11DRPK4Irk2th IBDGKut66Gpv9Vh1OwVa6XHW+Fn3ToU1qQi0MnGlWvnFizUqa/a+ykvTtYy0LB/0aAbU +yIvVN2XjUWxNjBAN7TgvCMF0It1UmE7jh9yKdV9UODB2r2VroaC6hqc67m6BfctgS06 +fi0eN7A9cm25j7eZM0Hna+qvPxO0jzGrx4puF9bxW3/e8ikKXSpXHqvEzSpP7gH74tB BFCNprAUAg1E6qXpIQ8mf1fOVhs6b4Ba6c3vHoGQNPkHBiDLr1GL1+10RomwXde1FL3k KGbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ERTu1cnsEN1/WWiPmTbrN6DzbgZzQYo+rU8CcbeBMkw=; b=f1OmveZxhLiXJt1utHJvZvQE2cXKqCpf9Rtw2EBctkH1uACuAuW8PV3RSIHrEyC3eE fmIgakhQr1+JTfV0hcSCYcLgcndAOrk+jn/f+jvpcSBWxs94igdpSjhQOjnBtrRqHPG0 +bduwz5/BA0BeiFUBLZiJJQXRTKt+wzisudEU0lrNeWectIl6iCu0xohu6hqxK4dZaz7 eLNIs7JjmhNXr1dsYzJA9SfZy1LLgXWybay9CJfSOBfadcNEvnA+xGwJ3rPd89SJKInh GBVs2LqbOAx9xPgC645F69DVUaarpLLAJFdbYIFl7r9fsKonriEFP7hVojB/q3Oz+b5+ pyZw== ARC-Authentication-Results: i=1; mx.google.com; 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 h4si10027394pgq.363.2018.04.17.10.11.14; Tue, 17 Apr 2018 10:11:29 -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; 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 S1753566AbeDQRJo (ORCPT + 99 others); Tue, 17 Apr 2018 13:09:44 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60130 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753041AbeDQQAe (ORCPT ); Tue, 17 Apr 2018 12:00:34 -0400 Received: from localhost (unknown [46.44.180.42]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id F0F2FD6A; Tue, 17 Apr 2018 16:00:33 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicholas Piggin , Michael Ellerman Subject: [PATCH 4.16 21/68] KVM: PPC: Book3S HV: trace_tlbie must not be called in realmode Date: Tue, 17 Apr 2018 17:57:34 +0200 Message-Id: <20180417155750.207845446@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180417155749.341779147@linuxfoundation.org> References: <20180417155749.341779147@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nicholas Piggin commit 19ce7909ed11c49f7eddf59e7f49cd3062bf83d5 upstream. This crashes with a "Bad real address for load" attempting to load from the vmalloc region in realmode (faulting address is in DAR). Oops: Bad interrupt in KVM entry/exit code, sig: 6 [#1] LE SMP NR_CPUS=2048 NUMA PowerNV CPU: 53 PID: 6582 Comm: qemu-system-ppc Not tainted 4.16.0-01530-g43d1859f0994 NIP: c0000000000155ac LR: c0000000000c2430 CTR: c000000000015580 REGS: c000000fff76dd80 TRAP: 0200 Not tainted (4.16.0-01530-g43d1859f0994) MSR: 9000000000201003 CR: 48082222 XER: 00000000 CFAR: 0000000102900ef0 DAR: d00017fffd941a28 DSISR: 00000040 SOFTE: 3 NIP [c0000000000155ac] perf_trace_tlbie+0x2c/0x1a0 LR [c0000000000c2430] do_tlbies+0x230/0x2f0 I suspect the reason is the per-cpu data is not in the linear chunk. This could be restored if that was able to be fixed, but for now, just remove the tracepoints. Fixes: 0428491cba92 ("powerpc/mm: Trace tlbie(l) instructions") Cc: stable@vger.kernel.org # v4.13+ Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/kvm/book3s_hv_rm_mmu.c | 4 ---- 1 file changed, 4 deletions(-) --- a/arch/powerpc/kvm/book3s_hv_rm_mmu.c +++ b/arch/powerpc/kvm/book3s_hv_rm_mmu.c @@ -470,8 +470,6 @@ static void do_tlbies(struct kvm *kvm, u for (i = 0; i < npages; ++i) { asm volatile(PPC_TLBIE_5(%0,%1,0,0,0) : : "r" (rbvalues[i]), "r" (kvm->arch.lpid)); - trace_tlbie(kvm->arch.lpid, 0, rbvalues[i], - kvm->arch.lpid, 0, 0, 0); } if (cpu_has_feature(CPU_FTR_P9_TLBIE_BUG)) { @@ -492,8 +490,6 @@ static void do_tlbies(struct kvm *kvm, u for (i = 0; i < npages; ++i) { asm volatile(PPC_TLBIEL(%0,%1,0,0,0) : : "r" (rbvalues[i]), "r" (0)); - trace_tlbie(kvm->arch.lpid, 1, rbvalues[i], - 0, 0, 0, 0); } asm volatile("ptesync" : : : "memory"); }