Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27693665rwd; Tue, 4 Jul 2023 06:38:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlHHkO6+3emNwjDdRjKB3UwU9PcgWhOcdiPd636L9nX8uxOC10l/c2Te4PpUO4odP1OPBH+0 X-Received: by 2002:a17:902:d501:b0:1b7:f64b:379b with SMTP id b1-20020a170902d50100b001b7f64b379bmr21486625plg.17.1688477903968; Tue, 04 Jul 2023 06:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688477903; cv=none; d=google.com; s=arc-20160816; b=h0Mx307gs+nFzwGjbIHz3NgU1tuyW9JJqSGw/Z5vell1fC2YrHQMnorIxe7lf58gDp 96Ugppgo0KHr+M8O2yBccXQArQFynRgbwjXbBdj9YAayecuLNg6rOoPiZ77QM2KrCFzn l9BTOE1buz+TLTP6hvjDf63ugS96MzKewB0fK/qQcPMJZVHHkk036IDe4Xxv0WrVaeHq A4byVvqG7y6wj30s5KAZYEZRN2cZlZBtqYF5McvehTZcFh8kDY79UwGrJe6Ze8gDsyrD YiCqRivUf2j5ZPufaoYUAYoYtv2mxF54mp+pTIAkOJ/G/eVKsY6mnhGgRUMQxwKGGSOK 6L4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=CXymluBB6sVoGxHppR9Pfth3NNwupwTCV9ZW/BFZ1HA=; fh=YY93BLS7UMmubqVavLVSgLQgKfOQV3Bg18ZbTYa66f4=; b=stxaoQI+v3RqzG5/Da9ixG8wY3hGsYV+sNM6zMh+8gEpDo8FSCH8q+P094TjmxBE0D +KWRqtHavDZNom+7YZdWd/5BqQJrM8OJ4VxXFN+JmjFLYVartGe7rwmjH9mgqqG5IcQj 1R8Bg1mR3irVFjRe2R1yFChGayYgZwIqG4dV0mqkr+QZQCQbI4GnVCP9QgjLIWelkim8 wBVPzQZpDKQoEcd8Q0WmrxEwoNtrzJNXAMk9CfjsQw/J2bSnzbgNCi/BinhLU5KDx7PR uZNHQjUEPbvqpbzela8eRB0X3sqL6npYifCLG3MtFoFTzPsQfuvCKYN44y+gWbBBnr9C 706w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZA3pvSD7; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a170902dad000b001b8a591d5b9si1642331plx.133.2023.07.04.06.38.07; Tue, 04 Jul 2023 06:38: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=@redhat.com header.s=mimecast20190719 header.b=ZA3pvSD7; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230375AbjGDNW2 (ORCPT + 99 others); Tue, 4 Jul 2023 09:22:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231538AbjGDNWV (ORCPT ); Tue, 4 Jul 2023 09:22:21 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA7B8172D for ; Tue, 4 Jul 2023 06:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688476888; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CXymluBB6sVoGxHppR9Pfth3NNwupwTCV9ZW/BFZ1HA=; b=ZA3pvSD7QmHwY8Oq3yZNGkQGLq/f2my6J5Y97flxzB1+UVYLPVKGOdMtt3wwGODhU/TuzP S19vRhfCDVZdMNCmGCKWGxbLrP+Oy4Uxvi6TTdssKUlSByxjTEhAllMJM9DSp53z+Fhh2E 1OyPyRjX0QtjYuwMX3dyHJbLZ0ahGN4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-33-Cq62ADWqPf6vcSgh4haXHg-1; Tue, 04 Jul 2023 09:21:26 -0400 X-MC-Unique: Cq62ADWqPf6vcSgh4haXHg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 28872104458C; Tue, 4 Jul 2023 13:21:26 +0000 (UTC) Received: from localhost (unknown [10.42.28.237]) by smtp.corp.redhat.com (Postfix) with ESMTP id E45EB1121314; Tue, 4 Jul 2023 13:21:25 +0000 (UTC) Date: Tue, 4 Jul 2023 14:21:25 +0100 From: "Richard W.M. Jones" To: Peter Zijlstra Cc: Arnd Bergmann , Naresh Kamboju , Anders Roxell , Daniel =?iso-8859-1?Q?D=EDaz?= , Benjamin Copeland , linux-kernel@vger.kernel.org, x86@kernel.org, Richard Henderson Subject: Re: qemu-x86_64 booting with 8.0.0 stil see int3: when running LTP tracing testing. Message-ID: <20230704132125.GB17440@redhat.com> References: <2d7595b1-b655-4425-85d3-423801bce644@app.fastmail.com> <20230621160655.GL2053369@hirez.programming.kicks-ass.net> <20230704074620.GA17440@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230704074620.GA17440@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 Tue, Jul 04, 2023 at 08:46:20AM +0100, Richard W.M. Jones wrote: > We have been having the same sort of problem > (https://bugzilla.redhat.com/show_bug.cgi?id=2216496). It's another > of those bugs that requires hundreds or thousands of boot iterations > before you can see it. There is a test in comment 27 but it requires > guestfish and some hacking to work. I'll try to come up with a > cleaner test later. FWIW here's a better test. It only uses qemu-system-x86_64 & a vmlinuz file of your choice, and is very fast. It usually hits the bug in seconds. https://github.com/rwmjones/bootbootboot/tree/bz2216496 NB: You will need to change the definition of VMLINUX in config-bz2216496-qemu.h (and generally read the code before running, but hopefully it should just work apart from choosing a kernel image). > I'd love to have a better way to debug this or collect more > diagnostics if you have any suggestions. Still open to any suggestions about better ways to debug this, or anything you'd like me to try out. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html