Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3487748pxp; Mon, 14 Mar 2022 22:13:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/XHOlrK51OkzNuJBXJcRZklropwJOVpdcZCzRoVwUOeF2hYG/oE67so3ZQMxI4eBsFPmc X-Received: by 2002:a05:6402:484:b0:415:d931:cb2f with SMTP id k4-20020a056402048400b00415d931cb2fmr23527697edv.287.1647321232151; Mon, 14 Mar 2022 22:13:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647321232; cv=none; d=google.com; s=arc-20160816; b=zYtt9whRCeLdPt3Z5b7HZDQF7bbCCXuXLCUWTzvpaBxMWjl9ZIHjyGZVtrsMfIcJIS 5Xd1H/G1VEyZOj6w8jt5lif5see29cf9LwB+QsoyEM2AVi3He6omgCzM4lDoEqrTqMCb 5/IV1KMtajxQxkUpHmHixmmSqmAEkh+nsSXKqfI40n8QOFYex+eJOadNXWoj7GHxOlEz uYLz/0W8CV1w1QnI030ZtMwqy3de7KBGZQqHf+/v/pcrpO58/FkEBOFVEUYYSFWKRThu v/wrqHO2efcZZfdsuUNSYBb0JgeWD6XgaV1bqLaBZ+Ie9v1FuEQM8j1ohfRrPv+fj4X4 F2Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=0hwovVYgP3mGujUVRa+0EXWnvlkG8+Qr5fRIelkpXxM=; b=hIyKD33l8+l2LZrGwEy9Kz9bVxa58P4G2KNQL17BLOBnDjn0sRkwGKV8UbZFOt/pBN 2YF60UG9snBSAIY3DhmcTe1S0ga8rTqxbHgVNEGmZ6hvsiT2gWAbwwV43lnjzSm0URmI DBFxk4b16tIarBnyST1DzcFgI4tWHoicRtVL3bqmTA05rv29+PzuJd1aTkqwkTP0NJ3X ihKztoVBjruJ/X2+vaKGrBj3TYWI6fK39ULI8PuyR6b9Gkn+HKybysGD/RBPSF335Y5s M2ZjkB969w8xngJMUX5maHwzTqMVeFDEFiki3QrgNOllcOK95TTsPcEh/yHAlJC4ebGs /ycg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p6rh3aKX; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x22-20020aa7cd96000000b00418b30a59a2si310825edv.378.2022.03.14.22.13.27; Mon, 14 Mar 2022 22:13:52 -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=@linaro.org header.s=google header.b=p6rh3aKX; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235071AbiCNMwl (ORCPT + 99 others); Mon, 14 Mar 2022 08:52:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233475AbiCNMwj (ORCPT ); Mon, 14 Mar 2022 08:52:39 -0400 Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EFD25FC9 for ; Mon, 14 Mar 2022 05:51:29 -0700 (PDT) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-2d07ae0b1c0so161852097b3.2 for ; Mon, 14 Mar 2022 05:51:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=0hwovVYgP3mGujUVRa+0EXWnvlkG8+Qr5fRIelkpXxM=; b=p6rh3aKXRdSAeyhTBWvkb9PXkqbUO5r30M+yLgLuWKipFVhpuNW5xfT2RnfEYBAzeC kkmln8rZAuumu4qvV0+p7rqGcXcZjVVodCGEF/gWllqNw86onvScpRt7+MV04Sv8IkHT pDYEYzIp9hIOYFk/AjDgoMFW4Pp3rc/+i0KKoEAaR9GWM0ymvfaaIEzLTedyTUE9PbnF k7T31BqoPffuLZAfgOsbkKoykjfe/VPUuHcZda9+L+vroHtXCkmyR/DIsIUAfYHbbWw5 aGiTqijCvYeiQsGMvvCjVOSAfZCw+Pu7g5RrxqAiJIrYA1+r9EsrdLFfKTkjEw5uoyHD Cj7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=0hwovVYgP3mGujUVRa+0EXWnvlkG8+Qr5fRIelkpXxM=; b=xn8waQUE+oD/oME1J6upHNKILKXYqn4r1YH159IMgxOdGwu2VNjadrATlWz7/bq4jK 7MAot2H71WD+QicDAZW9/mO15+njP2ftYBx4KJQ367H4IPIX5wBT3yATSN9kgWL+Khkl xMg24C/OudGcf/mIwsjew7mcKnuG5dgfWl+/VtM3s7IS+TkoX900jETzLyDREalFQx/0 U12A3P6E0As4VUuHqrhTAe1gJn9SJFjr597tnmBbKB+0N8bHmGxePBEO+oiIVX6zN3iN 0jVybHCZmghkKxuldGr2e+4bPB805vvpvFe3DMUMAYPpMUbtrpxf32RdGmaQhDsxzGDh 2CJQ== X-Gm-Message-State: AOAM532M5y890BuzDcDnJmAoVyZCEIQEWu7NFluBFk/h0uHhzhlqx6Gu tz56t+iqddIcRKX+R4nLcAC99h5y23b07HE1gP5RAA== X-Received: by 2002:a81:4ed5:0:b0:2dc:e57:e5f2 with SMTP id c204-20020a814ed5000000b002dc0e57e5f2mr18654717ywb.199.1647262287990; Mon, 14 Mar 2022 05:51:27 -0700 (PDT) MIME-Version: 1.0 From: Naresh Kamboju Date: Mon, 14 Mar 2022 18:21:17 +0530 Message-ID: Subject: WARNING: CPU: 0 PID: 884 at arch/x86/kvm/../../../virt/kvm/kvm_main.c:3162 mark_page_dirty_in_slot To: Paolo Bonzini , Wanpeng Li Cc: open list , X86 ML , Marcelo Tosatti , kvm list , Sean Christopherson , Ben Gardon , Linus Torvalds , lkft-triage@lists.linaro.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 While running kselftest kvm tests on Linux mainline 5.17.0-rc8 on x86_64 device the following kernel warning was noticed # selftests: kvm: hyperv_clock [ 59.752584] ------------[ cut here ]------------ [ 59.757297] WARNING: CPU: 0 PID: 884 at arch/x86/kvm/../../../virt/kvm/kvm_main.c:3162 mark_page_dirty_in_slot+0xba/0xd0 [ 59.768196] Modules linked in: x86_pkg_temp_thermal fuse [ 59.773531] CPU: 0 PID: 884 Comm: hyperv_clock Not tainted 5.17.0-rc8 #1 [ 59.780242] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.5 11/26/2020 [ 59.787652] RIP: 0010:mark_page_dirty_in_slot+0xba/0xd0 [ 59.792894] Code: 89 ea 09 c6 e8 07 cd 00 00 5b 41 5c 41 5d 41 5e 5d c3 48 8b 83 c0 00 00 00 49 63 d5 f0 48 0f ab 10 5b 41 5c 41 5d 41 5e 5d c3 <0f> 0b 5b 41 5c 41 5d 41 5e 5d c3 0f 1f 44 00 00 eb 80 0f 1f 40 00 [ 59.811659] RSP: 0018:ffffa1548109bbe0 EFLAGS: 00010246 [ 59.816919] RAX: 0000000080000000 RBX: ffff9174c5303a00 RCX: 0000000000000000 [ 59.824068] RDX: 0000000000000000 RSI: ffffffffb6e29061 RDI: ffffffffb6e29061 [ 59.831219] RBP: ffffa1548109bc00 R08: 0000000000000000 R09: 0000000000000001 [ 59.838369] R10: 0000000000000001 R11: 0000000000000000 R12: ffffa1548109d000 [ 59.845545] R13: 0000000000000022 R14: 0000000000000000 R15: 0000000000000004 [ 59.852721] FS: 00007f07cc7b9740(0000) GS:ffff917827a00000(0000) knlGS:0000000000000000 [ 59.860822] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 59.866585] CR2: 0000000000000000 CR3: 0000000106700006 CR4: 00000000003726f0 [ 59.873737] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 59.880886] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 59.888034] Call Trace: [ 59.890512] [ 59.892641] __kvm_write_guest_page+0xc8/0x100 [ 59.897112] kvm_write_guest+0x61/0xb0 [ 59.900882] kvm_hv_invalidate_tsc_page+0xd3/0x140 [ 59.905688] ? kvm_hv_invalidate_tsc_page+0x72/0x140 [ 59.910676] kvm_arch_vm_ioctl+0x20f/0xb70 [ 59.914789] ? __lock_acquire+0x3af/0x2370 [ 59.918913] ? __this_cpu_preempt_check+0x13/0x20 [ 59.923638] ? lock_is_held_type+0xdd/0x130 [ 59.927845] kvm_vm_ioctl+0x774/0xe10 [ 59.931530] ? ktime_get_coarse_real_ts64+0xbe/0xd0 [ 59.936429] ? __this_cpu_preempt_check+0x13/0x20 [ 59.941178] ? lockdep_hardirqs_on+0x7e/0x100 [ 59.945552] ? ktime_get_coarse_real_ts64+0xbe/0xd0 [ 59.950493] ? ktime_get_coarse_real_ts64+0xbe/0xd0 [ 59.955459] ? security_file_ioctl+0x37/0x50 [ 59.959753] __x64_sys_ioctl+0x91/0xc0 [ 59.963524] do_syscall_64+0x5c/0x80 [ 59.967125] ? do_syscall_64+0x69/0x80 [ 59.970896] ? syscall_exit_to_user_mode+0x3e/0x50 [ 59.975706] ? do_syscall_64+0x69/0x80 [ 59.979495] ? exc_page_fault+0x7c/0x250 [ 59.983453] ? asm_exc_page_fault+0x8/0x30 [ 59.987570] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 59.992637] RIP: 0033:0x7f07cc0b78f7 [ 59.996234] Code: b3 66 90 48 8b 05 a1 35 2c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 71 35 2c 00 f7 d8 64 89 01 48 [ 60.014996] RSP: 002b:00007ffdf0b37478 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 60.022581] RAX: ffffffffffffffda RBX: 000000004030ae7b RCX: 00007f07cc0b78f7 [ 60.029729] RDX: 00007ffdf0b374b0 RSI: 000000004030ae7b RDI: 0000000000000006 [ 60.036880] RBP: 0000000000000007 R08: 000000000040de60 R09: 0000000000000007 [ 60.044030] R10: 0000000000067816 R11: 0000000000000246 R12: 00007f07cc7bf000 [ 60.051180] R13: 0000000000000007 R14: 0000000000006592 R15: 0000000000136843 [ 60.058357] [ 60.060566] irq event stamp: 6625 [ 60.063925] hardirqs last enabled at (6635): [] __up_console_sem+0x58/0x60 [ 60.072511] hardirqs last disabled at (6644): [] __up_console_sem+0x3d/0x60 [ 60.081044] softirqs last enabled at (6092): [] __do_softirq+0x327/0x493 [ 60.089407] softirqs last disabled at (6085): [] irq_exit_rcu+0xe5/0x130 [ 60.097735] ---[ end trace 0000000000000000 ]--- ok 6 selftests: kvm: hyperv_clock Reported-by: Linux Kernel Functional Testing metadata: git_describe: v5.17-rc8 git_ref: master git_repo: https://gitlab.com/Linaro/lkft/mirrors/torvalds/linux-mainline git_sha: 09688c0166e76ce2fb85e86b9d99be8b0084cdf9 kernel-config: https://builds.tuxbuild.com/26LbaUN6vcuAN7Rd69gZkFWp5J8/config build: https://builds.tuxbuild.com/26LbaUN6vcuAN7Rd69gZkFWp5J8/ -- Linaro LKFT https://lkft.linaro.org [1] https://lkft.validation.linaro.org/scheduler/job/4714912#L1520 [2] https://qa-reports.linaro.org/lkft/linux-mainline-master/build/v5.17-rc8/testrun/8445627/suite/linux-log-parser/test/check-kernel-warning-4714912/details/