Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp57283ybv; Wed, 5 Feb 2020 01:04:05 -0800 (PST) X-Google-Smtp-Source: APXvYqzs5/4NVIg3LBtRf5c+iji/0lLmnORk5JsYHICch+xzFeN58DvL/pp53qQgD+QLmsWAWN2w X-Received: by 2002:a9d:7b51:: with SMTP id f17mr24629362oto.302.1580893445217; Wed, 05 Feb 2020 01:04:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580893445; cv=none; d=google.com; s=arc-20160816; b=hivqyhB1QeyNwij8p+Z/VulvmJoA1o2rq7RF0TIqhmaiZvdp3PrWniUhIDghTz8K0P EHXpYaKpCii2bcmgyRkXOhaz6YJF8JjCSxYO5pwBW/4ep8dlDSjGyIgTqt6PjRrNAdLz A1ZiRDBKoSJmLGaZ9KqxHN0iz4ZSrm8gV8HK7irFpNen7eAGgHK0NZ/o2S9ImUghz1pb R3yiV+A5QGqr00sCTIlpXv/Wlzrgo24z3SomI/9Dja1G+9orSRmMvT2VHIM7J9Ajq6qI I6oRT4rl+jJFAKcsvHyEacVZ4DclYK9oL/2CLFpygB1rRSd2NPcwKTNImZrVVxYiWNuy 7CNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=EhJv4DTEUt7WeTkT88R6iivOqEr2/qHENM0HHvMG0+I=; b=xGwSL9xuwsB49FKlA18/6lC/UdM5yoUJKm5JNX8BD0D5o+29kkfHuMEYAnr6FcbHJI mqLX9Jprchv/+84MQb9J0QY6GJkTLG2wZB/YGrylq3qgX9t5IAbVwrlXAafL4lisX7k0 QetnCRKmZLRZDDVa1RtKEVq/wKcRo6ct4/Si3zCzamXa2Z1lRhEnnE8rONKDY0rGQKuO leHXv4dqef/EHGhuclsr0cIejOwOsBRGLvRBolOBrL1PIRgT1bYAImV61tPXi5AcAQIN KdrRf0kmhJUghzCRkS/8/RRDFQaeJBuPYdpXiLFoEkqw8Q/ehQbA6u1OD2Si3+VM8QCP vfcw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18si13263111otj.114.2020.02.05.01.03.51; Wed, 05 Feb 2020 01:04:05 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728111AbgBEJAW (ORCPT + 99 others); Wed, 5 Feb 2020 04:00:22 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:34803 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727070AbgBEJAV (ORCPT ); Wed, 5 Feb 2020 04:00:21 -0500 Received: from localhost ([127.0.0.1] helo=vostro.local) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1izGXg-00061C-83; Wed, 05 Feb 2020 10:00:16 +0100 From: John Ogness To: Sergey Senozhatsky Cc: lijiang , Petr Mladek , Peter Zijlstra , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Andrea Parri , Thomas Gleixner , kexec@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] printk: replace ringbuffer References: <20200128161948.8524-1-john.ogness@linutronix.de> <20200205044848.GH41358@google.com> <20200205050204.GI41358@google.com> <88827ae2-7af5-347b-29fb-cffb94350f8f@redhat.com> <20200205063640.GJ41358@google.com> Date: Wed, 05 Feb 2020 10:00:12 +0100 In-Reply-To: <20200205063640.GJ41358@google.com> (Sergey Senozhatsky's message of "Wed, 5 Feb 2020 15:36:40 +0900") Message-ID: <877e11h0ir.fsf@linutronix.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-02-05, Sergey Senozhatsky wrote: >>>> So there is a General protection fault. That's the type of a >>>> problem that kills the boot for me as well (different backtrace, >>>> tho). >>> >>> Do you have CONFIG_RELOCATABLE and CONFIG_RANDOMIZE_BASE (KASLR) >>> enabled? >> >> Yes. These two options are enabled. >> >> CONFIG_RELOCATABLE=y >> CONFIG_RANDOMIZE_BASE=y > > So KASLR kills the boot for me. So does KASAN. Sergey, thanks for looking into this already! > John, do you see any of these problems on your test machine? For x86 I have only been using qemu. (For hardware tests I use arm64-smp in order to verify memory barriers.) With qemu-x86_64 I am unable to reproduce the problem. Lianbo, thanks for the report. Can you share your boot args? Anything special in there (like log_buf_len=, earlyprintk, etc)? Also, could you share your CONFIG_LOG_* and CONFIG_PRINTK_* options? I will move to bare metal x86_64 and hopefully see it as well. John