Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp643903rwi; Wed, 26 Oct 2022 05:37:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ZDqvSWRqv3W7t+mI0dyrUXOKrRAIZS1h0av4ynfFoWJ6lc84CaJReqFn0Rf8J9sNclNL/ X-Received: by 2002:a17:902:be03:b0:178:6f5d:e979 with SMTP id r3-20020a170902be0300b001786f5de979mr43643992pls.163.1666787843240; Wed, 26 Oct 2022 05:37:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666787843; cv=none; d=google.com; s=arc-20160816; b=MCbaA16Il+QY56A7OAmVDNwz/opTBV7hkR08AggHR6ddGq46LCxhcm3MeN2IfOW73K aPQyvojcJbTt9cekuNuV/li2QBp9dMXBtMBLDU+j/MeRxi0ZTmPq5+GNfFx2FKO5pjrh nHgbzRq/qm8RdasnB23Pac9jId5Mesice0saM93W33TPBDqa83632At6e40upUiqSsWQ SJGF74u9knPZwYrUspPRn/U4jitqfd0qIVz1WLzyPkrnY1vXr6BH50Z2x2V9H4WTV9J0 u+RSj/iuHzS25lT+K8ioYO4xDLQ1pc2HCwGt3shy43lC/mvIfgDnyQDhjW4Nkvz9M+9Y xQMg== 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:in-reply-to :references:mime-version:dkim-signature; bh=N7pE9DDfhRLpLEXalXxynGwTI7Cu+4sadnoLGaVkfW0=; b=GS6p0sxe4sR28g0ifBpeIG65Mp2OV7DDxjEaEMH5HXXVP4wO7kbtksLN55FUkok4I5 +ZT4ZKu2/5UlbmTPHrim37I1LzYKQNeY/Xxw1NmYnzoLXQA9W2imjbdvtes3IGuluwCo dvLPWpX9IKGgMORxuWm2CAd9Eg/ihs0HDysq3wnyxGx82LkcL8MFkM2THGgbmgFW2qjB mGRCngzclJkDBwpT2TgyKrDvwFK3XSELIMArBo6AZdAu27y82P7xgFwFjeSKp1AH85UR 20/wIIo8x6bVh/FqVPtrucuBY/ewQ2F/dV7nkdnm3ljMoGWKjgwB+TI6/aE2WPREkcas B5nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=m9JYnj3E; 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 m18-20020a170902db1200b0017f5ea214a8si7426773plx.462.2022.10.26.05.37.11; Wed, 26 Oct 2022 05:37:23 -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=20210112 header.b=m9JYnj3E; 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 S233453AbiJZMZx (ORCPT + 99 others); Wed, 26 Oct 2022 08:25:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233185AbiJZMZt (ORCPT ); Wed, 26 Oct 2022 08:25:49 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D324C2D763 for ; Wed, 26 Oct 2022 05:25:46 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id u2so12441020ljl.3 for ; Wed, 26 Oct 2022 05:25:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=N7pE9DDfhRLpLEXalXxynGwTI7Cu+4sadnoLGaVkfW0=; b=m9JYnj3EfalQ0PQJ5AQ4joVmuV4YD6+iN/RgZtZJkEfjlVE4XwxYLtXLDxyX8QfqlB H3RyFSbTobVZZSYvN+g6CLM12r7bjOKUx9fGETzsxvxBa+c2202LLfukD9NXucuOEpr4 f3NRJUJ0eLaxlygVGTkMuRYAQbsexKDZcUquRbJ7Rn33fcfPTZZlu7Ea74hhoVVWiuG/ YdICpTqVyNHxRnL/A0QWEsbBXWthmquic2zp9CUtLFi9R9KQ0siKDhWDe5IAC82iVdUs lq/YRy+ReWICeyGZ3kA3zdr62tJjrME3AoS891Q9F9tzVYjSeyzN5jgjLWNJVDLyCYwP tZ+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=N7pE9DDfhRLpLEXalXxynGwTI7Cu+4sadnoLGaVkfW0=; b=F0TsQTEfCERikrZKdsq5PooPR3K8HoWt9LjwZNtFKIkZQMQmtGO3ni8aswt8fTtUHV 8YHpNlh/x96JH6BOgfGMguTtsmsyEOg2xlSuFZ6EdkCNputUUIex/SW8VAPV5U0s7TGg Tv/rr6+MI3z5CGpOyR8NdDV8iHlQteqpzBMVKTcQRbNNuMdaTnjhywdiunkCfRWzcCdN lepCI5oYQuFlxc9vKKmiD+u8X2LSAEs5TiMev0u6X8Ik985fN5uvCdkqaF6/xmXZFk3B 8h0i7jX+4SPE7yLpLNUhG2LCnTdfnyDM4b/YdS8R2T5ZeN5rI38Q+/+IKjUOXkNAuUCZ Zxlg== X-Gm-Message-State: ACrzQf2lFJbEy4gOQX5cCmFyfWkRW7T2RPMcpWwC+jGUPILGzjY6th31 Emy0LPN0lwEF3YYIjIVkVqYHazCBhdhsc16/gYep9Q== X-Received: by 2002:a2e:b0e6:0:b0:26e:4dd:16f5 with SMTP id h6-20020a2eb0e6000000b0026e04dd16f5mr15182373ljl.268.1666787144961; Wed, 26 Oct 2022 05:25:44 -0700 (PDT) MIME-Version: 1.0 References: <000000000000c2ba5205ebe680bc@google.com> In-Reply-To: <000000000000c2ba5205ebe680bc@google.com> From: Dmitry Vyukov Date: Wed, 26 Oct 2022 05:25:33 -0700 Message-ID: Subject: Re: [syzbot] WARNING in vcpu_enter_guest (2) To: syzbot Cc: bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, jarkko@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sgx@vger.kernel.org, mingo@redhat.com, pbonzini@redhat.com, seanjc@google.com, syzkaller-bugs@googlegroups.com, tglx@linutronix.de, x86@kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Tue, 25 Oct 2022 at 19:08, syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit: 4dc12f37a8e9 Merge tag 'platform-drivers-x86-v6.1-2' of gi.. > git tree: upstream > console+strace: https://syzkaller.appspot.com/x/log.txt?x=113363d2880000 > kernel config: https://syzkaller.appspot.com/x/.config?x=a66c6c673fb555e8 > dashboard link: https://syzkaller.appspot.com/bug?extid=dbef12497aa912c8e7ba > compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=132e84fc880000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10a872f2880000 > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/7858e54948b9/disk-4dc12f37.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/f37bd48d06dc/vmlinux-4dc12f37.xz > kernel image: https://storage.googleapis.com/syzbot-assets/98114f50afb3/bzImage-4dc12f37.xz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+dbef12497aa912c8e7ba@syzkaller.appspotmail.com This will be fixed by the following commit, right? #syz fix: KVM: x86: Exempt pending triple fault from event injection sanity check https://lore.kernel.org/all/20220930230008.1636044-1-seanjc@google.com/ > kvm: KVM_SET_TSS_ADDR need to be called before entering vcpu > ------------[ cut here ]------------ > WARNING: CPU: 0 PID: 3603 at arch/x86/kvm/x86.c:10047 kvm_check_and_inject_events arch/x86/kvm/x86.c:10047 [inline] > WARNING: CPU: 0 PID: 3603 at arch/x86/kvm/x86.c:10047 vcpu_enter_guest+0x92c/0x5a10 arch/x86/kvm/x86.c:10649 > Modules linked in: > CPU: 0 PID: 3603 Comm: syz-executor122 Not tainted 6.1.0-rc2-syzkaller-00070-g4dc12f37a8e9 #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 > RIP: 0010:kvm_check_and_inject_events arch/x86/kvm/x86.c:10047 [inline] > RIP: 0010:vcpu_enter_guest+0x92c/0x5a10 arch/x86/kvm/x86.c:10649 > Code: c0 74 06 0f 8e d2 4f 00 00 45 0f b6 b4 24 e8 08 00 00 31 ff 44 89 f6 e8 72 db 6a 00 45 84 f6 0f 84 d4 41 00 00 e8 d4 de 6a 00 <0f> 0b e9 1e 11 00 00 e8 c8 de 6a 00 be 08 00 00 00 4c 89 ff e8 4b > RSP: 0018:ffffc90003d3fb60 EFLAGS: 00010293 > RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 > RDX: ffff888023d8ba80 RSI: ffffffff8111bdac RDI: 0000000000000001 > RBP: ffffc90003d3fc80 R08: 0000000000000001 R09: 0000000000000000 > R10: 0000000000000001 R11: 000000000008c07e R12: ffff88801c784000 > R13: 0000000000000000 R14: 0000000000000001 R15: ffff88801c784038 > FS: 0000555556d6e300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 00007fffcf8d4d68 CR3: 000000007b6d6000 CR4: 00000000003526f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > vcpu_run arch/x86/kvm/x86.c:10951 [inline] > kvm_arch_vcpu_ioctl_run+0xa5e/0x2b30 arch/x86/kvm/x86.c:11172 > kvm_vcpu_ioctl+0x570/0xfc0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4065 > vfs_ioctl fs/ioctl.c:51 [inline] > __do_sys_ioctl fs/ioctl.c:870 [inline] > __se_sys_ioctl fs/ioctl.c:856 [inline] > __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 > do_syscall_x64 arch/x86/entry/common.c:50 [inline] > do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 > entry_SYSCALL_64_after_hwframe+0x63/0xcd > RIP: 0033:0x7f6a646982b9 > Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 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 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 > RSP: 002b:00007fffcf8d6828 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 > RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6a646982b9 > RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005 > RBP: 00007f6a6465bd10 R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000246 R12: 00007f6a6465bda0 > R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 > > > > --- > This report is generated by a bot. It may contain errors. > See https://goo.gl/tpsmEJ for more information about syzbot. > syzbot engineers can be reached at syzkaller@googlegroups.com. > > syzbot will keep track of this issue. See: > https://goo.gl/tpsmEJ#status for how to communicate with syzbot. > syzbot can test patches for this issue, for details see: > https://goo.gl/tpsmEJ#testing-patches > > -- > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/000000000000c2ba5205ebe680bc%40google.com.