Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp457931ybf; Fri, 28 Feb 2020 01:12:49 -0800 (PST) X-Google-Smtp-Source: APXvYqxzNRuKGQO7OtFcftZ8S+hT3X0+xXN3hhcdbBz0uqdTBDlyzvyNbyveRZG6CsmiSy535iw+ X-Received: by 2002:aca:5408:: with SMTP id i8mr2411627oib.157.1582881169721; Fri, 28 Feb 2020 01:12:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582881169; cv=none; d=google.com; s=arc-20160816; b=r7xHF1Q5H0kToB5r+aXVHY2LEUdk+dvaKVFqBSk5q0gneYEFyry62ZKdNkRkDQiB27 VABINv7zWFz/ZrohWiHwQA76TH78u/Y3ZlfG+S+nwtcmLIEB+QXH5BCBVtlti/FfZOcO GmvvyGs9Vjn7JMV4Pjg8jUMDwBKybC0TJbkgU4wlF17QvQO7FYHVDGHphOfAd7se0O5w peXZPRe9vt+d41Pc2h8ysTrgdmzQjH6U/lsFwy6/7TeFz8w7R2NVp33hIaFHo6yIdxnI dr5261YZ9T49k5eqEsxXSYy2kVhWuTjhGBSsMSRrpdNuxyIazB2O1VgVyarj5pgv0dtd 8EYg== 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=xxDei/zu1XRHc5LpgX86ZKwRo3zIpUHAxDMA1X1tDcU=; b=fVnPk76NNMVKW0W4g/vp8zKYN0+J4Z2Z1AwKKZvvCRt2PNzGUbz38FylcCjtYtU0fV 7e74hk1l40sJiJfZiD2fU7AkhzkX2YbcNBqcc3l0b+ySXys7cWII3TLlcPkFLP1XiM4J N77o9xk6hu9f6PsUz63QMl7dIGPiDKYqA0zcA9MYafnjSpqms9dtwK8QRhjoHu1Y5QLm jZLzzZXK0nDbXBEleah2HVFgDuVeQz6kd06/C3th7e6Q6RVyxPoFWmUyoMp0NQhmNJAb OHIvYq4RJmY9x0TJDQfSagrvX3JJg7o3i5MnoOCTI2PfeMCFHcUtXEckA7xYCKLfJbDI 9Y4Q== 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 f204si1418106oia.43.2020.02.28.01.12.37; Fri, 28 Feb 2020 01:12:49 -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 S1726502AbgB1JLm (ORCPT + 99 others); Fri, 28 Feb 2020 04:11:42 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:36158 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726063AbgB1JLm (ORCPT ); Fri, 28 Feb 2020 04:11:42 -0500 Received: from localhost ([127.0.0.1] helo=vostro.local) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1j7bgC-00046G-U5; Fri, 28 Feb 2020 10:11:33 +0100 From: John Ogness To: Sergey Senozhatsky Cc: Lech Perczak , Petr Mladek , Steven Rostedt , Greg Kroah-Hartman , "linux-kernel\@vger.kernel.org" , Theodore Ts'o , Arnd Bergmann , Krzysztof =?utf-8?Q?Drobi=C5=84ski?= , Pawel Lenkow Subject: Re: Regression in v4.19.106 breaking waking up of readers of /proc/kmsg and /dev/kmsg References: <20200227123633.GB962932@kroah.com> <42d3ce5c-5ffe-8e17-32a3-5127a6c7c7d8@camlintechnologies.com> <20200228031306.GO122464@google.com> Date: Fri, 28 Feb 2020 10:11:30 +0100 In-Reply-To: <20200228031306.GO122464@google.com> (Sergey Senozhatsky's message of "Fri, 28 Feb 2020 12:13:06 +0900") Message-ID: <87r1yfvzy5.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-28, Sergey Senozhatsky wrote: > Cc-ing Petr, Steven, John Thanks. > https://lore.kernel.org/lkml/e9358218-98c9-2866-8f40-5955d093dc1b@camlintechnologies.com > > On (20/02/27 14:08), Lech Perczak wrote: >> >>> My test scenario for bisecting was: >> >>> 1. run 'dmesg --follow' as root >> >>> 2. run 'echo t > /proc/sysrq-trigger' >> >>> 3. If trace appears in dmesg output -> good, otherwise, bad. If trace doesn't appear in output of 'dmesg --follow', re-running it will show the trace. >> >>> >> >>> I ran my tests on Debian 10.3 with configuration based directly on one from 4.19.0-8-amd64 (4.19.98-1) in Qemu. >> >>> I could reproduce the same issue on several boards with x86 and ARMv7 CPUs alike, with 100% reproducibility. > > This is very-very odd... Hmm. > Just out of curiosity, what happens if you comment out that > printk() entirely? > > printk_deferred() should not affect the PRINTK_PENDING_WAKEUP path. It is the printk_deferred() causing the issue. This is relatively early, so perhaps something is not yet properly initialized. > Either we never queue wakeup irq_work(), e.g. because > waitqueue_active() never lets us to do so or because `(curr_log_seq != > log_next_seq)' is always zero wake_up_klogd() is called and the waitqueue (@log_wait) is active. irq_work_queue() is called, but the work function, wake_up_klogd_work_func(), is never called. Perhaps @wake_up_klogd_work gets broken somehow. I'm looking into it. John Ogness