Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5230852pxu; Tue, 22 Dec 2020 11:31:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/0+SmyqIIEtVBO1tEoMsYhYyFfAuguhsdpKFmJbYuAlLReUk9SdOOMWPKdFHi9BDVXL8G X-Received: by 2002:a17:906:a2d0:: with SMTP id by16mr20748092ejb.207.1608665460269; Tue, 22 Dec 2020 11:31:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608665460; cv=none; d=google.com; s=arc-20160816; b=0Bs0O9vjw7w2ZO275VAKTaG5L1kN4jKRBZWRkdl0KvRsU5cWzvhGRwxswjGd1VT3lh DLAMRfLLzSNuRxtxQ2m76u0rIGxgHlG3enr3nGXKAaGHnITtvmF6ITJfFbcDRUPZeODJ 05T4Pe7mNx1fYhbTP4jjb1TtiRm26pYvXyVIsHVrP2o1AtWuGDqPUYUGPCVEKy72wr72 l5LEvPfK1TBu6cy4c76S5dd7rn4TuK4rwgi6/ljc9OqJ/fzeyg4JELpRh4QxcsVcKqB4 8UfUg2w7601GHLu1GGwiS5syCJZgmCxyJ130i3A+tAE/zwhaCZ/dgra40wqGwsMAztDV VKUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WbFzFiZYs65Vkt660aD//2c0YmnCgd1HRy7MBsnYFYE=; b=khQT2SjGEjBKoY2fjRLRoBprbiBhow+QTFbSY5V8P9zLzlaa9yAkaDd8Yr/35lhzkx guBgoPZPhSELRuupvmOiWk7CgO0OFXh1oNAo45yR+wdxCg2jtfNKDZi4n+YQBROscXV9 eLAWR1wGhMjEeL8PLEP2qgLc31+HngZUcx0wWFT1bX2Su8mZ0IkDzLuZaE9uWRLrY0GW 7/9yurr1es684RWMa4Eyta4o0HqJ7IHtaxVjuXwx8GM9FyH2XQfP862hKiFAlMKB1K+V 36qCgs7gLEaJb7m5ok8Jl4c9MHLol/onZbZ6DnAdnZBBB93l9GaWGC+WloKy+qrgDIHs yuTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=IZFENNdi; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s20si10660900ejd.566.2020.12.22.11.30.14; Tue, 22 Dec 2020 11:31:00 -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=@alien8.de header.s=dkim header.b=IZFENNdi; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725931AbgLVT1C (ORCPT + 99 others); Tue, 22 Dec 2020 14:27:02 -0500 Received: from mail.skyhub.de ([5.9.137.197]:40062 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725938AbgLVT0C (ORCPT ); Tue, 22 Dec 2020 14:26:02 -0500 Received: from zn.tnic (p200300ec2f0ef2002f9d5453c68bf448.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:f200:2f9d:5453:c68b:f448]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 069C71EC0516; Tue, 22 Dec 2020 20:25:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1608665121; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=WbFzFiZYs65Vkt660aD//2c0YmnCgd1HRy7MBsnYFYE=; b=IZFENNdimKt8iTQHjsvDmHHbwFolfn67G03ScVG2FofEWiN8fIfP/WoSEdL5oakg1VVPvn nYomLFlvMTxvIbDTWOOCcZG+fv5v1YShRwn0v2zUmFEKrULe6uSXZpr7WvDJhIj5zwJkhO xw8Uj62Cg2YMF7wtMK6C9R/2Z7IQofM= Date: Tue, 22 Dec 2020 20:25:17 +0100 From: Borislav Petkov To: Sean Christopherson Cc: Jonathan Corbet , x86-ml , lkml Subject: Re: [PATCH] Documentation/submitting-patches: Add blurb about backtraces in commit messages Message-ID: <20201222192517.GE13463@zn.tnic> References: <20201217183756.GE23634@zn.tnic> <20201221095425.6da68163@lwn.net> <20201222130555.GA13463@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 22, 2020 at 10:59:22AM -0800, Sean Christopherson wrote: > On Tue, Dec 22, 2020, Borislav Petkov wrote: > > Ok, here's the next one which I think, is also, not really controversial. > > Heh, are you trying to jinx yourself? I was trying to conjure up some bikeshedding... and there it is! :-) > > +Backtraces help document the call chain leading to a problem. However, > > +not all backtraces are helpful. For example, early boot call chains are > > +unique and obvious. > > I'd argue that there is still value in the backtrace though, e.g. I find them > very helpful when doing git archaeology. A backtrace is an easily recognizable > signature (don't have to read a bunch of text to understand there was a splat of > some kind), and the call stack is often helpful even if it is unique, e.g. for > unfamiliar code (including early boot chains) and/or code that is substantially > different from the current upstream. I think the intent of the text is to say not to include callchains which are *really* obvious. As in, there's no ambiguity as to how one has landed here. Also, sometimes people paste backtraces from a WARN* which are almost always superfluous - only the warn's address is important. This is at least how I go about debugging those. Maybe the text should be made more precise. > I'd prefer not to encourage people to strip the info after the function name, > though I do agree it's somewhat distracting (especially the offset/size). Yes. Especially since they don't make any sense on another system or even on the same system but with a different .config. > The module, call site in the function, exact file/line if available, > etc... provides context that I find helpful for building a mental > model of what went wrong. File/line is more useful, yes, but only for the current code snapshot. When time passes and stuff gets changed, those file/line things are not correct anymore so one would have to checkout the tree on which the splat happened. I guess I need to make that aspect more precise too. > E.g. which modules are in play, which short wrapper functions can > likely be glossed over, etc... That example doesn't have modules. I guess I'll generate a new one. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette