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=-5.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 C764DC433E0 for ; Tue, 19 Jan 2021 12:38:42 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 60424221EA for ; Tue, 19 Jan 2021 12:38:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 60424221EA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+GNapAi0qbsdsOWiFB1lI9rAyffaC2stmcdphy3C0NI=; b=TXl83PyIF1ISVB7WuAfUnrGax zJt8xifGrXJJkMuCn1cfc3kWEzYCh8zqLbM+ozqv786ZLnxrxXnFxwk9gV9mJDZFnHpdtez7wDbZZ MN441Fl6mJsEa4UpLm3EHVALQ1PVMiLC4ztaL1U6NGyhfW30i7pQUV35Q02LVCHD/p45HKAdpFUjq 06ExQvfuR5+YWGKXJOcj3Gp0ct+BHXFcEi42rME7AfOWzLsN5evQYmmxhns7qxwUKELexkDoDo7rl mNbJC0sB3fXWRNT86wVkAJxgV0LBn/LFe0BP7LiG/QU78cHt8FV/9jFL2TTapcfV3tT3bM7+q1dyF VFTciQ7nQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1qG1-00032O-Ax; Tue, 19 Jan 2021 12:37:13 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1qFv-00031k-FJ for linux-arm-kernel@lists.infradead.org; Tue, 19 Jan 2021 12:37:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3091HDIDJPbXMzpbOgmafqc9I4heyAG2HJIcUBxxHpY=; b=x8MxxHQUY3XHSopbhfKC11AUM t1tb0zQWIOlHtL97iKkkVu1VxguAANhS2b3EACUO2y5I0Ya8f0EvelSXE/OxgtpcvT27MDeaOL9c3 E1ybIT2jlZ9/KYiMH+BIL8655snfU25x6I5WK9PZ+Q82lg2HgamkGhzFWD4+CNK6G0oo1Mr3XiXxr UDqbhSVVDNt6qskELujDefExQU7tMaf8r34Fw3ygumNrqIJaIRxQ96yJ86B83W9TQSB79lV28LoAd LmpZOoRIVFEi42kCKfioK4d4rLJWD2BOiq9IYdKnKKUae3+klSyU6OCMOAY2D73jg5HHiHaHPPIEZ /oBPhAMSw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:49964) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1qFo-0007Mt-8K; Tue, 19 Jan 2021 12:37:00 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1l1qFn-00050y-6C; Tue, 19 Jan 2021 12:36:59 +0000 Date: Tue, 19 Jan 2021 12:36:59 +0000 From: Russell King - ARM Linux admin To: Dmitry Vyukov Subject: Re: Arm + KASAN + syzbot Message-ID: <20210119123659.GJ1551@shell.armlinux.org.uk> References: <20210119111319.GH1551@shell.armlinux.org.uk> <20210119114341.GI1551@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210119_073707_524175_52DB410D X-CRM114-Status: GOOD ( 14.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Linus Walleij , kasan-dev , syzkaller , Krzysztof Kozlowski , Hailong Liu , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Jan 19, 2021 at 01:05:11PM +0100, Dmitry Vyukov wrote: > Yes, I used the qemu -dtb flag. > > I tried to use CONFIG_ARM_APPENDED_DTB because it looks like a very > nice option. However, I couldn't make it work. > I enabled: > CONFIG_ARM_APPENDED_DTB=y > CONFIG_ARM_ATAG_DTB_COMPAT=y > # CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER is not set > CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND=y > and removed qemu -dtb flag and I see: > > Error: invalid dtb and unrecognized/unsupported machine ID > r1=0x000008e0, r2=0x80000100 > r2[]=05 00 00 00 01 00 41 54 01 00 00 00 00 10 00 00 Right, r2 now doesn't point at valid DT, but points to an ATAG list. The decompressor should notice that, and fix up the appended DTB. I assume you concatenated the zImage and the appropriate DTB and passed _that_ as the kernel to qemu? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel