Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5426886imm; Tue, 16 Oct 2018 10:04:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV63dsWoQZ8moiL9Ygx2NbXD4q9guRDnZCyDhsRQgndMJ8+M5zRE42jRNA2xL2GL1kVXqFNnu X-Received: by 2002:a62:8d16:: with SMTP id z22-v6mr22773787pfd.185.1539709440299; Tue, 16 Oct 2018 10:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539709440; cv=none; d=google.com; s=arc-20160816; b=T0e3zVUEW/HX9MxHWro3pTyjId6KapuzRwy3R7YX6t7SnyHa+ypsAL/XmTg0Heh4Y9 EMGsFMdqo+ukquop0Hz3McmDdeTsoloC0jnbQZ/Vyam92aCF7O9wp/IlPFEWCx7zHAwV 63aVbLtfRyCqGmTiyNH/XCnng3pmau1q3ndwcaL4jotdAAsXVrPq+bItsMAZMJxGtxps O7D8xeOwsrTo/PFNUxE2LGsLKsH9yJi6Lix5Cjloz3Dpl63OJFfd7Mwh3t6r1k9C8AcK KmZhIbJak2aOJ08O/2blG6oPDkcyQwrySrBPe2mv1Eq5cw3erkdc4vhJvt+TiBhjf440 bJ/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=W+X5PaUpkOlPOO1tCJJftVuhOIrLdOI2ZHpJ3GHF0Ak=; b=sBmlUourGbL/zhh+HTAgza6HLpd9gR2EJZUP3tFzMBHBBJC8c5qCiswL26UOsBiTdT aQDbj5x7k+vTl8jKfhIglXyqjloTkWlIh6zqNHPTUhBLOPq+MZFg1pd6/jTyy7gbE5oo 35GZPySVIo+6lZDCtW81iXnESMw38IiwWren/njOBghMmcVAXsq/bSDJ8CKJmNldtGbt hezu4vLBILz5fxiarz+W6BEzE1J7tuWFKWn7KO/1MpQYaBGcMNa250eDi0bi7BF3nhHp Zs7tN++GHjCJELZi3wyxGSj8JsLfqA6/aPkOiBYYHRfImY0nJQvCUe+uBch18uYQfXdE I9lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HnKewxau; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r134-v6si15988093pfc.202.2018.10.16.10.03.44; Tue, 16 Oct 2018 10:04:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HnKewxau; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727454AbeJQAyU (ORCPT + 99 others); Tue, 16 Oct 2018 20:54:20 -0400 Received: from mail-yb1-f196.google.com ([209.85.219.196]:33167 "EHLO mail-yb1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727364AbeJQAyT (ORCPT ); Tue, 16 Oct 2018 20:54:19 -0400 Received: by mail-yb1-f196.google.com with SMTP id u88-v6so9199461ybi.0 for ; Tue, 16 Oct 2018 10:02:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=W+X5PaUpkOlPOO1tCJJftVuhOIrLdOI2ZHpJ3GHF0Ak=; b=HnKewxaupCcOK8cijKFG1yMgJz/jcv6g3pUVPw+UEAxyJzkzAFCVY5caSYRBa0QRZ1 4FbJApSTyK6JgoYT3E6mrfUVt4s9FS72Id37ahDfoRmJjU8d4W48xlh0j+5SUa/ooSCE OzNVBZbLvuyPUU1zuuy/OSwPjCIZuyJfTdM3g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=W+X5PaUpkOlPOO1tCJJftVuhOIrLdOI2ZHpJ3GHF0Ak=; b=hutguLTnLsZvQVfOsHai3482q8VBmVXq4aBz2CxW+PebNhSRpppJ+J90IK+p9PVKC3 X82ivzRnQOGdxzy9Ty6O3/vd5EF3x82wIUdai1dqgHK3VBAWbMP1wGTxRXVCXJrn9KcF V0kyj6f8zF8L9YAbY94KsbwT7u45wiMyRGNjzMMgDAkMx7NOh7fjyHifaNbDyocLjViP nlwBvHHGe5ByccIHxSAEzwdI4bJt7f5MRyfchVTIHl2XKt5DMuIrRG60+86Zk5OOre6s 4IODhZW57NJXfJsH9/IIfKrZzosaA1ZqxfRNjyDVjhEDteIOsjGfZJVL0AGZcH/334I6 rLlg== X-Gm-Message-State: ABuFfoiQUmzWX5LzAlIOyVDFf3knP8IWcG3wcwQt1BIBTSSxuB3b43mB HRFzOINQ4QCfa6HfyZwwjf7MAowMbcs= X-Received: by 2002:a25:9343:: with SMTP id g3-v6mr5601608ybo.222.1539709378999; Tue, 16 Oct 2018 10:02:58 -0700 (PDT) Received: from mail-yw1-f47.google.com (mail-yw1-f47.google.com. [209.85.161.47]) by smtp.gmail.com with ESMTPSA id q11-v6sm3485024ywc.77.2018.10.16.10.02.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Oct 2018 10:02:56 -0700 (PDT) Received: by mail-yw1-f47.google.com with SMTP id m127-v6so9206484ywb.0 for ; Tue, 16 Oct 2018 10:02:55 -0700 (PDT) X-Received: by 2002:a81:2cc3:: with SMTP id s186-v6mr12732048yws.168.1539709374873; Tue, 16 Oct 2018 10:02:54 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:d116:0:0:0:0:0 with HTTP; Tue, 16 Oct 2018 10:02:53 -0700 (PDT) In-Reply-To: <20181016112928.4b52afb5@gandalf.local.home> References: <1cae8f10-55f5-20ce-9105-30af6f88bd6e@codeaurora.org> <20181016112928.4b52afb5@gandalf.local.home> From: Kees Cook Date: Tue, 16 Oct 2018 10:02:53 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Crash in msm serial on dragonboard with ftrace bootargs To: Steven Rostedt Cc: Sai Prakash Ranjan , Stephen Boyd , Bjorn Andersson , Andy Gross , David Brown , Jiri Slaby , "Ivan T. Ivanov" , "Joel Fernandes (Google)" , Geliang Tang , Greg Kroah-Hartman , Pramod Gurav , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, "open list:SERIAL DRIVERS" , LKML , Rajendra Nayak , Vivek Gautam , Sibi Sankar Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 16, 2018 at 8:29 AM, Steven Rostedt wrote: > On Tue, 16 Oct 2018 17:08:25 +0530 > Sai Prakash Ranjan wrote: >> One more thing is for pstore dmesg-ramoops, I had to change >> late_initcall to postcore_initcall which brings the question as to why >> we changed to late_initcall? >> Simple git blame shows to support crypto compress api, but is it really >> helpful? A lot of boottime issues can be caught with pstore enabled at >> postcore_initcall rather than late_initcall, this backtrace >> is just one example. Is there any way we could change this? > > Does it break if the crypto is not initialized? Perhaps add a command > line flag to have it happen earlier: > > ramoops=earlyinit > > and add a postcore_initcall that checks if that flag is set, and if so, > it does the work then, and the late_initcall() will do nothing. > > That way, you can still have unmodified kernels use pstore when it > crashes at boot up. Even better, if we could find a way to make it work with a late initialization of compression (i.e. postcore_initcall() by default means anything caught would be uncompressed, but anything after late_initcall() would be compressed). I'd be very happy to review patches for that! -Kees -- Kees Cook Pixel Security