Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp611593rwo; Fri, 21 Jul 2023 18:25:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlFtz9jiRTerNunpVn7XF+6p7i21Ilz5CIWM6SwJQZDP5MoklF4a1yPuq12clCmNJHpY6Pm8 X-Received: by 2002:a17:902:ce8d:b0:1b8:656f:76e7 with SMTP id f13-20020a170902ce8d00b001b8656f76e7mr5662976plg.23.1689989104500; Fri, 21 Jul 2023 18:25:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689989104; cv=none; d=google.com; s=arc-20160816; b=V9roWAJAk75Ja9qyMt72ikBaG8kbdmQv1A1f+BZLfeChnvH0+IZv1/OMq2WgB8a+zs 1DflYw+8G/9rSyv8Ut5MKC9+sUS5m6uF61UFOUm5vXGKTy+IqW4A0iGy8JkHLYfqzlaA FaMN1JAf6PjRQ7QRsVf4yNVNKqzbUWlpWG3el/798Ojo3yNNgojsGQxGLaaeW6WPpV/W t4ZZk7la6ngJzsHPMZdoMmKB2YVkvXE9VJ38V9FpCz5SLvtvanuaMmkh0o5/IYgcg5iR 4W5KN0iZVQlC6PBlRlOcWk/eBFtGGLwB+B+Q41kMSLiKEBEkxw1+xpUDkooiK9Y2A1uo QFFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=pALprJhXElzoh76FR8UIHrT7SbKjYqSGAK02d0hK14o=; fh=iKtT8PpSxD+NvXZjFZBytzxeM6NqgEir6KKSmLWCvp4=; b=thUX5S3BarylnBA9qs1TWxcQsEMmBi543cUOr/swTmd1gHc4Fv1ydDt/Psuy3dS6lC ftRnoslydwmmBtp5UkLDLEMUEj5Ec2ntlKiiV2syq3dBPBx29C0W6Lbv4tcBLoKDx+yW cxMJ2Bxe28LHDgwIhHNCWVdAx/x1bXGPocZbanAVN+G6eY2USLSIJAtnYS59zKMEyKNE 4wWOaed2EAedSrDpnGoXZMBqgKJjAuikv1E4WsGL1x832UFXilsUtPLV4A21tlqVmZ89 aQKeilFAm9xuslm23DNB1VRDIAUtbSSSg678vClAvpMQEoX+f2BCR8VYXgR3IS9bVUWW vGmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=c6Qwv1Bm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020a170903230100b001bb0fb5e06csi4581144plh.483.2023.07.21.18.24.52; Fri, 21 Jul 2023 18:25:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=c6Qwv1Bm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230411AbjGVAxU (ORCPT + 99 others); Fri, 21 Jul 2023 20:53:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbjGVAxT (ORCPT ); Fri, 21 Jul 2023 20:53:19 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35E352706; Fri, 21 Jul 2023 17:53:18 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-5440e98616cso2488704a12.0; Fri, 21 Jul 2023 17:53:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689987197; x=1690591997; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pALprJhXElzoh76FR8UIHrT7SbKjYqSGAK02d0hK14o=; b=c6Qwv1BmEQNhntl4oubPvmb5xv5qN1jGfOQe22fIbvmvF2TEY0bKNp6ufyglmlHvML oTp9ThgQfeGzlCF6C3PVEEr5M5sET68xtAUeoEIKZtOLNGhlhP/y//u/mXA4G3aBnjWr Xni/Z1xBQrFBrpwPRz2kvHIJIOpW81/Fat/arJoRGhDNNrMYCvbesao/l5KuO8CsZ1rU JbSeeeALoLah3mRoh+KDfviarpjoMYCGvEvYXFPG727R1ho2GQYFgHbxaU+z0KbgKYBf w8rTh/GzM75M7YF+OCVJ4/RGr9TcsO6VqFLZ3DbTGAe51888SaeecVXC7lZraeuerCiR 3cTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689987197; x=1690591997; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pALprJhXElzoh76FR8UIHrT7SbKjYqSGAK02d0hK14o=; b=XeN4yY5aJtJf4Ay3FcTwUAClnLA3kjo/OxsLEaZMMGs4rq9t07ZXlidIEJ6ehxTEq2 8hTv9tF9FdA2YoveSVNrlcb142rIWPaPinKVI8W4oXXXNohubImDY0Vb9nGfEqcb5WE1 Gr6pJ1cy3XKj5DeDKkHrLBulngjvSUFTe3FOnvPjH+gH5vhfEGNC0dnBMUX/FNAgwBV0 EStWxHDIrct5SD+dZW7zhhUH1I6UopAmN1V32F95doAyBOSIwrZLgMwVM0aCJ8OPi1LE kxAaSYt5JV6liaJgJb6Uw+xFHEOWvzH4MGVOwq6GlsJxC/QjAPJakaA9pDFW4zogZGyJ iqLg== X-Gm-Message-State: ABy/qLYT+HFCSrxlAm60HptaJ3NxcN2wq1d7IY51nyPAnrmR5bRI96Zz ssFANCQF8e3bT6RyYn8Mkd8nXiuVibv1/zm2fvi5VHSqgyg= X-Received: by 2002:a17:90a:6082:b0:261:326d:99e8 with SMTP id z2-20020a17090a608200b00261326d99e8mr5663890pji.2.1689987197457; Fri, 21 Jul 2023 17:53:17 -0700 (PDT) MIME-Version: 1.0 References: <60f88589-5f9f-4221-82f9-5c9c11fb5d95@paulmck-laptop> <23b091fc-cc2e-4ace-b860-a0ddf662d1ae@paulmck-laptop> In-Reply-To: From: Zhouyi Zhou Date: Sat, 22 Jul 2023 08:53:06 +0800 Message-ID: Subject: Re: [BUG] unable to handle page fault for address To: paulmck@kernel.org Cc: linux-kernel@vger.kernel.org, rostedt@goodmis.org, akaher@vmware.com, shuah@kernel.org, rcu@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 22, 2023 at 3:28=E2=80=AFAM Paul E. McKenney wrote: > > On Fri, Jul 21, 2023 at 09:41:49AM +0800, Zhouyi Zhou wrote: > > On Thu, Jul 20, 2023 at 4:07=E2=80=AFAM Paul E. McKenney wrote: > > > > > > On Thu, Jul 20, 2023 at 03:03:53AM +0800, Zhouyi Zhou wrote: > > > > On Thu, Jul 20, 2023 at 1:40=E2=80=AFAM Paul E. McKenney wrote: > > > > > > > > > > Hello! > > > > > > > > > > Just FYI for the moment, I hit a BUG in 10-hour overnight qemu/KV= M-based > > > > > rcutorture testing of the TASKS01, TASKS03, TREE03, and TREE07 rc= utorture > > > > > on the mainline commit: > > > > > > > > > > ccff6d117d8d ("Merge tag 'perf-tools-fixes-for-v6.5-1-2023-07-18'= of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools") > > > > > > > > > > This commit was merged with the -rcu "dev" branch, which just yes= terday > > > > > passes overnight tests when based on v6.5-rc1. A web search got = me the > > > > > following, which is not a very close match, but the best that the= re is: > > > > > > > > > > https://www.spinics.net/lists/bpf/msg91848.html > > > > > > > > > > Here is a representative splat out of 29 of them: > > > > > > > > > > [22544.494701] BUG: unable to handle page fault for address: ffff= fe0000af0038 > > > > > [22544.496012] #PF: supervisor read access in user mode > > > > > [22544.496985] #PF: error_code(0x0000) - not-present page > > > > > [22544.497970] IDT: 0xfffffe0000000000 (limit=3D0xfff) GDT: 0xfff= ffe355b3fd000 (limit=3D0x7f) > > > > > [22544.499479] LDTR: NULL > > > > > [22544.499959] TR: 0x40 -- base=3D0xfffffe355b3ff000 limit=3D0x40= 87 > > > > > [22544.501073] PGD 1ffd2067 P4D 1ffd2067 PUD 1124067 PMD 0 > > > > > [22544.502149] Oops: 0000 [#1] PREEMPT SMP PTI > > > > > [22544.502967] CPU: 0 PID: 1 Comm: init Not tainted 6.5.0-rc2-001= 28-g68052f2f9e35 #5844 > > > > > [22544.504435] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009)= , BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014 > > > > > [22544.506581] RIP: 0033:0x400181 > > > > > [22544.507256] Code: 00 45 31 d2 4c 8d 44 24 f0 48 c7 44 24 f8 00= 00 00 00 0f 05 b8 60 00 00 00 48 8d 7c 24 e0 0f 05 41 89 c0 85 c0 75 c6 44= 89 c0 <89> c2 0f af d0 ff c0 48 63 d2 48 89 15 06 01 20 00 3d a0 86 01 00 > > > > > [22544.510954] RSP: 002b:00007ffde5192288 EFLAGS: 00010283 > > > > > [22544.511963] RAX: 000000000000ebe9 RBX: 0000000000000000 RCX: 0= 0000000004001a7 > > > > > [22544.513386] RDX: ffffffffd963c240 RSI: 0000000000000000 RDI: 0= 0007ffde5192258 > > > > > [22544.514751] RBP: 0000000000000000 R08: 0000000000000000 R09: 0= 000000000000000 > > > > > [22544.516079] R10: 0000000000000000 R11: 0000000000000246 R12: 0= 000000000000000 > > > > > [22544.517452] R13: 0000000000000000 R14: 0000000000000000 R15: 0= 000000000000000 > > > > > [22544.518818] FS: 0000000000000000 GS: 0000000000000000 > > > > > [22544.519864] Modules linked in: > > > > > [22544.520653] CR2: fffffe0000af0038 > > > > > [22544.521401] ---[ end trace 0000000000000000 ]--- > > > > > [22544.522297] RIP: 0033:0x400181 > > > > > [22544.522887] RSP: 002b:00007ffde5192288 EFLAGS: 00010283 > > > > > [22544.523887] RAX: 000000000000ebe9 RBX: 0000000000000000 RCX: 0= 0000000004001a7 > > > > > [22544.525257] RDX: ffffffffd963c240 RSI: 0000000000000000 RDI: 0= 0007ffde5192258 > > > > > [22544.526623] RBP: 0000000000000000 R08: 0000000000000000 R09: 0= 000000000000000 > > > > > [22544.528016] R10: 0000000000000000 R11: 0000000000000246 R12: 0= 000000000000000 > > > > > [22544.529439] R13: 0000000000000000 R14: 0000000000000000 R15: 0= 000000000000000 > > > > > [22544.530909] FS: 0000000000000000(0000) GS:ffff8d101f400000(00= 00) knlGS:0000000000000000 > > > > > [22544.532564] CS: 0033 DS: 0000 ES: 0000 CR0: 0000000080050033 > > > > > [22544.533760] CR2: fffffe0000af0038 CR3: 0000000002d8e000 CR4: 0= 0000000000006f0 > > > > > [22544.535286] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0= 000000000000000 > > > > > [22544.536738] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0= 000000000000400 > > > > > [22544.538228] note: init[1] exited with irqs disabled > > > > > [22544.540087] Kernel panic - not syncing: Attempted to kill init= ! exitcode=3D0x00000009 > > > > > [22544.544806] Kernel Offset: 0x9600000 from 0xffffffff81000000 (= relocation range: 0xffffffff80000000-0xffffffffbfffffff) > > > > > > > > > > The failure rates for each scenario are as follows: > > > > > > > > > > TASKS01: 13 of 15 > > > > > TASKS03: 7 of 15 > > > > > TREE03: 4 of 15 > > > > > TREE07: 5 of 15 > > > > > > > > > > In other words, for TASKS01, there were 15 10-hour runs, and 13 o= f them > > > > > hit this bug. > > > > > > > > > > Except that these failures were corellated: > > > > > > > > > > o TASKS01 and TASKS03 failures are in batch 17 running on > > > > > kerneltest053.05.atn6. > > > > > > > > > > o TREE03 and one of the TREE07 failures are in batch 4 runn= ing > > > > > on kerneltest025.05.atn6. > > > > > > > > > > o Five of the TREE07 failures are in batch 6 running on > > > > > kerneltest010.05.atn6. > > > > > > > > > > All of the failures in a given batch happened at about the same t= ime, > > > > > suggesting a reaction to some stimulus from the host system. The= re > > > > > was no console output from any of these host systems during the t= est, > > > > > other than the usual complaint about qemu having an executable st= ack. > > > > > > > > > > Now, perhaps this is hardware or configuration failure on those t= hree > > > > > systems. But I have been using them for quite some time, and so = why > > > > > would three fail at the same time? > > > > > > > > > > Bisection will not be easy given that there were only three actua= l > > > > > failures in ten hours over 20 batches. If this is in fact a rand= om > > > > > kernel failure, there would be almost a 4% chance of a false posi= tive > > > > > on each bisection step, which gives about a 50% chance of bisecti= ng to > > > > > the wrong place if the usual 16 steps are required. > > > > Hi Paul > > > > I am also very interested in tracing this bug. > > > > I have invoked ./tools/testing/selftests/rcutorture/bin/torture.sh = on > > > > my 16 core Intel(R) Xeon(R) CPU E5-2660 server a moment ago to see > > > > what happens > > > > > > Looking forward to hearing what you find! > > I performed two rounds of ccff6d117d8d ("Merge tag > > 'perf-tools-fixes-for-v6.5-1-2023-07-18' of > > git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools") on 16 > > core Intel(R) Xeon(R) CPU E5-2660 server (8:3 hours and 7:24 hours > > respectively) > > The test results show: > > Summary: Successes: 55 Failures: 0 > > > > and > > > > I performed two rounds of bfa3037d8280 (Merge tag 'fuse-update-6.5' of > > git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse) on 8 core > > Intel(R) Core(TM) i7-11800H laptop (7:04 and 7:10 respectively) > > The test results show: > > Summary: Successes: 55 Failures: 0 > > > > I can't reproduce the bug ;-(, could you tell me what I could do next? > > Turns out that this is due to the underlying qemu/KVM, so apologies for > the noise! Happy we found the cause ;-) you are very welcome Thanx, Zhouyi > > Thanx, Paul > > > Thanks Zhouyi > > > > > > Thanx, Paul > > > > > > > Thanx, Zhouyi > > > > > > > > > > I will give this another try this evening, Pacific Time. In the > > > > > meantime, FYI. > > > > > > > > > > Thanx, Paul