From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0000FC4338F for ; Fri, 23 Jul 2021 16:42:58 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BD86260200 for ; Fri, 23 Jul 2021 16:42:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BD86260200 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.160178.294507 (Exim 4.92) (envelope-from ) id 1m6yG4-0002r5-CO; Fri, 23 Jul 2021 16:42:44 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 160178.294507; Fri, 23 Jul 2021 16:42:44 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1m6yG4-0002qy-96; Fri, 23 Jul 2021 16:42:44 +0000 Received: by outflank-mailman (input) for mailman id 160178; Fri, 23 Jul 2021 16:42:43 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1m6yG3-0002qs-I8 for xen-devel@lists.xenproject.org; Fri, 23 Jul 2021 16:42:43 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id ffc919e2-ebd4-11eb-944c-12813bfff9fa; Fri, 23 Jul 2021 16:42:42 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id A895660E78; Fri, 23 Jul 2021 16:42:41 +0000 (UTC) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: ffc919e2-ebd4-11eb-944c-12813bfff9fa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627058561; bh=FTtuzLjdnKJ4jksYbV/tiwauRxeq6647XH+dU1SV8ss=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=QjK5N98oCByX2zBbA3Gj+skaAngUn6G1QhZeh1p678oejIjqKLg8lXxMkOJxdp0Zh xAk+D6Ao4OqvUFzx+o5b/Rgixj0uecamfUYxuIrfWaBtSQusdBQAEN8ZlUiXgIuzqM +wIqRd/Ck41Y4sn5ktzn4fu/i3ya6KWJ/9cJrQ7mSenDu9CHWsFu6yvztxYGnkFyIV W2mvQAEZNiaOM2W3dviyp3VCUNts66i1bSzXVc8fMBGsdi+wAyqBPawy8/t1NyNL0c WYioaFp5AEcpKuOoIJ95wjJgmMhY+8ixDBGh4/Y4xgq/2P16Vve7SstDpS82obNbzY MQ9D6QSrgFWkg== Date: Fri, 23 Jul 2021 09:42:41 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@sstabellini-ThinkPad-T480s To: Julien Grall cc: Stefano Stabellini , Oleksii Moisieiev , "xen-devel@lists.xenproject.org" , Andrii Anisov Subject: Re: [arm] Dom0 hangs after enable KROBE_EVENTS and/or UPROBE_EVENTS in kernel config In-Reply-To: <88c43f6c-9d76-1cab-93f5-ddecc76b487f@xen.org> Message-ID: References: <8ce6f5fe-ccb6-d463-a39e-50fd82816b86@xen.org> <7c3453ed-181f-a166-f16c-43a33bcc529c@xen.org> <88c43f6c-9d76-1cab-93f5-ddecc76b487f@xen.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Fri, 23 Jul 2021, Julien Grall wrote: > On 22/07/2021 22:39, Stefano Stabellini wrote: > > On Thu, 22 Jul 2021, Julien Grall wrote: > > > > You can go and edit 76085aff29f585139a37a10ea0a7daa63f70872c to change > > > > from 4K to any multiple of 4K, e.g. 8K, 12K, 16K, 20K. They should all > > > > work the same. > > > > > > > > Looking at the boot logs on pastebin I noticed that Xen is not loaded at > > > > a 2MB aligned address. I recommend you change Xen loading address to > > > > 0x500200000. And the kernel loading address to 0x500400000. > > > > > > I am curious to know why you recommend to load at 2MB aligned address. The > > > Image protocol doesn't require to load a 2MB aligned address. In fact, we > > > add > > > issue on Juno because the bootloader would load Xen at a 4KB address. UEFI > > > will also load at a 4KB align address. > > > > It is from empirical evidence :-) > > Right... > > > I cannot tell you the exact reason but I saw "strange" problems in the > > past that went away after choosing a 2MB alignment. So we settled for > > using 2MB in ImageBuilder and we haven't seen any more issues. > > It would have been good to report such issue back then so it could have been > analyzed and possibly fixed. > > > However, it could have been anything: a bug in U-Boot not relevant > > anymore, a bug in Linux, etc. I don't know for sure. > > This is the worrying part. We have a potential bug that no one knows why it > happened. Can this be reproduced? I managed to reproduce the problem. I switched ImageBuilder to use 4K alignment (just by changing the variable "offset" at the top of scripts/uboot-script-gen). It generated a boot.source file like this: tftpb 0xC01000 2021.1/xen tftpb 0xCEA000 2021.1/xen-Image-5.10 tftpb 0x18D1000 2021.1/initrd.cpio tftpb 0x1A55000 2021.1/xen.dtb [trimmed because the rest is not too relevant] These are the sizes: 12479370 Jul 21 19:02 xen-Image-5.10 40577 Jul 21 18:25 xen.dtb 950280 Jul 19 16:58 xen 1586176 Jun 4 17:14 initrd.cpio I did the calculations by hand and there are no overlaps. This is the output from u-boot and boot log failure: https://pastebin.com/rbTBPn5g Using 2MB works. I tried 1MB for curiosity and got a different error: https://pastebin.com/UHFUHyxN Do you think it is worth investigating further? - Stefano