Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3409924rwd; Fri, 16 Jun 2023 17:36:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6OXC44SV/MlIOqucJ33USwKYLroMIaXArghe+FbzjRNj9tUqZv5GBpOgFxdpGWJ1PLk/g/ X-Received: by 2002:a0d:e657:0:b0:561:9082:8039 with SMTP id p84-20020a0de657000000b0056190828039mr4013440ywe.38.1686962178664; Fri, 16 Jun 2023 17:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686962178; cv=none; d=google.com; s=arc-20160816; b=lstxtfiRIq+ddqPqSjbmAzxbe0tqOfGUg9HcQr5nOwbsFqNJV+8LimLfRM5qeXiwrH C6nE4EgXKyn3FbiYZAEFkpkxgBdGXK3eu6d5dgCn1vOaYcEvIsTD6X8SbMhWOKnAzR0s pXYocBxgFrwpmcyQbCCmhRfNM1rdrnbjSgjyeveIO7o4z2rxrJk7A++vkYVwmPOC18rW pLVTXJbr2WiJaPxv9jM/H8AN06ySMsenpuS15SEXGmZhMHGdV0KXe82ehq2FSxZgVoMT irGrLY+AQSDDSDLGBjbTIdrFOUm9tpp4cdHg0i/pEl/2d/kY+p8qK5Nz6xQDNGUmzv+e EZXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=6Tyi5NvBCdObx5n/3Re/Q/kvImIofGDhcRiJ1XSSKt8=; b=DVlTAWXe3XZY9zmAz6PsqA8Px4CDttYotn4VTrHeUDzWZwZ9MR+20p6Yq62LfjEm5G yHoEkazlz4sIpDZuQQ73AkvtOnqfYK+0PSvxTjWv82jxTZOU48vLy00Me/x072FhxXN/ 1yw8rIkIYLZsqnumWIeKG8rfFVCG2PPW8CccfUMynMLt+CqxbKKmWeXWUc1eU8aRu92/ jhBxRKnZT+yVHCCJ8jBPxIjhJed3zzymjL7DeToZ/t3Vy4nlomtBkkps18QLYagZnJTw idEOp7sty6ixrHsny0nn3mpIqS5IyXrCz+R7NYzVLBbm+65AWrp+VyzKIuluMn5q6s0x 9nJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=LBVfQ6qB; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t11-20020a170902e84b00b001aae0c3fa03si17131664plg.473.2023.06.16.17.36.06; Fri, 16 Jun 2023 17:36:18 -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=@google.com header.s=20221208 header.b=LBVfQ6qB; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233413AbjFPX7l (ORCPT + 99 others); Fri, 16 Jun 2023 19:59:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232460AbjFPX7k (ORCPT ); Fri, 16 Jun 2023 19:59:40 -0400 Received: from mail-pf1-x44a.google.com (mail-pf1-x44a.google.com [IPv6:2607:f8b0:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71A8B30EF for ; Fri, 16 Jun 2023 16:59:38 -0700 (PDT) Received: by mail-pf1-x44a.google.com with SMTP id d2e1a72fcca58-65a971d7337so868929b3a.1 for ; Fri, 16 Jun 2023 16:59:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686959978; x=1689551978; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=6Tyi5NvBCdObx5n/3Re/Q/kvImIofGDhcRiJ1XSSKt8=; b=LBVfQ6qB8MRyGOFDthEwgb+mDi3yl+ygzebAfT0EvpCoMtwjIqMa9CpxIvATalnAaA TujQEdOfd7SUtpBm/VzaUSFtKVnyncjVURiBgIA78muqQ4PO12wzLbCTgo20DqKIBJyZ e8KU5aB1Jm6J+EylrZ6bk3mnqIQFoqUE1cD/bBlYFtPyia2BO4B/uNP/RHThlNgGLVlw hncimEFbCfQGkgQgd0y7S4ujRQ6lvso4gDdqwuCYwqzyr1dAHraqpbZFNM8j+4Sragv/ XxHCeIJzD9lH0chNoFcTWPwUNR0+spAhgNeit1x+JyhJEKG/ltywOjZyK7yd96T0NIDW AciA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686959978; x=1689551978; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6Tyi5NvBCdObx5n/3Re/Q/kvImIofGDhcRiJ1XSSKt8=; b=fYYUvTbZw1VvE9LenEkRG1j3WQY7doYOwdvOVzneyJJCR/nGrD2hei11Q+P56Bom6o +p5xsHO7BPRco8LM4rqZftyH7TUp4C4PDo1YBJmy77ykct7vfjDlIXHzRQ+Cstyvwl9/ fZK1QZYpb+RfSv4fm/Y7pysxqaC5i/h7bjmJTzq2nDyC49TP1UP+IrfG95UCDi+TDV0f f4mGwRzfd4JRP2S4Fi1KGgl5du4746/VvGm943W/f5wWGmsejwiMUcgLkEaRbL1sqsni ZUXwOhp8HewcoTCR6VrcWl3BdlA723b9KMnMOfs4T+oSngqOAwgX8ZYc5CPfp/LBNIuh 2E5g== X-Gm-Message-State: AC+VfDweftJuDBvmNwfuO0aoifWqO+guQ5UfGd4MPtioee3c+2WmusJe rEb2X7v9zQvn94MzGFJ8whLWdKWxLtw= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6a00:13a8:b0:64f:5406:d5a2 with SMTP id t40-20020a056a0013a800b0064f5406d5a2mr914557pfg.0.1686959977963; Fri, 16 Jun 2023 16:59:37 -0700 (PDT) Date: Fri, 16 Jun 2023 16:59:36 -0700 In-Reply-To: Mime-Version: 1.0 References: Message-ID: Subject: Re: KVM page-fault on Kernel 6.3.8 From: Sean Christopherson To: Hamza Mahfooz Cc: kvm@vger.kernel.org, regressions@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable 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 Fri, Jun 16, 2023, Hamza Mahfooz wrote: > I am seeing the following page-fault on the latest stable kernel: What makes you think this is KVM related? I don't see anything KVM related in the splat. The !PRESENT #PF is coming from aio_read(), not from KVM. The ?kvm_arch_vcpu_put line is just mispeculation from the unwinder. > BUG: unable to handle page fault for address: ffffb4ff0cd20034 > #PF: supervisor read access in kernel mode > #PF: error_code(0x0000) - not-present page > PGD 10002a067 P4D 10002a067 PUD 0 > Oops: 0000 [#1] PREEMPT SMP NOPTI > CPU: 7 PID: 2675 Comm: CPU 7/KVM Not tainted 6.3.8-arch1-1 #1 > a1d299e746aebdb27c523dd3bd94aba6f54915c7 > Hardware name: ASUS System Product Name/ProArt X670E-CREATOR WIFI, BIOS 1303 > 04/27/2023 > RIP: 0010:try_grab_folio+0x14f/0x370 > Code: 83 f8 04 75 6f 44 89 ee 4c 89 e7 e8 6b bc 0b 00 84 c0 74 60 4c 8b 63 > 08 41 f6 c4 01 0f 85 b0 01 00 00 0f 1f 44 00 00 49 89 dc <41> 8b 44 24 34 85 > c0 0f 88 f8 00 00 00 41 8b 44 24 34 85 c0 74 58 > RSP: 0018:ffff9fa98504b948 EFLAGS: 00010086 > RAX: 0000000000000002 RBX: fffff4ff0cd21480 RCX: 0000000000000000 > RDX: 0000000000000003 RSI: 0000000000000001 RDI: fffff4ff0cd21480 > RBP: 0000000000000000 R08: ffff8b2edb510980 R09: 00007f5624253000 > R10: 80000003348008e7 R11: 00007f5624253000 R12: ffffb4ff0cd20000 > R13: 0000000000000001 R14: 0000000000000003 R15: 0000000000000001 > FS: 00007f548a7fc6c0(0000) GS:ffff8b35f83c0000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: ffffb4ff0cd20034 CR3: 0000000113e70000 CR4: 0000000000750ee0 > PKRU: 55555554 > Call Trace: > > ? __die+0x23/0x70 > ? page_fault_oops+0x171/0x4e0 > ? exc_page_fault+0x172/0x180 > ? asm_exc_page_fault+0x26/0x30 > ? try_grab_folio+0x14f/0x370 > internal_get_user_pages_fast+0x883/0x1150 > __iov_iter_get_pages_alloc+0xdd/0x780 > ? kmem_cache_alloc+0x16f/0x330 > ? bio_associate_blkg_from_css+0xcd/0x340 > iov_iter_get_pages+0x1d/0x40 > bio_iov_iter_get_pages+0xa1/0x480 > __blkdev_direct_IO_async+0xc5/0x1b0 > blkdev_read_iter+0x127/0x1d0 > aio_read+0x132/0x210 > ? io_submit_one+0x46a/0x8b0 > io_submit_one+0x46a/0x8b0 > ? kvm_arch_vcpu_put+0x128/0x190 [kvm > 711ceda1c40511ce22d1f99f4e9e574def76b25e] > ? kvm_arch_vcpu_ioctl_run+0x579/0x1770 [kvm > 711ceda1c40511ce22d1f99f4e9e574def76b25e] > __x64_sys_io_submit+0xad/0x190 > do_syscall_64+0x5d/0x90 > ? __x64_sys_ioctl+0xac/0xd0 > ? syscall_exit_to_user_mode+0x1b/0x40 > ? do_syscall_64+0x6c/0x90 > ? syscall_exit_to_user_mode+0x1b/0x40 > ? do_syscall_64+0x6c/0x90 > ? syscall_exit_to_user_mode+0x1b/0x40 > ? do_syscall_64+0x6c/0x90 > ? syscall_exit_to_user_mode+0x1b/0x40 > ? do_syscall_64+0x6c/0x90 > ? do_syscall_64+0x6c/0x90 > entry_SYSCALL_64_after_hwframe+0x72/0xdc > RIP: 0033:0x7f57ac0912ed > Code: 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 > 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff > 73 01 c3 48 8b 0d 3b 7a 0d 00 f7 d8 64 89 01 48 > RSP: 002b:00007f5427ab97b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 > RAX: ffffffffffffffda RBX: 00007f548a7fc1d0 RCX: 00007f57ac0912ed > RDX: 00007f5427ab9800 RSI: 0000000000000001 RDI: 00007f57a9d24000 > RBP: 00007f57a9d24000 R08: 0000000000000001 R09: 0000000000000001 > R10: 00007f54740044f0 R11: 0000000000000246 R12: 0000000000000001 > R13: 0000000000000004 R14: 00007f5427ab9800 R15: 000000000000000e