Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp217595pxb; Wed, 11 Nov 2020 01:41:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8tjSL+sGvV7hftVhTFlR/VI3EAHV0bdJVjwESQ8na58KWgJUAuuAXjcN1TsaWY07wchSe X-Received: by 2002:a17:906:1a1b:: with SMTP id i27mr25595434ejf.225.1605087697965; Wed, 11 Nov 2020 01:41:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605087697; cv=none; d=google.com; s=arc-20160816; b=E7LaPbUQrkr7KF4z8fmhmASaGezqwN97xrwRlMaV9slYLVxBya89kWzaUQRZYRPqvg 6grAUsLxEkulnBhVw9GTGZD7oe3iGQhA+XGvBJa1Vu9CIzS92/Nd0Hmc9qnqJZ2B/fJZ Lhpj8+FXIFYvINreGh7hxgrw/zEVdajB3yGbUEZ4oKhiLQLWBZtrKjFBiI0ZZM5bqoXF 0/QnoqxLlQQB6aJ9W/1Qc4axzfX2PMvLHOK5vmCJWRZDyyv8D0KJ1+7bLyW9BQ1ejdIz 8NRdmczZ5yk0aAtOzAKgNkz/Srqq8MopYJXl55rEfoLMKZvlaK/TYbuzThRYiI8oDjsX HLjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=fhsO4dn/zikOQarO1ca3aFmPPHmEBVrNVAnHYdfQkAQ=; b=VsWHyZSjIAvILKYHZNm6F4JgW89jWP1gEywrIHr0FhSN1qeBiGRPmlOOwxKWvZPlhE NBwSlxBgmsFWQ4hR95GOys71zd42KjVBTc3EfvfvksxiKcXLVP24HqkEOdgh8WmLEwDq +m1LEACMRC0xajoRs//tIOesRbjCNt/LT21H63pONlFVwKRwZHvK8OpvRGIUGEuSbvMi EhFZNXbLLDemKYpme666If4GQZgxx/WRJnTG6Yto4SJZsYIm86AE3Z3wwG9I+GBCLjGU ELw6Qa9Fscb/fAx2TbfBXDpAS2trCWbc3T1+wT16L49t3fPITf8FMeQ7IFU0EYYfGr+4 9xrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Cvx5O29Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b20si859884ejb.424.2020.11.11.01.41.13; Wed, 11 Nov 2020 01:41:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Cvx5O29Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726449AbgKKJhr (ORCPT + 99 others); Wed, 11 Nov 2020 04:37:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:33072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725912AbgKKJhp (ORCPT ); Wed, 11 Nov 2020 04:37:45 -0500 Received: from devnote2 (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E49DB206D9; Wed, 11 Nov 2020 09:37:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605087464; bh=u4oI8akQtycIQ1Xqcemww5azjG8IkNdslx5h41epaP4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Cvx5O29QZC+AuIXemq0yVCbtzrtqtssfYXKiRvBToLCz/6WPI0ELTefhiwmV3Eozb K/YjT+7Hz50ouvJ53rpdoJT3vTtRIFaZC8zUHJUa9u4T8whmJ0HVlPt7sJIu0xz7Qs ZX47XTuBc1nBnx8KsX8Cvqw2k/qZ4UIs2S2tb2j8= Date: Wed, 11 Nov 2020 18:37:42 +0900 From: Masami Hiramatsu To: Chen Yu Cc: Linux Kernel Mailing List Subject: Re: bootconfig length parse error in kernel Message-Id: <20201111183742.e7c90597216343d9d2ffcb4e@kernel.org> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chen, On Tue, 10 Nov 2020 23:39:53 +0800 Chen Yu wrote: > Hi Masami, > Thanks for writing bootconfig and it is useful for boot up trace event > debugging. Thanks for testing! > However it was found that on 5.10-rc2 the bootconfig does not work and it shows > "'bootconfig' found on command line, but no bootconfig found" > And the reason for this is the kernel found the magic number to be incorrect. > I've added some hack in kernel to dump the first 12 bytes, it shows: > "OTCONFIG". So printed more content ahead we can find > "#BOOTCONFIG" ahead. So it looks that there is some alignment during > initrd load, and get_boot_config_from_initrd() might also deal with it. That is > to say: > data = (char *)initrd_end - BOOTCONFIG_MAGIC_LEN; > might do some alignment? Hrm, interesting. So initrd_end might be aligned. Could you print out the actuall address of initrd_end? And could you tell me which platform are you tested? Thank you, -- Masami Hiramatsu