Received: by 10.223.185.116 with SMTP id b49csp2263397wrg; Thu, 22 Feb 2018 10:43:58 -0800 (PST) X-Google-Smtp-Source: AH8x22551T5cFj9i0S08MYURmkv1eZWYrpXbqtCqBTf6Yr/K0EFKMn4n9L/TmD9+B42np0pQSASh X-Received: by 2002:a17:902:6bcb:: with SMTP id m11-v6mr7626512plt.326.1519325038307; Thu, 22 Feb 2018 10:43:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519325038; cv=none; d=google.com; s=arc-20160816; b=TzVb8hxTprB+sma0bG+/pyAtjzWRKUBCAr4VVf47j/XH2JZVGoaxBARM+ktU0jkAnu BWUUdmOGsHhui5/4xaRY/WvGXTIpHNWOt0LgJ3GN++Io1l/R9N1qSNbDtmxnPI1LnEVM DYxppMMCUCtQb7PZzkfibSpnWNAZGyP2ydmgRWmoBA4b8J/htvXLis/tVEXjQKv1IDIC W5r/CT1tycMWJeDLwOUGmZ1tHZqepWs1dKt5JwoRoatu3qIPk8hXbjsbVDi7dc/LS6mQ KxyIwMpyt1V6MXrcpLf+gFGAA9u7nh1a1q+QqCbphJ1vp7NU2Tuh4gN2nzTKzy0rKdBF HPFA== 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 :arc-authentication-results; bh=awwYTRzR6QN2+kST58NtxPKi9JgRIPSbGYhNSjN80/s=; b=vl1RP2UligjWmmjn5ocf8OCauIt1Afx6wcp4WjMig98hbkMi8KPIV9org/HIFeT17E cwq+1q6OdwmOT+RkiFIYTnI7aolnI9niIMHBCwruZm+3mBQkkJZ71Fsq/QAzx21m4Rsc 7mwv1OXNmO5w8JisauSKE4yFu593bGpdT7ymWLF3Hpdc1g4IfwqpRwmDNTnfEr7kXObe pu2wdOZ7QkUqPAq+048Y40CcPwTbIcEmJ2RPOeAu6/BzkESLQIZpAxuXZcd1fCAhXElE LOuoqBsXtrQoMa0ytuXyNWJ9OdRU71hrPYVBy5m7eBEtqd2EXQoMmGIygrrwD9+LBDgZ 7e4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Vvy9L9i2; 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 bi12-v6si398015plb.682.2018.02.22.10.43.43; Thu, 22 Feb 2018 10:43:58 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Vvy9L9i2; 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 S1751334AbeBVSmz (ORCPT + 99 others); Thu, 22 Feb 2018 13:42:55 -0500 Received: from mail-io0-f170.google.com ([209.85.223.170]:34564 "EHLO mail-io0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274AbeBVSmy (ORCPT ); Thu, 22 Feb 2018 13:42:54 -0500 Received: by mail-io0-f170.google.com with SMTP id e7so7077493ioj.1 for ; Thu, 22 Feb 2018 10:42:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=awwYTRzR6QN2+kST58NtxPKi9JgRIPSbGYhNSjN80/s=; b=Vvy9L9i2asbcb1QqWM8fuQH/H/66U54ifr7kgliWaK+IjPHYVEyLALB7530aK3sP32 FeHk2zpM5Mbkvu/a5qQSwtkISZQhZk4X8UbhXvNlfzO4XtEA7R/6jLEAJZaRcIqVnfEh 0WJy8E/lFYm56MX2SFWEiqOylJEaDTgcCnRDXH0dfjEVxTCGCzFZZ07bgWE+U6SHP+R9 TdSjs17NxP9kxRFFnFCXpIEgJgwa0z/JNyBn8cS0MrTd0WiXW7TS74VxOMeFiUa3AqOe qKv8OsKJgvlTT3jtWnP3CDpD4eYuqKhDgz5CkP790kDgZsaqrs5Hx0krw8LfAntfsIhR 4N2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=awwYTRzR6QN2+kST58NtxPKi9JgRIPSbGYhNSjN80/s=; b=fTBWKimHZ51WYoPwiVp+p1PAc/2gB5jcIS0YyajG1UwLQtTFMndvCXrwUtXUX9yzfO dczhR7ib2id7t5BcCq14SaZjNSB8wrV/m5i/ovM3Dt86F5m62v28XCznC7XnfAKytvx/ rXcTwq0x6n0H0jG9P/A1GE9Pt6TAw2Kh0vYXZzvt1audvl0K32FXQcWRJNa0XFj5OCG9 CbdMrLdJcjyu8G58BC9nQ7MxP6RUC3Rh4W0T6EnWzSvWJcjnZowelhPEipwhJu3pNZ3v HrKTTw2QeN5hOdSpZWDn5UGfok83S+O743FZB3VNkoPV19xQ6xUFPavJz/No6tPyqFTR n0JQ== X-Gm-Message-State: APf1xPCvDT11q2KXFPbINKNicJdC2HHyqbl9VKkNjHtJxOB1Z80kqMCu W3a/Sc6W46OBhkvlpKbMAud0zEoHYdgfVwCldirRzUyT X-Received: by 10.107.154.137 with SMTP id c131mr10601074ioe.203.1519324973501; Thu, 22 Feb 2018 10:42:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.135.221 with HTTP; Thu, 22 Feb 2018 10:42:52 -0800 (PST) In-Reply-To: <20180222092327.GM25201@hirez.programming.kicks-ass.net> References: <20180219202826.19797-1-bp@alien8.de> <20180220192956.si2a6m3ckskexvte@treble> <20180220204435.GC24320@pd.tnic> <20180221091553.gxnvhbitiewo2mjc@gmail.com> <20180221175429.GC9989@pd.tnic> <20180222092327.GM25201@hirez.programming.kicks-ass.net> From: Linus Torvalds Date: Thu, 22 Feb 2018 10:42:52 -0800 X-Google-Sender-Auth: Kcg1VoZ3Ty8aWJtoJmxdlCHVyl4 Message-ID: Subject: Re: [PATCH 0/5] x86/dumpstack: Cleanups and user opcode bytes Code: section To: Peter Zijlstra Cc: Borislav Petkov , Ingo Molnar , Josh Poimboeuf , Andy Lutomirski , X86 ML , LKML 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 Thu, Feb 22, 2018 at 1:23 AM, Peter Zijlstra wrote: > > So being one to only use machines that have a serial line this does not > really affect me; but it would appear to me that it might make sense to > try and reverse the entire dump. In theory yes. But while you mention the buffering problem, the *bigger* problem is that sometimes things go south half-way through. We've definitely had cases where we only get the first few lines of the oops, because the oops machinery itself has issues (ie takes a fault in the middle because of random corruption issues or the stack tracing acting up or whatever). So while "most important last" is good for it not scrolling off the screen, it's really bad for the "oops itself has problems" case. I'd rather people try very hard to make the oops messages dense and relevant, and not have information that isn't really useful in practice. We already got rid of the stack content dumping for that reason - it was useful 20+ years ago, but it had become more of a detriment than a real help. So I don't want people to think "this _might_ be useful, let's print it out". It really should be "this is _critically_ useful, it's worth printing out even if we're limited to a 80x25 screen". Honestly, I think one option is to just mark parts for "printing" and other parts for "logging". I think we may raise the loglevel a bit _too_ much when an oops happens in "console_verbose()". So what we could perhaps do is: - make console_verbose() actually reset things to at least LOGLEVEL_DEBUG - make sure the *default* loglevel be LOGLEVEL_WARNING - now you can use pr_debug() in the oops code to print messages to the log, but they won't be printed to the screen. And people who really want everything can still set a loglevel that is much higher, because "console_verbose" would only do that "at least" thing. That would seem like the best of both worlds, no? Linus